Category reorganization
[packages.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   SUBMENU:=Web
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+libopenssl
29   TITLE:=A text based web browser
30   DESCRIPTION:=An advanced text based web browser
31   URL:=http://elinks.or.cz/
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))
93
94 $(eval $(call RequireCommand,autoconf, \
95         $(PKG_NAME) requires GNU autoconf. \
96 ))
97