Add nufw
[openwrt/svn-archive/archive.git] / net / elinks / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=elinks
12 PKG_VERSION:=0.11.1
13 PKG_RELEASE:=2
14 PKG_MD5SUM:=c09d726075e4b5810fa07f8654088755
15
16 PKG_SOURCE_URL:=http://elinks.or.cz/download/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/elinks
24 SUBMENU:=Web
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libopenssl
28 TITLE:=A text based web browser
29 URL:=http://elinks.or.cz/
30 endef
31
32 define Package/elinks/description
33 An advanced text based web browser
34 endef
35
36 define Build/Configure
37 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
38 x=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
39 x=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
40 $(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="$(TARGET_CFLAGS)" \
42 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
43 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
44 ./configure \
45 --target=$(GNU_TARGET_NAME) \
46 --host=$(GNU_TARGET_NAME) \
47 --build=$(GNU_HOST_NAME) \
48 --program-prefix="" \
49 --program-suffix="" \
50 --prefix=/usr \
51 --exec-prefix=/usr \
52 --bindir=/usr/bin \
53 --datadir=/usr/share \
54 --includedir=/usr/include \
55 --infodir=/usr/share/info \
56 --libdir=/usr/lib \
57 --libexecdir=/usr/lib \
58 --localstatedir=/var \
59 --mandir=/usr/share/man \
60 --sbindir=/usr/sbin \
61 --sysconfdir=/etc \
62 $(DISABLE_LARGEFILE) \
63 $(DISABLE_NLS) \
64 --enable-small\
65 --enable-256-colors\
66 --disable-backtrace\
67 --disable-data\
68 --disable-formhist\
69 --disable-leds \
70 --disable-mailcap\
71 --disable-mouse \
72 --disable-smb \
73 --disable-uri-rewrite\
74 --disable-xbel \
75 --without-bzlib \
76 --without-gpm \
77 --without-idn \
78 --without-gnutls \
79 --without-libiconv \
80 --without-lua \
81 --with-openssl="$(STAGING_DIR)/usr" \
82 --without-spidermonkey\
83 --without-x\
84 --without-zlib \
85 --disable-ipv6 \
86 );
87 endef
88
89 define Package/elinks/install
90 mkdir -p $(1)/usr/bin
91 $(CP) $(PKG_BUILD_DIR)/src/elinks $(1)/usr/bin/
92 endef
93
94 $(eval $(call BuildPackage,elinks))
95
96 $(eval $(call RequireCommand,autoconf, \
97 $(PKG_NAME) requires GNU autoconf. \
98 ))
99