pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mlt: Flowblade support



Module Name:	pkgsrc-wip
Committed By:	nia <nia%NetBSD.org@localhost>
Pushed By:	nee
Date:		Fri Oct 4 18:48:40 2019 +0100
Changeset:	09c19acf6099470431b59960564be569ac6dfd74

Modified Files:
	Makefile
	mlt/DESCR
	mlt/Makefile
	mlt/PLIST
Added Files:
	mlt/Makefile.common
	py-mlt/DESCR
	py-mlt/Makefile
	py-mlt/PLIST
	py-mlt/distinfo
	py-mlt/patches/patch-src_swig_python_build

Log Message:
mlt: Flowblade support

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=09c19acf6099470431b59960564be569ac6dfd74

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                   |  1 +
 mlt/DESCR                                  | 12 +++++-----
 mlt/Makefile                               | 13 ++++++-----
 mlt/Makefile.common                        |  8 +++++++
 mlt/PLIST                                  |  9 +++++---
 py-mlt/DESCR                               |  8 +++++++
 py-mlt/Makefile                            | 37 ++++++++++++++++++++++++++++++
 py-mlt/PLIST                               |  3 +++
 py-mlt/distinfo                            |  7 ++++++
 py-mlt/patches/patch-src_swig_python_build | 22 ++++++++++++++++++
 10 files changed, 105 insertions(+), 15 deletions(-)

diffs:
diff --git a/Makefile b/Makefile
index 8b80530d33..c8574b9507 100644
--- a/Makefile
+++ b/Makefile
@@ -3660,6 +3660,7 @@ SUBDIR+=	py-minecraft
 SUBDIR+=	py-minepy
 SUBDIR+=	py-minidb
 SUBDIR+=	py-mipp
+SUBDIR+=	py-mlt
 SUBDIR+=	py-mmLib
 SUBDIR+=	py-mne
 SUBDIR+=	py-mochi
diff --git a/mlt/DESCR b/mlt/DESCR
index 2cf8d8737f..3bb1a96adf 100644
--- a/mlt/DESCR
+++ b/mlt/DESCR
@@ -1,6 +1,6 @@
-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.
+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.
diff --git a/mlt/Makefile b/mlt/Makefile
index a5f90cd948..00c467baa1 100644
--- a/mlt/Makefile
+++ b/mlt/Makefile
@@ -1,10 +1,8 @@
 # $NetBSD: Makefile,v 1.97 2019/07/21 22:25:27 wiz Exp $
 
-DISTNAME=	mlt-6.16.0
+.include "Makefile.common"
+
 CATEGORIES=	multimedia
-MASTER_SITES=	${MASTER_SITE_GITHUB:=mltframework/}
-GITHUB_PROJECT=	mlt
-GITHUB_RELEASE=	v${PKGVERSION_NOREV}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://www.mltframework.org/
@@ -31,14 +29,17 @@ PKGCONFIG_OVERRIDE+=	mlt-framework.pc.in
 post-configure:
 	${TOUCH} ${WRKSRC}/src/modules/disable-jackrack
 	${TOUCH} ${WRKSRC}/src/modules/disable-ndi
-	${TOUCH} ${WRKSRC}/src/modules/disable-sdl
 	${TOUCH} ${WRKSRC}/src/modules/disable-swfdec
+	# disable this until flowblade supports it
+	# https://github.com/jliljebl/flowblade/issues/603
+	${TOUCH} ${WRKSRC}/src/modules/disable-sdl2
 
 .include "../../audio/libebur128/buildlink3.mk"
 .include "../../audio/libsamplerate/buildlink3.mk"
 .include "../../audio/libvorbis/buildlink3.mk"
 .include "../../audio/sox/buildlink3.mk"
-.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../graphics/SDL_image/buildlink3.mk"
 .include "../../graphics/libexif/buildlink3.mk"
 .include "../../math/fftw/buildlink3.mk"
 .include "../../multimedia/ffmpeg4/buildlink3.mk"
diff --git a/mlt/Makefile.common b/mlt/Makefile.common
new file mode 100644
index 0000000000..92fd51d16f
--- /dev/null
+++ b/mlt/Makefile.common
@@ -0,0 +1,8 @@
+# $NetBSD$
+# used by wip/mlt/Makefile
+# used by wip/py-mlt/Makefile
+
+DISTNAME=	mlt-6.16.0
+MASTER_SITES=	${MASTER_SITE_GITHUB:=mltframework/}
+GITHUB_PROJECT=	mlt
+GITHUB_RELEASE=	v${PKGVERSION_NOREV}
diff --git a/mlt/PLIST b/mlt/PLIST
index 8f23b1194c..9646e22d53 100644
--- a/mlt/PLIST
+++ b/mlt/PLIST
@@ -74,7 +74,7 @@ lib/mlt/libmltplus.so
 lib/mlt/libmltplusgpl.so
 lib/mlt/libmltqt.so
 lib/mlt/libmltresample.so
-lib/mlt/libmltsdl2.so
+lib/mlt/libmltsdl.so
 lib/mlt/libmltsox.so
 lib/mlt/libmltvideostab.so
 lib/mlt/libmltvmfx.so
