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