ndppd: new upstream release 0.2.2
[openwrt/svn-archive/archive.git] / net / siproxd / Makefile
1 #
2 # Copyright (C) 2006-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:=siproxd
11 PKG_VERSION:=0.8.1
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/siproxd
16 PKG_MD5SUM:=1a6f9d13aeb2d650375c9a346ac6cbaf
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/siproxd/Default
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=Telephony
28 URL:=http://siproxd.sourceforge.net/
29 endef
30
31 define Package/siproxd
32 $(call Package/siproxd/Default)
33 DEPENDS:=+libltdl +libpthread +libosip2
34 TITLE:=SIP (Session Initiation Protocol) proxy
35 MENU:=1
36 endef
37
38 define Package/siproxd/description
39 Siproxd is a proxy/masquerading daemon for the SIP protocol.
40 endef
41
42 define Package/siproxd/conffiles
43 /etc/config/siproxd
44 endef
45
46 CONFIGURE_ARGS+= \
47 --with-libosip-prefix="$(STAGING_DIR)/usr" \
48 --disable-doc
49
50 MAKE_FLAGS+= \
51 SUBDIRS="src scripts contrib" \
52 LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
53
54 define Package/siproxd/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin
57 $(INSTALL_DIR) $(1)/etc/config
58 $(INSTALL_CONF) ./files/siproxd.config $(1)/etc/config/siproxd
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
61 endef
62
63 define BuildPlugin
64 define Package/siproxd-mod-$(1)
65 $$(call Package/siproxd/Default)
66 TITLE:= siproxd $(1) plugin
67 DEPENDS:=siproxd
68 endef
69
70 define Package/siproxd-mod-$(1)/install
71 $(INSTALL_DIR) $$(1)/usr/lib/siproxd
72 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/siproxd/plugin_$(1)*.so* $$(1)/usr/lib/siproxd
73 endef
74
75 $$(eval $$(call BuildPackage,siproxd-mod-$(1)))
76 endef
77
78 $(eval $(call BuildPackage,siproxd))
79 $(eval $(call BuildPlugin,defaulttarget))
80 $(eval $(call BuildPlugin,demo))
81 $(eval $(call BuildPlugin,fix_bogus_via))
82 $(eval $(call BuildPlugin,logcall))
83 $(eval $(call BuildPlugin,prefix))
84 $(eval $(call BuildPlugin,regex))
85 $(eval $(call BuildPlugin,shortdial))
86 $(eval $(call BuildPlugin,stun))