# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 PortGroup qt4 1.0 github.setup LMMS lmms 1.1.3 v categories multimedia maintainers ryandesign openmaintainer license GPL-2+ description Linux Multimedia Studio long_description LMMS is a free cross-platform alternative to commercial programs like FL Studio®, \ which allow you to produce music with your computer. This includes the creation of \ melodies and beats, the synthesis and mixing of sounds, and arranging of samples. \ You can have fun with your MIDI-keyboard and much more, all in a user-friendly and \ modern interface. homepage https://lmms.io/ platforms darwin # 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 6af06a2bb277d41c4ee8a3bdc85fc30c171cd6c3 \ sha256 c8611be5c259f49cdcaac583bdf9bdd2ffc1f843cd8233ab5bb63c5a720f4910 depends_lib-append port:fftw-3-single \ path:lib/libfltk.dylib:fltk \ port:fluidsynth \ port:jack \ port:libogg \ port:libsamplerate \ port:libsdl \ port:libsndfile \ port:libvorbis \ port:portaudio \ port:stk patchfiles patch-CMakeLists.txt.diff \ patch-cmake-modules-DetectMachine.cmake.diff \ patch-data-lmms.plist.in.diff \ patch-data-scripts-create_apple_bundle.sh.in.diff 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 } # Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn) # Undefined symbols: "_waveguide_nl_process", referenced from: _runGong in gong_1424.o, _runAddingGong in gong_1424.o configure.cflags-append -std=gnu89 cmake.out_of_source yes # 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=OFF \ -DWANT_SDL=ON \ -DWANT_STK=ON \ -DWANT_VST=OFF configure.args-replace -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib -DCMAKE_INSTALL_NAME_DIR=${applications_dir}/LMMS.app/Contents/Frameworks # 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