source: packages/net/siproxd/Makefile @ 20898

Last change on this file since 20898 was 20898, checked in by nico, 7 years ago

[packages] siproxd: explicitly set libosip path for configure (closes: #5791), use PKG_INSTALL

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.3 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:=siproxd
11PKG_VERSION:=0.7.1
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/siproxd
16PKG_MD5SUM:=45e5a44803181e2bf3361d562060c904
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/siproxd
24  SECTION:=net
25  CATEGORY:=Network
26  DEPENDS:=+libltdl +libosip2 +libpthread
27  TITLE:=SIP (Session Initiation Protocol) proxy
28  URL:=http://siproxd.sourceforge.net/
29endef
30
31define Package/siproxd/conffiles
32/etc/config/siproxd
33endef
34
35CONFIGURE_ARGS+= \
36        --with-libosip-prefix="$(STAGING_DIR)/usr" \
37
38MAKE_FLAGS+= \
39        SUBDIRS="src scripts contrib" \
40        LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
41
42define Package/siproxd/install
43        $(INSTALL_DIR) $(1)/usr/sbin
44        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(1)/usr/sbin/
45        $(INSTALL_DIR) $(1)/usr/lib/siproxd
46        $(CP) $(PKG_INSTALL_DIR)/usr/lib/siproxd/plugin_*.so* $(1)/usr/lib/siproxd/
47        $(INSTALL_DIR) $(1)/etc/config
48        $(INSTALL_DATA) ./files/siproxd.config $(1)/etc/config/siproxd
49        $(INSTALL_DIR) $(1)/etc/init.d
50        $(INSTALL_BIN) ./files/siproxd.init $(1)/etc/init.d/siproxd
51endef
52
53$(eval $(call BuildPackage,siproxd))
Note: See TracBrowser for help on using the repository browser.