Thinking again about this port, I realized it's better to disable
ffmpeg support: while video support can be nice to have when
using pjsip as a library for your own voip projects, it's
completely unneeded for the standalone sip client pjsua, which is
the only piece of the framework we install...
While here, add "ac_cv_header_uuid_uuid_h=no" alongside
"ac_cv_lib_uuid_uuid_generate=no" to fix:
configure: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the
preprocessor!
configure: WARNING: uuid/uuid.h: proceeding with the compiler's result
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/telephony/pjsua/Makefile,v
retrieving revision 1.25
diff -u -p -r1.25 Makefile
--- Makefile 5 Jun 2012 23:15:22 -0000 1.25
+++ Makefile 11 Jun 2012 09:18:54 -0000
@@ -5,6 +5,7 @@ COMMENT= lightweight sip client
VERSION= 2.0
DISTNAME= pjproject-${VERSION}
PKGNAME= pjsua-${VERSION}
+REVISION= 0
EXTRACT_SUFX= .tar.bz2
CATEGORIES= telephony
@@ -18,24 +19,23 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
-WANTLIB = avcodec avformat avutil bz2 c crypto gsm m mp3lame \
- ogg orc-0.4 portaudio pthread schroedinger-1.0 speex \
- speexdsp ssl swscale theoradec theoraenc vorbis vorbisenc \
- vpx x264 xvidcore z
+WANTLIB = c crypto gsm>=1.0 m portaudio pthread \
+ sndio speex speexdsp ssl
LIB_DEPENDS= audio/gsm \
audio/portaudio-svn \
- audio/speex \
- graphics/ffmpeg
+ audio/speex
CONFIGURE_STYLE= autoconf no-autoheader
AUTOCONF_VERSION= 2.61
-CONFIGURE_ARGS= --disable-oss \
+CONFIGURE_ARGS= --disable-ffmpeg \
+ --disable-oss \
--with-external-gsm \
--with-external-pa \
--with-external-speex
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
+ ac_cv_header_uuid_uuid_h=no \
ac_cv_lib_uuid_uuid_generate=no
USE_GMAKE= Yes