source: trunk/dports/audio/hydrogen/Portfile

Last change on this file was 72589, checked in by michaelld@…, 7 years ago

Changes to use qt4 portgroup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 72589 2010-10-21 12:31:43Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                hydrogen
8epoch               1
9version             0.9.4
10revision            2
11categories          audio
12platforms           macosx
13maintainers         xenith.org:xenith
14homepage            http://www.hydrogen-music.org/
15master_sites        sourceforge
16
17description         Hydrogen is an advanced drum machine.
18long_description    ${description} \
19                    Its main goal is to provide professional yet simple and \
20                    intuitive pattern-based drum programming.
21
22checksums           md5     69b0e35a5bba8151347c5e6ec9e8e4f3 \
23                    sha1    e988710f82af858c0c688cb1d1e19d789fca49ef \
24                    rmd160  9f1514462eaa756fe0a3e8fed3ff647a32ad033d
25
26depends_build-append port:scons
27
28depends_lib-append  port:flac \
29                    port:libsndfile \
30                    port:libtar
31
32patchfiles          patch-Sconstruct.diff
33
34post-patch {
35    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Sconstruct
36    reinplace "s|@LDFLAGS@|${configure.ldflags}|g" ${worksrcpath}/Sconstruct
37}
38
39use_configure       no
40
41use_parallel_build  yes
42
43build.cmd           scons
44build.target
45build.args          DESTDIR=${destroot} \
46                    prefix=${prefix} \
47                    alsa=0 \
48                    coreaudio=1 \
49                    coremidi=0 \
50                    flac=1 \
51                    jack=0 \
52                    lash=0 \
53                    libarchive=0 \
54                    lrdf=0 \
55                    oss=0 \
56                    portaudio=0 \
57                    portmidi=0
58
59destroot {
60    set hydrogen_app ${destroot}${applications_dir}/Hydrogen.app
61    xinstall -d ${hydrogen_app}/Contents/MacOS ${hydrogen_app}/Contents/Resources
62    xinstall -m 755 ${worksrcpath}/hydrogen ${hydrogen_app}/Contents/MacOS/Hydrogen
63    copy ${worksrcpath}/data ${worksrcpath}/macos/Hydrogen.icns ${hydrogen_app}/Contents/Resources
64    copy ${filespath}/Info.plist ${hydrogen_app}/Contents
65    reinplace "s|@VERSION@|${version}|g" ${hydrogen_app}/Contents/Info.plist
66}
67
68variant jack description {Compile with JACK support} {
69    depends_lib-append port:jack
70    build.args-delete jack=0
71    build.args-append jack=1
72}
73
74variant lrdf description {Compile with LRDF support} {
75    depends_lib-append port:liblrdf
76    build.args-delete lrdf=0
77    build.args-append lrdf=1
78}
Note: See TracBrowser for help on using the repository browser.