Fixed ticket #169 thanks to gps !
[openwrt.git] / package / setpwc / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=setpwc
6 PKG_VERSION:=1.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=a125d76f630c4aab940df5912f161965
9
10 PKG_SOURCE_URL:=http://www.vanheusden.com/setpwc/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
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,SETPWC,setpwc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(TARGET_CC) $(TARGET_CFLAGS) -DVERSION=\"$(PKG_VERSION)\" -o $(PKG_BUILD_DIR)/setpwc $(PKG_BUILD_DIR)/setpwc.c
26 touch $@
27
28 $(IPKG_SETPWC):
29 install -d -m0755 $(IDIR_SETPWC)/usr/bin
30 install -m0755 $(PKG_BUILD_DIR)/setpwc $(IDIR_SETPWC)/usr/bin/
31 $(RSTRIP) $(IDIR_SETPWC)
32 $(IPKG_BUILD) $(IDIR_SETPWC) $(PACKAGE_DIR)
This page took 0.039981 seconds and 5 git commands to generate.