Changeset 1355

Show
Ignore:
Timestamp:
02/21/08 15:51:22 (6 months ago)
Author:
jpgrayson
Message:

- Apply patch to adds NetBSD support to scons build.
-- Thanks to Jorge Maciá.

Location:
portaudio/branches/v19-devel
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/build/scons/SConscript_common

    r1037 r1355  
    88 
    99# sunos, aix, hpux, irix, sunos appear to be platforms known by SCons, assuming they're POSIX compliant 
    10 Posix = ("linux", "darwin", "sunos", "aix", "hpux", "irix", "sunos") 
     10Posix = ("linux", "darwin", "sunos", "aix", "hpux", "irix", "sunos", "netbsd") 
    1111Windows = ("win32", "cygwin") 
    1212 
     
    1414    if sys.platform[:5] == "linux": 
    1515        Platform = "linux" 
     16    elif sys.platform[:6] == "netbsd": 
     17        Platform = "netbsd" 
    1618    else: 
    1719        raise ConfigurationError("Unknown platform %s" % sys.platform) 
  • portaudio/branches/v19-devel/src/SConscript

    r1354 r1355  
    7575        # TODO: It looks like the prefix for soundcard.h depends on the platform 
    7676        optionalImpls["OSS"] = ("oss", "sys/soundcard.h", None) 
     77        if Platform == 'netbsd': 
     78                optionalImpls["OSS"] = ("ossaudio", "sys/soundcard.h", "_oss_ioctl") 
    7779    if env["useASIHPI"]: 
    7880        optionalImpls["ASIHPI"] = ("hpi", "asihpi/hpi.h", "HPI_SubSysCreate")