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
24 TITLE
:=A text based web browser
25 URL
:=http
://elinks.or.cz
/
28 define Package
/elinks
/description
29 An advanced text based web browser
33 $(STAGING_DIR_HOST
)/bin
/sed
-e \
34 'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'
36 define Build
/Configure
37 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
38 x
=`echo ac_cv_file_./features.conf | $(SHVAR_TRANS)` && export $$$${x}=yes
&& \
39 x
=`echo ac_cv_file_$(abspath $(PKG_BUILD_DIR)/features.conf) | $(SHVAR_TRANS)` && export $$$${x}=yes
&& \
40 $(TARGET_CONFIGURE_OPTS
) \
41 CFLAGS
="$(TARGET_CFLAGS)" \
42 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
43 LDFLAGS
="$(TARGET_LDFLAGS)" \
45 --target
=$(GNU_TARGET_NAME
) \
46 --host
=$(GNU_TARGET_NAME
) \
47 --build
=$(GNU_HOST_NAME
) \
53 --datadir=/usr
/share \
54 --includedir=/usr
/include \
55 --infodir=/usr
/share
/info \
57 --libexecdir
=/usr
/lib \
58 --localstatedir
=/var \
59 --mandir=/usr
/share
/man \
72 --disable-uri-rewrite\
80 --with-openssl
="$(STAGING_DIR)/usr" \
81 --without-spidermonkey\
87 define Package
/elinks
/install
88 $(INSTALL_DIR
) $(1)/usr
/bin
89 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/elinks
$(1)/usr
/bin
/
92 $(eval
$(call BuildPackage
,elinks
))