From e8c9ab8de889dc1e23e0a57e25180bdefbaaaf05 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Fri, 21 Jan 2022 21:01:54 -0600 Subject: [PATCH 1/3] New package: ptlib-2.10.9.4. --- common/shlibs | 1 + srcpkgs/ptlib-devel | 1 + srcpkgs/ptlib/template | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 120000 srcpkgs/ptlib-devel create mode 100644 srcpkgs/ptlib/template diff --git a/common/shlibs b/common/shlibs index 5096ab5dad6b..e20d2a2e5ce9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4117,3 +4117,4 @@ libspatialite.so.7 libspatialite-5.0.1_1 mod_spatialite.so.7 libspatialite-5.0.1_1 libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1 libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1 +libpt.so.2.10.9 ptlib-2.10.9.4_1 diff --git a/srcpkgs/ptlib-devel b/srcpkgs/ptlib-devel new file mode 120000 index 000000000000..8b723fa84a72 --- /dev/null +++ b/srcpkgs/ptlib-devel @@ -0,0 +1 @@ +ptlib \ No newline at end of file diff --git a/srcpkgs/ptlib/template b/srcpkgs/ptlib/template new file mode 100644 index 000000000000..d4a491834167 --- /dev/null +++ b/srcpkgs/ptlib/template @@ -0,0 +1,26 @@ +# Template file for 'ptlib' +pkgname=ptlib +version=2.10.9.4 +revision=1 +wrksrc=$pkgname-${version//./_} +build_style=gnu-configure +hostmakedepends="pkg-config flex" +short_desc="PTLib 2.10.9 fork for GNU Gatekeeper and H323Plus" +maintainer="Michael Aldridge " +license="MPL-1.0" +homepage="https://github.com/willamowius/ptlib" +distfiles="https://github.com/willamowius/ptlib/archive/refs/tags/v${version//./_}.tar.gz" +checksum=f85f2ee9f16df7df78d222ba538a824a8b66b8536aef66454440aa5b666ee4b7 + +ptlib-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/share + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + vmove usr/bin/ptlib-config + } +} From 53b8113bae3d276f0663e82777556066a99def86 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Fri, 21 Jan 2022 21:40:42 -0600 Subject: [PATCH 2/3] New package: h323plus-1.27.2. --- common/shlibs | 1 + srcpkgs/h323plus-devel | 1 + srcpkgs/h323plus/patches/fix-autoconf.patch | 59 +++++++++++++++++++++ srcpkgs/h323plus/template | 24 +++++++++ 4 files changed, 85 insertions(+) create mode 120000 srcpkgs/h323plus-devel create mode 100644 srcpkgs/h323plus/patches/fix-autoconf.patch create mode 100644 srcpkgs/h323plus/template diff --git a/common/shlibs b/common/shlibs index e20d2a2e5ce9..12fe57796283 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4118,3 +4118,4 @@ mod_spatialite.so.7 libspatialite-5.0.1_1 libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1 libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1 libpt.so.2.10.9 ptlib-2.10.9.4_1 +libh323_linux_x86_64_.so.1.27.2 h323plus-1.27.2_1 diff --git a/srcpkgs/h323plus-devel b/srcpkgs/h323plus-devel new file mode 120000 index 000000000000..33fd80ed0b22 --- /dev/null +++ b/srcpkgs/h323plus-devel @@ -0,0 +1 @@ +h323plus \ No newline at end of file diff --git a/srcpkgs/h323plus/patches/fix-autoconf.patch b/srcpkgs/h323plus/patches/fix-autoconf.patch new file mode 100644 index 000000000000..0bad535fa9c4 --- /dev/null +++ b/srcpkgs/h323plus/patches/fix-autoconf.patch @@ -0,0 +1,59 @@ +From 8bda09298b64ae909f081dac6143ffa41992dea0 Mon Sep 17 00:00:00 2001 +From: Jan Willamowius +Date: Wed, 23 Feb 2022 08:30:42 +0100 +Subject: [PATCH] disable check for PTLib Makefile for now, as it breaks + cross-compilation with autoconf 2.69 + +--- + configure | 22 +--------------------- + configure.ac | 4 +++- + 2 files changed, 4 insertions(+), 22 deletions(-) + +diff --git a/configure b/configure +index 0f0eeac..20ceee5 100755 +--- a/configure ++++ b/configure +@@ -3906,27 +3906,7 @@ if test "x$PTLIBDIR" = "x/usr/local" -o "x$PTLIBDIR" = "x/usr/local/"; then + PTLIBDIR="/usr/local/share/ptlib/" + fi + +-as_ac_File=`$as_echo "ac_cv_file_${PTLIBDIR}/make/lib.mak" | $as_tr_sh` +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${PTLIBDIR}/make/lib.mak" >&5 +-$as_echo_n "checking for ${PTLIBDIR}/make/lib.mak... " >&6; } +-if eval \${$as_ac_File+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- test "$cross_compiling" = yes && +- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 +-if test -r "${PTLIBDIR}/make/lib.mak"; then +- eval "$as_ac_File=yes" +-else +- eval "$as_ac_File=no" +-fi +-fi +-eval ac_res=\$$as_ac_File +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +-if eval test \"x\$"$as_ac_File"\" = x"yes"; then : +- HAS_PTLIB_LIB_MAK=1 +-fi +- ++HAS_PTLIB_LIB_MAK=1 + + if test "${HAS_PTLIB_LIB_MAK:-unset}" = "unset" ; then + +diff --git a/configure.ac b/configure.ac +index cf72965..93bf1ab 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -109,7 +109,9 @@ if test "x$PTLIBDIR" = "x/usr/local" -o "x$PTLIBDIR" = "x/usr/local/"; then + PTLIBDIR="/usr/local/share/ptlib/" + fi + +-AC_CHECK_FILE(${PTLIBDIR}/make/lib.mak, HAS_PTLIB_LIB_MAK=1) ++dnl disable check for now, as it breaks cross-compilation with autoconf 2.69 ++dnl AC_CHECK_FILE(${PTLIBDIR}/make/lib.mak, HAS_PTLIB_LIB_MAK=1) ++HAS_PTLIB_LIB_MAK=1 + + if test "${HAS_PTLIB_LIB_MAK:-unset}" = "unset" ; then + PKG_PROG_PKG_CONFIG diff --git a/srcpkgs/h323plus/template b/srcpkgs/h323plus/template new file mode 100644 index 000000000000..2c56ea10923d --- /dev/null +++ b/srcpkgs/h323plus/template @@ -0,0 +1,24 @@ +# Template file for 'h323plus' +pkgname=h323plus +version=1.27.2 +revision=1 +wrksrc=$pkgname-${version//./_} +build_style=gnu-configure +hostmakedepends="pkg-config ptlib-devel" +makedepends="ptlib-devel speex-devel" +short_desc="Development framework for H.323 applications" +maintainer="Michael Aldridge " +license="MPL-1.1" +homepage="https://www.h323plus.org" +distfiles="https://github.com/willamowius/h323plus/archive/refs/tags/v${version//./_}.tar.gz" +checksum=7ec50e4d63a8eeffe074f96835a336c08c374cd4cba17173ccd2193afd74c4f9 +nocross="checking for /usr/share/ptlib//make/lib.mak... configure: error: cannot check for file existence when cross compiling" +h323plus-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/share + vmove "usr/lib/*.so" + } +} From 7671330501a93755297ce28fca3a1dcb786856e9 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Fri, 21 Jan 2022 15:29:56 -0600 Subject: [PATCH 3/3] New package: yate-6.1.0. --- srcpkgs/yate/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/yate/template diff --git a/srcpkgs/yate/template b/srcpkgs/yate/template new file mode 100644 index 000000000000..518430e28277 --- /dev/null +++ b/srcpkgs/yate/template @@ -0,0 +1,20 @@ +# Template file for 'yate' +pkgname=yate +version=6.1.0 +revision=1 +wrksrc=$pkgname +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="speex-devel libusb-devel zlib-devel h323plus-devel openssl-devel sqlite-devel ptlib-devel" +short_desc="Yet Another Telephony Engine" +maintainer="Michael Aldridge " +license="GPL-2.0-or-later" +homepage="http://yate.null.ro/" +distfiles="http://yate.null.ro/tarballs/yate6/yate-$version-1.tar.gz" +checksum=ed88519c8e2f63eec0d699bc6ed8831854af9b32b654b3d7e7c2697b528aa377 + +case "$XBPS_TARGET_MACHINE" in + *musl) + CFLAGS=-DPTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE + ;; +esac