2010-08-25 19:27:21 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.32 2010/08/25 23:27:21 sthen Exp $
|
2008-01-25 21:17:50 -05:00
|
|
|
|
2009-08-18 18:24:13 -04:00
|
|
|
SHARED_ONLY= Yes
|
2005-01-25 16:58:59 -05:00
|
|
|
|
2009-08-18 18:24:13 -04:00
|
|
|
COMMENT= video stream processing tools
|
2005-01-25 16:58:59 -05:00
|
|
|
|
2009-11-03 09:32:33 -05:00
|
|
|
DISTNAME= transcode-1.1.5
|
2010-08-25 19:27:21 -04:00
|
|
|
REVISION= 3
|
2009-08-18 18:24:13 -04:00
|
|
|
CATEGORIES= multimedia
|
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS:=tcforge/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2005-01-25 16:58:59 -05:00
|
|
|
|
2009-08-18 18:24:13 -04:00
|
|
|
HOMEPAGE= http://www.transcoding.org/
|
2005-01-25 16:58:59 -05:00
|
|
|
|
2009-03-04 15:21:57 -05:00
|
|
|
# GPLv2
|
2005-01-25 16:58:59 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-08-18 18:24:13 -04:00
|
|
|
WANTLIB= ICE SM X11 Xau Xaw Xdmcp Xext Xpm Xrandr Xrender Xt \
|
2010-08-25 19:27:21 -04:00
|
|
|
Xv bz2 c faad freetype gsm m orc-0.4 pthread-stubs pthread \
|
2010-05-26 18:18:22 -04:00
|
|
|
schroedinger-1.0 sndio speex usbhid xcb z
|
2009-03-04 15:21:57 -05:00
|
|
|
|
2009-08-18 18:24:13 -04:00
|
|
|
FLAVORS= lzo mjpegtools quicktime altivec
|
2005-01-25 16:58:59 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2009-08-18 18:24:13 -04:00
|
|
|
PKG_ARGS+= -Di386=1
|
2005-01-25 16:58:59 -05:00
|
|
|
.else
|
2009-08-18 18:24:13 -04:00
|
|
|
PKG_ARGS+= -Di386=0
|
2005-01-25 16:58:59 -05:00
|
|
|
.endif
|
2009-08-18 18:24:13 -04:00
|
|
|
|
|
|
|
MODULES= converters/libiconv
|
|
|
|
LIB_DEPENDS= SDL.>=2::devel/sdl \
|
|
|
|
a52::audio/liba52 \
|
|
|
|
avcodec.>=13.1,avformat.>=12,avutil.>=6,postproc.>=6:ffmpeg->=20080620p10:graphics/ffmpeg \
|
|
|
|
dv.>=4::multimedia/libdv \
|
|
|
|
dvdread.>=3::devel/libdvdread \
|
|
|
|
jpeg.>=62::graphics/jpeg \
|
|
|
|
mp3lame::audio/lame \
|
|
|
|
faac::audio/faac \
|
|
|
|
mpeg2,mpeg2convert::graphics/libmpeg2 \
|
|
|
|
ogg.>=5::audio/libogg \
|
|
|
|
theora.>=1::multimedia/libtheora \
|
|
|
|
vorbis.>=3,vorbisenc.>=2,vorbisfile.>=4::audio/libvorbis \
|
|
|
|
xml2.>=8::textproc/libxml \
|
|
|
|
xvidcore::multimedia/xvidcore \
|
|
|
|
x264::multimedia/x264
|
|
|
|
RUN_DEPENDS= ::graphics/ffmpeg \
|
|
|
|
::audio/sox \
|
|
|
|
::audio/vorbis-tools \
|
|
|
|
::audio/toolame \
|
|
|
|
::x11/mplayer
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
2010-01-11 03:49:27 -05:00
|
|
|
CONFIGURE_STYLE= autoconf automake
|
2009-08-18 18:24:13 -04:00
|
|
|
AUTOCONF_VERSION= 2.61
|
2010-01-11 03:49:27 -05:00
|
|
|
AUTOMAKE_VERSION= 1.9
|
2005-02-09 18:41:42 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/autotools
|
2009-08-18 18:24:13 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-a52 \
|
|
|
|
--enable-a52-default-decoder \
|
|
|
|
--enable-bktr \
|
|
|
|
--enable-faac \
|
|
|
|
--enable-freetype2 \
|
|
|
|
--enable-lame \
|
|
|
|
--enable-libdv \
|
|
|
|
--enable-libdvdread \
|
|
|
|
--enable-libiconv \
|
|
|
|
--enable-libjpeg \
|
2009-11-03 09:32:33 -05:00
|
|
|
--enable-libmpeg2 \
|
|
|
|
--enable-libmpeg2convert \
|
2009-08-18 18:24:13 -04:00
|
|
|
--enable-libpostproc \
|
|
|
|
--enable-libxml2 \
|
|
|
|
--enable-netstream \
|
|
|
|
--enable-ogg \
|
|
|
|
--enable-sdl \
|
|
|
|
--enable-statbuffer \
|
2010-01-11 03:49:27 -05:00
|
|
|
--enable-sndio \
|
2009-08-18 18:24:13 -04:00
|
|
|
--enable-theora \
|
|
|
|
--enable-vorbis \
|
|
|
|
--enable-xvid \
|
|
|
|
--enable-x264
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
|
|
|
|
LIBAVCODEC_EXTRA_LIBS="-pthread"
|
2005-01-25 16:58:59 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mlzo}
|
2009-08-25 09:16:40 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-lzo
|
|
|
|
LIB_DEPENDS+= lzo2::archivers/lzo2
|
|
|
|
PKG_ARGS+= -Dlzo=1
|
2005-01-25 16:58:59 -05:00
|
|
|
.else
|
2009-08-25 09:16:40 -04:00
|
|
|
PKG_ARGS+= -Dlzo=0
|
2005-01-25 16:58:59 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmjpegtools}
|
2009-08-18 18:24:13 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-mjpegtools
|
|
|
|
LIB_DEPENDS+= mjpegutils.>=3::multimedia/mjpegtools
|
|
|
|
RUN_DEPENDS+= ::multimedia/mjpegtools
|
|
|
|
PKG_ARGS+= -Dmjpegtools=1
|
2005-01-25 16:58:59 -05:00
|
|
|
.else
|
2009-08-18 18:24:13 -04:00
|
|
|
PKG_ARGS+= -Dmjpegtools=0
|
2005-01-25 16:58:59 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mquicktime}
|
2009-08-18 18:24:13 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-libquicktime
|
|
|
|
LIB_DEPENDS+= quicktime::multimedia/libquicktime
|
|
|
|
MODULES+= devel/gettext
|
|
|
|
PKG_ARGS+= -Dquicktime=1
|
2005-01-25 16:58:59 -05:00
|
|
|
.else
|
2009-08-18 18:24:13 -04:00
|
|
|
PKG_ARGS+= -Dquicktime=0
|
2005-01-25 16:58:59 -05:00
|
|
|
.endif
|
|
|
|
|
2007-05-29 01:33:16 -04:00
|
|
|
.if ${FLAVOR:L:Maltivec}
|
2009-08-18 18:24:13 -04:00
|
|
|
ONLY_FOR_ARCHS= powerpc
|
|
|
|
CONFIGURE_ARGS+=--enable-altivec
|
2007-05-29 01:33:16 -04:00
|
|
|
.else
|
2009-08-18 18:24:13 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-altivec
|
2007-05-29 01:33:16 -04:00
|
|
|
.endif
|
|
|
|
|
2010-01-11 03:49:27 -05:00
|
|
|
post-extract:
|
2010-08-25 19:27:21 -04:00
|
|
|
@cp ${FILESDIR}/import_sndio.c ${WRKSRC}/import/
|
2010-01-11 03:49:27 -05:00
|
|
|
|
|
|
|
AUTO_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
|
|
|
|
|
|
|
|
post-patch:
|
2010-08-25 19:27:21 -04:00
|
|
|
@cd ${WRKSRC}; ${AUTO_ENV} aclocal
|
2010-01-11 03:49:27 -05:00
|
|
|
|
|
|
|
pre-configure:
|
2010-08-25 19:27:21 -04:00
|
|
|
@cd ${WRKSRC}; ${AUTO_ENV} automake --foreign
|
2010-01-11 03:49:27 -05:00
|
|
|
|
2005-01-25 16:58:59 -05:00
|
|
|
.include <bsd.port.mk>
|