3 include $(TOPDIR)/rules.mk
8 PKG_MD5SUM:=c09d726075e4b5810fa07f8654088755
10 PKG_SOURCE_URL:=http://elinks.or.cz/download/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_MD5SUM:=c09d726075e4b5810fa07f8654088755
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 include $(TOPDIR)/package/rules.mk
19 $(eval $(call PKG_template,ELINKS,elinks,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
23 x=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $${x}=yes && \
24 x=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $${x}=yes && \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
47 $(DISABLE_LARGEFILE) \
58 --disable-uri-rewrite\
66 --with-openssl="$(STAGING_DIR)/usr" \
67 --without-spidermonkey\
74 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
75 $(MAKE) -C $(PKG_BUILD_DIR)\
76 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld
80 mkdir -p $(IDIR_ELINKS)/usr/bin
81 $(CP) $(PKG_BUILD_DIR)/src/elinks $(IDIR_ELINKS)/usr/bin/
82 $(RSTRIP) $(IDIR_ELINKS)
83 $(IPKG_BUILD) $(IDIR_ELINKS) $(PACKAGE_DIR)