Fix patch name
[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.4
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=88036a518ebc4f1150a7e14b29f9d8db
15
16 PKG_SOURCE_URL:=http://elinks.or.cz/download/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/elinks
22 SUBMENU:=Web
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libopenssl
26 TITLE:=A text based web browser
27 URL:=http://elinks.or.cz/
28 endef
29
30 define Package/elinks/description
31 An advanced text based web browser
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
36 x=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
37 x=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
41 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
42 ./configure \
43 --target=$(GNU_TARGET_NAME) \
44 --host=$(GNU_TARGET_NAME) \
45 --build=$(GNU_HOST_NAME) \
46 --program-prefix="" \
47 --program-suffix="" \
48 --prefix=/usr \
49 --exec-prefix=/usr \
50 --bindir=/usr/bin \
51 --datadir=/usr/share \
52 --includedir=/usr/include \
53 --infodir=/usr/share/info \
54 --libdir=/usr/lib \
55 --libexecdir=/usr/lib \
56 --localstatedir=/var \
57 --mandir=/usr/share/man \
58 --sbindir=/usr/sbin \
59 --sysconfdir=/etc \
60 $(DISABLE_LARGEFILE) \
61 $(DISABLE_NLS) \
62 --enable-small\
63 --enable-256-colors\
64 --disable-backtrace\
65 --disable-data\
66 --disable-formhist\
67 --disable-leds \
68 --disable-mailcap\
69 --disable-mouse \
70 --disable-smb \
71 --disable-uri-rewrite\
72 --disable-xbel \
73 --without-bzlib \
74 --without-gpm \
75 --without-idn \
76 --without-gnutls \
77 --without-libiconv \
78 --without-lua \
79 --with-openssl="$(STAGING_DIR)/usr" \
80 --without-spidermonkey\
81 --without-x\
82 --without-zlib \
83 --disable-ipv6 \
84 );
85 endef
86
87 define Package/elinks/install
88 mkdir -p $(1)/usr/bin
89 $(CP) $(PKG_BUILD_DIR)/src/elinks $(1)/usr/bin/
90 endef
91
92 $(eval $(call BuildPackage,elinks))