Port elinks to -ng
[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 $(call Build/Configure/Default,--enable-small\
35 --enable-256-colors\
36 --disable-backtrace\
37 --disable-data\
38 --disable-formhist\
39 --disable-leds \
40 --disable-mailcap\
41 --disable-mouse \
42 --disable-smb \
43 --disable-uri-rewrite\
44 --disable-xbel \
45 --without-bzlib \
46 --without-gpm \
47 --without-idn \
48 --without-gnutls \
49 --without-libiconv \
50 --without-lua \
51 --with-openssl="$(STAGING_DIR)/usr" \
52 --without-spidermonkey\
53 --without-x\
54 --without-zlib \
55 --disable-ipv6 \, x=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
56 x=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
57 )
58 endef
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR)\
62 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld
63 endef
64
65 define Package/elinks/install
66 mkdir -p $(1)/usr/bin
67 $(CP) $(PKG_BUILD_DIR)/src/elinks $(1)/usr/bin/
68 endef
69
70 $(eval $(call BuildPackage,elinks))