summaryrefslogtreecommitdiffstats
path: root/openwrt/package/frickin/Makefile
blob: a52720919368aa72d7864ce8692f6aaeb5a5c1a3 (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
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=frickin
PKG_VERSION:=1.3
PKG_RELEASE:=1
PKG_MD5SUM:= 5b2e98da2310c71c703d4617b88a173f

PKG_SOURCE_URL:=@SF/frickin
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat

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,FRICKIN,frickin,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured:
	touch $@

$(PKG_BUILD_DIR)/.built:
	$(MAKE) -C $(PKG_BUILD_DIR) \
		$(TARGET_CONFIGURE_OPTS) \
		CFLAGS="$(TARGET_CFLAGS)" \
		all
	touch $@

$(IPKG_FRICKIN):
	install -d -m0755 $(IDIR_FRICKIN)/etc/default
	install -m0644 ./files/frickin.default $(IDIR_FRICKIN)/etc/default/frickin
	install -d -m0755 $(IDIR_FRICKIN)/etc/init.d
	install -m0755 ./files/frickin.init $(IDIR_FRICKIN)/etc/init.d/frickin
	install -d -m0755 $(IDIR_FRICKIN)/usr/sbin
	install -m0755 $(PKG_BUILD_DIR)/frickin $(IDIR_FRICKIN)/usr/sbin/
	$(RSTRIP) $(IDIR_FRICKIN)
	$(IPKG_BUILD) $(IDIR_FRICKIN) $(PACKAGE_DIR)