update php-apc to 3.0.16, disable pthread mutex's as they are on by default now.
[openwrt/svn-archive/archive.git] / net / miredo / Makefile
1 #
2 # Copyright (C) 2006 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:=miredo
12 PKG_VERSION:=1.0.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=http://www.remlab.net/files/miredo/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_MD5SUM:=b5a51cb98732decc2ada96b2caee5d3c
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/miredo/Default
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libpthread +uclibcxx +kmod-ipv6 +kmod-tun
25 SUBMENU:=miredo: Teredo (IPv6 tunneling over UDP through NAT)
26 URL:=http://www.simphalempin.com/dev/miredo/
27 endef
28
29 define Package/miredo-server
30 $(call Package/miredo/Default)
31 TITLE:=Teredo (IPv6 tunneling over UDP through NAT) server daemon
32 endef
33
34 define Package/miredo-server/conffiles
35 /etc/miredo-server.conf
36 endef
37
38 define Package/miredo-client
39 $(call Package/miredo/Default)
40 TITLE:=Teredo (IPv6 tunneling over UDP through NAT) client and relay daemon
41 endef
42
43 define Package/miredo-client/conffiles
44 /etc/miredo.conf
45 endef
46
47 CONFIGURE_ARGS += \
48 --disable-shared \
49 --enable-static \
50 --with-gnu-ld \
51 --disable-rpath \
52 --disable-chroot \
53 --enable-teredo-client \
54 --enable-teredo-relay \
55 --enable-teredo-server \
56 --enable-miredo-user=root \
57
58 CONFIGURE_VARS += \
59 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
60 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
61 LIBS="-nodefaultlibs -luClibc++ -lm" \
62 ac_cv_file__proc_self_maps=yes\
63
64 define Build/Compile
65 $(MAKE) -C $(PKG_BUILD_DIR) \
66 CXXLINK="\$$$$(LINK)" \
67 DESTDIR="$(PKG_INSTALL_DIR)" \
68 all install
69 endef
70
71 define Package/miredo-server/install
72 $(INSTALL_DIR) $(1)/etc/
73 $(CP) $(PKG_INSTALL_DIR)/etc/miredo-server.conf-dist $(1)/etc/miredo-server.conf
74 $(INSTALL_DIR) $(1)/etc/init.d
75 $(INSTALL_BIN) ./files/miredo-server.init $(1)/etc/init.d/miredo-server
76 $(INSTALL_DIR) $(1)/usr/sbin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo-server $(1)/usr/sbin/
78 endef
79
80 define Package/miredo-client/install
81 $(INSTALL_DIR) $(1)/etc
82 $(CP) $(PKG_INSTALL_DIR)/etc/miredo.conf-dist $(1)/etc/miredo.conf
83 $(INSTALL_DIR) $(1)/etc/init.d
84 $(INSTALL_BIN) ./files/miredo.init $(1)/etc/init.d/miredo
85 $(INSTALL_DIR) $(1)/usr/sbin
86 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo $(1)/usr/sbin/
87 endef
88
89 $(eval $(call BuildPackage,miredo-server))
90 $(eval $(call BuildPackage,miredo-client))