2012-07-06 11:01:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.50 2012/07/06 15:01:06 ajacoutot 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
|
|
|
|
2012-05-03 02:06:59 -04:00
|
|
|
DISTNAME= transcode-1.1.7
|
2012-07-06 11:01:06 -04:00
|
|
|
REVISION= 0
|
2009-08-18 18:24:13 -04:00
|
|
|
CATEGORIES= multimedia
|
2012-05-03 02:06:59 -04:00
|
|
|
MASTER_SITES= http://cdn.bitbucket.org/france/transcode-tcforge/downloads/
|
2009-08-18 18:24:13 -04:00
|
|
|
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
|
2010-10-24 17:40:38 -04:00
|
|
|
|
2011-04-18 19:37:07 -04:00
|
|
|
WANTLIB += ICE SDL SM X11 Xau Xaw Xdmcp Xext Xmu Xpm Xt Xv a52
|
2011-06-27 09:38:30 -04:00
|
|
|
WANTLIB += avcodec avformat avutil bz2 c dv dvdread freetype
|
2011-04-18 19:37:07 -04:00
|
|
|
WANTLIB += gsm jpeg m mp3lame mpeg2 mpeg2convert ogg orc-0.4 postproc
|
|
|
|
WANTLIB += pthread pthread-stubs schroedinger-1.0 sndio speex
|
|
|
|
WANTLIB += theora theoradec theoraenc usbhid vorbis vorbisenc
|
|
|
|
WANTLIB += vorbisfile vpx x264 xcb xml2 z
|
2009-03-04 15:21:57 -05:00
|
|
|
|
2011-06-15 19:16:15 -04:00
|
|
|
# xvidcore is dlopen()d so check-lib-depends shows it as Extra, however we
|
|
|
|
# want to track changes to the ABI to ensure transcode is updated if needed.
|
|
|
|
WANTLIB += xvidcore
|
|
|
|
|
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
|
2010-10-25 06:11:22 -04:00
|
|
|
|
2011-06-27 09:38:30 -04:00
|
|
|
LIB_DEPENDS= audio/lame \
|
2010-11-19 02:23:05 -05:00
|
|
|
audio/liba52 \
|
|
|
|
audio/libogg \
|
|
|
|
audio/libvorbis \
|
|
|
|
devel/libdvdread \
|
|
|
|
devel/sdl \
|
|
|
|
graphics/ffmpeg>=20080620p10 \
|
|
|
|
graphics/jpeg \
|
|
|
|
graphics/libmpeg2 \
|
|
|
|
multimedia/libdv \
|
|
|
|
multimedia/libtheora \
|
|
|
|
multimedia/x264 \
|
2011-06-15 19:16:15 -04:00
|
|
|
multimedia/xvidcore \
|
2010-11-19 02:23:05 -05:00
|
|
|
textproc/libxml
|
|
|
|
|
|
|
|
RUN_DEPENDS= audio/sox \
|
|
|
|
audio/vorbis-tools \
|
|
|
|
audio/toolame \
|
|
|
|
graphics/ffmpeg \
|
|
|
|
x11/mplayer
|
|
|
|
|
2011-06-15 19:16:15 -04:00
|
|
|
BUILD_DEPENDS+= devel/libtool
|
2010-09-30 15:42:14 -04:00
|
|
|
|
2012-03-29 09:38:12 -04:00
|
|
|
SEPARATE_BUILD= Yes
|
2009-08-18 18:24:13 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
2010-10-18 17:25:07 -04:00
|
|
|
USE_GROFF = Yes
|
2009-08-18 18:24:13 -04:00
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
2010-01-11 03:49:27 -05:00
|
|
|
CONFIGURE_STYLE= autoconf automake
|
2012-05-03 02:06:59 -04:00
|
|
|
AUTOCONF_VERSION= 2.68
|
|
|
|
AUTOMAKE_VERSION= 1.11
|
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-bktr \
|
|
|
|
--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
|
2010-11-19 02:23:05 -05:00
|
|
|
WANTLIB += lzo2
|
|
|
|
LIB_DEPENDS+= archivers/lzo2
|
2009-08-25 09:16:40 -04:00
|
|
|
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
|
2012-05-03 02:06:59 -04:00
|
|
|
WANTLIB += mjpegutils-1.9
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS+= multimedia/mjpegtools
|
|
|
|
RUN_DEPENDS+= multimedia/mjpegtools
|
2009-08-18 18:24:13 -04:00
|
|
|
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
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS+= multimedia/libquicktime
|
|
|
|
WANTLIB += quicktime
|
2009-08-18 18:24:13 -04:00
|
|
|
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>
|