add a patch to integrate ipkg into busybox
[openwrt.git] / package / amwall / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=amwall
6 PKG_VERSION:=0.1.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=a8b6438e7fd9ccadc9f68824ae62349c
9
10 PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
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,AMWALL,amwall,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.prepared
22 rm -rf $(PKG_INSTALL_DIR)
23 mkdir -p $(PKG_INSTALL_DIR)
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 $(TARGET_CONFIGURE_OPTS) \
26 LDIR=$(PKG_BUILD_DIR) \
27 AMSEL_INCLUDE="$(STAGING_DIR)/usr/include" \
28 OPT_LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 PREFIX="/usr" \
30 CONFIG="$(PKG_BUILD_DIR)/etc/amsel" \
31 DESTDIR=$(PKG_INSTALL_DIR) \
32 all install
33 touch $@
34
35 $(IPKG_AMWALL):
36 install -d -m0755 $(IDIR_AMWALL)/usr/bin
37 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_AMWALL)/usr/bin
38 install -d -m0755 $(IDIR_AMWALL)/usr/sbin
39 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_AMWALL)/usr/sbin
40 install -d -m0755 $(IDIR_AMWALL)/etc/amsel
41 cp -fpR $(PKG_INSTALL_DIR)/etc/amsel* $(IDIR_AMWALL)/etc
42 $(RSTRIP) $(IDIR_AMWALL)
43 $(IPKG_BUILD) $(IDIR_AMWALL) $(PACKAGE_DIR)
44
This page took 0.044021 seconds and 5 git commands to generate.