Mercurial > hg > portage
changeset 432:8b06995f9f2a
experiment: compile python-sipsimple with openh264 support
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 03 Dec 2016 07:08:23 +0100 |
parents | 4b67abbaacee |
children | 79a0505c6421 |
files | dev-python/python-sipsimple/Manifest dev-python/python-sipsimple/files/aconfigure.openh264.patch dev-python/python-sipsimple/files/setup_pjsip.openh264.patch dev-python/python-sipsimple/python-sipsimple-3.1.0.ebuild |
diffstat | 4 files changed, 29 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dev-python/python-sipsimple/Manifest Sat Dec 03 06:05:41 2016 +0100 +++ b/dev-python/python-sipsimple/Manifest Sat Dec 03 07:08:23 2016 +0100 @@ -1,2 +1,4 @@ +AUX aconfigure.openh264.patch 581 SHA256 6e94ebfa4bba70d8a11ff61518e2ae49c2e082578a6bed0b59d26be2385c4162 SHA512 e4a6b5b8f7ae6046ad89196f899fb20d03b7b22ea569f63082ca848db0caac83c15a2ce28df4096ecd7e0f759c0ae20ea25ec74493d8018f07e2db1255f3dc5c WHIRLPOOL 1781e7ec88041002b360fde3ff68f33308ae451beb7b30b6ee6eb942b56f5f38100a3e8442dc5a22c50e2961f3a7cbc5e4685c0bf1222075ce16eb954969f896 +AUX setup_pjsip.openh264.patch 515 SHA256 54d1ba3fc7c106f472bbee8519ad480dfb576dfaab900778a5aed2c359cb1277 SHA512 57cb4a795fca9bf243dae29bee3c67c855fab165d66b20789676403b5f660825b8632684e40b19ae7cadccc1e65a0d578ce91048be68411a814e226d59a294b8 WHIRLPOOL a880494956100110595ff9b55914714d96d5d9da65d85df17c604619349409418f2fc7d176ae2b551d5727b0fc19d6886ac3832382123a798afe36069886cdfe DIST python-sipsimple-3.1.0.tar.gz 4786269 SHA256 4cc33f5373f40148d0c07db6c43f6c9ec973593fada6a6082fea42d8326711c3 SHA512 dc0425e77c1e42839ebac81171754840da88c36fb0dc322b3fd961e9c86bff69e77746ac2ee2c3bf75438a64f02229a2c0745103aff6931dcc289070d8668ed7 WHIRLPOOL 3eb2da40de33aa9e23131fdeb2e65e000e13564528d87a2eab8f7407a20ee54d9859a0603889ea0d0c2ea649b220b234fa581e4aa4d22e06380ace778ba71445 -EBUILD python-sipsimple-3.1.0.ebuild 1437 SHA256 5a924401750e11f5f5113f68ea7fb01cfdf52f3ce32111089b56d115ee009be2 SHA512 8ee9e61ab95ceb5e224008d26317a200eb0bf06dcd34802aa639dff052a27b2126a80938fefd73dcbec82cd1901870b54f0530e4cc4988c1b65d1f2c15c72c12 WHIRLPOOL 66a22571762ec7ed9afa850074b66476af5e49a6056d07834f0071a157511ca7750b23d4ae8ccd4f001952d531ce6caca8fcbacd192af33bde11f8896548135a +EBUILD python-sipsimple-3.1.0.ebuild 1556 SHA256 f978824fbf7a253a562fe9cc8d127bb72ed9cb67dc506201a5829d96252242e6 SHA512 f190523068a78e6ce77cdd582f1a5ab1fe58b154c46121a253f525c1599b42fd21ff5fde72a0bc2fc5b497a944da7bb28e8f9d7e294df9030e79103892996138 WHIRLPOOL 1045d4fad644581186d0f2ba13675c45329cd3a09566b461cfff79e2413968cde98fe4902c099b05da62b8618441c4d6520bb24f00cf566da7896b2c8117d58d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-python/python-sipsimple/files/aconfigure.openh264.patch Sat Dec 03 07:08:23 2016 +0100 @@ -0,0 +1,12 @@ +--- deps/pjsip/aconfigure 2016-10-18 01:28:47.000000000 +0200 ++++ /tmp/deps/pjsip/aconfigure 2016-12-03 06:02:40.526474706 +0100 +@@ -6114,8 +6114,7 @@ + + if test "x$with_openh264" != "xno" -a "x$with_openh264" != "x"; then + OPENH264_PREFIX=$with_openh264 +- OPENH264_CFLAGS="-I$OPENH264_PREFIX/include" +- OPENH264_LDFLAGS="-L$OPENH264_PREFIX/lib" ++ OPENH264_CFLAGS="-I/usr/include/openh264" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenH264 prefix... $with_openh264" >&5 + $as_echo "Using OpenH264 prefix... $with_openh264" >&6; } + else
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-python/python-sipsimple/files/setup_pjsip.openh264.patch Sat Dec 03 07:08:23 2016 +0100 @@ -0,0 +1,10 @@ +--- setup_pjsip.py 2016-10-18 01:28:47.000000000 +0200 ++++ python-sipsimple-release-3.1.0/setup_pjsip.py 2016-12-03 06:33:51.915595309 +0100 +@@ -159,6 +159,7 @@ + else: + cmd = ["./configure"] + cmd.extend(["--disable-g7221-codec"]) ++ cmd.extend(["--with-openh264=/usr/include/openh264"]) + ffmpeg_path = env.get("SIPSIMPLE_FFMPEG_PATH", None) + if ffmpeg_path is not None: + cmd.append("--with-ffmpeg=%s" % os.path.abspath(os.path.expanduser(ffmpeg_path)))
--- a/dev-python/python-sipsimple/python-sipsimple-3.1.0.ebuild Sat Dec 03 06:05:41 2016 +0100 +++ b/dev-python/python-sipsimple/python-sipsimple-3.1.0.ebuild Sat Dec 03 07:08:23 2016 +0100 @@ -28,6 +28,7 @@ media-libs/libvpx sys-apps/util-linux virtual/ffmpeg + media-libs/openh264 " RDEPEND="${CDEPEND} virtual/python-dnspython[${PYTHON_USEDEP}] @@ -53,4 +54,7 @@ src_prepare() { chmod +x ${S}/deps/pjsip/configure chmod +x ${S}/deps/pjsip/aconfigure + + epatch "${FILESDIR}/aconfigure.openh264.patch" + epatch "${FILESDIR}/setup_pjsip.openh264.patch" }