change cp to $(CP)
[openwrt.git] / openwrt / package / vpnc / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=vpnc
6 PKG_VERSION:=0.3.3
7 PKG_RELEASE:=1
8
9 PKG_MD5SUM:=e7518cff21326fe7eb9795b60c25ae6a
10 PKG_SOURCE_URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14 PKG_CAT:=zcat
15
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,VPNC,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 CC=$(TARGET_CC) \
28 OFLAGS="$(TARGET_CFLAGS)" \
29 OS="Linux" \
30 STAGING_DIR=$(STAGING_DIR) \
31 DESTDIR=$(PKG_INSTALL_DIR) \
32 PREFIX=/usr \
33 all install
34 touch $@
35
36 $(IPKG_VPNC):
37 install -d -m0755 $(IDIR_VPNC)
38 $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_VPNC)/
39 $(RSTRIP) $(IDIR_VPNC)
40 $(IPKG_BUILD) $(IDIR_VPNC) $(PACKAGE_DIR)
This page took 0.044186 seconds and 5 git commands to generate.