source: trunk/dports/audio/arts/Portfile @ 38077

Last change on this file since 38077 was 38077, checked in by ryandesign@…, 11 years ago

In all openmaintainer and nomaintainer ports and my ports, depend on glib2 via a path in ${prefix} so that either glib2 or glib2-devel can satisfy the dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.7 KB
Line 
1# $Id: Portfile 38077 2008-07-05 21:37:56Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            arts
5version         1.1.2
6revision        5
7categories      audio
8maintainers     nomaintainer
9description     analog realtime synthesizer
10
11long_description aRts is a framework for developing modular multimedia applications. The \
12sound server, artsd, allows multiple applications to cooperatively process \
13and output sound and music. aRts is designed to provide its filter and \
14synthesis capabilities to other applications using the multimedia \
15communication protocol (MCOP). aRts is also capable of modular realtime \
16synthesis. It can create sounds & music (realtime midi synthesis) using \
17small modules like oscillators for creating waveforms, various filters, \
18mixers, faders, etc.
19
20platforms       darwin
21master_sites    \
22                ftp://ftp.heanet.ie/pub/fink/distfiles/ \
23                http://ranger.befunk.com/fink/:admin \
24                http://ranger.befunk.com/darwin/:darwin
25patch_sites     http://ranger.befunk.com/fink/
26use_bzip2       yes
27distfiles       ${distname}${extract.suffix} \
28                kde-admindir-20030601${extract.suffix}:admin \
29                detect-autoconf${extract.suffix}:darwin
30
31depends_lib     port:audiofile \
32                port:esound \
33                path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
34                port:libiconv \
35                port:gettext \
36                port:libmad \
37                port:libogg \
38                port:libpng \
39                port:qt3 \
40                port:libvorbis \
41                lib:libX11.6:XFree86
42depends_build   bin:pkg-config:pkgconfig
43
44checksums       arts-${version}${extract.suffix} md5 5d5a1858f8dcf0d88600291899dff75b \
45                kde-admindir-20030601${extract.suffix} md5 6135f81de4b1561942be8fd31ae21297 \
46                detect-autoconf${extract.suffix} md5 1f511627496be40174169dbab4d6d78a
47
48set env(PATH) "${x11prefix}/bin:$env(PATH):${prefix}/bin"
49
50platform darwin 6 {
51                depends_lib-append      lib:libdl:dlcompat
52                depends_lib-append      lib:libpoll:poll-emulator
53}
54
55platform darwin 7 {
56                depends_lib-append      lib:libpoll:poll-emulator
57}
58
59platform darwin 8 {
60                depends_lib-append      lib:libpoll:poll-emulator
61}
62platform darwin 8 powerpc {
63                configure.compiler      gcc-3.3
64}
65
66platform darwin {
67                patchfiles \
68                        stable/patch-arts-artsc-artsc-config.in.diff \
69                        stable/patch-arts-artsc-artsdsp.c.diff \
70                        stable/patch-arts-artsc-artsdsp.in.diff \
71                        stable/patch-arts-artsc-Makefile.am.diff \
72                        stable/patch-arts-configure.in.in.diff \
73                        stable/patch-arts-flow-audioiocoreaudio.cc.diff \
74                        stable/patch-arts-flow-audioioesd.cc.diff \
75                        stable/patch-arts-flow-audioiooss.cc.diff \
76                        stable/patch-arts-flow-gsl-gsldatahandle-mad.c.diff \
77                        stable/patch-arts-flow-gsl-gsldatahandle-vorbis.c.diff \
78                        stable/patch-arts-flow-Makefile.am.diff \
79                        stable/patch-arts-libltdl-ltdl.c.diff \
80                        stable/patch-arts-libltdl-ltdl.m4.diff \
81                        stable/patch-arts-soundserver-artsd.cc.diff \
82                        stable/patch-arts-soundserver-Makefile.am.diff \
83                        stable/patch-arts-soundserver-soundserverv2_impl.cc.diff
84}
85
86variant cvs {
87                ##### THIS IS UNSUPPORTED, DO NOT USE THIS IN YOUR PORTS! #####
88                cvs.root :pserver:anonymous@anoncvs.kde.org:/home/kde
89                cvs.module arts
90                pre-extract cvsfetch
91                ##### I MEAN IT, LANDONF WILL KILL YOU IF YOU DO THIS! #####
92
93                distname arts
94                version 1.2.0
95                distfiles kde-admindir-cvs-20030701${extract.suffix}:admin
96                checksums kde-admindir-cvs-20030701${extract.suffix} md5 b9bf2dc286d2e434c2cfdadc421c79b6
97                patchfiles
98}
99
100variant aqua {
101                configure.args-append --enable-mac
102}
103
104patch {
105                foreach patch $patchfiles {
106                        system "cd ${workpath}/${distname} && \
107                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
108                }
109}
110post-patch      {
111                system "cd ${worksrcpath} && if test -d ../admin;   then cp -Rf ../admin/ admin; fi"
112                system "cd ${worksrcpath} && if test -d ../libltdl; then cp -Rf ../libltdl/ libltdl; fi"
113                system "cd ${worksrcpath} && make -f admin/Makefile.common cvs"
114}
115
116configure.cppflags      -I${x11prefix}/include \
117                        -I${prefix}/include \
118                        -I${prefix}/include/qt3 \
119                        -no-cpp-precomp \
120                        -fno-common
121configure.ldflags       -L${x11prefix}/lib
122configure.env   LIBS=-L${prefix}/lib \
123                DYLD_LIBRARY_PATH=${x11prefix}/lib:${prefix}/lib \
124                LD_LIBRARY_PATH=${x11prefix}/lib:${prefix}/lib
125configure.cflags        -Os
126configure.cxxflags      -Os
127configure.args  --prefix=${prefix} \
128                --includedir=${prefix}/include \
129                --libdir=${prefix}/lib \
130                --with-extra-includes=${prefix}/include \
131                --with-extra-libs=${prefix}/lib \
132                --with-qt-dir=${prefix} \
133                --with-qt-includes=${prefix}/include/qt3 \
134                --enable-rpath \
135                --with-pic \
136                --enable-shared=yes \
137                --enable-static=no \
138                --libexecdir=${prefix}/lib \
139                --with-xinerama \
140                --with-pam \
141                --disable-final \
142                --disable-dependency-tracking
143
144build.env       ${configure.env}
Note: See TracBrowser for help on using the repository browser.