packages/net/olsrd: add example to use custom configs instead of uci
[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 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ipv6calc
12 PKG_VERSION:=0.71.0
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:=
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ipv6calc
21 SECTION:=ipv6
22 CATEGORY:=IPv6
23 TITLE:=IPv6 addresses calculations
24 URL:=http://www.deepspace6.net/projects/ipv6calc.html
25 endef
26
27 define Package/ipv6calc/description
28 ipv6calc is a small utility written in programming languate C to manipulate (not only) IPv6 addresses.
29 Intentions were convering a given IPv6 address into compressed format, convering a given IPv6 address
30 into the same format like shown in /proc/net/if_inet6 and (because it was not difficulty) migrating the
31 Perl program ip6_int into. Now only one utiltity is needed to do a lot.
32 endef
33
34 CONFIGURE_ARGS += \
35 --enable-static \
36 --enable-shared
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 CC="$(TARGET_CC)" \
41 COPTS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \
42 root="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46
47 define Package/ipv6calc/install
48 $(INSTALL_DIR) $(1)/usr/bin/
49 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ipv6* $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,ipv6calc))