Convert ttcp to new packaging style, add PKG_VERSION, use TARGET_CFLAGS
[openwrt.git] / 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
13 include $(TOPDIR)/package/rules.mk
14
15 $(eval $(call PKG_template,BWM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
16
17 $(PKG_BUILD_DIR)/.configured:
18 touch $@
19
20 $(PKG_BUILD_DIR)/.built:
21 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm
22 touch $@
23
24 $(IPKG_BWM):
25 mkdir -p $(IDIR_BWM)/usr/bin
26 install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_BWM)/usr/bin/
27 $(STRIP) $(IDIR_BWM)/usr/bin/*
28 $(IPKG_BUILD) $(IDIR_BWM) $(PACKAGE_DIR)
29
This page took 0.044178 seconds and 5 git commands to generate.