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

Last change on this file since 11593 was 11593, checked in by jkh, 15 years ago

The disposition of the dlopen() and poll() routines has evolved over 3 releases. Properly
conditionalize usage of this in the ports that need it to ensure that builds on Jaguar, Panther
and Tiger all work.

  • Property svn:eol-style set to native
File size: 4.3 KB
Line 
1# $Id: Portfile,v 1.29 2005/04/04 10:08:35 jkh Exp $
2
3PortSystem 1.0
4name            arts
5version         1.1.2
6revision        5
7categories      audio
8maintainers     darwinports@opendarwin.org
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                kde:Attic/3.1.2/src \
23                http://ranger.befunk.com/fink/:admin \
24                http://ranger.befunk.com/darwin/:darwin
25patch_sites     http://ranger.befunk.com/fink/
26extract.suffix  .tar.bz2
27use_bzip2       yes
28distname        arts-${version}
29distfiles       ${distname}.tar.bz2 kde-admindir-20030601.tar.bz2:admin detect-autoconf.tar.bz2:darwin
30
31depends_lib     lib:libaudiofile.0:audiofile lib:libesd:esound lib:libglib.2:glib2 \
32                lib:libiconv:libiconv lib:libintl.3:gettext lib:libmad:libmad \
33                lib:libogg:libogg lib:libpng.3:libpng lib:libqt-mt.3.1:qt3 \
34                lib:libqui:qt3 lib:libvorbis.0:libvorbis lib:libX11.6:XFree86
35depends_build   bin:pkg-config:pkgconfig
36
37checksums       arts-${version}.tar.bz2 md5 5d5a1858f8dcf0d88600291899dff75b \
38                kde-admindir-20030601.tar.bz2 md5 6135f81de4b1561942be8fd31ae21297 \
39                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a
40
41set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
42
43platform darwin 6 {
44                depends_lib-append      lib:libdl:dlcompat
45                depends_lib-append      lib:libpoll:poll-emulator
46}
47
48platform darwin 7 {
49                depends_lib-append      lib:libpoll:poll-emulator
50}
51
52variant darwin {
53                patchfiles \
54                        stable/patch-arts-artsc-artsc-config.in.diff \
55                        stable/patch-arts-artsc-artsdsp.c.diff \
56                        stable/patch-arts-artsc-artsdsp.in.diff \
57                        stable/patch-arts-artsc-Makefile.am.diff \
58                        stable/patch-arts-configure.in.in.diff \
59                        stable/patch-arts-flow-audioiocoreaudio.cc.diff \
60                        stable/patch-arts-flow-audioioesd.cc.diff \
61                        stable/patch-arts-flow-audioiooss.cc.diff \
62                        stable/patch-arts-flow-gsl-gsldatahandle-mad.c.diff \
63                        stable/patch-arts-flow-gsl-gsldatahandle-vorbis.c.diff \
64                        stable/patch-arts-flow-Makefile.am.diff \
65                        stable/patch-arts-libltdl-ltdl.c.diff \
66                        stable/patch-arts-libltdl-ltdl.m4.diff \
67                        stable/patch-arts-soundserver-artsd.cc.diff \
68                        stable/patch-arts-soundserver-Makefile.am.diff \
69                        stable/patch-arts-soundserver-soundserverv2_impl.cc.diff
70}
71
72variant cvs {
73                ##### THIS IS UNSUPPORTED, DO NOT USE THIS IN YOUR PORTS! #####
74                cvs.root :pserver:anonymous@anoncvs.kde.org:/home/kde
75                cvs.module arts
76                pre-extract cvsfetch
77                ##### I MEAN IT, LANDONF WILL KILL YOU IF YOU DO THIS! #####
78
79                distname arts
80                version 1.2.0
81                distfiles kde-admindir-cvs-20030701.tar.bz2:admin
82                checksums kde-admindir-cvs-20030701.tar.bz2 md5 b9bf2dc286d2e434c2cfdadc421c79b6
83                patchfiles
84}
85
86variant aqua {
87                configure.args-append --enable-mac
88}
89
90patch {
91                foreach patch $patchfiles {
92                        system "cd '${workpath}/${distname}' && \
93                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
94                }
95}
96post-patch      {
97                system "cd '${worksrcpath}' && if test -d ../admin;   then cp -Rf ../admin/ admin; fi"
98                system "cd '${worksrcpath}' && if test -d ../libltdl; then cp -Rf ../libltdl/ libltdl; fi"
99                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
100}
101
102configure.env   CPPFLAGS='-I/usr/X11R6/include -I${prefix}/include -I${prefix}/include/qt3 -no-cpp-precomp -fno-common' \
103                LDFLAGS='-L/usr/X11R6/lib' LIBS='-L${prefix}/lib' DYLD_LIBRARY_PATH='/usr/X11R6/lib:${prefix}/lib' \
104                LD_LIBRARY_PATH='/usr/X11R6/lib:${prefix}/lib' CFLAGS='-Os' CXXFLAGS='-Os'
105configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
106                --with-extra-includes='${prefix}/include' --with-extra-libs='${prefix}/lib' \
107                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
108                --enable-rpath --with-pic --enable-shared=yes --enable-static=no \
109                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --disable-final \
110                --disable-dependency-tracking
111
112build.env       ${configure.env}
113pre-build       {
114                        puts depends_lib
115}
Note: See TracBrowser for help on using the repository browser.