source: trunk/dports/games/sounddecompress/Portfile

Last change on this file was 110279, checked in by mojca@…, 4 years ago

wxPython and its dependencies: use the new wxWidgets ports (some ports lack proper testing) #38375

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 110279 2013-08-29 14:19:20Z ryandesign@macports.org $
3
4PortSystem                  1.0
5#PortSystem                 wxWidgets 1.0
6
7name                        sounddecompress
8version                     1.11
9revision                    2
10platforms                   darwin
11categories                  games audio sysutils
12maintainers                 ryandesign
13supported_archs             noarch
14homepage                    http://uru.zero-factorial.com/index.php?page=tools
15master_sites                http://uru.zero-factorial.com/tools/
16
17description                 decompresses Myst Online: URU Live sounds
18
19long_description            SoundDecompress is a utility to decompress sounds \
20                            used by the game Myst Online: URU Live so that \
21                            they can be played by the game. The game should \
22                            do this on its own, but in certain configurations \
23                            (such as when running the game under Wine) the \
24                            sounds get decompressed incorrectly, resulting in \
25                            silence or static. Run this tool to fix the sounds.
26
27notes "
28To have SoundDecompress decompress the sounds in a Myst Online: URU Live\
29installation installed by the mystonline-cider or mystonline-wine ports, run:
30
31sounddecompress.py -u ${prefix}/share/mystonline/data
32"
33
34distname                    ${name}_v[strsed ${version} {g/\.//}]
35use_bzip2                   yes
36
37checksums                   md5     8a3dace5f7158e65e81fcc337c4b8082 \
38                            sha1    724358f43d38009512d6d03f0b1e28b07efccc4d \
39                            rmd160  4adab63b65699aae5fc0e7941da94cc23718f728
40
41depends_lib                 port:libhsplasma \
42                            port:sox
43#                            port:py26-wxpython-2.8
44
45depends_run                 port:python26
46
47extract.mkdir               yes
48
49patchfiles                  patch-sounddecompress.py.diff \
50                            patch-wxSoundDecompress.py.diff
51
52post-patch {
53    reinplace "s|^#!/usr/bin/env python$|#!${prefix}/bin/python2.6|g" \
54        ${worksrcpath}/sounddecompress.py \
55        ${worksrcpath}/wxSoundDecompress.py
56    reinplace "s|@PREFIX@|${prefix}|g" \
57        ${worksrcpath}/wxSoundDecompress.py
58}
59
60use_configure               no
61
62build                       {}
63
64destroot {
65    xinstall ${worksrcpath}/sounddecompress.py ${destroot}${prefix}/bin
66#    xinstall ${worksrcpath}/wxSoundDecompress.py ${destroot}${prefix}/bin
67    set docdir ${destroot}${prefix}/share/doc/${name}
68    xinstall -d ${docdir}
69    xinstall -m 644 ${worksrcpath}/ReadMe.txt ${docdir}
70}
71
72livecheck.type              regex
73livecheck.regex             {(?i)SoundDecompress(?:or)? v([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.