source: packages/ipv6/dibbler/Makefile @ 20292

Last change on this file since 20292 was 20292, checked in by florian, 7 years ago

[package] fix dibbler dependencies (#6879)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 3.7 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dibbler
11PKG_VERSION:=0.7.3
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
15PKG_SOURCE_URL:=http://klub.com.pl/dhcpv6/dibbler/
16PKG_MD5SUM:=39be72da38c2e6d33fd43a2811a276b1
17
18PKG_FIXUP:=libtool
19PKG_LIBTOOL_PATHS:=poslib
20
21include $(INCLUDE_DIR)/package.mk
22
23# add dependency on 2.6 since recent dibbler needs <linux/ip_mp_alg.h>
24define Package/dibbler/Default
25  SECTION:=ipv6
26  CATEGORY:=IPv6
27  DEPENDS:=+uclibcxx @LINUX_2_6 +libpthread
28  TITLE:=Dibbler, a portable DHCPv6 implementation
29  URL:=http://klub.com.pl/dhcpv6/
30endef
31
32define Package/dibbler/Default/description
33        Dibbler is a portable DHCPv6 implementation. It supports stateful (i.e.
34        IPv6 address granting) as well as stateless (i.e. option granting)
35        autoconfiguration for IPv6.
36endef
37
38define Package/dibbler-poslib
39  $(call Package/dibbler/Default)
40  TITLE+= (helper lib)
41endef
42
43define Package/dibbler-poslib/description
44  $(call Package/dibbler/Default/description)
45  This package contains the pos library.
46endef
47
48define Package/dibbler-client
49  $(call Package/dibbler/Default)
50  TITLE+= (client)
51endef
52
53define Package/dibbler-client/description
54  $(call Package/dibbler/Default/description)
55  This package contains the dibbler client.
56endef
57
58define Package/dibbler-relay
59  $(call Package/dibbler/Default)
60  TITLE+= (relay)
61endef
62
63define Package/dibbler-relay/description
64  $(call Package/dibbler/Default/description)
65  This package contains the dibbler relay.
66endef
67
68define Package/dibbler-server
69  $(call Package/dibbler/Default)
70  DEPENDS += +dibbler-poslib
71  TITLE+= (server)
72endef
73
74define Package/dibbler-server/description
75  $(call Package/dibbler/Default/description)
76  This package contains the dibbler server.
77endef
78
79define Build/Configure
80        (cd $(PKG_BUILD_DIR)/poslib; \
81                $(TARGET_CONFIGURE_OPTS) \
82                CFLAGS="$(TARGET_CFLAGS)" \
83                CPPFLAGS="$(TARGET_CPPFLAGS)" \
84                LDFLAGS="$(TARGET_LDFLAGS)" \
85                ./configure \
86                        --target=$(GNU_TARGET_NAME) \
87                        --host=$(GNU_TARGET_NAME) \
88                        --build=$(GNU_HOST_NAME) \
89                        --program-prefix="" \
90                        --program-suffix="" \
91                        --prefix=/usr \
92                        --exec-prefix=/usr \
93                        --bindir=/usr/bin \
94                        --datadir=/usr/share \
95                        --includedir=/usr/include \
96                        --infodir=/usr/share/info \
97                        --libdir=/usr/lib \
98                        --libexecdir=/usr/lib \
99                        --localstatedir=/var \
100                        --mandir=/usr/share/man \
101                        --sbindir=/usr/sbin \
102                        --sysconfdir=/etc \
103                        $(DISABLE_NLS) \
104                        $(DISABLE_LARGEFILE) \
105        );
106endef
107
108# link stuff missing from uClibc++ but present in stdc++ statically
109CXX_LIBS:= -nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm -lgcc
110
111define Build/Compile
112        $(MAKE) -C $(PKG_BUILD_DIR) \
113                $(TARGET_CONFIGURE_OPTS) \
114                PORT_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -fno-builtin" \
115                PORT_LDFLAGS="$(TARGET_LDFLAGS)" \
116                DEBUGINFO= \
117                CXXLD="$(TARGET_CC)" \
118                CLNT_LIBS="$(CXX_LIBS)" \
119                SRV_LIBS="$(CXX_LIBS)" \
120                server client relay
121endef
122
123define Package/dibbler-poslib/install
124        $(INSTALL_DIR) $(1)/usr/lib
125        $(CP) $(PKG_BUILD_DIR)/./poslib/poslib/.libs/libposlib.so* $(1)/usr/lib/
126endef
127
128define Package/dibbler-client/install
129        $(INSTALL_DIR) $(1)/usr/sbin
130        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-client $(1)/usr/sbin/
131endef
132
133define Package/dibbler-relay/install
134        $(INSTALL_DIR) $(1)/usr/sbin
135        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-relay $(1)/usr/sbin/
136endef
137
138define Package/dibbler-server/install
139        $(INSTALL_DIR) $(1)/usr/sbin
140        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-server $(1)/usr/sbin/
141endef
142
143$(eval $(call BuildPackage,dibbler-poslib))
144$(eval $(call BuildPackage,dibbler-client))
145$(eval $(call BuildPackage,dibbler-relay))
146$(eval $(call BuildPackage,dibbler-server))
Note: See TracBrowser for help on using the repository browser.