source: trunk/dports/audio/libsdl_sound-framework/Portfile

Last change on this file was 111507, checked in by jmr@…, 4 years ago

libsdl_sound-framework: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; 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 111507 2013-09-24 07:20:49Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       xcode 1.0
6
7name            libsdl_sound-framework
8version         1.0.3
9revision        1
10categories      audio devel
11license         LGPL-2.1+
12maintainers     nomaintainer
13description     handles decoding of several popular sound file formats
14
15long_description \
16    SDL_sound is a library that handles the decoding of several popular sound \
17    file formats, such as .WAV and .MP3. It is meant to make the programmer's sound \
18    playback tasks simpler.
19
20homepage        http://icculus.org/SDL_sound/
21master_sites    ${homepage}downloads/
22distname        SDL_sound-${version}
23dist_subdir     libsdl_sound
24
25checksums       md5     aa09cd52df85d29bee87a664424c94b5 \
26                sha1    1984bc20b2c756dc71107a5a0a8cebfe07e58cb1 \
27                rmd160  8e56daa71f827a4a22e7071a4e4f37c21dd96105
28
29depends_lib     port:libsdl-framework \
30                port:libogg \
31                port:libvorbis \
32                port:libmikmod
33
34post-extract {
35    system "tar xzf $worksrcpath/PBProjects.tar.gz -C $worksrcpath"
36}
37
38patchfiles      patch-project.pbxproj.diff
39
40post-patch {
41    set pbxproj ${worksrcpath}/${xcode.project}/project.pbxproj
42
43    reinplace s|@PREFIX@|$prefix|g ${pbxproj}
44    reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc =/d" ${pbxproj}
45    reinplace "s|~/Library/Frameworks|./build/Frameworks|g" ${pbxproj}
46    reinplace "s|\$(HOME)/Library/Frameworks|${frameworks_dir}|g" ${pbxproj}
47}
48
49xcode.project   PBProjects/SDL_sound.pbproj
50xcode.target    Framework
51
52xcode.build.settings    FRAMEWORK_SEARCH_PATHS=${frameworks_dir} \
53                        INSTALL_PATH=${frameworks_dir} \
54                        LIBRARY_SEARCH_PATHS=$prefix/lib
55
56xcode.destroot.type             framework
57eval xcode.destroot.settings    ${xcode.build.settings}
58
59universal_variant   no
60
61livecheck.type  regex
62livecheck.regex {SDL_sound (\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.