summaryrefslogtreecommitdiffstats
path: root/openwrt/package/pipacs/Makefile
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-09 15:46:03 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-09 15:46:03 +0000
commit9040df7d588f52c73bb8be4c0341ba506607fae9 (patch)
treed2ad653231362a4770ce3f9381651b034ab8d076 /openwrt/package/pipacs/Makefile
parent8d0e8886d4c79776e1a73d357c02d86ebea0e769 (diff)
add pipacs package (thanks to Janos)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2865 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/pipacs/Makefile')
-rw-r--r--openwrt/package/pipacs/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/openwrt/package/pipacs/Makefile b/openwrt/package/pipacs/Makefile
new file mode 100644
index 000000000..5ec35b995
--- /dev/null
+++ b/openwrt/package/pipacs/Makefile
@@ -0,0 +1,33 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=pipacs
+PKG_RELEASE:=2
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,PIPACS,pipacs,$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.prepared:
+ mkdir -p $(PKG_BUILD_DIR)
+ cp -a ./src/* $(PKG_BUILD_DIR)
+ touch $@
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include" \
+ all
+ touch $@
+
+$(IPKG_PIPACS):
+ mkdir -p $(IDIR_PIPACS)/usr/bin
+ install -m0755 $(PKG_BUILD_DIR)/pipacs $(IDIR_PIPACS)/usr/bin
+ $(RSTRIP) $(IDIR_PIPACS)
+ $(IPKG_BUILD) $(IDIR_PIPACS) $(PACKAGE_DIR)