18aa47d330d85cca7dd028d7773395cd1ecb2a39
[openwrt/svn-archive/archive.git] / ipv6 / ipv6calc / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipv6calc
11 PKG_VERSION:=0.71.0
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/
15 PKG_MD5SUM:=
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/ipv6calc
20 SECTION:=ipv6
21 CATEGORY:=IPv6
22 TITLE:=IPv6 addresses calculations
23 URL:=http://www.deepspace6.net/projects/ipv6calc.html
24 endef
25
26 define Package/ipv6calc/description
27 ipv6calc is a small utility written in programming languate C to manipulate (not only) IPv6 addresses.
28 Intentions were convering a given IPv6 address into compressed format, convering a given IPv6 address
29 into the same format like shown in /proc/net/if_inet6 and (because it was not difficulty) migrating the
30 Perl program ip6_int into. Now only one utiltity is needed to do a lot.
31 endef
32
33 CONFIGURE_ARGS += \
34 --enable-static \
35 --enable-shared
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 CC="$(TARGET_CC)" \
40 COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \
41 root="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45
46 define Package/ipv6calc/install
47 $(INSTALL_DIR) $(1)/usr/bin/
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,ipv6calc))