db2970c092d21c6510c6c2a7ff2a7c2fe3246202
[openwrt/svn-archive/archive.git] / net / elinks / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=elinks
11 PKG_VERSION:=0.11.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://elinks.or.cz/download
16 PKG_MD5SUM:=fcd087a6d2415cd4c6fd1db53dceb646
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/elinks
21 SUBMENU:=Web
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libopenssl
25 TITLE:=A text based web browser
26 URL:=http://elinks.or.cz/
27 endef
28
29 define Package/elinks/description
30 An advanced text based web browser
31 endef
32
33 SHVAR_TRANS:= \
34 $(STAGING_DIR_HOST)/bin/sed -e \
35 'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'
36
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)" \
45 ./configure \
46 --target=$(GNU_TARGET_NAME) \
47 --host=$(GNU_TARGET_NAME) \
48 --build=$(GNU_HOST_NAME) \
49 --program-prefix="" \
50 --program-suffix="" \
51 --prefix=/usr \
52 --exec-prefix=/usr \
53 --bindir=/usr/bin \
54 --datadir=/usr/share \
55 --includedir=/usr/include \
56 --infodir=/usr/share/info \
57 --libdir=/usr/lib \
58 --libexecdir=/usr/lib \
59 --localstatedir=/var \
60 --mandir=/usr/share/man \
61 --sbindir=/usr/sbin \
62 --sysconfdir=/etc \
63 $(DISABLE_LARGEFILE) \
64 $(DISABLE_NLS) \
65 --enable-small\
66 --enable-256-colors\
67 --disable-backtrace\
68 --disable-data\
69 --disable-formhist\
70 --disable-leds \
71 --disable-mailcap\
72 --disable-mouse \
73 --disable-smb \
74 --disable-uri-rewrite\
75 --disable-xbel \
76 --without-bzlib \
77 --without-gpm \
78 --without-idn \
79 --without-gnutls \
80 --without-libiconv \
81 --without-lua \
82 --with-openssl="$(STAGING_DIR)/usr" \
83 --without-spidermonkey\
84 --without-x\
85 --without-zlib \
86 );
87 endef
88
89 define Package/elinks/install
90 $(INSTALL_DIR) $(1)/usr/bin
91 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/elinks $(1)/usr/bin/
92 endef
93
94 $(eval $(call BuildPackage,elinks))