source: packages/ipv6/gw6c/Makefile

Last change on this file was 40050, checked in by juhosg, 2 years ago

packages/gw6c: fix whitespaces

Signed-off-by: Dirk Neukirchen <dirkneukirchen@…>
Signed-off-by: Gabor Juhos <juhosg@…>

File size: 2.3 KB
Line 
1#
2# Copyright (C) 2008-2014 OpenWrt.org
3#
4
5include $(TOPDIR)/rules.mk
6
7PKG_NAME:=gw6c
8PKG_VERSION:=5.1
9PKG_RELEASE:=5
10
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12PKG_SOURCE_URL:=http://openwrt.linux-appliance.net/sources
13PKG_MD5SUM:=eeac7292a622681651ec3bd9b2e5b061
14PKG_BUILD_DIR:=$(BUILD_DIR)/gw6-$(PKG_VERSION)
15
16include $(INCLUDE_DIR)/uclibc++.mk
17include $(INCLUDE_DIR)/package.mk
18
19define Package/gw6c
20  SECTION:=net
21  CATEGORY:=Network
22  DEPENDS:=+libpthread +ip +kmod-tun +kmod-ipv6 $(CXX_DEPENDS) +radvd
23  TITLE:=IPv6 tunnel client software
24  URL:=http://www.go6.net
25endef
26
27define Package/gw6c/description
28  Client to configure an IPv6 tunnel to
29  Hexago/freenet6/go6.net's migration broker.
30endef
31
32GW6C_OPTS:= \
33        C_COMPILER="$(TARGET_CC) -c -DNO_STDLIBCXX" \
34        COMPILER="$(TARGET_CXX) -c -DNO_STDLIBCXX" \
35        CPP_FLAGS="$(TARGET_CFLAGS) -I. -Wall -DNDEBUG  $(TARGET_CPPFLAGS)" \
36        C_FLAGS="$(TARGET_CFLAGS) -I. -Wall -DNDEBUG $(TARGET_CPPFLAGS)" \
37        RANLIB="$(TARGET_CROSS)ranlib" \
38        ARCHIVER="$(TARGET_CROSS)ar" \
39        C_LINKER="$(TARGET_CC)" \
40        LINKER="$(TARGET_CXX)" \
41        exportdir=$(PKG_BUILD_DIR)/gw6c \
42        export
43
44define Build/Configure
45        $(INSTALL_DIR) $(PKG_BUILD_DIR)/gw6c/include
46        $(INSTALL_DATA) $(PKG_BUILD_DIR)/gw6c-config/gw6cconfig/gw6c_c_wrapper.h \
47                $(PKG_BUILD_DIR)/gw6c/include
48endef
49
50define Build/Compile
51        $(MAKE) -C $(PKG_BUILD_DIR)/gw6c-config \
52                $(GW6C_OPTS)
53        $(MAKE) -C $(PKG_BUILD_DIR)/gw6c-messaging \
54                $(GW6C_OPTS)
55        $(MAKE) -C $(PKG_BUILD_DIR)/tspc-advanced \
56                CC="$(TARGET_CC)" \
57                CFLAGS="$(TARGET_CFLAGS) -fno-builtin -Wall -I$(PKG_BUILD_DIR)/tspc-advanced/include \
58                        -I$(PKG_BUILD_DIR)/tspc-advanced/platform/openwrt -I$(PKG_BUILD_DIR)/tspc-advanced" \
59                LDFLAGS="-L$(PKG_BUILD_DIR)/tspc-advanced/gw6cconfig \
60                        -L$(PKG_BUILD_DIR)/tspc-advanced/gw6cmessaging \
61                        $(TARGET_LDFLAGS) $(LIBGCC_S)" \
62                target="openwrt" \
63                installdir="$(PKG_INSTALL_DIR)"
64endef
65
66define Package/gw6c/install
67        $(INSTALL_DIR) $(1)/usr/sbin
68        $(INSTALL_BIN) $(PKG_BUILD_DIR)/tspc-advanced/bin/$(PKG_NAME) $(1)/usr/sbin
69        $(INSTALL_DIR) $(1)/usr/share/gw6c/template
70        $(CP) ./files/openwrt.sh $(1)/usr/share/gw6c/template
71        $(INSTALL_DIR) $(1)/etc/init.d
72        $(INSTALL_BIN) ./files/gw6c.init $(1)/etc/init.d/gw6c
73        $(INSTALL_DIR) $(1)/etc/config
74        $(INSTALL_CONF) ./files/gw6c.config $(1)/etc/config/gw6c
75endef
76
77define Package/gw6c/conffiles
78/etc/config/gw6c
79endef
80
81$(eval $(call BuildPackage,gw6c))
Note: See TracBrowser for help on using the repository browser.