use a default uclibc++ config instead of multiple copies of the same
[openwrt/svn-archive/archive.git] / ipv6 / aiccu / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=aiccu
12 PKG_VERSION:=20070115
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
17 PKG_MD5SUM:=c9bcc83644ed788e22a7c3f3d4021350
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/aiccu
25 SECTION:=ipv6
26 CATEGORY:=IPv6
27 DEPENDS:=+libpthread
28 TITLE:=SixXS Automatic IPv6 Connectivity Client Utility
29 URL:=http://www.sixxs.net/tools/aiccu/
30 endef
31
32 define Build/Configure
33 $(SED) "s,strip,/bin/true," $(PKG_BUILD_DIR)/unix-console/Makefile
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CC="$(TARGET_CC)" \
39 CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -DAICCU_CONSOLE -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
40 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpthread" \
41 DEBUG=0
42 endef
43
44 define Package/aiccu/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc
48 install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(1)/etc/
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/aiccu.init $(1)/etc/init.d/aiccu
51 endef
52
53 $(eval $(call BuildPackage,aiccu))