elinks cosmetic fix
[openwrt/openwrt.git] / openwrt / package / elinks / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=elinks
6 PKG_VERSION:=0.11.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c09d726075e4b5810fa07f8654088755
9
10 PKG_SOURCE_URL:=http://elinks.or.cz/download/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,ELINKS,elinks,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
22 x=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $${x}=yes && \
23 x=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $${x}=yes && \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 --enable-small\
49 --enable-256-colors\
50 --disable-backtrace\
51 --disable-data\
52 --disable-formhist\
53 --disable-leds \
54 --disable-mailcap\
55 --disable-mouse \
56 --disable-smb \
57 --disable-uri-rewrite\
58 --disable-xbel \
59 --without-bzlib \
60 --without-gpm \
61 --without-idn \
62 --without-gnutls \
63 --without-libiconv \
64 --without-lua \
65 --with-openssl="$(STAGING_DIR)/usr" \
66 --without-spidermonkey\
67 --without-x\
68 --without-zlib \
69 --disable-ipv6 \
70 );
71 touch $@
72
73 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
74 $(MAKE) -C $(PKG_BUILD_DIR)\
75 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld
76 touch $@
77
78 $(IPKG_ELINKS):
79 mkdir -p $(IDIR_ELINKS)/usr/bin
80 $(CP) $(PKG_BUILD_DIR)/src/elinks $(IDIR_ELINKS)/usr/bin/
81 $(RSTRIP) $(IDIR_ELINKS)
82 $(IPKG_BUILD) $(IDIR_ELINKS) $(PACKAGE_DIR)