pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/csound5 Initial import of csound5 version 5.01, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3e0f822bc2c2
branches:  trunk
changeset: 513171:3e0f822bc2c2
user:      ben <ben%pkgsrc.org@localhost>
date:      Sun May 21 22:46:22 2006 +0000

description:
Initial import of csound5 version 5.01, a software synthesizer and
sequencer.

Csound is a software synthesis package in the tradition of so-called
music-N languages, among which the best-known is Music V.  It consists
of an orchestra- and score-driven executable, written in C for
portability.  Since Csound is a computational language, it is highly
flexible and efficient; complexity is gained only at the expense of
computation time.

To do:
- fix pthread issues in csound5 (is breaking realtime audio)
- use options.mk framework for various modules
- enable portaudio module (requires audio/portaudio-devel)
- port portmidi to netbsd

diffstat:

 audio/csound5/DESCR            |    8 +
 audio/csound5/Makefile         |   40 +++++++++
 audio/csound5/PLIST            |   69 ++++++++++++++++
 audio/csound5/distinfo         |   18 ++++
 audio/csound5/patches/patch-ac |  172 +++++++++++++++++++++++++++++++++++++++++
 audio/csound5/patches/patch-ad |   13 +++
 audio/csound5/patches/patch-ae |   13 +++
 audio/csound5/patches/patch-af |   31 +++++++
 audio/csound5/patches/patch-ag |   13 +++
 audio/csound5/patches/patch-ah |   13 +++
 audio/csound5/patches/patch-ai |   22 +++++
 audio/csound5/patches/patch-aj |   13 +++
 audio/csound5/patches/patch-ak |   13 +++
 audio/csound5/patches/patch-al |   22 +++++
 audio/csound5/patches/patch-am |   52 ++++++++++++
 audio/csound5/patches/patch-an |   40 +++++++++
 audio/csound5/patches/patch-ao |   13 +++
 17 files changed, 565 insertions(+), 0 deletions(-)

diffs (truncated from 633 to 300 lines):

