# Created by: Hendrik Scholz # $FreeBSD: head/multimedia/transcode/Makefile 413357 2016-04-15 17:40:32Z jbeich $ PORTNAME= transcode PORTVERSION= 1.1.7 PORTREVISION= 26 CATEGORIES= multimedia MASTER_SITES= https://bitbucket.org/france/transcode-tcforge/downloads/ MAINTAINER= cyberbotx@cyberbotx.com COMMENT= Text-console utility for video stream processing LICENSE= GPLv2 LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg USE_LDCONFIG= yes USES= gmake libtool pkgconfig tar:bzip2 WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-oss CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS X11 MPEG2 BKTR POSTPROC FREETYPE LAME \ XVID X264 OGG VORBIS THEORA DVDREAD DV QUICKTIME LZO A52 \ FAAC LIBXML2 MJPEGTOOLS SDL IMAGEMAGICK JPEG ICONV V4L OPTIONS_DEFAULT= LAME DVDREAD JPEG ICONV BKTR_DESC= Bktr capture card support POSTPROC_DESC= Libpostproc support DVDREAD_DESC= Libdvdread support LZO_DESC= LZO compression support X11_USE= xorg=xv,xaw,xpm X11_CONFIGURE_WITH= x MPEG2_LIB_DEPENDS= libmpeg2.so:multimedia/libmpeg2 MPEG2_CONFIGURE_ENABLE= libmpeg2 libmpeg2convert BKTR_CONFIGURE_ENABLE= bktr POSTPROC_CONFIGURE_ENABLE= libpostproc FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 FREETYPE_CONFIGURE_ENABLE= freetype2 LAME_LIB_DEPENDS= libmp3lame.so:audio/lame LAME_CONFIGURE_ENABLE= lame LAME_CONFIGURE_ON= --with-lame-prefix=${LOCALBASE} XVID_LIB_DEPENDS= libxvidcore.so:multimedia/xvid XVID_CONFIGURE_ENABLE= xvid XVID_CONFIGURE_ON= --with-xvid-prefix=${LOCALBASE} X264_LIB_DEPENDS= libx264.so:multimedia/libx264 X264_CONFIGURE_ENABLE= x264 OGG_LIB_DEPENDS= libogg.so:audio/libogg OGG_CONFIGURE_ENABLE= ogg VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis VORBIS_CONFIGURE_ENABLE= vorbis THEORA_LIB_DEPENDS= libtheora.so:multimedia/libtheora THEORA_CONFIGURE_ENABLE= theora DVDREAD_LIB_DEPENDS= libdvdread.so:multimedia/libdvdread DVDREAD_CONFIGURE_ENABLE= libdvdread DVDREAD_CONFIGURE_ON= --with-libdvdread-prefix=${LOCALBASE} DV_LIB_DEPENDS= libdv.so:multimedia/libdv DV_CONFIGURE_ENABLE= libdv QUICKTIME_LIB_DEPENDS= libquicktime.so:multimedia/libquicktime QUICKTIME_CONFIGURE_ENABLE= libquicktime LZO_LIB_DEPENDS= liblzo2.so:archivers/lzo2 LZO_CONFIGURE_ENABLE= lzo LZO_CONFIGURE_ON= --with-lzo-prefix=${LOCALBASE} --with-lzo-includes=${LOCALBASE} A52_LIB_DEPENDS= liba52.so:audio/liba52 A52_CONFIGURE_ENABLE= a52 A52_CONFIGURE_ON= --with-a52-prefix=${LOCALBASE} FAAC_LIB_DEPENDS= libfaac.so:audio/faac FAAC_CONFIGURE_ENABLE= faac FAAC_CONFIGURE_ON= --with-faac-prefix=${LOCALBASE} LIBXML2_USE= GNOME=libxml2 LIBXML2_CONFIGURE_ENABLE= libxml2 MJPEGTOOLS_LIB_DEPENDS= liblavjpeg.so:multimedia/mjpegtools MJPEGTOOLS_CONFIGURE_ENABLE= mjpegtools SDL_USE= SDL=sdl SDL_CONFIGURE_ENABLE= sdl SDL_CONFIGURE_ENV_ON= SDL_CONFIG="${SDL_CONFIG}" IMAGEMAGICK_LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick IMAGEMAGICK_CONFIGURE_ENABLE= imagemagick IMAGEMAGICK_CONFIGURE_ON= --with-imagemagick-prefix=${LOCALBASE} JPEG_USES= jpeg JPEG_CONFIGURE_ENABLE= libjpeg JPEG_CONFIGURE_ON= --with-libjpeg-prefix=${LOCALBASE} ICONV_USES= iconv ICONV_CONFIGURE_ENABLE= iconv ICONV_CONFIGURE_ON= --with-iconv-prefix=${ICONV_PREFIX} V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat V4L_CONFIGURE_ENABLE= v4l .include #Disable mmx on FreeBSD 10.1 due to a transient bug in clang .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 && ${OSVERSION} < 1002000 CONFIGURE_ARGS+= --disable-mmx .endif .if empty(ICONV_LIB) CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=no \ ac_cv_lib_iconv_libiconv_open=no .endif post-extract: @${RM} ${WRKSRC}/import/v4l/videodev* post-patch: @${REINPLACE_CMD} -E -e 's|loff_t|uint64_t|' ${WRKSRC}/avilib/avidump.c @${REINPLACE_CMD} -E -e 's|> ${TMPPLIST}) .include