2009-09-27 15:52:55 +00:00
|
|
|
# New ports collection makefile for: opal3
|
2000-02-21 13:27:29 +00:00
|
|
|
# Date created: Thu Feb 17 15:00:48 GMT 2000
|
|
|
|
# Whom: Roger Hardiman <roger@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2009-09-27 15:52:55 +00:00
|
|
|
PORTNAME= opal3
|
|
|
|
PORTVERSION= 3.6.6
|
2012-07-23 19:27:25 +00:00
|
|
|
PORTREVISION= 17
|
2000-02-21 13:27:29 +00:00
|
|
|
CATEGORIES= net
|
2012-03-14 15:32:29 +00:00
|
|
|
MASTER_SITES= GNOME
|
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME:S|3||g}/${PORTVERSION:R}
|
2009-09-27 15:52:55 +00:00
|
|
|
DISTNAME= opal-${PORTVERSION}
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2011-12-29 23:24:35 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2006-04-05 22:23:15 +00:00
|
|
|
COMMENT= VoIP abstraction library
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2011-12-29 23:24:35 +00:00
|
|
|
LICENSE= MPL
|
|
|
|
|
2009-09-27 15:52:55 +00:00
|
|
|
LIB_DEPENDS= pt-2.6.[4-9]:${PORTSDIR}/devel/ptlib26
|
2002-11-12 10:12:06 +00:00
|
|
|
|
2010-05-10 21:10:00 +00:00
|
|
|
CONFLICTS= opal-2.*
|
|
|
|
|
2009-09-27 15:52:55 +00:00
|
|
|
WRKSRC= ${WRKDIR}/opal-${PORTVERSION}
|
2002-01-15 15:06:17 +00:00
|
|
|
|
2013-03-02 20:56:45 +00:00
|
|
|
USE_GCC= any
|
2009-09-27 15:52:55 +00:00
|
|
|
USE_BZIP2= yes
|
2000-02-29 08:41:41 +00:00
|
|
|
USE_GMAKE= yes
|
2003-08-28 06:56:10 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-09-27 15:52:55 +00:00
|
|
|
USE_SLD= yes
|
2007-02-09 09:25:51 +00:00
|
|
|
USE_LDCONFIG= yes
|
2009-09-27 15:52:55 +00:00
|
|
|
#MAKE_JOBS_SAFE= yes
|
2002-01-15 15:06:17 +00:00
|
|
|
|
2009-09-27 15:52:55 +00:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-09-27 15:52:55 +00:00
|
|
|
|
2009-10-20 06:26:32 +00:00
|
|
|
OPTIONS= ZRTP "Enable ZRTP protocol support" off \
|
2009-09-27 15:52:55 +00:00
|
|
|
JAVA "Enable Java JNI support" off \
|
|
|
|
CELT "Use celt codec from ports" on \
|
|
|
|
ILBC "USE iLBC codec from ports" off \
|
|
|
|
GSM "Use GSM codec from ports" on \
|
|
|
|
SPEEX "Use SPEEX codec from ports" on \
|
|
|
|
THEORA "Enable theora codec support" off \
|
|
|
|
FFMPEG "Enable ffmpeg codec support" on \
|
|
|
|
X264 "Enable x.264 codec support" on \
|
|
|
|
SIP "Enable SIP protocol support" on \
|
|
|
|
H323 "Enable H.323 protocol support" off \
|
|
|
|
IAX "Enable IAX2 protocol support" off \
|
|
|
|
H224 "Enable H.224 control protocol" on \
|
|
|
|
H281 "Enable H.281 (Far End Camera Control)" on \
|
|
|
|
FAX "Enable Fax T.38 support" on \
|
|
|
|
MSRP "Enable MSRP protocol" on \
|
|
|
|
SIPIM "Enable SIP-IM protocol" on \
|
|
|
|
RTPTEXT "Enable RFC4103 Text RTP payload" on \
|
|
|
|
H450 "Enable H.450 H.323 subset" off \
|
|
|
|
H460 "Enable H.460 H.323 extension for NAT traversal" off \
|
|
|
|
H501 "Enable H.501 H323 mobility extensions" off \
|
|
|
|
LID "Enable LID (Light-Weight Identity) support" on \
|
|
|
|
UVIDEO "Enable RFC4175 uncompressed video RTP payload" off \
|
|
|
|
AEC "Enable accoustic echo cancellation" on
|
2006-03-14 01:51:49 +00:00
|
|
|
|
2006-04-08 05:14:22 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-09-27 15:52:55 +00:00
|
|
|
.ifdef OPALDIR
|
|
|
|
.error OPALDIR is defined as an environment variable, or in the arguments \
|
|
|
|
to "make". Please unset it and restart the build.
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION} \
|
|
|
|
PVERSION_MAJOR=${PORTVERSION:C/.[0-9]+$//g} \
|
|
|
|
PVERSION_MINOR=${PORTVERSION:C/^[0-9]+.[0-9]+.//}
|
|
|
|
|
|
|
|
.if defined(WITH_ZRTP)
|
2009-10-20 06:26:32 +00:00
|
|
|
.if !defined(SAFE_ZRTP)
|
2009-11-20 21:13:03 +00:00
|
|
|
IGNORE= please build devel/libzrtpcpp WITHOUT ports SSL and re-run build with SAFE_ZRTP set
|
2009-10-20 06:26:32 +00:00
|
|
|
.endif
|
2009-09-27 15:52:55 +00:00
|
|
|
LIB_DEPENDS+= zrtpcpp.0:${PORTSDIR}/devel/libzrtpcpp
|
|
|
|
CONFIGURE_ARGS+= --enable-zrtp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-zrtp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GSM)
|
|
|
|
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-localgsm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SPEEX)
|
|
|
|
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-localspeex
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_JAVA)
|
|
|
|
CONFIGURE_ARGS+= --enable-java
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-java
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CELT)
|
2011-04-12 10:36:16 +00:00
|
|
|
LIB_DEPENDS+= celt0.2:${PORTSDIR}/audio/celt
|
2009-09-27 15:52:55 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-celt
|
|
|
|
PLIST_SUB+= CELT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-celt
|
|
|
|
PLIST_SUB+= CELT="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ILBC)
|
|
|
|
LIB_DEPENDS+= ilbc.0:${PORTSDIR}/net/ilbc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-localilbc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_THEORA)
|
|
|
|
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora \
|
2012-07-19 20:15:37 +00:00
|
|
|
ogg:${PORTSDIR}/audio/libogg
|
2009-09-27 15:52:55 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-theora
|
|
|
|
PLIST_SUB+= THEORA=""
|
|
|
|
WITH_VIDEO= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-theora
|
|
|
|
PLIST_SUB+= THEORA="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_X264)
|
2012-07-23 19:27:25 +00:00
|
|
|
LIB_DEPENDS+= x264.125:${PORTSDIR}/multimedia/x264
|
2009-09-27 15:52:55 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-h264
|
|
|
|
PLIST_SUB+= X264=""
|
|
|
|
WITH_VIDEO= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-h264
|
|
|
|
PLIST_SUB+= X264="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FFMPEG)
|
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
|
|
|
CONFIGURE_ARGS+= --enable-ffmpeg --enable-ffmpeg-h263
|
2011-06-24 22:39:03 +00:00
|
|
|
CONFIGURE_ENV+= ac_cv_lib_avcodec_h263p_encoder=yes \
|
|
|
|
ac_cv_lib_avcodec_h264_decoder=yes \
|
|
|
|
ac_cv_lib_avcodec_mpeg4_encoder=yes
|
2009-09-27 15:52:55 +00:00
|
|
|
PLIST_SUB+= FFMPEG=""
|
|
|
|
WITH_VIDEO= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ffmpeg --disable-ffmpeg-h263
|
|
|
|
PLIST_SUB+= FFMPEG="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
WITH_VIDEO=yes
|
|
|
|
.if defined(WITH_VIDEO)
|
|
|
|
CONFIGURE_ARGS+= --enable-video
|
|
|
|
PLIST_SUB+= VIDEO=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-video
|
|
|
|
PLIST_SUB+= VIDEO="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SIP)
|
|
|
|
CONFIGURE_ARGS+= --enable-sip
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sip
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_H323)
|
|
|
|
CONFIGURE_ARGS+= --enable-h323
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-h323
|
|
|
|
.endif
|
2006-04-21 13:03:32 +00:00
|
|
|
|
2009-09-27 15:52:55 +00:00
|
|
|
.if defined(WITH_IAX)
|
|
|
|
CONFIGURE_ARGS+= --enable-iax
|
2007-06-18 14:24:29 +00:00
|
|
|
.else
|
2009-09-27 15:52:55 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-iax
|
2006-04-08 05:14:22 +00:00
|
|
|
.endif
|
|
|
|
|
2009-09-27 15:52:55 +00:00
|
|
|
.if defined(WITH_H224)
|
|
|
|
CONFIGURE_ARGS+= --enable-h224
|
2006-04-08 05:14:22 +00:00
|
|
|
.else
|
2009-09-27 15:52:55 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-h224
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_H281)
|
|
|
|
CONFIGURE_ARGS+= --enable-h281
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-h281
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FAX)
|
|
|
|
LIB_DEPENDS+= spandsp.2:${PORTSDIR}/comms/spandsp-devel
|
|
|
|
CONFIGURE_ARGS+= --enable-fax --enable-t38
|
|
|
|
PLIST_SUB+= FAX=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-fax --disable-t38 --disable-spandsp
|
|
|
|
PLIST_SUB+= FAX="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MSRP)
|
|
|
|
CONFIGURE_ARGS+= --enable-msrp
|
|
|
|
##BROKEN= Does not compile
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-msrp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SIPIM)
|
|
|
|
CONFIGURE_ARGS+= --enable-sipim
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sipim
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RTPTEXT)
|
|
|
|
CONFIGURE_ARGS+= --enable-rfc4103
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-rfc4103
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_H450)
|
|
|
|
CONFIGURE_ARGS+= --enable-h450
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-h450
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_H460)
|
|
|
|
CONFIGURE_ARGS+= --enable-h460
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-h460
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_H501)
|
|
|
|
CONFIGURE_ARGS+= --enable-h501
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-h501
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LID)
|
|
|
|
CONFIGURE_ARGS+= --enable-lid --enable-ixj --enable-vpb
|
|
|
|
PLIST_SUB+= LID=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-lid --disable-ixj --disable-vpb
|
|
|
|
PLIST_SUB+= LID="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_UVIDEO)
|
|
|
|
CONFIGURE_ARGS+= --enable-rfc4175
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-rfc4175
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_AEC)
|
|
|
|
CONFIGURE_ARGS+= --enable-aec
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-aec
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
BROKEN=DEBUG: Not implemented
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's?-lopal?-lopal-${PORTVERSION:C/.[0-9]+$//g}?' ${WRKSRC}/opal.pc.in
|
|
|
|
@${REINPLACE_CMD} -e 's?^LIBS="-lilbc?LIBS="-lilbc -lm?' ${WRKSRC}/plugins/configure
|
|
|
|
@${REINPLACE_CMD} -e 's/^\(EXTRACCFLAGS.*\)/\1 -I\/usr\/local\/include/' ${WRKSRC}/plugins/*/*/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's?^EXTRALIBS = $(GSM_LIBS)?EXTRALIBS = $(GSM_LIBS) -L/usr/local/lib?' ${WRKSRC}/plugins/audio/GSM0610/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's?^EXTRALIBS = $(ILBC_LIBS)?EXTRALIBS = $(ILBC_LIBS) -L/usr/local/lib?' ${WRKSRC}/plugins/audio/iLBC/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's?ILBC_CFLAGS=""?ILBC_CFLAGS="-L/usr/local/lib"?' ${WRKSRC}/plugins/configure
|
|
|
|
@${REINPLACE_CMD} -e 's?^\(EXTRALIBS\)\(.*\)?\1\2 -L/usr/local/lib?' ${WRKSRC}/plugins/fax/fax_spandsp/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's?/pkgconfig?data/pkgconfig?g' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's?@@SO_VER@@?'${PORTVERSION:C/.[0-9]+$//g}'.so.'${PORTVERSION:C/^[0-9]+.[0-9]+.//}'?g' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's?@@SO_MAJ@@?'${PORTVERSION:C/.[0-9]+$//g}'.so?g' ${WRKSRC}/Makefile.in
|
|
|
|
.if !defined(WITH_DEBUG)
|
|
|
|
@${REINPLACE_CMD} -e 's/^\(all:\).*/\1 optdepend opt/' ${WRKSRC}/Makefile.in
|
2006-04-08 05:14:22 +00:00
|
|
|
.endif
|
|
|
|
|
2009-11-20 21:13:03 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's?\$$(LIB_FILENAME_SHARED_PAT)?libopal-${PORTVERSION:C/.[0-9]+$//g}'.so.'${PORTVERSION:C/^[0-9]+.[0-9]+.//}?' ${WRKSRC}/opal_defs.mak
|
|
|
|
|
2006-04-08 05:14:22 +00:00
|
|
|
.include <bsd.port.post.mk>
|