summaryrefslogtreecommitdiff
path: root/openwrt/package/cutter/Makefile
blob: dcf8ebf17c54e1606b8535594a604c1f066305fe (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
# $Id: Makefile 2745 2005-12-21 09:50:28Z florian $

include $(TOPDIR)/rules.mk

PKG_NAME:=cutter
PKG_VERSION:=1.03
PKG_RELEASE:=1
PKG_MD5SUM:=50093db9b64277643969ee75b83ebbd1

PKG_SOURCE_URL:=http://www.lowth.com/cutter/software/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_CAT:=zcat
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,CUTTER,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured:
	touch $@
	
$(PKG_BUILD_DIR)/.built:
	$(TARGET_CC) $(PKG_BUILD_DIR)/cutter.c -o $(PKG_BUILD_DIR)/cutter
	install -d -m0755 $(PKG_INSTALL_DIR)/usr/sbin
	install -m0755 $(PKG_BUILD_DIR)/cutter $(PKG_INSTALL_DIR)/usr/sbin/
	
$(IPKG_CUTTER):
	mkdir -p $(IDIR_CUTTER)
	cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_CUTTER)/
	$(RSTRIP) $(IDIR_CUTTER)/
	$(IPKG_BUILD) $(IDIR_CUTTER) $(PACKAGE_DIR)