diff -r 9636010a1f44 -r 3e0f822bc2c2 audio/csound5/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound5/DESCR       Sun May 21 22:46:22 2006 +0000
@@ -0,0 +1,8 @@
+Csound is a software synthesis package in the tradition of so-called
+music-N languages, among which the best-known is Music V.  It consists
+of an orchestra- and score-driven executable, written in C for
+portability.  Since Csound is a computational language, it is highly
+flexible and efficient; complexity is gained only at the expense of
+computation time.  Basically Csound reads some files and creates the
+result as a file on disk or, on faster machines, through a DAC in real
+time.
diff -r 9636010a1f44 -r 3e0f822bc2c2 audio/csound5/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound5/Makefile    Sun May 21 22:46:22 2006 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $
+#
+
+DISTNAME=              Csound${CSOUND_VERSION}_src
+PKGNAME=               csound5-${CSOUND_VERSION}
+CATEGORIES=            audio
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=csound/}
+WRKSRC=                        ${WRKDIR}/Csound${CSOUND_VERSION}
+
+MAINTAINER=            ben%NetBSD.org@localhost
+HOMEPAGE=              http://sourceforge.net/projects/csound/
+COMMENT=               Software synthesizer and sequencer
+
+CSOUND_VERSION=                5.01
+USE_LANGUAGES=         c c++
+CFLAGS+=               -g -D__PKGSRC_PREFIX__=${PREFIX}/ -DBETA
+BUILD_DEPENDS+=         scons>=0.96:../../devel/scons
+NOT_FOR_PLATFORM=      *-*-alpha *-*-sparc64   # Severe LP64 problems
+SCONS=                 ${PREFIX}/bin/scons
+SCONS_ARGS=            -C ${WRKSRC} prefix=${PREFIX}
+SCONS_ARGS+=           buildDSSI=0 buildLoris=0 buildRelease=1
+SCONS_ARGS+=           useALSA=0 useJack=0 useOSC=0 usePortMIDI=0
+SCONS_ARGS+=           usePortAudio=0
+
+do-build:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS} ${SCONS_ARGS}
+
+do-install:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS} ${SCONS_ARGS} install
+       cd ${PREFIX} && ${LN} -s ../lib/csound5/csound bin/csound5
+
+.include "../../audio/fluidsynth/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
+.include "../../devel/swig/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../lang/python24/buildlink3.mk"
+.include "../../x11/fltk/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9636010a1f44 -r 3e0f822bc2c2 audio/csound5/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound5/PLIST       Sun May 21 22:46:22 2006 +0000
@@ -0,0 +1,69 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $
+bin/csound5
+include/csound5/CppSound.hpp
+include/csound5/CsoundFile.hpp
+include/csound5/OpcodeBase.hpp
+include/csound5/cfgvar.h
+include/csound5/cscore.h
+include/csound5/csdl.h
+include/csound5/csound.h
+include/csound5/csound.hpp
+include/csound5/csoundCore.h
+include/csound5/cwindow.h
+include/csound5/filebuilding.h
+include/csound5/msg_attr.h
+include/csound5/pstream.h
+include/csound5/pvfileio.h
+include/csound5/soundio.h
+include/csound5/sysdep.h
+include/csound5/text.h
+include/csound5/version.h
+lib/csound5/cs
+lib/csound5/csb64enc
+lib/csound5/csound
+lib/csound5/cvanal
+lib/csound5/dnoise
+lib/csound5/envext
+lib/csound5/extract
+lib/csound5/extractor
+lib/csound5/het_export
+lib/csound5/het_import
+lib/csound5/hetro
+lib/csound5/lpanal
+lib/csound5/lpc_export
+lib/csound5/lpc_import
+lib/csound5/makecsd
+lib/csound5/mixer
+lib/csound5/pvanal
+lib/csound5/pvlook
+lib/csound5/scale
+lib/csound5/scot
+lib/csound5/scsort
+lib/csound5/sndinfo
+lib/csound5/srconv
+lib/csound5/csnd.py
+lib/csound5/plugins/libbabo.so
+lib/csound5/plugins/libbarmodel.so
+lib/csound5/plugins/libfluidOpcodes.so
+lib/csound5/plugins/libftest.so
+lib/csound5/plugins/libgrain4.so
+lib/csound5/plugins/libhrtferX.so
+lib/csound5/plugins/libminmax.so
+lib/csound5/plugins/libmixer.so
+lib/csound5/plugins/libmodal4.so
+lib/csound5/plugins/libphisem.so
+lib/csound5/plugins/libphysmod.so
+lib/csound5/plugins/libpitch.so
+@comment -- portaudio module -- lib/csound5/plugins/librtpa.so
+lib/csound5/plugins/libscansyn.so
+lib/csound5/plugins/libsfont.so
+lib/csound5/plugins/libstdopcod.so
+lib/csound5/plugins/libstdutil.so
+lib/csound5/plugins/libvbap.so
+lib/csound5/plugins/libwidgets.so
+lib/csound5/plugins/opcodes.dir
+lib/csound5/lib_csnd.so
+lib/csound5/libcsound.a
+@dirrm include/csound5
+@dirrm lib/csound5/plugins
+@dirrm lib/csound5
diff -r 9636010a1f44 -r 3e0f822bc2c2 audio/csound5/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound5/distinfo    Sun May 21 22:46:22 2006 +0000
@@ -0,0 +1,18 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $
+
+SHA1 (Csound5.01_src.tar.gz) = b387da9b6c24961397e89ddcedd1229cdfebffe7
+RMD160 (Csound5.01_src.tar.gz) = 24652f8f650464d886f6d537ae991654f475ad4a
+Size (Csound5.01_src.tar.gz) = 2031426 bytes
+SHA1 (patch-ac) = 12c410532ece80a9f226ffcb4c986eaaa84e2006
+SHA1 (patch-ad) = 756308bc40378738794469fca72c3e249b314150
+SHA1 (patch-ae) = 8878e9927811b4c46deb473724a4e19631e326e9
+SHA1 (patch-af) = 7d885796ee6794ff88fb4b22aee7fe8b3084864c
+SHA1 (patch-ag) = 76a7283a2da202a866ef416f4cac4d581dca39ec
+SHA1 (patch-ah) = 9ecda7d9a8b4ff41dd84ce826a0d0ede0c09b15d
+SHA1 (patch-ai) = 10571cb1d5e579d36f7c60e0651cfde71fc5498e
+SHA1 (patch-aj) = e2661124db32cf3831c23f128e6d8edc628cafbc
+SHA1 (patch-ak) = 5837eb03a8950ea0d6fc6718f99070bdda015a86
+SHA1 (patch-al) = accb874d07de58b075e909efb7578d3f59372b6b
+SHA1 (patch-am) = 3e981f6e15fea1d94f4d87276b4c7840ed381ee7
+SHA1 (patch-an) = 5131a8e880bdb1cd4996c75e9579b591e2925c97
+SHA1 (patch-ao) = 22c845f281e1cacdda7c2334100c7ca54771cdc3
diff -r 9636010a1f44 -r 3e0f822bc2c2 audio/csound5/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound5/patches/patch-ac    Sun May 21 22:46:22 2006 +0000
@@ -0,0 +1,172 @@
+$NetBSD: patch-ac,v 1.1.1.1 2006/05/21 22:46:22 ben Exp $
+
+--- SConstruct.orig    2006-03-15 07:22:43.000000000 -0800
++++ SConstruct
+@@ -50,6 +50,8 @@ def today():
+ def getPlatform():
+     if sys.platform[:5] == 'linux':
+         return 'linux'
++    elif sys.platform[:6] == 'netbsd':
++        return 'netbsd'
+     elif sys.platform[:3] == 'win':
+         return 'mingw'
+     elif sys.platform[:6] == 'darwin':
+@@ -335,6 +337,15 @@ elif getPlatform() == 'mingw':
+     pythonLinkFlags = []
+     pythonLibraryPath = []
+     pythonLibs = ['python%s' % commonEnvironment['pythonVersion'].replace('.', '')]
++elif getPlatform() == 'netbsd':
++    commonEnvironment.Append(CCFLAGS = Split(os.environ['CFLAGS']))
++    commonEnvironment.Append(CXXFLAGS = Split(os.environ['CXXFLAGS']))
++    commonEnvironment.Append(LINKFLAGS = Split(os.environ['LDFLAGS']))
++    pythonIncludePath = []
++    pythonLinkFlags = []
++    pythonLibraryPath = []
++    pythonLibs = []
++    SConsignFile("/dev/null")
+ 
+ # Check for prerequisites.
+ # We check only for headers; checking for libs may fail
+@@ -485,7 +496,7 @@ def buildzip(env, target, source):
+ # library version is CS_VERSION.CS_APIVERSION
+ csoundLibraryVersion = '5.1'
+ csoundLibraryName = 'csound'
+-if getPlatform() == 'linux' and commonEnvironment['useDouble'] != '0':
++if (getPlatform() == 'linux' or getPlatform() == 'netbsd') and commonEnvironment['useDouble'] != '0':
+     csoundLibraryName += '64'
+ # flags for linking with the Csound library
+ libCsoundLinkFlags = []
+@@ -526,6 +537,12 @@ if commonEnvironment['buildRelease'] != 
+             tmp += '64'
+         s = '-DCS_DEFAULT_PLUGINDIR=\\"%s\\"' % tmp
+         csoundLibraryEnvironment.Append(CPPFLAGS = [s])
++    if getPlatform() == 'netbsd':
++        tmp = '%s/lib/csound5/plugins' % commonEnvironment['prefix']
++        if commonEnvironment['useDouble'] != '0':
++            tmp += '64'
++        s = '-DCS_DEFAULT_PLUGINDIR=\\"%s\\"' % tmp
++        csoundLibraryEnvironment.Append(CPPFLAGS = [s])
+ csoundDynamicLibraryEnvironment = csoundLibraryEnvironment.Copy()
+ csoundDynamicLibraryEnvironment.Append(LIBS = ['sndfile'])
+ if getPlatform() == 'mingw':
+@@ -550,6 +567,8 @@ if getPlatform() == 'mingw':
+     csoundDynamicLibraryEnvironment['ENV']['PATH'] = os.environ['PATH']
+ elif getPlatform() == 'linux':
+     csoundDynamicLibraryEnvironment.Append(LIBS = ['dl', 'm', 'pthread'])
++elif getPlatform() == 'netbsd':
++    csoundDynamicLibraryEnvironment.Append(LIBS = ['m', 'pthread'])
+ csoundInterfacesEnvironment = csoundDynamicLibraryEnvironment.Copy()
+ 
+ if buildOSXFramework:
+@@ -989,7 +1008,7 @@ makePlugin(pluginEnvironment, 'stdopcod'
+ pluginLibraries.append('opcodes.dir')
+ MacOSX_InstallPlugin('opcodes.dir')
+ 
+-if getPlatform() == 'linux' or getPlatform() == 'darwin':
++if getPlatform() == 'linux' or getPlatform() == 'darwin' or getPlatform == 'netbsd':
+     makePlugin(pluginEnvironment, 'control', ['Opcodes/control.c'])
+ makePlugin(pluginEnvironment, 'ftest', ['Opcodes/ftest.c'])
+ makePlugin(pluginEnvironment, 'mixer', ['Opcodes/mixer.cpp'])
+@@ -1042,6 +1061,9 @@ else:
+             -framework Carbon -framework CoreAudio -framework CoreMidi
+             -framework ApplicationServices
+         '''))
++    elif getPlatform() == 'netbsd':
++        widgetsEnvironment.ParseConfig('fltk-config --use-images --cflags --cxxflags --ldflags')
++        widgetsEnvironment.Append(LIBS = ['stdc++', 'pthread', 'm'])
+     makePlugin(widgetsEnvironment, 'widgets',
+                ['InOut/FL_graph.cpp', 'InOut/winFLTK.c', 'InOut/widgets.cpp'])
+ 
+@@ -1082,6 +1104,8 @@ else:
+     elif getPlatform() == 'mingw':
+         portaudioEnvironment.Append(LIBS = ['winmm', 'dsound'])
+         portaudioEnvironment.Append(LIBS = csoundWindowsLibraries)
++    elif getPlatform() == 'netbsd':
++        portaudioEnvironment.ParseConfig('pkg-config --cflags --libs portaudio-2.0')
+     makePlugin(portaudioEnvironment, 'rtpa', ['InOut/rtpa.c'])
+ 
+ if not (commonEnvironment['useJack'] == '1' and jackFound):
+@@ -1118,7 +1142,7 @@ else:
+         fluidEnvironment.Append(CPPFLAGS = ['-DFLUIDSYNTH_NOT_A_DLL'])
+         fluidEnvironment.Append(LIBS = ['winmm', 'dsound'])
+         fluidEnvironment.Append(LIBS = csoundWindowsLibraries)
+-    elif getPlatform() == 'linux' or getPlatform() == 'darwin':
++    elif getPlatform() == 'linux' or getPlatform() == 'darwin' or getPlatform() == 'netbsd':
+         fluidEnvironment.Append(LIBS = ['pthread'])
+     makePlugin(fluidEnvironment, 'fluidOpcodes',
+                ['Opcodes/fluidOpcodes/fluidOpcodes.c'])
+@@ -1237,6 +1261,13 @@ else:
+         guiProgramEnvironment.Prepend(LINKFLAGS = ['-mwindows'])
+         vstEnvironment.Append(LIBS = ['fltk_images', 'fltk'])
+         guiProgramEnvironment.Append(LINKFLAGS = '-mwindows')
++    elif getPlatform() == 'netbsd':
++        vstEnvironment.Append(LIBS = ['m'])
++        vstEnvironment.Append(SHLINKFLAGS = '--no-export-all-symbols')
++        vstEnvironment.Append(LINKFLAGS = ['-Wl,-rpath-link,.'])
++        guiProgramEnvironment.Prepend(LINKFLAGS = ['-Wl,-rpath-link,.'])
++        os.spawnvp(os.P_WAIT, 'rm', ['rm', '-f', '_CsoundVST.so'])
++        os.symlink('lib_CsoundVST.so', '_CsoundVST.so')
+     guiProgramEnvironment.Prepend(LIBS = ['_CsoundVST'])
+     for option in vstEnvironment['CCFLAGS']:
+         if string.find(option, '-D') == 0:
+@@ -1420,7 +1451,7 @@ else:
+         stkEnvironment.Append(LIBS = ['stdc++'])
+     if getPlatform() == 'mingw':
+         stkEnvironment.Append(LIBS = csoundWindowsLibraries)
+-    elif getPlatform() == 'linux' or getPlatform() == 'darwin':
++    elif getPlatform() == 'linux' or getPlatform() == 'darwin' or getPlatform() == 'netbsd':
+         stkEnvironment.Append(LIBS = ['pthread'])
+     # This is the one that actually defines the opcodes.
+     # They are straight wrappers, as simple as possible.
+@@ -1443,6 +1474,8 @@ else:
+     elif getPlatform() == 'mingw':
+         pyEnvironment['ENV']['PATH'] = os.environ['PATH']
+         pyEnvironment.Append(SHLINKFLAGS = '--no-export-all-symbols')
++    elif getPlatform() == 'netbsd':
++        pyEnvironment.Append(LIBS = ['m'])
+     pythonOpcodes = makePlugin(pyEnvironment, 'py',
+                                ['Opcodes/py/pythonopcodes.c'])
+     if getPlatform() == 'mingw' and pythonLibs[0] < 'python24':
+@@ -1461,7 +1494,7 @@ if commonEnvironment['buildPDClass']=='1
+         pdClass = pdClassEnvironment.Program(
+             'csoundapi~.pd_darwin',
+             'frontends/csoundapi_tilde/csoundapi_tilde.c')
+-    elif getPlatform() == 'linux':
++    elif getPlatform() == 'linux' or getPlatform() == 'netbsd':
+         pdClass = pdClassEnvironment.SharedLibrary(
+             'csoundapi~.pd_linux',
+             'frontends/csoundapi_tilde/csoundapi_tilde.c',
+@@ -1493,6 +1526,8 @@ if commonEnvironment['buildTclcsound'] =
+         '''))
+     elif getPlatform() == 'linux':
+         csTclEnvironment.Append(LIBS = ['tcl8.4', 'tk8.4', 'dl', 'pthread'])
++    elif getPlatform() == 'netbsd':
++        csTclEnvironment.Append(LIBS = ['tcl8.4', 'tk8.4', 'pthread'])
+     elif getPlatform() == 'mingw':



Home | Main Index | Thread Index | Old Index