enable mrd6 in menuconfig
[openwrt.git] / openwrt / package / ssltunnel / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ssltunnel
6 PKG_VERSION:=1.15
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=bfe529edb9b6c97bc03d213676b1f35d
9
10 PKG_SOURCE_URL:=http://www.hsc.fr/ressources/outils/ssltunnel/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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,SSLTUNNEL,ssltunnel,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/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 );
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 rm -rf $(PKG_INSTALL_DIR)
51 mkdir -p $(PKG_INSTALL_DIR)
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 CCOPT="$(TARGET_CFLAGS)" INCLS="-I. -I$(STAGING_DIR)/usr/include" \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 touch $@
57
58 $(IPKG_SSLTUNNEL):
59 install -m0755 -d $(IDIR_SSLTUNNEL)/usr/bin
60 install -m0755 -d $(IDIR_SSLTUNNEL)/usr/sbin
61 install -m0755 -d $(IDIR_SSLTUNNEL)/usr/lib
62 install -m0755 $(PKG_INSTALL_DIR)/usr/bin/pppclient $(IDIR_SSLTUNNEL)/usr/bin/
63 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppwho $(IDIR_SSLTUNNEL)/usr/sbin/
64 install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppserver $(IDIR_SSLTUNNEL)/usr/lib/
65 $(RSTRIP) $(IDIR_SSLTUNNEL)
66 $(IPKG_BUILD) $(IDIR_SSLTUNNEL) $(PACKAGE_DIR)
67
68 mostlyclean:
69 make -C $(PKG_BUILD_DIR) clean
70 rm $(PKG_BUILD_DIR)/.built
This page took 0.039131 seconds and 5 git commands to generate.