Ignore:
Timestamp:
May 8, 2015, 11:08:58 AM (4 years ago)
Author:
ryandesign@…
Message:

lmms: update to 1.1.3

Location:
trunk/dports/multimedia/lmms
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/lmms/Portfile

    r135581 r135968  
    33
    44PortSystem          1.0
    5 PortGroup           app 1.0
    65PortGroup           cmake 1.0
     6PortGroup           github 1.0
    77PortGroup           qt4 1.0
    88
    9 # cmake/modules/DetectMachine.cmake tries to detect bitness
    10 PortGroup           muniversal 1.0
    11 
    12 name                lmms
    13 version             1.0.1
    14 revision            1
     9github.setup        LMMS lmms 1.1.3 v
    1510categories          multimedia
    1611maintainers         ryandesign openmaintainer
     
    2419                    modern interface.
    2520
    26 homepage            http://lmms.sourceforge.net
     21homepage            https://lmms.io/
    2722platforms           darwin
    28 master_sites        sourceforge:project/lmms/lmms/${version}
    29 use_bzip2           yes
    30 distfiles           ${name}-${version}-src${extract.suffix}
    3123
    3224# https://sourceforge.net/p/lmms/bugs/571/
     25# This issue tracker has disappeared but this issue still occurs.
     26# A new issue tracker has been set up at github.
    3327use_parallel_build  no
    3428
    35 checksums           rmd160  d9f3234ef9f9c9f1918beda1d9bc78d090c9796d \
    36                     sha256  8d87b2e1195be6c3125801d80f711d83121dd359be9bd3c71f978be2f8d900b5
     29checksums           rmd160  6af06a2bb277d41c4ee8a3bdc85fc30c171cd6c3 \
     30                    sha256  c8611be5c259f49cdcaac583bdf9bdd2ffc1f843cd8233ab5bb63c5a720f4910
    3731
    3832depends_lib-append  port:fftw-3-single \
     
    4741                    port:portaudio \
    4842                    port:pulseaudio \
     43                    port:stk \
     44                    port:xorg-libX11 \
    4945                    port:xorg-libXext
    5046
    51 patchfiles          patch-plugins-zynaddsubfx-CMakeLists.txt.diff
     47patchfiles          patch-CMakeLists.txt.diff \
     48                    patch-data-lmms.plist.in.diff \
     49                    patch-data-scripts-create_apple_bundle.sh.in.diff
    5250
    53 # https://sourceforge.net/p/lmms/bugs/487/
    54 configure.cflags-append -std=gnu89
     51post-patch {
     52    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/data/scripts/create_apple_bundle.sh.in
     53    reinplace "s|@DESTROOT@|${destroot}|g" ${worksrcpath}/data/scripts/create_apple_bundle.sh.in
     54    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/data/scripts/create_apple_bundle.sh.in
     55}
    5556
    56 # This project has buggy C++ code
    57 compiler.blacklist *clang*
     57cmake.out_of_source yes
    5858
    59 configure.args-append   -DWANT_ALSA=OFF \
     59# The build system uses CMAKE_INSTALL_PREFIX in a nonstandard way, both by
     60# writing the Info.plist into it during configure and by attempting to copy
     61# all items contained in it into the application bundle during destroot. So
     62# it must be set to an empty writable directory.
     63set target_path         ${workpath}/target
     64pre-configure {
     65    file mkdir ${target_path}
     66}
     67configure.pre_args      -DCMAKE_INSTALL_PREFIX=${target_path}
     68
     69configure.args-append   -DFLTK_FLUID_EXECUTABLE=${prefix}/bin/fluid \
     70                        -DSTK_INCLUDE_DIR=${prefix}/include/stk \
     71                        -DWANT_ALSA=OFF \
    6072                        -DWANT_JACK=ON \
    6173                        -DWANT_OGGVORBIS=ON \
     
    6375                        -DWANT_PULSEAUDIO=ON \
    6476                        -DWANT_SDL=ON \
    65                         -DWANT_STK=OFF \
     77                        -DWANT_STK=ON \
    6678                        -DWANT_VST=OFF
    6779
    68 app.name                LMMS
    69 app.icon                ${worksrcpath}/data/lmms.png
     80configure.args-replace  -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib -DCMAKE_INSTALL_NAME_DIR=${applications_dir}/LMMS.app/Contents/Frameworks
    7081
    71 platform darwin 8 {
    72     configure.ldflags-append -lpng -lz
     82# The build system only partly honors DESTDIR, such that the destroot fails
     83# if it is set, and since we've already patched the build system to stage
     84# into the destroot, we can just unset it. MacPorts base sets DESTDIR in
     85# destroot.destdir, while the qt4 portgroup sets it as an environment variable.
     86destroot.destdir
     87destroot.env-delete     DESTDIR=${destroot}
     88
     89post-destroot {
     90    ln -s ${applications_dir}/LMMS.app/Contents/MacOS/lmms ${destroot}${prefix}/bin/
     91    ln -s ${applications_dir}/LMMS.app/Contents/share/man/man1/lmms.1.gz ${destroot}${prefix}/share/man/man1/
    7392}
     93
     94# cmake/modules/DetectMachine.cmake tries to detect bitness but because the
     95# build system does not destroot entirely within the destdir, using the
     96# muniversal portgroup will be complicated.
     97#PortGroup               muniversal 1.0
     98universal_variant       no
Note: See TracChangeset for help on using the changeset viewer.