[135968] trunk/dports/multimedia/lmms

ryandesign at macports.org ryandesign at macports.org
Fri May 8 04:08:58 PDT 2015


Revision: 135968
          https://trac.macports.org/changeset/135968
Author:   ryandesign at macports.org
Date:     2015-05-08 04:08:58 -0700 (Fri, 08 May 2015)
Log Message:
-----------
lmms: update to 1.1.3

Modified Paths:
--------------
    trunk/dports/multimedia/lmms/Portfile

Added Paths:
-----------
    trunk/dports/multimedia/lmms/files/patch-CMakeLists.txt.diff
    trunk/dports/multimedia/lmms/files/patch-data-lmms.plist.in.diff
    trunk/dports/multimedia/lmms/files/patch-data-scripts-create_apple_bundle.sh.in.diff

Modified: trunk/dports/multimedia/lmms/Portfile
===================================================================
--- trunk/dports/multimedia/lmms/Portfile	2015-05-08 10:44:15 UTC (rev 135967)
+++ trunk/dports/multimedia/lmms/Portfile	2015-05-08 11:08:58 UTC (rev 135968)
@@ -2,16 +2,11 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           app 1.0
 PortGroup           cmake 1.0
+PortGroup           github 1.0
 PortGroup           qt4 1.0
 
-# cmake/modules/DetectMachine.cmake tries to detect bitness
-PortGroup           muniversal 1.0
-
-name                lmms
-version             1.0.1
-revision            1
+github.setup        LMMS lmms 1.1.3 v
 categories          multimedia
 maintainers         ryandesign openmaintainer
 license             GPL-2+
@@ -23,17 +18,16 @@
                     You can have fun with your MIDI-keyboard and much more, all in a user-friendly and \
                     modern interface.
 
-homepage            http://lmms.sourceforge.net
+homepage            https://lmms.io/
 platforms           darwin
-master_sites        sourceforge:project/lmms/lmms/${version}
-use_bzip2           yes
-distfiles           ${name}-${version}-src${extract.suffix}
 
 # https://sourceforge.net/p/lmms/bugs/571/
+# This issue tracker has disappeared but this issue still occurs.
+# A new issue tracker has been set up at github.
 use_parallel_build  no
 
-checksums           rmd160  d9f3234ef9f9c9f1918beda1d9bc78d090c9796d \
-                    sha256  8d87b2e1195be6c3125801d80f711d83121dd359be9bd3c71f978be2f8d900b5
+checksums           rmd160  6af06a2bb277d41c4ee8a3bdc85fc30c171cd6c3 \
+                    sha256  c8611be5c259f49cdcaac583bdf9bdd2ffc1f843cd8233ab5bb63c5a720f4910
 
 depends_lib-append  port:fftw-3-single \
                     path:lib/libfltk.dylib:fltk \
@@ -46,28 +40,59 @@
                     port:libvorbis \
                     port:portaudio \
                     port:pulseaudio \
+                    port:stk \
+                    port:xorg-libX11 \
                     port:xorg-libXext
 
-patchfiles          patch-plugins-zynaddsubfx-CMakeLists.txt.diff
+patchfiles          patch-CMakeLists.txt.diff \
+                    patch-data-lmms.plist.in.diff \
+                    patch-data-scripts-create_apple_bundle.sh.in.diff
 
-# https://sourceforge.net/p/lmms/bugs/487/
-configure.cflags-append -std=gnu89
+post-patch {
+    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/data/scripts/create_apple_bundle.sh.in
+    reinplace "s|@DESTROOT@|${destroot}|g" ${worksrcpath}/data/scripts/create_apple_bundle.sh.in
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/data/scripts/create_apple_bundle.sh.in
+}
 
-# This project has buggy C++ code
-compiler.blacklist *clang*
+cmake.out_of_source yes
 
-configure.args-append   -DWANT_ALSA=OFF \
+# The build system uses CMAKE_INSTALL_PREFIX in a nonstandard way, both by
+# writing the Info.plist into it during configure and by attempting to copy
+# all items contained in it into the application bundle during destroot. So
+# it must be set to an empty writable directory.
+set target_path         ${workpath}/target
+pre-configure {
+    file mkdir ${target_path}
+}
+configure.pre_args      -DCMAKE_INSTALL_PREFIX=${target_path}
+
+configure.args-append   -DFLTK_FLUID_EXECUTABLE=${prefix}/bin/fluid \
+                        -DSTK_INCLUDE_DIR=${prefix}/include/stk \
+                        -DWANT_ALSA=OFF \
                         -DWANT_JACK=ON \
                         -DWANT_OGGVORBIS=ON \
                         -DWANT_PORTAUDIO=ON \
                         -DWANT_PULSEAUDIO=ON \
                         -DWANT_SDL=ON \
-                        -DWANT_STK=OFF \
+                        -DWANT_STK=ON \
                         -DWANT_VST=OFF
 
-app.name                LMMS
-app.icon                ${worksrcpath}/data/lmms.png
+configure.args-replace  -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib -DCMAKE_INSTALL_NAME_DIR=${applications_dir}/LMMS.app/Contents/Frameworks
 
