2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://elinks.or.cz
/download
16 PKG_MD5SUM
:=fcd087a6d2415cd4c6fd1db53dceb646
18 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=A text based web browser
26 URL
:=http
://elinks.or.cz
/
29 define Package
/elinks
/description
30 An advanced text based web browser
34 $(STAGING_DIR_HOST
)/bin
/sed
-e \
35 'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'
37 define Build
/Configure
38 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
39 x
=`echo ac_cv_file_./features.conf | $(SHVAR_TRANS)` && export $$$${x}=yes
&& \
40 x
=`echo ac_cv_file_$(abspath $(PKG_BUILD_DIR)/features.conf) | $(SHVAR_TRANS)` && export $$$${x}=yes
&& \
41 $(TARGET_CONFIGURE_OPTS
) \
42 CFLAGS
="$(TARGET_CFLAGS)" \
43 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
44 LDFLAGS
="$(TARGET_LDFLAGS)" \
46 --target
=$(GNU_TARGET_NAME
) \
47 --host
=$(GNU_TARGET_NAME
) \
48 --build
=$(GNU_HOST_NAME
) \
54 --datadir=/usr
/share \
55 --includedir=/usr
/include \
56 --infodir=/usr
/share
/info \
58 --libexecdir
=/usr
/lib \
59 --localstatedir
=/var \
60 --mandir=/usr
/share
/man \
73 --disable-uri-rewrite\
81 --with-openssl
="$(STAGING_DIR)/usr" \
82 --without-spidermonkey\
88 define Package
/elinks
/install
89 $(INSTALL_DIR
) $(1)/usr
/bin
90 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/elinks
$(1)/usr
/bin
/
93 $(eval
$(call BuildPackage
,elinks
))