source: trunk/dports/audio/libsdl_mixer/Portfile @ 39478

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

libsdl_mixer: fix detection of ogg/vorbis; closes #14424

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 39478 2008-08-21 19:46:13Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            libsdl_mixer
6set my_name     SDL_mixer
7version         1.2.8
8revision        1
9categories      audio devel
10platforms       macosx
11maintainers     nomaintainer
12use_parallel_build  yes
13description     Audio mixer library for SDL
14
15long_description \
16    A sample multi-channel audio mixer library. It supports any number of \
17    simultaneously playing channels of 16 bit stereo audio, plus a single \
18    channel of music.
19
20homepage        http://www.libsdl.org/projects/${my_name}/
21master_sites    ${homepage}release/
22distname        ${my_name}-${version}
23
24checksums       md5 0b5b91015d0f3bd9597e094ba67c4d65 \
25                sha1 7fa56d378f9ca53434f9470aeb2997ad84a348c6 \
26                rmd160 f2188b907aa779bb81415ac6726ad7f496357b85
27
28depends_lib     port:libsdl \
29                port:smpeg \
30                port:libvorbis \
31                port:libogg
32
33configure.args  --with-sdl-prefix=${prefix} \
34                --disable-sdltest \
35                --with-smpeg-prefix=${prefix} \
36                --disable-smpegtest
37
38patch {
39    reinplace "s|`find_lib\\(.*\\.dylib\\)|${prefix}/lib/`find_lib\\1|g" ${worksrcpath}/configure
40}
41
42post-destroot {
43    set docdir ${prefix}/share/doc/${name}-${version}
44    xinstall -d ${destroot}${docdir}
45    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
46        ${destroot}${docdir}
47}
48
49variant mikmod description {Enable use of external libmikmod} {
50    configure.args-append   --enable-music-libmikmod
51    depends_lib-append      port:libmikmod
52}
53
54livecheck.check regex
55livecheck.url   ${homepage}
56livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.