2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=88036a518ebc4f1150a7e14b29f9d8db
16 PKG_SOURCE_URL
:=http
://elinks.or.cz
/download
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
19 include $(INCLUDE_DIR
)/package.mk
26 TITLE
:=A text based web browser
27 URL
:=http
://elinks.or.cz
/
30 define Package
/elinks
/description
31 An advanced text based web browser
34 define Build
/Configure
35 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
36 x
=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $$$${x}=yes
&& \
37 x
=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $$$${x}=yes
&& \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS)" \
40 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
41 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
43 --target
=$(GNU_TARGET_NAME
) \
44 --host
=$(GNU_TARGET_NAME
) \
45 --build
=$(GNU_HOST_NAME
) \
51 --datadir=/usr
/share \
52 --includedir=/usr
/include \
53 --infodir=/usr
/share
/info \
55 --libexecdir
=/usr
/lib \
56 --localstatedir
=/var \
57 --mandir=/usr
/share
/man \
60 $(DISABLE_LARGEFILE
) \
71 --disable-uri-rewrite\
79 --with-openssl
="$(STAGING_DIR)/usr" \
80 --without-spidermonkey\
87 define Package
/elinks
/install
89 $(CP
) $(PKG_BUILD_DIR
)/src
/elinks
$(1)/usr
/bin
/
92 $(eval
$(call BuildPackage
,elinks
))