aboutsummaryrefslogtreecommitdiffstats
path: root/package/pjsip/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-02-01 23:07:54 +0000
committerJohn Crispin <john@openwrt.org>2011-02-01 23:07:54 +0000
commit325ef30254da6ad43f8a514f25c4dcff474453fb (patch)
tree664e973c73f7272131387ab3eb02dabb4b142456 /package/pjsip/Makefile
parent39dc61352323c974c8fba6b2af70b7dcbd6176f7 (diff)
downloadupstream-325ef30254da6ad43f8a514f25c4dcff474453fb.tar.gz
upstream-325ef30254da6ad43f8a514f25c4dcff474453fb.tar.bz2
upstream-325ef30254da6ad43f8a514f25c4dcff474453fb.zip
* update to version 1.8.5 * add code to allow selection of features via menuconfig * add sound device backend for lantiq voip hardware
SVN-Revision: 25298
Diffstat (limited to 'package/pjsip/Makefile')
-rw-r--r--package/pjsip/Makefile44
1 files changed, 32 insertions, 12 deletions
diff --git a/package/pjsip/Makefile b/package/pjsip/Makefile
index 6216ebfc9a..e9acaeb813 100644
--- a/package/pjsip/Makefile
+++ b/package/pjsip/Makefile
@@ -1,13 +1,19 @@
+#
+# Copyright (C) 2010-2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
include $(TOPDIR)/rules.mk
PKG_NAME:=pjsip
-PKG_VERSION:=1.6
-PKG_RELEASE:=1
+PKG_VERSION:=1.8.5
+PKG_RELEASE:=2
PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=http://www.pjsip.org/release/1.6/
-#PKG_MD5SUM:=9b7dc52656f5cbec846a7ba3299f73bd
+PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)/
+PKG_MD5SUM:=f9aa9e58b4d697245eb4bfa7d81a54a3
PKG_INSTALL:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/pjproject-$(PKG_VERSION)
@@ -20,23 +26,36 @@ define Package/pjsip
TITLE:=Voip lib
URL:=http://www.pjsip.org/
DEPENDS:=+libuuid
+ MAINTAINER:=John Crispin <blogic@openwrt.org>
+endef
+
+define Package/pjsip/config
+ source "$(SOURCE)/Config.in"
endef
CONFIGURE_ARGS += \
- --disable-sound \
- --disable-oss \
- --disable-ext-sound \
- --disable-speex-aec \
--enable-g711-codec \
--disable-l16-codec \
- --disable-gsm-codec \
--disable-g722-codec \
--disable-g7221-codec \
- --disable-speex-codec \
--disable-ilbc-coder \
--disable-libsamplerate \
--disable-ipp \
--disable-ssl \
+ $(call autoconf_bool,CONFIG_PJSIP_GSM,gsm-codec) \
+ $(call autoconf_bool,CONFIG_PJSIP_SPEEX,speex-aec) \
+ $(call autoconf_bool,CONFIG_PJSIP_OSS,oss) \
+ $(call autoconf_bool,CONFIG_PJSIP_SOUND,sound) \
+ $(call autoconf_bool,CONFIG_PJSIP_DEV_TAPI,ltq-tapi)
+
+ifeq ($(CONFIG_PJSIP_DEV_TAPI),y)
+EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/drv_tapi -I$(STAGING_DIR)/usr/include/drv_vmmc
+endif
+
+define Build/Configure
+ (cd $(PKG_BUILD_DIR); autoconf aconfigure.ac > aconfigure)
+ $(call Build/Configure/Default)
+endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/{include,lib}
@@ -51,8 +70,9 @@ define Package/pjsip/install
endef
define Build/Compile
- $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
+ CFLAGS="$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
+ $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
endef
-
$(eval $(call BuildPackage,pjsip))