[Pkg-voip-commits] [pjproject] 03/42: Enable the python binding

tzafrir at debian.org tzafrir at debian.org
Sat Nov 1 17:13:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master-2.3
in repository pjproject.

commit 301a01a5be3e9a39190d1dd6cabe935d45c4fa62
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Thu Oct 30 08:00:00 2014 +0200

    Enable the python binding
    
    The python bindings are needed for e.g. the asterisk-testsuite
---
 debian/patches/pjsip_python.patch | 12 ++++++++++++
 debian/patches/series             |  1 +
 debian/rules                      | 11 ++++++++++-
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/debian/patches/pjsip_python.patch b/debian/patches/pjsip_python.patch
new file mode 100644
index 0000000..fc8bd0e
--- /dev/null
+++ b/debian/patches/pjsip_python.patch
@@ -0,0 +1,12 @@
+Author: Tzafrir Cohen <tzafrir at debian.org>
+Description: Enable building python bindings
+--- a/Makefile
++++ b/Makefile
+@@ -4,6 +4,7 @@ include build/host-$(HOST_NAME).mak
+ include version.mak
+ 
+ LIB_DIRS = pjlib/build pjlib-util/build pjnath/build third_party/build pjmedia/build pjsip/build
++EXTRA_DIRS = pjsip-apps/src/python
+ DIRS = $(LIB_DIRS) pjsip-apps/build $(EXTRA_DIRS)
+ 
+ ifdef MINSIZE
diff --git a/debian/patches/series b/debian/patches/series
index 58ed87a..9e710de 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 no_libasound.patch
 reduce_pjlib_linkage.patch
 reduce_pjmedia_linkage.patch
+pjsip_python.patch
diff --git a/debian/rules b/debian/rules
index 6555a55..dbc0e6c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ export CFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CFL
 export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
 %:
-	dh $@ --with autotools_dev
+	dh $@ --with autotools_dev,python2
 
 # In case it would be needed:
 #override_dh_autoreconf:
@@ -27,3 +27,12 @@ endif
 		--disable-g7221-codec --disable-ilbc-codec --disable-resample \
 		--with-external-gsm --with-external-speex --with-external-pa \
 		--with-external-srtp --disable-opencore-amr
+
+override_dh_auto_build:
+	dh_auto_build
+	cd pjsip-apps/src/python && python setup.py build
+
+override_dh_auto_install:
+	dh_auto_install
+	cd pjsip-apps/src/python && python setup.py install
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/pjproject.git



More information about the Pkg-voip-commits mailing list