# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mlt
#	mlt/Makefile
#	mlt/pkg-descr
#	mlt/distinfo
#	mlt/files
#	mlt/files/patch-src-modules-sox-filter_sox.c
#	mlt/pkg-plist
#
echo c - mlt
mkdir -p mlt > /dev/null 2>&1
echo x - mlt/Makefile
sed 's/^X//' >mlt/Makefile << '1599685fae9c4008dccd039b51dbd227'
X# New ports collection makefile for:	mlt
X# Date created:				7 October 2008
X# Whom:					Alberto Villa <villa.alberto@gmail.com>
X#
X# $FreeBSD$
X
XPORTNAME=	mlt
XPORTVERSION=	0.3.2
XCATEGORIES=	multimedia
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
XMASTER_SITE_SUBDIR=	mlt
X
XMAINTAINER=	villa.alberto@gmail.com
XCOMMENT=	A multimedia framework and video playout server for TV broadcasting
X
XUSE_GNOME=	libxml2
XUSE_QT_VER=	4
XQT_COMPONENTS=
XUSE_SDL=	image
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--disable-debug \
X		--enable-gpl \
X		--enable-sdl \
X		--enable-westley
XUSE_GMAKE=	yes
XCFLAGS+=	-I${LOCALBASE}/include
XMAKE_ENV=	LDFLAGS="-L${LOCALBASE}/lib"
XUSE_LDCONFIG=	${PREFIX}/lib ${PREFIX}/lib/${PORTNAME}
X
XDOCFILES=	AUTHORS ChangeLog COPYING \
X		GPL NEWS README
XDOCFILES_DOCS=	dvcp.txt framework.txt inigo.txt \
X		install.txt policies.txt services.txt \
X		testing-20040110.txt testing.txt \
X		TODO valerie.txt westley.txt
XPORTDOCS=	*
X
XOPTIONS=	AVFORMAT	"Avformat module" on \
X		DV	"Quasar DV Codec module" on \
X		FREI0R	"Frei0r module" on \
X		GTK2	"GTK2 module" on \
X		JACKRACK	"JACK Rack module" on \
X		KINO	"Kino module" on \
X		MMX	"MMX support (could have problems on 64 bits CPUs)" on \
X		QIMAGE	"Qimage module" on \
X		RESAMPLE	"Secret Rabbit Code module" on \
X		SOX	"Sound eXchange module" on \
X		VORBIS	"Vorbis module" on
X
X.include <bsd.port.pre.mk>
X
X.ifdef(WITH_AVFORMAT)
X# one of them could be disabled
XLIB_DEPENDS+=	avformat.1:${PORTSDIR}/multimedia/ffmpeg \
X		swscale.1:${PORTSDIR}/multimedia/ffmpeg
XCONFIGURE_ARGS+=	--enable-avformat \
X			--avformat-swscale
XPLIST_SUB+=	AVFORMAT=""
X.else
XCONFIGURE_ARGS+=	--disable-avformat
XPLIST_SUB+=	AVFORMAT="@comment "
X.endif
X
X.ifdef(WITH_DV)
XLIB_DEPENDS+=	dv.4:${PORTSDIR}/multimedia/libdv
XCONFIGURE_ARGS+=	--enable-dv
XPLIST_SUB+=	DV=""
X.else
XCONFIGURE_ARGS+=	--disable-dv
XPLIST_SUB+=	DV="@comment "
X.endif
X
X.ifdef(WITH_FREI0R)
XBUILD_DEPENDS+=	${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
XCONFIGURE_ARGS+=	--enable-frei0r
XPLIST_SUB+=	FREI0R=""
X.else
XCONFIGURE_ARGS+=	--disable-frei0r
XPLIST_SUB+=	FREI0R="@comment "
X.endif
X
X.ifdef(WITH_GTK2)
XCONFIGURE_ARGS+=	--enable-gtk2
XUSE_GNOME+=	gdkpixbuf gtk20 pango
XPLIST_SUB+=	GTK2=""
X.else
XCONFIGURE_ARGS+=	--disable-gtk2
XPLIST_SUB+=	GTK2="@comment "
X.endif
X
X.ifdef(WITH_JACKRACK)
XLIB_DEPENDS+=	jack.0:${PORTSDIR}/audio/jack
XBUILD_DEPENDS+=	${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
XCONFIGURE_ARGS+=	--enable-jackrack
XPLIST_SUB+=	JACKRACK=""
X.else
XCONFIGURE_ARGS+=	--disable-jackrack
XPLIST_SUB+=	JACKRACK="@comment "
X.endif
X
X.ifdef(WITH_KINO)
XLIB_DEPENDS+=	dv.4:${PORTSDIR}/multimedia/libdv \
X		quicktime.0:${PORTSDIR}/multimedia/libquicktime
XCONFIGURE_ARGS+=	--enable-kino
XPLIST_SUB+=	KINO=""
X.else
XCONFIGURE+ARGS+=	--disable-kino
XPLIST_SUB+=	KINO="@comment "
X.endif
X
X.if defined(WITH_MMX) && ${MACHINE_CPU:Mmmx} != ""
XCONFIGURE_ARGS+=	--enable-mmx
X.else
XCONFIGURE_ARGS+=	--disable-mmx
X.endif
X
X.ifdef(WITH_QIMAGE)
XCONFIGURE_ARGS+=	--enable-qimage \
X			--qimage-includedir="${QT_INCDIR}" \
X			--qimage-libdir="${QT_LIBDIR}"
XQT_COMPONENTS+=	gui
XPLIST_SUB+=	QIMAGE=""
X.else
XCONFIGURE_ARGS+=	--disable-qimage
XPLIST_SUB+=	QIMAGE="@comment "
X.endif
X
X.ifdef(WITH_RESAMPLE)
XLIB_DEPENDS+=	samplerate.1:${PORTSDIR}/audio/libsamplerate
XCONFIGURE_ARGS+=	--enable-resample
XPLIST_SUB+=	RESAMPLE=""
X.else
XCONFIGURE_ARGS+=	--disable-resample
XPLIST_SUB+=	RESAMPLE="@comment "
X.endif
X
X.ifdef(WITH_SOX)
XLIB_DEPENDS+=	sox.1:${PORTSDIR}/audio/sox
XCONFIGURE_ARGS+=	--enable-sox
XPLIST_SUB+=	SOX=""
X.else
XCONFIGURE_ARGS+=	--disable-sox
XPLIST_SUB+=	SOX="@comment "
X.endif
X
X.ifdef(WITH_VORBIS)
XLIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
XCONFIGURE_ARGS+=	--enable-vorbis
XPLIST_SUB+=	VORBIS=""
X.else
XCONFIGURE_ARGS+=	--disable-vorbis
XPLIST_SUB+=	VORBIS="@comment "
X.endif
X
Xpre-configure:
X	@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
X		${WRKSRC}/configure
X	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
X		${WRKSRC}/src/framework/Makefile \
X		${WRKSRC}/src/valerie/Makefile
X
Xpost-install:
X	${MKDIR} ${PREFIX}/libdata/pkgconfig
X	${MV} ${PREFIX}/lib/pkgconfig/mlt-* ${PREFIX}/libdata/pkgconfig
X	${RMDIR} ${PREFIX}/lib/pkgconfig
X.ifndef(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCFILES}
X	${INSTALL_MAN} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X.for FILE in ${DOCFILES_DOCS}
X	${INSTALL_MAN} ${WRKSRC}/docs/${FILE} ${DOCSDIR}
X.endfor
X	${MKDIR} ${DOCSDIR}/demo
X	(cd ${WRKSRC}/demo && ${COPYTREE_SHARE} \* ${DOCSDIR}/demo)
X.endif
X
X.include <bsd.port.post.mk>
1599685fae9c4008dccd039b51dbd227
echo x - mlt/pkg-descr
sed 's/^X//' >mlt/pkg-descr << '659e1c2e67a84ab2a7b2f77a458d8de2'
XMLT is an open source multimedia framework, designed and developed for 
Xtelevision broadcasting. It provides a toolkit for broadcasters, video 
Xeditors, media players, transcoders, web streamers and many more types of 
Xapplications. The functionality of the system is provided via an assortment 
Xof ready to use tools, XML authoring components, and an extendible plug-in 
Xbased API.
X
XWWW: http://www.mltframework.org
659e1c2e67a84ab2a7b2f77a458d8de2
echo x - mlt/distinfo
sed 's/^X//' >mlt/distinfo << '1cc0c0f72b55ea0f8c10873b756fdfed'
XMD5 (mlt-0.3.2.tar.gz) = 0b463e1cef1d03fd06742eb3303b0dd4
XSHA256 (mlt-0.3.2.tar.gz) = b04cb4bf34d27a990e41ff2cf7649602c2124a9db1d1155f422f999292591a8a
XSIZE (mlt-0.3.2.tar.gz) = 706318
1cc0c0f72b55ea0f8c10873b756fdfed
echo c - mlt/files
mkdir -p mlt/files > /dev/null 2>&1
echo x - mlt/files/patch-src-modules-sox-filter_sox.c
sed 's/^X//' >mlt/files/patch-src-modules-sox-filter_sox.c << '5d4897ac22c91a28a808d555a36f5735'
X--- src/modules/sox/filter_sox.c.orig	2008-12-20 13:29:19.000000000 +0100
X+++ src/modules/sox/filter_sox.c	2008-12-20 13:29:28.000000000 +0100
X@@ -35,7 +35,7 @@
X #	define ST_SUCCESS SOX_SUCCESS
X #	define st_sample_t sox_sample_t
X #	define eff_t sox_effect_t*
X-#	define st_size_t sox_size_t
X+#	define st_size_t size_t
X #	define ST_LIB_VERSION_CODE SOX_LIB_VERSION_CODE
X #	define ST_LIB_VERSION SOX_LIB_VERSION
X #	define ST_SIGNED_WORD_TO_SAMPLE(d,clips) SOX_SIGNED_16BIT_TO_SAMPLE(d,clips)
5d4897ac22c91a28a808d555a36f5735
echo x - mlt/pkg-plist
sed 's/^X//' >mlt/pkg-plist << '5bb8e672d6d309600f9f3430907e25a2'
Xbin/albino
Xbin/humperdink
Xbin/inigo
Xbin/miracle
Xbin/mlt-config
Xinclude/mlt/framework/mlt.h
Xinclude/mlt/framework/mlt_consumer.h
Xinclude/mlt/framework/mlt_deque.h
Xinclude/mlt/framework/mlt_events.h
Xinclude/mlt/framework/mlt_factory.h
Xinclude/mlt/framework/mlt_field.h
Xinclude/mlt/framework/mlt_filter.h
Xinclude/mlt/framework/mlt_frame.h
Xinclude/mlt/framework/mlt_geometry.h
Xinclude/mlt/framework/mlt_multitrack.h
Xinclude/mlt/framework/mlt_parser.h
Xinclude/mlt/framework/mlt_playlist.h
Xinclude/mlt/framework/mlt_pool.h
Xinclude/mlt/framework/mlt_producer.h
Xinclude/mlt/framework/mlt_profile.h
Xinclude/mlt/framework/mlt_properties.h
Xinclude/mlt/framework/mlt_property.h
Xinclude/mlt/framework/mlt_repository.h
Xinclude/mlt/framework/mlt_service.h
Xinclude/mlt/framework/mlt_tokeniser.h
Xinclude/mlt/framework/mlt_tractor.h
Xinclude/mlt/framework/mlt_transition.h
Xinclude/mlt/framework/mlt_types.h
Xinclude/mlt/miracle/miracle_local.h
Xinclude/mlt/miracle/miracle_log.h
Xinclude/mlt/miracle/miracle_server.h
Xinclude/mlt/valerie/valerie.h
Xinclude/mlt/valerie/valerie_notifier.h
Xinclude/mlt/valerie/valerie_parser.h
Xinclude/mlt/valerie/valerie_remote.h
Xinclude/mlt/valerie/valerie_response.h
Xinclude/mlt/valerie/valerie_socket.h
Xinclude/mlt/valerie/valerie_status.h
Xinclude/mlt/valerie/valerie_tokeniser.h
Xinclude/mlt/valerie/valerie_util.h
Xlib/libmiracle.so
Xlib/libmiracle.so.0.3.2
Xlib/libmiracle.so.1
Xlib/libmlt.so
Xlib/libmlt.so.0.3.2
Xlib/libmlt.so.1
Xlib/libvalerie.so
Xlib/libvalerie.so.0.3.2
Xlib/libvalerie.so.1
X%%AVFORMAT%%lib/mlt/libmltavformat.so
Xlib/mlt/libmltcore.so
Xlib/mlt/libmltdgraft.so
X%%DV%%lib/mlt/libmltdv.so
Xlib/mlt/libmlteffectv.so
Xlib/mlt/libmltfezzik.so
X%%FREI0R%%lib/mlt/libmltfrei0r.so
X%%GTK2%%lib/mlt/libmltgtk2.so
Xlib/mlt/libmltinigo.so
X%%JACKRACK%%lib/mlt/libmltjackrack.so
Xlib/mlt/libmltkdenlive.so
X%%KINO%%lib/mlt/libmltkino.so
Xlib/mlt/libmltmotion_est.so
Xlib/mlt/libmltnormalize.so
Xlib/mlt/libmltoldfilm.so
Xlib/mlt/libmltplus.so
X%%QIMAGE%%lib/mlt/libmltqimage.so
X%%RESAMPLE%%lib/mlt/libmltresample.so
Xlib/mlt/libmltsdl.so
X%%SOX%%lib/mlt/libmltsox.so
Xlib/mlt/libmltvalerie.so
Xlib/mlt/libmltvmfx.so
X%%VORBIS%%lib/mlt/libmltvorbis.so
Xlib/mlt/libmltwestley.so
Xlib/mlt/libmltxine.so
Xlibdata/pkgconfig/mlt-framework.pc
Xlibdata/pkgconfig/mlt-miracle.pc
Xlibdata/pkgconfig/mlt-valerie.pc
X%%AVFORMAT%%%%DATADIR%%/avformat/producer_avformat.yml
X%%DATADIR%%/data_fx.properties
X%%DATADIR%%/feeds/NTSC/data_fx.properties
X%%DATADIR%%/feeds/NTSC/obscure.properties
X%%DATADIR%%/feeds/PAL/border.properties
X%%DATADIR%%/feeds/PAL/data_fx.properties
X%%DATADIR%%/feeds/PAL/etv.properties
X%%DATADIR%%/feeds/PAL/example.properties
X%%DATADIR%%/feeds/PAL/obscure.properties
X%%DATADIR%%/fezzik.dict
X%%DATADIR%%/fezzik.ini
X%%DATADIR%%/lumas/NTSC/luma01.pgm
X%%DATADIR%%/lumas/NTSC/luma02.pgm
X%%DATADIR%%/lumas/NTSC/luma03.pgm
X%%DATADIR%%/lumas/NTSC/luma04.pgm
X%%DATADIR%%/lumas/NTSC/luma05.pgm
X%%DATADIR%%/lumas/NTSC/luma06.pgm
X%%DATADIR%%/lumas/NTSC/luma07.pgm
X%%DATADIR%%/lumas/NTSC/luma08.pgm
X%%DATADIR%%/lumas/NTSC/luma09.pgm
X%%DATADIR%%/lumas/NTSC/luma10.pgm
X%%DATADIR%%/lumas/NTSC/luma11.pgm
X%%DATADIR%%/lumas/NTSC/luma12.pgm
X%%DATADIR%%/lumas/NTSC/luma13.pgm
X%%DATADIR%%/lumas/NTSC/luma14.pgm
X%%DATADIR%%/lumas/NTSC/luma15.pgm
X%%DATADIR%%/lumas/NTSC/luma16.pgm
X%%DATADIR%%/lumas/NTSC/luma17.pgm
X%%DATADIR%%/lumas/NTSC/luma18.pgm
X%%DATADIR%%/lumas/NTSC/luma19.pgm
X%%DATADIR%%/lumas/NTSC/luma20.pgm
X%%DATADIR%%/lumas/NTSC/luma21.pgm
X%%DATADIR%%/lumas/NTSC/luma22.pgm
X%%DATADIR%%/lumas/PAL/luma01.pgm
X%%DATADIR%%/lumas/PAL/luma02.pgm
X%%DATADIR%%/lumas/PAL/luma03.pgm
X%%DATADIR%%/lumas/PAL/luma04.pgm
X%%DATADIR%%/lumas/PAL/luma05.pgm
X%%DATADIR%%/lumas/PAL/luma06.pgm
X%%DATADIR%%/lumas/PAL/luma07.pgm
X%%DATADIR%%/lumas/PAL/luma08.pgm
X%%DATADIR%%/lumas/PAL/luma09.pgm
X%%DATADIR%%/lumas/PAL/luma10.pgm
X%%DATADIR%%/lumas/PAL/luma11.pgm
X%%DATADIR%%/lumas/PAL/luma12.pgm
X%%DATADIR%%/lumas/PAL/luma13.pgm
X%%DATADIR%%/lumas/PAL/luma14.pgm
X%%DATADIR%%/lumas/PAL/luma15.pgm
X%%DATADIR%%/lumas/PAL/luma16.pgm
X%%DATADIR%%/lumas/PAL/luma17.pgm
X%%DATADIR%%/lumas/PAL/luma18.pgm
X%%DATADIR%%/lumas/PAL/luma19.pgm
X%%DATADIR%%/lumas/PAL/luma20.pgm
X%%DATADIR%%/lumas/PAL/luma21.pgm
X%%DATADIR%%/lumas/PAL/luma22.pgm
X%%DATADIR%%/metaschema.yaml
X%%DATADIR%%/oldfilm/dust1.svg
X%%DATADIR%%/oldfilm/dust2.svg
X%%DATADIR%%/oldfilm/dust3.svg
X%%DATADIR%%/oldfilm/dust4.svg
X%%DATADIR%%/oldfilm/dust5.svg
X%%DATADIR%%/oldfilm/fdust.svg
X%%DATADIR%%/oldfilm/filter_dust.yml
X%%DATADIR%%/oldfilm/filter_grain.yml
X%%DATADIR%%/oldfilm/filter_lines.yml
X%%DATADIR%%/oldfilm/filter_oldfilm.yml
X%%DATADIR%%/oldfilm/filter_tcolor.yml
X%%DATADIR%%/oldfilm/filter_vignette.yml
X%%DATADIR%%/oldfilm/grain.svg
X%%DATADIR%%/oldfilm/lines.svg
X%%DATADIR%%/oldfilm/oldfilm.svg
X%%DATADIR%%/oldfilm/tcolor.svg
X%%DATADIR%%/oldfilm/vignette.svg
X%%DATADIR%%/packages.dat
X%%DATADIR%%/profiles/atsc_1080i_60
X%%DATADIR%%/profiles/atsc_1080p_2398
X%%DATADIR%%/profiles/atsc_1080p_24
X%%DATADIR%%/profiles/atsc_1080p_25
X%%DATADIR%%/profiles/atsc_1080p_2997
X%%DATADIR%%/profiles/atsc_1080p_30
X%%DATADIR%%/profiles/atsc_720p_30
X%%DATADIR%%/profiles/cif_ntsc
X%%DATADIR%%/profiles/cif_pal
X%%DATADIR%%/profiles/cvd_ntsc
X%%DATADIR%%/profiles/cvd_pal
X%%DATADIR%%/profiles/dv_ntsc
X%%DATADIR%%/profiles/dv_ntsc_wide
X%%DATADIR%%/profiles/dv_pal
X%%DATADIR%%/profiles/dv_pal_wide
X%%DATADIR%%/profiles/hdv_1080_25p
X%%DATADIR%%/profiles/hdv_1080_30p
X%%DATADIR%%/profiles/hdv_1080_50i
X%%DATADIR%%/profiles/hdv_1080_60i
X%%DATADIR%%/profiles/hdv_720_25p
X%%DATADIR%%/profiles/hdv_720_30p
X%%DATADIR%%/profiles/hdv_720_50p
X%%DATADIR%%/profiles/hdv_720_60p
X%%DATADIR%%/profiles/qcif_ntsc
X%%DATADIR%%/profiles/qcif_pal
X%%DATADIR%%/profiles/quarter_ntsc
X%%DATADIR%%/profiles/quarter_ntsc_wide
X%%DATADIR%%/profiles/quarter_pal
X%%DATADIR%%/profiles/quarter_pal_wide
X%%DATADIR%%/profiles/square_ntsc
X%%DATADIR%%/profiles/square_ntsc_wide
X%%DATADIR%%/profiles/square_pal
X%%DATADIR%%/profiles/square_pal_wide
X%%DATADIR%%/profiles/svcd_ntsc
X%%DATADIR%%/profiles/svcd_ntsc_wide
X%%DATADIR%%/profiles/svcd_pal
X%%DATADIR%%/profiles/svcd_pal_wide
X%%DATADIR%%/profiles/vcd_ntsc
X%%DATADIR%%/profiles/vcd_pal
X%%DATADIR%%/westley.dtd
X@dirrm %%DATADIR%%/profiles
X@dirrm %%DATADIR%%/oldfilm
X@dirrm %%DATADIR%%/lumas/PAL
X@dirrm %%DATADIR%%/lumas/NTSC
X@dirrm %%DATADIR%%/lumas
X@dirrm %%DATADIR%%/feeds/PAL
X@dirrm %%DATADIR%%/feeds/NTSC
X@dirrm %%DATADIR%%/feeds
X%%AVFORMAT%%@dirrm %%DATADIR%%/avformat
X@dirrm %%DATADIR%%
X@dirrm lib/mlt
X@dirrm include/mlt/valerie
X@dirrm include/mlt/miracle
X@dirrm include/mlt/framework
X@dirrm include/mlt
5bb8e672d6d309600f9f3430907e25a2
exit