@@ -497,8 +497,11 @@ share/mlt/qt/producer_qtext.yml
 share/mlt/qt/transition_qtblend.yml
 share/mlt/qt/transition_vqm.yml
 share/mlt/resample/filter_resample.yml
-share/mlt/sdl2/consumer_sdl2.yml
-share/mlt/sdl2/consumer_sdl2_audio.yml
+share/mlt/sdl/consumer_sdl.yml
+share/mlt/sdl/consumer_sdl_audio.yml
+share/mlt/sdl/consumer_sdl_preview.yml
+share/mlt/sdl/consumer_sdl_still.yml
+share/mlt/sdl/producer_sdl_image.yml
 share/mlt/sox/filter_sox.yml
 share/mlt/sox/filter_sox_effect.yml
 share/mlt/videostab/filter_videostab.yml
diff --git a/py-mlt/DESCR b/py-mlt/DESCR
new file mode 100644
index 0000000000..99a14e48c2
--- /dev/null
+++ b/py-mlt/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.
+
+This package contains the Python bindings for MLT.
diff --git a/py-mlt/Makefile b/py-mlt/Makefile
new file mode 100644
index 0000000000..c5f261a43a
--- /dev/null
+++ b/py-mlt/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+.include "../../wip/mlt/Makefile.common"
+
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	multimedia python
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://www.mltframework.org/
+COMMENT=	Open source multimedia framework (Python bindings)
+LICENSE=	gnu-gpl-v3
+
+TOOL_DEPENDS+=	swig3-[0-9]*:../../devel/swig3
+
+USE_LANGUAGES=	c c++
+
+CXXFLAGS+=	-DHAVE_LOCALE_H
+
+MAKE_ENV+=	PYVERSSUFFIX=${PYVERSSUFFIX}
+
+PY_PATCHPLIST=	yes
+
+INSTALLATION_DIRS+=	${PYSITELIB}
+
+do-build:
+	cd ${WRKSRC}/src/swig/python && ${MAKE_ENV} ./build
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/src/swig/python/mlt.py \
+		${DESTDIR}${PREFIX}/${PYSITELIB}/mlt.py
+	${INSTALL_LIB} ${WRKSRC}/src/swig/python/_mlt.so \
+		${DESTDIR}${PREFIX}/${PYSITELIB}/_mlt.so
+
+.include "../../lang/python/extension.mk"
+.include "../../lang/python/tool.mk"
+.include "../../wip/mlt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-mlt/PLIST b/py-mlt/PLIST
new file mode 100644
index 0000000000..def8c3ad47
--- /dev/null
+++ b/py-mlt/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+${PYSITELIB}/_mlt.so
+${PYSITELIB}/mlt.py
diff --git a/py-mlt/distinfo b/py-mlt/distinfo
new file mode 100644
index 0000000000..a0132c132c
--- /dev/null
+++ b/py-mlt/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (mlt-6.16.0.tar.gz) = 9048a0dbc9f9654526bcc57f01a6c04f03499bee
+RMD160 (mlt-6.16.0.tar.gz) = 6ee6d8e4e7a922d962a69d778b92e469486e11db
+SHA512 (mlt-6.16.0.tar.gz) = 554e8b9baa7a8578cc52315fe0583c61762bf6fbbcdd4a1e4f25753846d92f013e7d74745498625fcc781de993aa0526fd761920450b4314e67105783b9bde26
+Size (mlt-6.16.0.tar.gz) = 1414374 bytes
+SHA1 (patch-src_swig_python_build) = 4907a9247fc587ca06574c4e69e97c2a0dae155b
diff --git a/py-mlt/patches/patch-src_swig_python_build b/py-mlt/patches/patch-src_swig_python_build
new file mode 100644
index 0000000000..0fc5a573b2
--- /dev/null
+++ b/py-mlt/patches/patch-src_swig_python_build
@@ -0,0 +1,22 @@
+$NetBSD$
+
+Correct swig executable.
+
+--- src/swig/python/build.orig	2019-05-08 02:27:10.000000000 +0000
++++ src/swig/python/build
+@@ -20,13 +20,13 @@ then
+ 	ln -sf ../mlt.i
+ 
+ 	# Invoke swig
+-	swig -c++ -I../../mlt++ -I../.. -python mlt.i || exit $?
++	swig3.0 -c++ -I../../mlt++ -I../.. -python mlt.i || exit $?
+ 
+ 	# Compile the wrapper
+ 	${CXX} -fPIC -D_GNU_SOURCE ${CXXFLAGS} -c -I../.. -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $?
+ 
+ 	# Create the module
+-	${CXX} ${CXXFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++ -L../../framework -lmlt $(python-config --ldflags) -o _mlt.so || exit $?
++	${CXX} ${LDFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++ -L../../framework -lmlt $(python${PYVERSSUFFIX}-config --ldflags) -o _mlt.so || exit $?
+ else
+ 	echo Python not installed.
+ 	exit 1


Home | Main Index | Thread Index | Old Index