disable jpeg and xpm explicitly
[openwrt.git] / openwrt / package / srelay / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=srelay
6 PKG_VERSION:=0.4.6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=4a9f3298b38d8588f0ffde31b946a47f
9
10 PKG_SOURCE_URL:=@SF/socks-relay
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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16 PKG_INIT_LEVEL:=60
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,SRELAY,srelay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 --disable-thread \
45 $(DISABLE_NLS) \
46 $(DISABLE_LARGEFILE) \
47 );
48 touch $@
49
50 $(PKG_BUILD_DIR)/.built:
51 rm -rf $(PKG_INSTALL_DIR)
52 mkdir -p $(PKG_INSTALL_DIR)
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 CC=$(TARGET_CC) \
55 all
56 cp $(PKG_BUILD_DIR)/srelay $(PKG_INSTALL_DIR)
57 touch $@
58
59 $(IPKG_SRELAY):
60 install -m0755 -d $(IDIR_SRELAY)/usr/bin
61 install -m0755 -d $(IDIR_SRELAY)/etc/init.d
62 cp -fpR $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/
63 cp -fpR files/srelay.init $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay
64 cp -fpR files/srelay.conf $(IDIR_SRELAY)/etc
65 chmod 755 $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay
66 $(RSTRIP) $(IDIR_SRELAY)
67 $(IPKG_BUILD) $(IDIR_SRELAY) $(PACKAGE_DIR)
This page took 0.056887 seconds and 5 git commands to generate.