597f22f76f09d1938bb3b340d95a5e478690f569
[openwrt/svn-archive/archive.git] / ipv6 / ipv6calc / Makefile
1 #
2 # Copyright (C) 2008-2011 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.82.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc
16 PKG_MD5SUM:=323b23779723fe1608126d17d78c632e
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ipv6calc
23 SECTION:=ipv6
24 CATEGORY:=IPv6
25 TITLE:=IPv6 addresses calculations
26 URL:=http://www.deepspace6.net/projects/ipv6calc.html
27 endef
28
29 define Package/ipv6calc/description
30 ipv6calc is a small utility written in programming languate C to manipulate
31 (not only) IPv6 addresses. Intentions were convering a given IPv6 address
32 into compressed format, convering a given IPv6 address into the same format
33 like shown in /proc/net/if_inet6 and (because it was not difficulty)
34 migrating the Perl program ip6_int into. Now only one utiltity is needed to
35 do a lot.
36 endef
37
38 CONFIGURE_ARGS += \
39 --enable-static \
40 --enable-shared
41
42 MAKE_FLAGS += \
43 CC="$(TARGET_CC)" \
44 COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)"
45
46 define Package/ipv6calc/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,ipv6calc))