summaryrefslogtreecommitdiff
path: root/openwrt/package/ndisc/Makefile
blob: cde15f218eb2d6f949642e35794f2a2a6c69fe81 (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
40
41
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=ndisc6
PKG_VERSION:=0.4.0
PKG_RELEASE:=1
PKG_MD5SUM:=7c30f2bfdfc4bd7b7c986503083f218d

PKG_SOURCE_URL:=http://people.via.ecp.fr/~rem/ndisc6/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_CAT:=bzcat

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

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,NDISC6,ndisc6,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(eval $(call PKG_template,RDISC6,rdisc6,$(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_NDISC6):
	install -d -m0755 $(IDIR_NDISC6)/usr/bin
	install -m0755 $(PKG_BUILD_DIR)/ndisc6 $(IDIR_NDISC6)/usr/bin/
	$(RSTRIP) $(IDIR_NDISC6)
	$(IPKG_BUILD) $(IDIR_NDISC6) $(PACKAGE_DIR)

$(IPKG_RDISC6):
	install -d -m0755 $(IDIR_RDISC6)/usr/bin
	install -m0755 $(PKG_BUILD_DIR)/rdisc6 $(IDIR_RDISC6)/usr/bin/
	$(RSTRIP) $(IDIR_RDISC6)
	$(IPKG_BUILD) $(IDIR_RDISC6) $(PACKAGE_DIR)