add aiccu, bwm, ntpclient and radvd (from Sebastian Noel)
[openwrt.git] / openwrt / package / bwm / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=bwm
4 PKG_VERSION:=1.1.0
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=51021a036acb92d2bda0c0c0483f9552
7
8 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/bwm
9 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
10 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
11 PKG_CAT:=zcat
12 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
13 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
14
15 $(DL_DIR)/$(PKG_SOURCE):
16 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
17
18 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE)
19 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
20 touch $(PKG_BUILD_DIR)/.unpacked
21
22 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.unpacked
23 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm
24
25 $(PKG_IPK): $(PKG_BUILD_DIR)/$(PKG_NAME)
26 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
27 mkdir -p $(PKG_IPK_DIR)/usr/bin
28 install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_IPK_DIR)/usr/bin/
29 $(STRIP) $(PKG_IPK_DIR)/usr/bin/*
30 mkdir -p $(PACKAGE_DIR)
31 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
32
33 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
34 $(IPKG) install $(PKG_IPK)
35
36 source: $(DL_DIR)/$(PKG_SOURCE)
37 prepare: $(PKG_BUILD_DIR)/.unpacked
38 compile: $(PKG_IPK)
39 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
40
41 clean:
42 rm -rf $(PKG_BUILD_DIR)
43 rm -f $(PKG_IPK)
This page took 0.041676 seconds and 5 git commands to generate.