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
33 define Build
/Configure
34 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
35 x
=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $$$${x}=yes
&& \
36 x
=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $$$${x}=yes
&& \
37 $(TARGET_CONFIGURE_OPTS
) \
38 CFLAGS
="$(TARGET_CFLAGS)" \
39 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
40 LDFLAGS
="$(TARGET_LDFLAGS)" \
42 --target
=$(GNU_TARGET_NAME
) \
43 --host
=$(GNU_TARGET_NAME
) \
44 --build
=$(GNU_HOST_NAME
) \
50 --datadir=/usr
/share \
51 --includedir=/usr
/include \
52 --infodir=/usr
/share
/info \
54 --libexecdir
=/usr
/lib \
55 --localstatedir
=/var \
56 --mandir=/usr
/share
/man \
59 $(DISABLE_LARGEFILE
) \
70 --disable-uri-rewrite\
78 --with-openssl
="$(STAGING_DIR)/usr" \
79 --without-spidermonkey\
85 define Package
/elinks
/install
86 $(INSTALL_DIR
) $(1)/usr
/bin
87 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/elinks
$(1)/usr
/bin
/
90 $(eval
$(call BuildPackage
,elinks
))