mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
5598792853
PR: 223370 Submitted by: zeising exp-run by: antoine Approved by: antoine
106 lines
2.6 KiB
Makefile
106 lines
2.6 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mediastreamer
|
|
PORTVERSION= 2.14.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= net
|
|
MASTER_SITES= SAVANNAH/linphone/mediastreamer
|
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
|
COMMENT= Real-time audio and video streaming and processing
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libbctoolbox.so:net/bctoolbox \
|
|
libortp.so:net/ortp \
|
|
libsrtp.so:net/libsrtp \
|
|
libbzrtp.so:security/bzrtp
|
|
|
|
CONFLICTS_INSTALL= linphone-base-[0-9]*
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-alsa --disable-documentation --disable-matroska \
|
|
--disable-pulseaudio --disable-strict \
|
|
--with-gsm=${LOCALBASE} --with-srtp=${LOCALBASE} \
|
|
xxd_found=yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
INSTALL_TARGET= install-strip
|
|
USES= gettext-tools gmake libtool pathfix pkgconfig
|
|
USE_GNOME= intlhack
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= NLS UPNP VIDEO
|
|
OPTIONS_GROUP= AUDIOOPT VIDEOOPT
|
|
OPTIONS_GROUP_AUDIOOPT= GSM OPUS SPANDSP SPEEX
|
|
OPTIONS_GROUP_VIDEOOPT= FFMPEG GLX THEORA V4L VPX XVIDEO
|
|
OPTIONS_DEFAULT= UPNP VIDEO \
|
|
GSM OPUS SPANDSP SPEEX \
|
|
FFMPEG GLX THEORA V4L VPX XVIDEO
|
|
OPTIONS_SUB= yes
|
|
|
|
AUDIOOPT_DESC= Audio options
|
|
|
|
FFMPEG_CONFIGURE_ENABLE=ffmpeg
|
|
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
|
|
|
|
GLX_CONFIGURE_ENABLE= glx
|
|
GLX_USE= GL=glew
|
|
|
|
GSM_CONFIGURE_ENABLE= gsm
|
|
GSM_LIB_DEPENDS= libgsm.so:audio/gsm
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
NLS_USES= gettext-runtime
|
|
|
|
OPUS_CONFIGURE_ENABLE= opus
|
|
OPUS_LIB_DEPENDS= libopus.so:audio/opus
|
|
|
|
SPANDSP_CONFIGURE_ENABLE= spandsp
|
|
SPANDSP_LIB_DEPENDS= libspandsp.so:comms/spandsp
|
|
|
|
SPEEX_CONFIGURE_ENABLE= speex
|
|
SPEEX_LIB_DEPENDS= libspeex.so:audio/speex
|
|
|
|
THEORA_CONFIGURE_ENABLE=theora
|
|
THEORA_LIB_DEPENDS= libtheora.so:multimedia/libtheora
|
|
|
|
UPNP_CONFIGURE_ENABLE= upnp
|
|
UPNP_LIB_DEPENDS= libupnp.so:devel/upnp
|
|
|
|
V4L_CONFIGURE_ENABLE= v4l
|
|
V4L_BUILD_DEPENDS= v4l_compat>=1.0.20120501:multimedia/v4l_compat
|
|
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l
|
|
|
|
VIDEOOPT_DESC= Video options
|
|
|
|
VIDEO_CONFIGURE_ENABLE= video
|
|
|
|
VPX_CONFIGURE_ENABLE= vp8
|
|
VPX_LIB_DEPENDS= libvpx.so:multimedia/libvpx
|
|
|
|
XVIDEO_CONFIGURE_ENABLE=x11 xv
|
|
XVIDEO_USE= XORG=videoproto,x11,xv
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's,gsm/gsm\.h,gsm.h,' \
|
|
${WRKSRC}/configure ${WRKSRC}/src/audiofilters/gsm.c
|
|
|
|
pre-build:
|
|
# Transform file to C array (similar to xxd -i from editors/vim)
|
|
.for i in yuv2rgb.fs yuv2rgb.vs
|
|
(cd ${WRKSRC}/src && { \
|
|
${ECHO_CMD} 'unsigned char ${i:S/./_/}[] = {' && \
|
|
/usr/bin/hexdump -v -e '" " 12/1 " 0x%02x," "\n" \
|
|
" 0x00 };\nunsigned int ${i:S/./_/}_len = %_Ad;"' ${i} | \
|
|
${SED} 's/ 0x ,//g' ; } > ${i}.h)
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|