diff options
author | madpilot <madpilot@FreeBSD.org> | 2016-09-12 23:26:46 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2016-09-12 23:26:46 +0800 |
commit | 5bb4ddd7c6dd07eca6b2e4c3ebc8a1dde6e5b192 (patch) | |
tree | 675daef4980e3573d00404bec07f3e279d9ce360 /net/pjsip | |
parent | 3a16d7d5872e02a8c1950844cbf66fb6f1947df5 (diff) | |
download | freebsd-ports-gnome-5bb4ddd7c6dd07eca6b2e4c3ebc8a1dde6e5b192.tar.gz freebsd-ports-gnome-5bb4ddd7c6dd07eca6b2e4c3ebc8a1dde6e5b192.tar.zst freebsd-ports-gnome-5bb4ddd7c6dd07eca6b2e4c3ebc8a1dde6e5b192.zip |
- Add PJSUA option (on by default) to install the pjsua client binary
- Strip libraries
- Reflowed OPTIONS_DEFINE
PR: 211533
Submitted by: Joseph Mingrone <jrm at ftfl.ca>
Diffstat (limited to 'net/pjsip')
-rw-r--r-- | net/pjsip/Makefile | 19 | ||||
-rw-r--r-- | net/pjsip/files/patch-aconfigure | 6 | ||||
-rw-r--r-- | net/pjsip/files/patch-build.mak.in | 20 | ||||
-rw-r--r-- | net/pjsip/files/patch-pjmedia_build_os-auto.mak.in | 60 | ||||
-rw-r--r-- | net/pjsip/pkg-plist | 2 |
5 files changed, 93 insertions, 14 deletions
diff --git a/net/pjsip/Makefile b/net/pjsip/Makefile index fbcd3e40a599..c43300a1abcf 100644 --- a/net/pjsip/Makefile +++ b/net/pjsip/Makefile @@ -2,6 +2,7 @@ PORTNAME= pjsip PORTVERSION= 2.5.5 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.pjsip.org/release/${PORTVERSION}/ DISTNAME= pjproject-${DISTVERSION} @@ -24,8 +25,9 @@ USE_LDCONFIG= yes PLIST_SUB= CONFIGURE_TARGET="${CONFIGURE_TARGET}" MAKE_JOBS_UNSAFE= yes -OPTIONS_DEFINE= DEBUG FFMPEG G711 G722 G7221 GSM ILBC IPV6 L16 OPENH264 RESAMPLE RESAMPLEDLL \ - SAMPLERATE SDL SHARED SPEEX SPEEXAEC V4L SOUND VIDEO AMR EXTSRTP +OPTIONS_DEFINE= DEBUG FFMPEG G711 G722 G7221 GSM ILBC IPV6 L16 \ + OPENH264 PJSUA RESAMPLE RESAMPLEDLL SAMPLERATE SDL \ + SHARED SPEEX SPEEXAEC V4L SOUND VIDEO AMR EXTSRTP OPTIONS_DEFAULT=G711 G722 G7221 GSM ILBC L16 SHARED SPEEX SPEEXAEC G711_DESC= G.711 codec support @@ -34,6 +36,7 @@ G7221_DESC= G.722.1 codec support ILBC_DESC= iLBC codec support L16_DESC= Linear/L16 codec support OPENH264_DESC= OpenH264 support +PJSUA_DESC= Command line SIP agent RESAMPLE_DESC= Enable resampling implementations RESAMPLEDLL_DESC= Build libresample as shared library SHARED_DESC= Build shared libraries (other ports may depend on this) @@ -60,6 +63,7 @@ IPV6_CFLAGS_OFF= -DPJ_HAS_IPV6=1 L16_CONFIGURE_ENABLE= l16-codec OPENH264_CONFIGURE_ENABLE= openh264 OPENH264_LIB_DEPENDS= libopenh264.so:multimedia/openh264 +PJSUA_LIB_DEPENDS= libspeexdsp.so:audio/speexdsp RESAMPLE_CONFIGURE_ENABLE= resample RESAMPLEDLL_CONFIGURE_ENABLE= resample-dll SAMPLERATE_CONFIGURE_ENABLE= libsamplerate @@ -92,4 +96,15 @@ post-patch: @${ECHO} "#include <sys/select.h>" > ${WRKSRC}/pjlib/include/pj/config_site.h @${ECHO} "#define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)" >> ${WRKSRC}/pjlib/include/pj/config_site.h +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so + +post-install-PJSUA-on: + ${INSTALL_PROGRAM} \ + ${WRKSRC}/pjsip-apps/bin/pjsua-${ARCH}-portbld-${OPSYS:tl}${OSREL} \ + ${STAGEDIR}${PREFIX}/bin/pjsua + ${INSTALL_PROGRAM} \ + ${WRKSRC}/pjsip-apps/bin/pjsystest-${ARCH}-portbld-${OPSYS:tl}${OSREL} \ + ${STAGEDIR}${PREFIX}/bin/pjsystest + .include <bsd.port.mk> diff --git a/net/pjsip/files/patch-aconfigure b/net/pjsip/files/patch-aconfigure index 117f856649cf..2525fb90f5be 100644 --- a/net/pjsip/files/patch-aconfigure +++ b/net/pjsip/files/patch-aconfigure @@ -1,6 +1,6 @@ ---- aconfigure.orig 2016-04-12 07:46:12 UTC +--- aconfigure.orig 2016-07-20 07:03:49 UTC +++ aconfigure -@@ -6179,14 +6179,7 @@ $as_echo "Checking sound device backend. +@@ -6234,14 +6234,7 @@ $as_echo "Checking sound device backend. ;; *) ac_pjmedia_snd=alsa @@ -15,7 +15,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 -@@ -6773,7 +6766,7 @@ else +@@ -6865,7 +6858,7 @@ else FFMPEG_PREFIX=$with_ffmpeg { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } diff --git a/net/pjsip/files/patch-build.mak.in b/net/pjsip/files/patch-build.mak.in new file mode 100644 index 000000000000..1dabf83775e9 --- /dev/null +++ b/net/pjsip/files/patch-build.mak.in @@ -0,0 +1,20 @@ +--- build.mak.in.orig 2016-06-28 14:32:08 UTC ++++ build.mak.in +@@ -106,7 +106,7 @@ APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/t + endif + endif + +-ifneq ($(findstring pa,@ac_pjmedia_snd@),) ++#ifneq ($(findstring pa,@ac_pjmedia_snd@),) + ifeq (@ac_external_pa@,1) + # External PA + APP_THIRD_PARTY_EXT += -lportaudio +@@ -119,7 +119,7 @@ APP_THIRD_PARTY_LIBS += -lportaudio + APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib/libportaudio.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/third_party/lib/libportaudio.$(SHLIB_SUFFIX) + endif + endif +-endif ++#endif + + ifneq (@ac_no_yuv@,1) + ifeq (@ac_external_yuv@,1) diff --git a/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in b/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in index a32cb5088506..290bbcaa9b29 100644 --- a/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in +++ b/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in @@ -1,11 +1,53 @@ ---- pjmedia/build/os-auto.mak.in.orig 2016-05-13 06:08:17 UTC +--- pjmedia/build/os-auto.mak.in.orig 2016-06-28 14:32:08 UTC +++ pjmedia/build/os-auto.mak.in -@@ -209,7 +209,7 @@ endif - # Unix specific - # - ifneq ($(findstring alsa,$(AC_PJMEDIA_SND)),) --export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_ALSA=1 \ -+export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_ALSA=0 \ - -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 \ - -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 +@@ -203,50 +203,7 @@ export CFLAGS += -I$(THIRD_PARTY)/yuv/in + endif endif + +- +-# +-# MacOSX specific +-# +-ifneq ($(findstring coreaudio,$(AC_PJMEDIA_SND)),) +-export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_COREAUDIO=1 \ +- -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 \ +- -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 +-endif +- +-# +-# Unix specific +-# +-ifneq ($(findstring alsa,$(AC_PJMEDIA_SND)),) +-export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_ALSA=1 \ +- -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 \ +- -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 +-endif +- +-# +-# Windows specific +-# +-ifneq ($(findstring win32,$(AC_PJMEDIA_SND)),) +-export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_WMME=1 \ +- -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 +-else + export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 +-endif +- +-# +-# Null sound device +-# +-ifeq ($(AC_PJMEDIA_SND),null) +-export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 \ +- -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 +-endif +- +-# +-# External sound device +-# +-ifeq ($(AC_PJMEDIA_SND),external) +-export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 \ +- -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 +-endif + + # + # QT video device diff --git a/net/pjsip/pkg-plist b/net/pjsip/pkg-plist index 1737588dddc9..e368f9f3dd0d 100644 --- a/net/pjsip/pkg-plist +++ b/net/pjsip/pkg-plist @@ -352,3 +352,5 @@ lib/libpjsua2-%%CONFIGURE_TARGET%%.a %%NO_EXTSRTP%%%%SHARED%%lib/libsrtp.so %%NO_EXTSRTP%%%%SHARED%%lib/libsrtp.so.2 libdata/pkgconfig/libpjproject.pc +%%PJSUA%%bin/pjsua +%%PJSUA%%bin/pjsystest |