add elinks, mutt, fetchmail and procmail, thx Michael Cohen, procmail disabled, compi...
[openwrt/svn-archive/archive.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
9 PKG_SOURCE_URL:=http://elinks.or.cz/download/
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_MD5SUM:=c09d726075e4b5810fa07f8654088755
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_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $${x}=yes && \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
25 ac_cv_c_bigendian=no \
26 ac_cv_sizeof_off_t=8 \
27 ac_cv_file___features_conf=yes \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --disable-largefile\
33 --disable-formhist\
34 --disable-mailcap\
35 --disable-data\
36 --disable-uri-rewrite\
37 --enable-256-colors\
38 --disable-backtrace\
39 --enable-small\
40 --without-spidermonkey\
41 --without-x\
42 --disable-ipv6 \
43 $(DISABLE_NLS) \
44 );
45 touch $@
46
47 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
48 $(MAKE) -C $(PKG_BUILD_DIR)\
49 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld
50 touch $@
51
52 $(IPKG_ELINKS):
53 mkdir -p $(IDIR_ELINKS)/usr/bin
54 $(CP) $(PKG_BUILD_DIR)/src/elinks $(IDIR_ELINKS)/usr/bin/
55 $(RSTRIP) $(IDIR_ELINKS)
56 $(IPKG_BUILD) $(IDIR_ELINKS) $(PACKAGE_DIR)