remove the need for C99 math (closes: #1579)
[openwrt/svn-archive/archive.git] / ipv6 / tspc / 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:=tspc
12 PKG_VERSION:=2.1.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.fr.debian.org/debian/pool/main/t/tspc/
17 PKG_MD5SUM:=65183cae002feaacd8bc92d6a5404cc2
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)2
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/tspc
26 SECTION:=ipv6
27 CATEGORY:=IPv6
28 TITLE:=Client for Hexago's (Freenet6's) IPv6 service
29 DESCRIPTION:=\
30 Client to configure an IPv6 tunnel to \\\
31 Hexago's (Freenet6's) migration broker.
32 URL:=http://www.hexago.com
33 endef
34
35 define Build/Compile
36 rm -rf $(PKG_INSTALL_DIR)
37 mkdir -p $(PKG_INSTALL_DIR)
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 CC="$(TARGET_CC)" \
40 AR="$(TARGET_AR)" \
41 installdir="$(PKG_INSTALL_DIR)" \
42 install target=linux
43 endef
44
45 define Package/tspc/install
46 $(INSTALL_DIR) $(1)/bin
47 $(INSTALL_DIR) $(1)/etc
48 $(INSTALL_DIR) $(1)/etc/tsp
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/tspc $(1)/bin/
50 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/bin/tspc.conf $(1)/etc/tsp/
51 endef
52
53 $(eval $(call BuildPackage,tspc))