aboutsummaryrefslogtreecommitdiffstats
path: root/package/amwall/Makefile
blob: a2e3c391b2a2eca05dbddbfc10aab1400eabd675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=amwall
PKG_VERSION:=0.1.0
PKG_RELEASE:=1
PKG_MD5SUM:=a8b6438e7fd9ccadc9f68824ae62349c

PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_CAT:=bzcat

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,AMWALL,amwall,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured:
	touch $@

$(PKG_BUILD_DIR)/.built:
	rm -rf $(PKG_INSTALL_DIR)
	mkdir -p $(PKG_INSTALL_DIR)
	$(MAKE) -C $(PKG_BUILD_DIR) \
		$(TARGET_CONFIGURE_OPTS) \
		V= \
		LDIR=$(PKG_BUILD_DIR) \
		AMSEL_INCLUDE="$(STAGING_DIR)/usr/include" \
		OPT_LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
		PREFIX="/usr" \
		CONFIG="$(PKG_BUILD_DIR)/etc/amsel" \
		DESTDIR=$(PKG_INSTALL_DIR) \
		all install
	touch $@

$(IPKG_AMWALL):
	install -d -m0755 $(IDIR_AMWALL)/usr/bin
	$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_AMWALL)/usr/bin	
	install -d -m0755 $(IDIR_AMWALL)/usr/sbin
	$(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_AMWALL)/usr/sbin	
	install -d -m0755 $(IDIR_AMWALL)/etc/amsel
	$(CP) $(PKG_INSTALL_DIR)/etc/amsel* $(IDIR_AMWALL)/etc	
	$(RSTRIP) $(IDIR_AMWALL)					
	$(IPKG_BUILD) $(IDIR_AMWALL) $(PACKAGE_DIR)