2012-10-16 23:17:53 +02:00
|
|
|
# Created by: Hendrik Scholz <hendrik@scholz.net>
|
2002-03-30 13:02:14 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2002-03-30 13:17:47 +01:00
|
|
|
PORTNAME= transcode
|
2011-12-21 02:20:34 +01:00
|
|
|
PORTVERSION= 1.1.7
|
2014-12-08 17:48:38 +01:00
|
|
|
PORTREVISION= 20
|
2003-04-04 03:38:40 +02:00
|
|
|
CATEGORIES= multimedia
|
2011-12-21 02:20:34 +01:00
|
|
|
MASTER_SITES= http://cdn.bitbucket.org/france/transcode-tcforge/downloads/
|
2002-03-30 13:02:14 +01:00
|
|
|
|
2009-07-22 20:01:55 +02:00
|
|
|
MAINTAINER= cyberbotx@cyberbotx.com
|
2013-09-02 18:23:41 +02:00
|
|
|
COMMENT= Text-console utility for video stream processing
|
2002-03-30 13:02:14 +01:00
|
|
|
|
2013-09-02 18:23:41 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2006-12-22 16:28:42 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-10-11 14:16:40 +02:00
|
|
|
USES= gmake libtool pkgconfig tar:bzip2
|
|
|
|
USE_GCC= any
|
2005-10-14 18:19:27 +02:00
|
|
|
WANT_SDL= yes
|
2009-07-22 20:01:55 +02:00
|
|
|
WANT_GNOME= yes
|
2014-10-03 13:34:03 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-oss
|
2011-06-06 06:31:52 +02:00
|
|
|
CPPFLAGS+= -isystem ${LOCALBASE}/include
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-10-11 14:16:40 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2012-10-16 20:32:05 +02:00
|
|
|
NO_OPTIONS_SORT= yes
|
2014-10-03 13:34:03 +02:00
|
|
|
OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS X11 MPEG2 BKTR POSTPROC FREETYPE LAME \
|
|
|
|
XVID X264 OGG VORBIS THEORA DVDREAD DV QUICKTIME LZO A52 \
|
2014-08-02 14:35:28 +02:00
|
|
|
FAAC LIBXML2 MJPEGTOOLS SDL IMAGEMAGICK JPEG ICONV V4L
|
2012-10-16 20:32:05 +02:00
|
|
|
OPTIONS_DEFAULT= LAME DVDREAD JPEG ICONV
|
2014-08-02 14:35:28 +02:00
|
|
|
BKTR_DESC= Bktr capture card support
|
|
|
|
POSTPROC_DESC= Libpostproc support
|
|
|
|
DVDREAD_DESC= Libdvdread support
|
|
|
|
LZO_DESC= LZO compression support
|
2004-11-17 23:11:44 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
X11_USE= xorg=xv,xaw,xpm
|
|
|
|
X11_CONFIGURE_WITH= x
|
2009-11-05 18:55:37 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
MPEG2_LIB_DEPENDS= libmpeg2.so:${PORTSDIR}/multimedia/libmpeg2
|
|
|
|
MPEG2_CONFIGURE_ENABLE= libmpeg2 libmpeg2convert
|
2005-08-29 05:17:57 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
BKTR_CONFIGURE_ENABLE= bktr
|
2005-02-23 19:06:15 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
POSTPROC_CONFIGURE_ENABLE= libpostproc
|
2004-02-26 18:58:26 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
|
|
|
|
FREETYPE_CONFIGURE_ENABLE= freetype2
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
LAME_LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame
|
|
|
|
LAME_CONFIGURE_ENABLE= lame
|
|
|
|
LAME_CONFIGURE_ON= --with-lame-prefix=${LOCALBASE}
|
2005-05-11 17:04:48 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
XVID_LIB_DEPENDS= libxvidcore.so:${PORTSDIR}/multimedia/xvid
|
|
|
|
XVID_CONFIGURE_ENABLE= xvid
|
|
|
|
XVID_CONFIGURE_ON= --with-xvid-prefix=${LOCALBASE}
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2014-11-22 17:23:34 +01:00
|
|
|
X264_LIB_DEPENDS= libx264.so:${PORTSDIR}/multimedia/libx264
|
2014-08-02 14:35:28 +02:00
|
|
|
X264_CONFIGURE_ENABLE= x264
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
OGG_LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg
|
|
|
|
OGG_CONFIGURE_ENABLE= ogg
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|
|
|
VORBIS_CONFIGURE_ENABLE= vorbis
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
THEORA_LIB_DEPENDS= libtheora.so:${PORTSDIR}/multimedia/libtheora
|
|
|
|
THEORA_CONFIGURE_ENABLE= theora
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
DVDREAD_LIB_DEPENDS= libdvdread.so:${PORTSDIR}/multimedia/libdvdread
|
|
|
|
DVDREAD_CONFIGURE_ENABLE= libdvdread
|
|
|
|
DVDREAD_CONFIGURE_ON= --with-libdvdread-prefix=${LOCALBASE}
|
2002-03-30 13:02:14 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
DV_LIB_DEPENDS= libdv.so:${PORTSDIR}/multimedia/libdv
|
|
|
|
DV_CONFIGURE_ENABLE= libdv
|
2002-03-30 13:02:14 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
QUICKTIME_LIB_DEPENDS= libquicktime.so:${PORTSDIR}/multimedia/libquicktime
|
|
|
|
QUICKTIME_CONFIGURE_ENABLE= libquicktime
|
2005-05-11 17:04:48 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
LZO_LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2
|
|
|
|
LZO_CONFIGURE_ENABLE= lzo
|
|
|
|
LZO_CONFIGURE_ON= --with-lzo-prefix=${LOCALBASE} --with-lzo-includes=${LOCALBASE}
|
2002-03-30 13:02:14 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
A52_LIB_DEPENDS= liba52.so:${PORTSDIR}/audio/liba52
|
|
|
|
A52_CONFIGURE_ENABLE= a52
|
|
|
|
A52_CONFIGURE_ON= --with-a52-prefix=${LOCALBASE}
|
2002-10-29 18:16:55 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
FAAC_LIB_DEPENDS= libfaac.so:${PORTSDIR}/audio/faac
|
|
|
|
FAAC_CONFIGURE_ENABLE= faac
|
|
|
|
FAAC_CONFIGURE_ON= --with-faac-prefix=${LOCALBASE}
|
2003-06-04 18:56:43 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
LIBXML2_USE= GNOME=libxml2
|
|
|
|
LIBXML2_CONFIGURE_ENABLE= libxml2
|
2003-06-19 11:08:01 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
MJPEGTOOLS_LIB_DEPENDS= liblavjpeg.so:${PORTSDIR}/multimedia/mjpegtools
|
|
|
|
MJPEGTOOLS_CONFIGURE_ENABLE= mjpegtools
|
2009-07-22 20:01:55 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
SDL_USE= SDL=sdl
|
|
|
|
SDL_CONFIGURE_ENABLE= sdl
|
|
|
|
SDL_CONFIGURE_ENV_ON= SDL_CONFIG="${SDL_CONFIG}"
|
2009-07-22 20:01:55 +02:00
|
|
|
|
2014-11-07 10:55:22 +01:00
|
|
|
IMAGEMAGICK_LIB_DEPENDS= libMagickWand-6.Q16.so:${PORTSDIR}/graphics/ImageMagick
|
2014-08-02 14:35:28 +02:00
|
|
|
IMAGEMAGICK_CONFIGURE_ENABLE= imagemagick
|
|
|
|
IMAGEMAGICK_CONFIGURE_ON= --with-imagemagick-prefix=${LOCALBASE}
|
2009-07-22 20:01:55 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
JPEG_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
|
|
|
|
JPEG_CONFIGURE_ENABLE= libjpeg
|
|
|
|
JPEG_CONFIGURE_ON= --with-libjpeg-prefix=${LOCALBASE}
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
ICONV_USES= iconv
|
|
|
|
ICONV_CONFIGURE_ENABLE= iconv
|
|
|
|
ICONV_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
|
|
|
|
|
|
|
|
V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
|
|
|
|
V4L_CONFIGURE_ENABLE= v4l
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2013-09-02 18:23:41 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/import/v4l/videodev*
|
|
|
|
|
2002-04-18 06:53:53 +02:00
|
|
|
post-patch:
|
2012-10-16 20:32:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MLZO}
|
2008-09-01 19:20:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%NUV%%|nuv|' ${WRKSRC}/import/Makefile.in
|
2008-08-16 00:42:37 +02:00
|
|
|
.else
|
2008-09-01 19:20:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%NUV%%||' ${WRKSRC}/import/Makefile.in
|
2008-08-16 00:42:37 +02:00
|
|
|
.endif
|
2012-10-16 20:32:05 +02:00
|
|
|
.if !${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
2002-10-29 18:16:55 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \
|
2002-04-18 06:53:53 +02:00
|
|
|
-e 's|-O[236]|${CFLAGS}|'
|
|
|
|
.endif
|
2011-12-21 02:20:34 +01:00
|
|
|
@${REINPLACE_CMD} -E -e 's|loff_t|uint64_t|' ${WRKSRC}/avilib/avidump.c
|
2002-10-29 18:16:55 +01:00
|
|
|
@${REINPLACE_CMD} -E -e 's|<SDL/|<|' ${WRKSRC}/filter/preview/display.h
|
2007-05-31 07:49:09 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^static.*lrint/s|static ||' ${WRKSRC}/filter/filter_modfps.c
|
2002-04-18 06:53:53 +02:00
|
|
|
|
2007-04-11 18:18:19 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(-la52)|\1 ${LIBA52_DEP_LIBS}|g ; \
|
2008-04-23 16:34:36 +02:00
|
|
|
s|FFMPEG_VERSION|LIBAVCODEC_IDENT|g ; \
|
|
|
|
s|-lMagick|-lMagickCore|g' \
|
2007-04-11 18:18:19 +02:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2002-05-26 15:41:12 +02:00
|
|
|
|
2002-10-29 18:16:55 +01:00
|
|
|
@${REINPLACE_CMD} -E -e 's|-ldl||g' ${WRKSRC}/configure
|
2009-08-04 16:42:01 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure
|
2002-10-29 18:16:55 +01:00
|
|
|
@${REINPLACE_CMD} -E -e 's|WRKSRC|${WRKSRC}|g' ${WRKSRC}/export/Makefile.in
|
2005-05-20 16:39:57 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|<quicktime/|<lqt/|g' \
|
|
|
|
${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/export/export_mov.c \
|
|
|
|
${WRKSRC}/import/decode_mov.c \
|
|
|
|
${WRKSRC}/import/import_mov.c \
|
|
|
|
${WRKSRC}/import/probe_mov.c
|
2005-08-29 05:17:57 +02:00
|
|
|
|
2014-10-03 13:34:03 +02:00
|
|
|
post-stage:
|
|
|
|
@(cd ${STAGEDIR}${PREFIX} && \
|
2014-10-11 14:16:40 +02:00
|
|
|
${FIND} -s lib/transcode -type f -or -type l >> ${TMPPLIST})
|
2004-12-07 20:57:36 +01:00
|
|
|
|
2014-08-02 14:35:28 +02:00
|
|
|
.include <bsd.port.mk>
|