AA: packages: weechat: update to 0.4.0
[12.09/packages.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   SECTION:=net
22   CATEGORY:=Network
23   DEPENDS:=+libopenssl
24   TITLE:=A text based web browser
25   URL:=http://elinks.or.cz/
26 endef
27
28 define Package/elinks/description
29 An advanced text based web browser
30 endef
31
32 SHVAR_TRANS:= \
33         $(STAGING_DIR_HOST)/bin/sed -e \
34         'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'
35
36 define Build/Configure
37  (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
38                 x=`echo ac_cv_file_./features.conf | $(SHVAR_TRANS)` && export $$$${x}=yes && \
39                 x=`echo ac_cv_file_$(abspath $(PKG_BUILD_DIR)/features.conf) | $(SHVAR_TRANS)` && export $$$${x}=yes && \
40                 $(TARGET_CONFIGURE_OPTS) \
41                 CFLAGS="$(TARGET_CFLAGS)" \
42                 CPPFLAGS="$(TARGET_CPPFLAGS)" \
43                 LDFLAGS="$(TARGET_LDFLAGS)" \
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_NLS) \
63                         --enable-small\
64                         --enable-256-colors\
65                         --disable-backtrace\
66                         --disable-data\
67                         --disable-formhist\
68                         --disable-leds \
69                         --disable-mailcap\
70                         --disable-mouse \
71                         --disable-smb \
72                         --disable-uri-rewrite\
73                         --disable-xbel \
74                         --without-bzlib \
75                         --without-gpm \
76                         --without-idn \
77                         --without-gnutls \
78                         --without-libiconv \
79                         --without-lua \
80                         --with-openssl="$(STAGING_DIR)/usr" \
81                         --without-spidermonkey\
82                         --without-x\
83                         --without-zlib \
84         );
85 endef
86
87 define Package/elinks/install
88         $(INSTALL_DIR) $(1)/usr/bin
89         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/elinks $(1)/usr/bin/
90 endef
91
92 $(eval $(call BuildPackage,elinks))