[arch-commits] Commit in mlt/repos/extra-x86_64 (3 files)

Antonio Rojas arojas at archlinux.org
Tue May 4 16:16:30 UTC 2021


    Date: Tuesday, May 4, 2021 @ 16:16:29
  Author: arojas
Revision: 414372

archrelease: copy trunk to extra-x86_64

Added:
  mlt/repos/extra-x86_64/PKGBUILD
    (from rev 414371, mlt/trunk/PKGBUILD)
  mlt/repos/extra-x86_64/mlt-data-location.patch
    (from rev 414371, mlt/trunk/mlt-data-location.patch)
Deleted:
  mlt/repos/extra-x86_64/PKGBUILD

-------------------------+
 PKGBUILD                |  106 ++++++++++++++++++++++++----------------------
 mlt-data-location.patch |   27 +++++++++++
 2 files changed, 83 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-04 16:16:14 UTC (rev 414371)
+++ PKGBUILD	2021-05-04 16:16:29 UTC (rev 414372)
@@ -1,50 +0,0 @@
-# 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=2
-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)
-sha256sums=('91359ff8b911dbd879c687ed4cda10a6dce07786bfa0b3ba9f385e7a6a7a354b')
-
-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/extra-x86_64/PKGBUILD (from rev 414371, mlt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-04 16:16:29 UTC (rev 414372)
@@ -0,0 +1,56 @@
+# 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=3
+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)
+sha256sums=('91359ff8b911dbd879c687ed4cda10a6dce07786bfa0b3ba9f385e7a6a7a354b'
+            '335f200de9c767de91ce6941774528b8b0a44e2c370890ce3c53322ce23195b5')
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < mlt-data-location.patch # Fix data location
+}
+
+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/extra-x86_64/mlt-data-location.patch (from rev 414371, mlt/trunk/mlt-data-location.patch)
===================================================================
--- mlt-data-location.patch	                        (rev 0)
+++ mlt-data-location.patch	2021-05-04 16:16:29 UTC (rev 414372)
@@ -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)



More information about the arch-commits mailing list