-platform darwin 8 {
-    configure.ldflags-append -lpng -lz
+# The build system only partly honors DESTDIR, such that the destroot fails
+# if it is set, and since we've already patched the build system to stage
+# into the destroot, we can just unset it. MacPorts base sets DESTDIR in
+# destroot.destdir, while the qt4 portgroup sets it as an environment variable.
+destroot.destdir
+destroot.env-delete     DESTDIR=${destroot}
+
+post-destroot {
+    ln -s ${applications_dir}/LMMS.app/Contents/MacOS/lmms ${destroot}${prefix}/bin/
+    ln -s ${applications_dir}/LMMS.app/Contents/share/man/man1/lmms.1.gz ${destroot}${prefix}/share/man/man1/
 }
+
+# cmake/modules/DetectMachine.cmake tries to detect bitness but because the
+# build system does not destroot entirely within the destdir, using the
+# muniversal portgroup will be complicated.
+#PortGroup               muniversal 1.0
+universal_variant       no

Added: trunk/dports/multimedia/lmms/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/multimedia/lmms/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/multimedia/lmms/files/patch-CMakeLists.txt.diff	2015-05-08 11:08:58 UTC (rev 135968)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2015-03-07 20:47:14.000000000 -0600
++++ CMakeLists.txt	2015-05-07 00:33:18.000000000 -0500
+@@ -52,8 +52,6 @@
+ 	SET(WANT_VST OFF)
+ 	SET(STATUS_ALSA "<not supported on this platform>")
+ 	SET(STATUS_PULSEAUDIO "<not supported on this platform>")
+-	# MacPorts: /opt/local/lib
+-	LINK_DIRECTORIES(${LINK_DIRECTORIES} /opt/local/lib)
+ ENDIF(LMMS_BUILD_APPLE)
+ 
+ 

Added: trunk/dports/multimedia/lmms/files/patch-data-lmms.plist.in.diff
===================================================================
--- trunk/dports/multimedia/lmms/files/patch-data-lmms.plist.in.diff	                        (rev 0)
+++ trunk/dports/multimedia/lmms/files/patch-data-lmms.plist.in.diff	2015-05-08 11:08:58 UTC (rev 135968)
@@ -0,0 +1,11 @@
+--- data/lmms.plist.in.orig	2015-03-07 20:47:14.000000000 -0600
++++ data/lmms.plist.in	2015-05-08 05:17:58.000000000 -0500
+@@ -13,7 +13,7 @@
+     <string>APPL</string>
+ 
+     <key>CFBundleGetInfoString</key>
+-    <string>@MACOSX_BUNDLE_GUI_IDENTIFIER@ @MACOSX_BUNDLE_LONG_VERSION_STRING@</string>
++    <string>@MACOSX_BUNDLE_LONG_VERSION_STRING@</string>
+ 
+ <!--
+     #############################################################

Added: trunk/dports/multimedia/lmms/files/patch-data-scripts-create_apple_bundle.sh.in.diff
===================================================================
--- trunk/dports/multimedia/lmms/files/patch-data-scripts-create_apple_bundle.sh.in.diff	                        (rev 0)
+++ trunk/dports/multimedia/lmms/files/patch-data-scripts-create_apple_bundle.sh.in.diff	2015-05-08 11:08:58 UTC (rev 135968)
@@ -0,0 +1,51 @@
+--- data/scripts/create_apple_bundle.sh.in.orig	2015-03-07 20:47:14.000000000 -0600
++++ data/scripts/create_apple_bundle.sh.in	2015-05-08 04:49:50.000000000 -0500
+@@ -11,7 +11,7 @@
+ #=========================================================================================
+  
+ # MacPorts Location
+-MACPORTS=/opt/local
++MACPORTS=@PREFIX@
+  
+  # LMMS project root directory (extracted source)
+ CMAKE_SRC=@CMAKE_SOURCE_DIR@
+@@ -23,10 +23,10 @@
+ CMAKE_BUILD=$(cd @CMAKE_CURRENT_BINARY_DIR@/../..; pwd)
+ 
+ # STK rawwaves directory
+-STK_RAWWAVE=${HOME}/stk-*/rawwaves
++STK_RAWWAVE=@PREFIX@/share/stk/rawwaves
+  
+ # Place to create ".app" bundle
+-APP=${HOME}/Desktop/LMMS.app
++APP=@DESTROOT@@APPLICATIONS_DIR@/LMMS.app
+  
+ # MacPorts installs libreadline with wrong permissions
+ LIBREADLINE=${MACPORTS}/lib/libreadline.6.2.dylib
+@@ -63,9 +63,9 @@
+ mkdir ${APP}/Contents
+ cp -R * ${APP}/Contents
+  
+-# Manually copy STK rawwaves
+-mkdir -p ${APP}/Contents/share/stk/rawwaves
+-cp ${STK_RAWWAVE}/*.raw ${APP}/Contents/share/stk/rawwaves
++# Symlink STK rawwaves
++mkdir -p ${APP}/Contents/share/stk
++ln -s ${STK_RAWWAVE} ${APP}/Contents/share/stk/rawwaves
+  
+ # Make all libraries writable for macdeployqt
+ cd ${APP}
+@@ -107,11 +107,10 @@
+ _executables="${_executables} -executable=${APP}/Contents/MacOS/RemoteZynAddSubFx"
+ _executables="${_executables} -executable=${APP}/Contents/Frameworks/libZynAddSubFxCore.dylib"
+  
+-# Build our App Package using "macdeployqt"
+-macdeployqt ${APP} $_executables
+- 
+ # OS X Specific Artwork
++mkdir -p ${APP}/Contents/Resources
+ cp ${CMAKE_SRC}/data/*.icns ${APP}/Contents/Resources/
++exit
+  
+ # Done.  Ready to build DMG
+ echo -e "\nFinished.\n\nYou may run LMMS from the Desktop."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150508/5891ba2f/attachment.html>


More information about the macports-changes mailing list