[arch-commits] Commit in mlt/repos (4 files)
Antonio Rojas
arojas at archlinux.org
Thu May 6 06:37:19 UTC 2021
Date: Thursday, May 6, 2021 @ 06:37:19
Author: arojas
Revision: 414433
archrelease: copy trunk to staging-x86_64
Added:
mlt/repos/staging-x86_64/
mlt/repos/staging-x86_64/PKGBUILD
(from rev 414432, mlt/trunk/PKGBUILD)
mlt/repos/staging-x86_64/mlt-data-location.patch
(from rev 414432, mlt/trunk/mlt-data-location.patch)
mlt/repos/staging-x86_64/mlt-destdir.patch
(from rev 414432, mlt/trunk/mlt-destdir.patch)
-------------------------+
PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++++++
mlt-data-location.patch | 27 +++++++++++++++++++++
mlt-destdir.patch | 12 +++++++++
3 files changed, 98 insertions(+)
Copied: mlt/repos/staging-x86_64/PKGBUILD (from rev 414432, mlt/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2021-05-06 06:37:19 UTC (rev 414433)
@@ -0,0 +1,59 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Fabian Schoelzel <myfirstname.mylastname at googlemail.com>
+# Contributor: funkyou <spamopfer at nickname.berlin.de>
+# Contributor: tardo <tardo at nagi-fanboi.net>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+
+pkgname=mlt
+pkgver=7.0.0
+pkgrel=4
+pkgdesc='An open source multimedia framework'
+arch=(x86_64)
+url='https://www.mltframework.org'
+license=(GPL)
+depends=(libebur128)
+optdepends=('sdl_image: SDL1 plugin'
+ 'sdl2: SDL2 plugin'
+ 'libsamplerate: libavresample plugin'
+ 'sox: SOX (Audio Swiss Army Knife) plugin'
+ 'ffmpeg: ffmpeg plugin'
+ 'vid.stab: video stabilize plugin'
+ 'qt5-svg: Qt5 plugins'
+ 'jack: JACK sound output plugin'
+ 'ladspa: LADSPA plugins'
+ 'libexif: auto rotate plugin'
+ 'frei0r-plugins: for additional effects'
+ 'movit: opengl plugin'
+ 'opencv: openCV plugin'
+ 'rubberband: rubberband plugin'
+ 'gdk-pixbuf2: gdk plugin'
+ 'pango: gdk plugin'
+ 'rtaudio: rtaudio plugin'
+ 'python: python bindings')
+makedepends=(cmake ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg
+ jack libexif python swig movit eigen opencv rubberband gdk-pixbuf2 pango rtaudio imagemagick)
+source=(https://github.com/mltframework/mlt/archive/v$pkgver/$pkgname-$pkgver.tar.gz
+ mlt-data-location.patch
+ mlt-destdir.patch)
+sha256sums=('91359ff8b911dbd879c687ed4cda10a6dce07786bfa0b3ba9f385e7a6a7a354b'
+ '335f200de9c767de91ce6941774528b8b0a44e2c370890ce3c53322ce23195b5'
+ '87a666fd591259c4021f7469be83daf61faaba74d6cf7c13af0f5c964b3ecf29')
+
+prepare() {
+ patch -d $pkgname-$pkgver -p1 < mlt-data-location.patch # Fix data location
+ patch -d $pkgname-$pkgver -p1 < mlt-destdir.patch # Fix creating melt symlink
+}
+
+build() {
+ cmake -B build -S $pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMOD_OPENCV=ON \
+ -DSWIG_PYTHON=ON
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
Copied: mlt/repos/staging-x86_64/mlt-data-location.patch (from rev 414432, mlt/trunk/mlt-data-location.patch)
===================================================================
--- staging-x86_64/mlt-data-location.patch (rev 0)
+++ staging-x86_64/mlt-data-location.patch 2021-05-06 06:37:19 UTC (rev 414433)
@@ -0,0 +1,27 @@
+From d0ff2b5a6586ddc0a0509c016ae56bdb80741034 Mon Sep 17 00:00:00 2001
+From: Dan Dennedy <dan at dennedy.org>
+Date: Mon, 3 May 2021 15:20:24 -0700
+Subject: [PATCH] fix installed build cannot finds its modules and data
+
+---
+ CMakeLists.txt | 2 +-
+ Dockerfile | 2 --
+ src/framework/CMakeLists.txt | 5 +----
+ 3 files changed, 2 insertions(+), 7 deletions(-)
+
+diff --git a/src/framework/CMakeLists.txt b/src/framework/CMakeLists.txt
+index 91e32d45d..7be23640d 100644
+--- a/src/framework/CMakeLists.txt
++++ b/src/framework/CMakeLists.txt
+@@ -101,10 +101,7 @@ if(WIN32)
+ endif()
+
+ if(NOT (WIN32 OR (APPLE AND RELOCATABLE)))
+- target_compile_definitions(mlt PRIVATE
+- $<BUILD_INTERFACE:PREFIX_DATA="${MLT_DATA_OUTPUT_DIRECTORY}" PREFIX_LIB="${MLT_MODULE_OUTPUT_DIRECTORY}">
+- $<INSTALL_INTERFACE:PREFIX_DATA="${CMAKE_INSTALL_FULL_DATADIR}/mlt-${MLT_VERSION_MAJOR}" PREFIX_LIB="${CMAKE_INSTALL_FULL_LIBDIR}/mlt-${MLT_VERSION_MAJOR}">
+- )
++ target_compile_definitions(mlt PRIVATE PREFIX_DATA="${CMAKE_INSTALL_FULL_DATADIR}/mlt-${MLT_VERSION_MAJOR}" PREFIX_LIB="${CMAKE_INSTALL_FULL_LIBDIR}/mlt-${MLT_VERSION_MAJOR}")
+ target_link_options(mlt PRIVATE -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/mlt.vers)
+ set_target_properties(mlt PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/mlt.vers)
+ elseif(APPLE AND RELOCATABLE)
Copied: mlt/repos/staging-x86_64/mlt-destdir.patch (from rev 414432, mlt/trunk/mlt-destdir.patch)
===================================================================
--- staging-x86_64/mlt-destdir.patch (rev 0)
+++ staging-x86_64/mlt-destdir.patch 2021-05-06 06:37:19 UTC (rev 414433)
@@ -0,0 +1,12 @@
+diff --git a/src/melt/CMakeLists.txt b/src/melt/CMakeLists.txt
+index 921edd06..bb7969d7 100644
+--- a/src/melt/CMakeLists.txt
++++ b/src/melt/CMakeLists.txt
+@@ -23,6 +23,6 @@ if(WIN32 OR APPLE)
+ else()
+ install(PROGRAMS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/melt" DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME melt-${MLT_VERSION_MAJOR})
+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink melt-${MLT_VERSION_MAJOR} melt \
+- WORKING_DIRECTORY ${CMAKE_INSTALL_FULL_BINDIR})"
++ WORKING_DIRECTORY \$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_BINDIR})"
+ )
+ endif()
More information about the arch-commits
mailing list