Requirements cleanup
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/elinks
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libopenssl
28 TITLE:=A text based web browser
29 DESCRIPTION:=An advanced text based web browser
30 URL:=http://elinks.or.cz/
31 endef
32
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="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
40 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
41 ./configure \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
45 --program-prefix="" \
46 --program-suffix="" \
47 --prefix=/usr \
48 --exec-prefix=/usr \
49 --bindir=/usr/bin \
50 --datadir=/usr/share \
51 --includedir=/usr/include \
52 --infodir=/usr/share/info \
53 --libdir=/usr/lib \
54 --libexecdir=/usr/lib \
55 --localstatedir=/var \
56 --mandir=/usr/share/man \
57 --sbindir=/usr/sbin \
58 --sysconfdir=/etc \
59 $(DISABLE_LARGEFILE) \
60 $(DISABLE_NLS) \
61 --enable-small\
62 --enable-256-colors\
63 --disable-backtrace\
64 --disable-data\
65 --disable-formhist\
66 --disable-leds \
67 --disable-mailcap\
68 --disable-mouse \
69 --disable-smb \
70 --disable-uri-rewrite\
71 --disable-xbel \
72 --without-bzlib \
73 --without-gpm \
74 --without-idn \
75 --without-gnutls \
76 --without-libiconv \
77 --without-lua \
78 --with-openssl="$(STAGING_DIR)/usr" \
79 --without-spidermonkey\
80 --without-x\
81 --without-zlib \
82 --disable-ipv6 \
83 );
84 endef
85
86 define Package/elinks/install
87 mkdir -p $(1)/usr/bin
88 $(CP) $(PKG_BUILD_DIR)/src/elinks $(1)/usr/bin/
89 endef
90
91 $(eval $(call BuildPackage,elinks))
92
93 $(eval $(call RequireCommand,autoconf, \
94 $(PKG_NAME) requires GNU autoconf. \
95 ))
96