Lines 1-56
Link Here
|
1 |
PORTNAME= pjsip |
1 |
PORTNAME= pjsip |
2 |
DISTVERSION= 2.14 |
2 |
DISTVERSION= 2.14 |
3 |
PORTREVISION= 1 |
3 |
PORTREVISION= 1 |
4 |
CATEGORIES= net |
4 |
CATEGORIES= net |
5 |
|
5 |
|
6 |
MAINTAINER= oliver.epper@gmail.com |
6 |
MAINTAINER= oliver.epper@gmail.com |
7 |
COMMENT= Multimedia communication library written in C language |
7 |
COMMENT= Multimedia communication library written in C language |
8 |
WWW= https://www.pjsip.org/ |
8 |
WWW= https://www.pjsip.org/ |
9 |
|
9 |
|
10 |
LICENSE= GPLv2+ |
10 |
LICENSE= GPLv2+ |
11 |
LICENSE_FILE= ${WRKSRC}/COPYING |
11 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
|
12 |
|
13 |
LIB_DEPENDS= libportaudio.so:audio/portaudio |
13 |
LIB_DEPENDS= libportaudio.so:audio/portaudio |
14 |
|
14 |
|
15 |
USES= cpe gmake localbase ssl |
15 |
USES= cpe gmake localbase ssl pkgconfig |
16 |
USE_LDCONFIG= yes |
16 |
USE_LDCONFIG= yes |
17 |
|
17 |
|
18 |
USE_GITHUB= yes |
18 |
USE_GITHUB= yes |
19 |
GH_PROJECT= pjproject |
19 |
GH_PROJECT= pjproject |
20 |
|
20 |
|
21 |
CPE_VENDOR= teluu |
21 |
CPE_VENDOR= teluu |
22 |
|
22 |
|
23 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_ARGS= --with-external-pa |
24 |
CONFIGURE_ARGS= --with-external-pa |
25 |
|
25 |
|
26 |
PLIST_SUB= CONFIGURE_TARGET="${CONFIGURE_TARGET}" |
26 |
PLIST_SUB= CONFIGURE_TARGET="${CONFIGURE_TARGET}" |
27 |
|
27 |
|
28 |
OPTIONS_DEFINE= SHARED OPUS WEBRTC VIDEO KQUEUE UPNP PJSUA FFMPEG DEBUG |
28 |
OPTIONS_DEFINE= AMR DEBUG FFMPEG G711 G722 G7221 GSM ILBC KQUEUE L16 OPUS PJSUA SAMPLERATE SHARED SPEEX SPEEXAEC SRTP UPNP VIDEO WEBRTC |
29 |
|
29 |
|
30 |
OPTIONS_DEFAULT=SHARED OPUS WEBRTC VIDEO UPNP FFMPEG |
30 |
OPTIONS_DEFAULT= AMR FFMPEG G711 G722 G7221 GSM ILBC L16 OPUS SHARED SPEEX SPEEXAEC SRTP UPNP VIDEO WEBRTC |
31 |
|
31 |
|
32 |
SHARED_DESC= Build shared libraries (other ports may depend on this) |
32 |
OPTIONS_SUB= yes |
33 |
WEBRTC_DESC= Build libwebrtc |
|
|
34 |
KQUEUE_DESC= Use kqueue ioqueue on macos/BSD (experimental) |
35 |
UPNP_DESC= Disable UPnP (default: not disabled) |
36 |
PJSUA_DESC= Command line SIP agent |
37 |
|
33 |
|
38 |
OPTIONS_SUB= yes |
34 |
G711_DESC= G.711 codec support |
|
|
35 |
G7221_DESC= G.722.1 codec support |
36 |
G722_DESC= G.722 codec support |
37 |
ILBC_DESC= iLBC codec support |
38 |
KQUEUE_DESC= Use kqueue ioqueue on macos/BSD (experimental) |
39 |
L16_DESC= Linear/L16 codec support |
40 |
PJSUA_DESC= Command line SIP agent |
41 |
SHARED_DESC= Build shared libraries (other ports may depend on this) |
42 |
SPEEXAEC_DESC= Speex Acoustic Echo Canceller/AEC |
43 |
SRTP_DESC= Secure Real-Time Transport Protocol – SRTP support |
44 |
WEBRTC_DESC= Build libwebrtc |
45 |
|
46 |
AMR_CONFIGURE_WITH= opencore-amr |
47 |
AMR_LIB_DEPENDS= libopencore-amrwb.so:audio/opencore-amr \ |
48 |
libvo-amrwbenc.so:audio/vo-amrwbenc |
39 |
|
49 |
|
40 |
DEBUG_CFLAGS= -DNDEBUG=0 |
50 |
DEBUG_CFLAGS= -DNDEBUG=0 |
41 |
DEBUG_CFLAGS_OFF= -DNDEBUG=1 |
51 |
DEBUG_CFLAGS_OFF= -DNDEBUG=1 |
42 |
SHARED_CONFIGURE_ENABLE= shared |
52 |
|
|
|
53 |
FFMPEG_CONFIGURE_OFF= --disable-ffmpeg |
54 |
FFMPEG_LIB_DEPENDS= libswresample.so:multimedia/ffmpeg |
55 |
|
56 |
G711_CONFIGURE_ENABLE= g711-codec |
57 |
|
58 |
G7221_CONFIGURE_ENABLE= g7221-codec |
59 |
|
60 |
G722_CONFIGURE_ENABLE= g722-codec |
61 |
|
62 |
GSM_CONFIGURE_ENABLE= gsm-codec |
63 |
GSM_CONFIGURE_ON= --with-external-gsm |
64 |
GSM_LIB_DEPENDS= libgsm.so:audio/gsm |
65 |
|
66 |
ILBC_CONFIGURE_ENABLE= ilbc-codec |
67 |
|
68 |
# This can become KQUEUE_CONFIGURE_ENABLE once |
69 |
# https://github.com/pjsip/pjproject/commit/c36802585ddefb3ca477d1f6d773d179510c5412 |
70 |
# is included in the next release (> 2.14). |
71 |
KQUEUE_CONFIGURE_ON= --enable-kqueue |
72 |
|
73 |
L16_CONFIGURE_ENABLE= l16-codec |
74 |
|
43 |
OPUS_CONFIGURE_OFF= --disable-opus |
75 |
OPUS_CONFIGURE_OFF= --disable-opus |
44 |
OPUS_LIB_DEPENDS= libopus.so:audio/opus |
76 |
OPUS_LIB_DEPENDS= libopus.so:audio/opus |
45 |
|
77 |
|
46 |
WEBRTC_CONFIGURE_OFF= --disable-libwebrtc |
78 |
SAMPLERATE_CONFIGURE_ENABLE= libsamplerate |
47 |
VIDEO_CONFIGURE_ENABLE= video |
79 |
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate |
|
|
80 |
|
81 |
SHARED_CONFIGURE_ENABLE= shared |
82 |
|
83 |
SPEEXAEC_CONFIGURE_ENABLE= speex-aec |
84 |
|
85 |
SPEEX_CONFIGURE_ENABLE= speex-codec |
86 |
SPEEX_CONFIGURE_ON= --with-external-speex |
87 |
SPEEX_LIB_DEPENDS= libspeex.so:audio/speex \ |
88 |
libspeexdsp.so:audio/speexdsp |
89 |
|
90 |
SRTP_CONFIGURE_ENABLE= libsrtp |
91 |
SRTP_CONFIGURE_ON= --with-external-srtp |
92 |
SRTP_LIB_DEPENDS= libsrtp2.so:net/libsrtp2 |
48 |
|
93 |
|
49 |
UPNP_CONFIGURE_OFF= --disable-upnp |
94 |
UPNP_CONFIGURE_OFF= --disable-upnp |
50 |
UPNP_LIB_DEPENDS= libupnp.so:devel/upnp |
95 |
UPNP_LIB_DEPENDS= libupnp.so:devel/upnp |
51 |
|
96 |
|
52 |
FFMPEG_CONFIGURE_OFF= --disable-ffmpeg |
97 |
VIDEO_CONFIGURE_ENABLE= video |
53 |
FFMPEG_LIB_DEPENDS= libswresample.so:multimedia/ffmpeg |
98 |
|
|
|
99 |
WEBRTC_CONFIGURE_OFF= --disable-libwebrtc |
54 |
|
100 |
|
55 |
post-patch: |
101 |
post-patch: |
56 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ |
102 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ |
Lines 74-86
post-install-PJSUA-on:
Link Here
|
74 |
${STAGEDIR}${PREFIX}/bin/pjsystest |
120 |
${STAGEDIR}${PREFIX}/bin/pjsystest |
75 |
|
121 |
|
76 |
.include <bsd.port.mk> |
122 |
.include <bsd.port.mk> |
77 |
|
|
|
78 |
.include <bsd.port.options.mk> |
79 |
|
80 |
.if ${PORT_OPTIONS:MKQUEUE} |
81 |
CONFIGURE_ARGS+= --enable-kqueue |
82 |
.else |
83 |
# do nothing, because giving --disable-kqueue would enable kqueue |
84 |
# fixed in: https://github.com/pjsip/pjproject/commit/c36802585ddefb3ca477d1f6d773d179510c5412 |
85 |
# once this lands > 2.14 this can go away |
86 |
.endif |