aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mlt
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2009-01-29 18:58:44 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2009-01-29 18:58:44 +0000
commit7eeba05951e543128c35244f57053a0b406f39fc (patch)
treee24d774a0c5b94e64e74d598a70a5cfa3a8e4947 /multimedia/mlt
parent87cc1411172a5baea4ed85cecc909c8a25e2776b (diff)
downloadports-7eeba05951e543128c35244f57053a0b406f39fc.tar.gz
ports-7eeba05951e543128c35244f57053a0b406f39fc.zip
Notes
Diffstat (limited to 'multimedia/mlt')
-rw-r--r--multimedia/mlt/Makefile165
-rw-r--r--multimedia/mlt/distinfo3
-rw-r--r--multimedia/mlt/files/patch-src-modules-sox-filter_sox.c11
-rw-r--r--multimedia/mlt/pkg-descr8
-rw-r--r--multimedia/mlt/pkg-plist206
5 files changed, 393 insertions, 0 deletions
diff --git a/multimedia/mlt/Makefile b/multimedia/mlt/Makefile
new file mode 100644
index 000000000000..53ed3f46ac17
--- /dev/null
+++ b/multimedia/mlt/Makefile
@@ -0,0 +1,165 @@
+# New ports collection makefile for: mlt
+# Date created: 7 October 2008
+# Whom: Alberto Villa <villa.alberto@gmail.com>
+#
+# $FreeBSD$
+
+PORTNAME= mlt
+PORTVERSION= 0.3.2
+CATEGORIES= multimedia
+MASTER_SITES= SFE
+
+MAINTAINER= villa.alberto@gmail.com
+COMMENT= A multimedia framework and video playout server for TV broadcasting
+
+USE_GNOME= libxml2 gnomehack
+USE_QT_VER= 4
+QT_COMPONENTS= #will be defined later
+USE_SDL= image
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-debug \
+ --enable-gpl \
+ --enable-sdl \
+ --enable-westley
+USE_GMAKE= yes
+CFLAGS+= -I${LOCALBASE}/include
+MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
+USE_LDCONFIG= yes
+
+PORTDOCS= AUTHORS ChangeLog COPYING \
+ GPL NEWS README docs demo
+
+OPTIONS= AVFORMAT "Avformat module" on \
+ DV "Quasar DV Codec module" on \
+ FREI0R "Frei0r module" on \
+ GTK2 "GTK2 module" on \
+ JACKRACK "JACK Rack module" on \
+ KINO "Kino module" on \
+ MMX "MMX support (could have problems on 64 bits CPUs)" on \
+ QIMAGE "Qimage module" on \
+ RESAMPLE "Secret Rabbit Code module" on \
+ SOX "Sound eXchange module" on \
+ VORBIS "Vorbis module" on
+
+.include <bsd.port.pre.mk>
+
+.ifdef(WITH_AVFORMAT)
+# one of them could be disabled
+LIB_DEPENDS+= avformat.1:${PORTSDIR}/multimedia/ffmpeg \
+ swscale.1:${PORTSDIR}/multimedia/ffmpeg
+CONFIGURE_ARGS+= --enable-avformat \
+ --avformat-swscale
+PLIST_SUB+= AVFORMAT=""
+.else
+CONFIGURE_ARGS+= --disable-avformat
+PLIST_SUB+= AVFORMAT="@comment "
+.endif
+
+.ifdef(WITH_DV)
+LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv
+CONFIGURE_ARGS+= --enable-dv
+PLIST_SUB+= DV=""
+.else
+CONFIGURE_ARGS+= --disable-dv
+PLIST_SUB+= DV="@comment "
+.endif
+
+.ifdef(WITH_FREI0R)
+BUILD_DEPENDS+= ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
+CONFIGURE_ARGS+= --enable-frei0r
+PLIST_SUB+= FREI0R=""
+.else
+CONFIGURE_ARGS+= --disable-frei0r
+PLIST_SUB+= FREI0R="@comment "
+.endif
+
+.ifdef(WITH_GTK2)
+CONFIGURE_ARGS+= --enable-gtk2
+USE_GNOME+= gdkpixbuf gtk20 pango
+PLIST_SUB+= GTK2=""
+.else
+CONFIGURE_ARGS+= --disable-gtk2
+PLIST_SUB+= GTK2="@comment "
+.endif
+
+.ifdef(WITH_JACKRACK)
+LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
+BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
+CONFIGURE_ARGS+= --enable-jackrack
+PLIST_SUB+= JACKRACK=""
+.else
+CONFIGURE_ARGS+= --disable-jackrack
+PLIST_SUB+= JACKRACK="@comment "
+.endif
+
+.ifdef(WITH_KINO)
+LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv \
+ quicktime.0:${PORTSDIR}/multimedia/libquicktime
+CONFIGURE_ARGS+= --enable-kino
+PLIST_SUB+= KINO=""
+.else
+CONFIGURE+ARGS+= --disable-kino
+PLIST_SUB+= KINO="@comment "
+.endif
+
+.if defined(WITH_MMX) && ${MACHINE_CPU:Mmmx} != ""
+CONFIGURE_ARGS+= --enable-mmx
+.else
+CONFIGURE_ARGS+= --disable-mmx
+.endif
+
+.ifdef(WITH_QIMAGE)
+CONFIGURE_ARGS+= --enable-qimage \
+ --qimage-includedir="${QT_INCDIR}" \
+ --qimage-libdir="${QT_LIBDIR}"
+QT_COMPONENTS+= gui
+PLIST_SUB+= QIMAGE=""
+.else
+CONFIGURE_ARGS+= --disable-qimage
+PLIST_SUB+= QIMAGE="@comment "
+.endif
+
+.ifdef(WITH_RESAMPLE)
+LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
+CONFIGURE_ARGS+= --enable-resample
+PLIST_SUB+= RESAMPLE=""
+.else
+CONFIGURE_ARGS+= --disable-resample
+PLIST_SUB+= RESAMPLE="@comment "
+.endif
+
+.ifdef(WITH_SOX)
+LIB_DEPENDS+= sox.1:${PORTSDIR}/audio/sox
+CONFIGURE_ARGS+= --enable-sox
+PLIST_SUB+= SOX=""
+.else
+CONFIGURE_ARGS+= --disable-sox
+PLIST_SUB+= SOX="@comment "
+.endif
+
+.ifdef(WITH_VORBIS)
+LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
+CONFIGURE_ARGS+= --enable-vorbis
+PLIST_SUB+= VORBIS=""
+.else
+CONFIGURE_ARGS+= --disable-vorbis
+PLIST_SUB+= VORBIS="@comment "
+.endif
+
+pre-configure:
+ @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/src/framework/Makefile \
+ ${WRKSRC}/src/valerie/Makefile
+ @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
+ ${WRKSRC}/Makefile
+
+post-install:
+.ifndef(NOPORTDOCS)
+.for f in ${PORTDOCS}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/mlt/distinfo b/multimedia/mlt/distinfo
new file mode 100644
index 000000000000..7d4036477519
--- /dev/null
+++ b/multimedia/mlt/distinfo
@@ -0,0 +1,3 @@
+MD5 (mlt-0.3.2.tar.gz) = 0b463e1cef1d03fd06742eb3303b0dd4
+SHA256 (mlt-0.3.2.tar.gz) = b04cb4bf34d27a990e41ff2cf7649602c2124a9db1d1155f422f999292591a8a
+SIZE (mlt-0.3.2.tar.gz) = 706318
diff --git a/multimedia/mlt/files/patch-src-modules-sox-filter_sox.c b/multimedia/mlt/files/patch-src-modules-sox-filter_sox.c
new file mode 100644
index 000000000000..ff8b95e5be18
--- /dev/null
+++ b/multimedia/mlt/files/patch-src-modules-sox-filter_sox.c
@@ -0,0 +1,11 @@
+--- src/modules/sox/filter_sox.c.orig 2008-12-20 13:29:19.000000000 +0100
++++ src/modules/sox/filter_sox.c 2008-12-20 13:29:28.000000000 +0100
+@@ -35,7 +35,7 @@
+ # define ST_SUCCESS SOX_SUCCESS
+ # define st_sample_t sox_sample_t
+ # define eff_t sox_effect_t*
+-# define st_size_t sox_size_t
++# define st_size_t size_t
+ # define ST_LIB_VERSION_CODE SOX_LIB_VERSION_CODE
+ # define ST_LIB_VERSION SOX_LIB_VERSION
+ # define ST_SIGNED_WORD_TO_SAMPLE(d,clips) SOX_SIGNED_16BIT_TO_SAMPLE(d,clips)
diff --git a/multimedia/mlt/pkg-descr b/multimedia/mlt/pkg-descr
new file mode 100644
index 000000000000..90b7885c8be5
--- /dev/null
+++ b/multimedia/mlt/pkg-descr
@@ -0,0 +1,8 @@
+MLT is an open source multimedia framework, designed and developed for
+television broadcasting. It provides a toolkit for broadcasters, video
+editors, media players, transcoders, web streamers and many more types of
+applications. The functionality of the system is provided via an assortment
+of ready to use tools, XML authoring components, and an extensible plug-in
+based API.
+
+WWW: http://www.mltframework.org
diff --git a/multimedia/mlt/pkg-plist b/multimedia/mlt/pkg-plist
new file mode 100644
index 000000000000..3d61cf38e963
--- /dev/null
+++ b/multimedia/mlt/pkg-plist
@@ -0,0 +1,206 @@
+bin/albino
+bin/humperdink
+bin/inigo
+bin/miracle
+bin/mlt-config
+include/mlt/framework/mlt.h
+include/mlt/framework/mlt_consumer.h
+include/mlt/framework/mlt_deque.h
+include/mlt/framework/mlt_events.h
+include/mlt/framework/mlt_factory.h
+include/mlt/framework/mlt_field.h
+include/mlt/framework/mlt_filter.h
+include/mlt/framework/mlt_frame.h
+include/mlt/framework/mlt_geometry.h
+include/mlt/framework/mlt_multitrack.h
+include/mlt/framework/mlt_parser.h
+include/mlt/framework/mlt_playlist.h
+include/mlt/framework/mlt_pool.h
+include/mlt/framework/mlt_producer.h
+include/mlt/framework/mlt_profile.h
+include/mlt/framework/mlt_properties.h
+include/mlt/framework/mlt_property.h
+include/mlt/framework/mlt_repository.h
+include/mlt/framework/mlt_service.h
+include/mlt/framework/mlt_tokeniser.h
+include/mlt/framework/mlt_tractor.h
+include/mlt/framework/mlt_transition.h
+include/mlt/framework/mlt_types.h
+include/mlt/miracle/miracle_local.h
+include/mlt/miracle/miracle_log.h
+include/mlt/miracle/miracle_server.h
+include/mlt/valerie/valerie.h
+include/mlt/valerie/valerie_notifier.h
+include/mlt/valerie/valerie_parser.h
+include/mlt/valerie/valerie_remote.h
+include/mlt/valerie/valerie_response.h
+include/mlt/valerie/valerie_socket.h
+include/mlt/valerie/valerie_status.h
+include/mlt/valerie/valerie_tokeniser.h
+include/mlt/valerie/valerie_util.h
+lib/libmiracle.so
+lib/libmiracle.so.0.3.2
+lib/libmiracle.so.1
+lib/libmlt.so
+lib/libmlt.so.0.3.2
+lib/libmlt.so.1
+lib/libvalerie.so
+lib/libvalerie.so.0.3.2
+lib/libvalerie.so.1
+%%AVFORMAT%%lib/mlt/libmltavformat.so
+lib/mlt/libmltcore.so
+lib/mlt/libmltdgraft.so
+%%DV%%lib/mlt/libmltdv.so
+lib/mlt/libmlteffectv.so
+lib/mlt/libmltfezzik.so
+%%FREI0R%%lib/mlt/libmltfrei0r.so
+%%GTK2%%lib/mlt/libmltgtk2.so
+lib/mlt/libmltinigo.so
+%%JACKRACK%%lib/mlt/libmltjackrack.so
+lib/mlt/libmltkdenlive.so
+%%KINO%%lib/mlt/libmltkino.so
+lib/mlt/libmltmotion_est.so
+lib/mlt/libmltnormalize.so
+lib/mlt/libmltoldfilm.so
+lib/mlt/libmltplus.so
+%%QIMAGE%%lib/mlt/libmltqimage.so
+%%RESAMPLE%%lib/mlt/libmltresample.so
+lib/mlt/libmltsdl.so
+%%SOX%%lib/mlt/libmltsox.so
+lib/mlt/libmltvalerie.so
+lib/mlt/libmltvmfx.so
+%%VORBIS%%lib/mlt/libmltvorbis.so
+lib/mlt/libmltwestley.so
+lib/mlt/libmltxine.so
+libdata/pkgconfig/mlt-framework.pc
+libdata/pkgconfig/mlt-miracle.pc
+libdata/pkgconfig/mlt-valerie.pc
+%%AVFORMAT%%%%DATADIR%%/avformat/producer_avformat.yml
+%%DATADIR%%/data_fx.properties
+%%DATADIR%%/feeds/NTSC/data_fx.properties
+%%DATADIR%%/feeds/NTSC/obscure.properties
+%%DATADIR%%/feeds/PAL/border.properties
+%%DATADIR%%/feeds/PAL/data_fx.properties
+%%DATADIR%%/feeds/PAL/etv.properties
+%%DATADIR%%/feeds/PAL/example.properties
+%%DATADIR%%/feeds/PAL/obscure.properties
+%%DATADIR%%/fezzik.dict
+%%DATADIR%%/fezzik.ini
+%%DATADIR%%/lumas/NTSC/luma01.pgm
+%%DATADIR%%/lumas/NTSC/luma02.pgm
+%%DATADIR%%/lumas/NTSC/luma03.pgm
+%%DATADIR%%/lumas/NTSC/luma04.pgm
+%%DATADIR%%/lumas/NTSC/luma05.pgm
+%%DATADIR%%/lumas/NTSC/luma06.pgm
+%%DATADIR%%/lumas/NTSC/luma07.pgm
+%%DATADIR%%/lumas/NTSC/luma08.pgm
+%%DATADIR%%/lumas/NTSC/luma09.pgm
+%%DATADIR%%/lumas/NTSC/luma10.pgm
+%%DATADIR%%/lumas/NTSC/luma11.pgm
+%%DATADIR%%/lumas/NTSC/luma12.pgm
+%%DATADIR%%/lumas/NTSC/luma13.pgm
+%%DATADIR%%/lumas/NTSC/luma14.pgm
+%%DATADIR%%/lumas/NTSC/luma15.pgm
+%%DATADIR%%/lumas/NTSC/luma16.pgm
+%%DATADIR%%/lumas/NTSC/luma17.pgm
+%%DATADIR%%/lumas/NTSC/luma18.pgm
+%%DATADIR%%/lumas/NTSC/luma19.pgm
+%%DATADIR%%/lumas/NTSC/luma20.pgm
+%%DATADIR%%/lumas/NTSC/luma21.pgm
+%%DATADIR%%/lumas/NTSC/luma22.pgm
+%%DATADIR%%/lumas/PAL/luma01.pgm
+%%DATADIR%%/lumas/PAL/luma02.pgm
+%%DATADIR%%/lumas/PAL/luma03.pgm
+%%DATADIR%%/lumas/PAL/luma04.pgm
+%%DATADIR%%/lumas/PAL/luma05.pgm
+%%DATADIR%%/lumas/PAL/luma06.pgm
+%%DATADIR%%/lumas/PAL/luma07.pgm
+%%DATADIR%%/lumas/PAL/luma08.pgm
+%%DATADIR%%/lumas/PAL/luma09.pgm
+%%DATADIR%%/lumas/PAL/luma10.pgm
+%%DATADIR%%/lumas/PAL/luma11.pgm
+%%DATADIR%%/lumas/PAL/luma12.pgm
+%%DATADIR%%/lumas/PAL/luma13.pgm
+%%DATADIR%%/lumas/PAL/luma14.pgm
+%%DATADIR%%/lumas/PAL/luma15.pgm
+%%DATADIR%%/lumas/PAL/luma16.pgm
+%%DATADIR%%/lumas/PAL/luma17.pgm
+%%DATADIR%%/lumas/PAL/luma18.pgm
+%%DATADIR%%/lumas/PAL/luma19.pgm
+%%DATADIR%%/lumas/PAL/luma20.pgm
+%%DATADIR%%/lumas/PAL/luma21.pgm
+%%DATADIR%%/lumas/PAL/luma22.pgm
+%%DATADIR%%/metaschema.yaml
+%%DATADIR%%/oldfilm/dust1.svg
+%%DATADIR%%/oldfilm/dust2.svg
+%%DATADIR%%/oldfilm/dust3.svg
+%%DATADIR%%/oldfilm/dust4.svg
+%%DATADIR%%/oldfilm/dust5.svg
+%%DATADIR%%/oldfilm/fdust.svg
+%%DATADIR%%/oldfilm/filter_dust.yml
+%%DATADIR%%/oldfilm/filter_grain.yml
+%%DATADIR%%/oldfilm/filter_lines.yml
+%%DATADIR%%/oldfilm/filter_oldfilm.yml
+%%DATADIR%%/oldfilm/filter_tcolor.yml
+%%DATADIR%%/oldfilm/filter_vignette.yml
+%%DATADIR%%/oldfilm/grain.svg
+%%DATADIR%%/oldfilm/lines.svg
+%%DATADIR%%/oldfilm/oldfilm.svg
+%%DATADIR%%/oldfilm/tcolor.svg
+%%DATADIR%%/oldfilm/vignette.svg
+%%DATADIR%%/packages.dat
+%%DATADIR%%/profiles/atsc_1080i_60
+%%DATADIR%%/profiles/atsc_1080p_2398
+%%DATADIR%%/profiles/atsc_1080p_24
+%%DATADIR%%/profiles/atsc_1080p_25
+%%DATADIR%%/profiles/atsc_1080p_2997
+%%DATADIR%%/profiles/atsc_1080p_30
+%%DATADIR%%/profiles/atsc_720p_30
+%%DATADIR%%/profiles/cif_ntsc
+%%DATADIR%%/profiles/cif_pal
+%%DATADIR%%/profiles/cvd_ntsc
+%%DATADIR%%/profiles/cvd_pal
+%%DATADIR%%/profiles/dv_ntsc
+%%DATADIR%%/profiles/dv_ntsc_wide
+%%DATADIR%%/profiles/dv_pal
+%%DATADIR%%/profiles/dv_pal_wide
+%%DATADIR%%/profiles/hdv_1080_25p
+%%DATADIR%%/profiles/hdv_1080_30p
+%%DATADIR%%/profiles/hdv_1080_50i
+%%DATADIR%%/profiles/hdv_1080_60i
+%%DATADIR%%/profiles/hdv_720_25p
+%%DATADIR%%/profiles/hdv_720_30p
+%%DATADIR%%/profiles/hdv_720_50p
+%%DATADIR%%/profiles/hdv_720_60p
+%%DATADIR%%/profiles/qcif_ntsc
+%%DATADIR%%/profiles/qcif_pal
+%%DATADIR%%/profiles/quarter_ntsc
+%%DATADIR%%/profiles/quarter_ntsc_wide
+%%DATADIR%%/profiles/quarter_pal
+%%DATADIR%%/profiles/quarter_pal_wide
+%%DATADIR%%/profiles/square_ntsc
+%%DATADIR%%/profiles/square_ntsc_wide
+%%DATADIR%%/profiles/square_pal
+%%DATADIR%%/profiles/square_pal_wide
+%%DATADIR%%/profiles/svcd_ntsc
+%%DATADIR%%/profiles/svcd_ntsc_wide
+%%DATADIR%%/profiles/svcd_pal
+%%DATADIR%%/profiles/svcd_pal_wide
+%%DATADIR%%/profiles/vcd_ntsc
+%%DATADIR%%/profiles/vcd_pal
+%%DATADIR%%/westley.dtd
+@dirrm %%DATADIR%%/profiles
+@dirrm %%DATADIR%%/oldfilm
+@dirrm %%DATADIR%%/lumas/PAL
+@dirrm %%DATADIR%%/lumas/NTSC
+@dirrm %%DATADIR%%/lumas
+@dirrm %%DATADIR%%/feeds/PAL
+@dirrm %%DATADIR%%/feeds/NTSC
+@dirrm %%DATADIR%%/feeds
+%%AVFORMAT%%@dirrm %%DATADIR%%/avformat
+@dirrm %%DATADIR%%
+@dirrm lib/mlt
+@dirrm include/mlt/valerie
+@dirrm include/mlt/miracle
+@dirrm include/mlt/framework
+@dirrm include/mlt