summaryrefslogtreecommitdiffstats
path: root/package/udp-broadcast-relay/Makefile
blob: 040a7e778e2d425cd555376a7735159e136b4ece (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
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $

include $(TOPDIR)/rules.mk

PKG_NAME:=udp-broadcast-relay
PKG_VERSION:=0.3
PKG_RELEASE:=1
PKG_MD5SUM:=a32f983b7063d6ac670e6b22be9b9d24

PKG_SOURCE_URL:=http://www.joachim-breitner.de/udp-broadcast-relay/files/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,UDP_BROADCAST_RELAY,udp-broadcast-relay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured:
	touch $@

$(PKG_BUILD_DIR)/.built:
	$(TARGET_CC) $(PKG_BUILD_DIR)/main.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
	touch $@

$(IPKG_UDP_BROADCAST_RELAY): 
	mkdir -p $(IDIR_UDP_BROADCAST_RELAY)/usr/sbin
	$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_UDP_BROADCAST_RELAY)/usr/sbin/
	$(STRIP) $(IDIR_UDP_BROADCAST_RELAY)/usr/sbin/*
	$(IPKG_BUILD) $(IDIR_UDP_BROADCAST_RELAY) $(PACKAGE_DIR)

mostlyclean:
	$(MAKE) -C $(PKG_BUILD_DIR) clean
	rm -f $(PKG_BUILD_DIR)/.built