# -*- 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
#PortSystem wxWidgets 1.0
categories games audio sysutils
homepage http://uru.zero-factorial.com/index.php?page=tools
master_sites http://uru.zero-factorial.com/tools/
description decompresses Myst Online: URU Live sounds
long_description SoundDecompress is a utility to decompress sounds \
used by the game Myst Online: URU Live so that \
they can be played by the game. The game should \
do this on its own, but in certain configurations \
(such as when running the game under Wine) the \
sounds get decompressed incorrectly, resulting in \
silence or static. Run this tool to fix the sounds.
To have SoundDecompress decompress the sounds in a Myst Online: URU Live\
installation installed by the mystonline-cider or mystonline-wine ports, run:
sounddecompress.py -u ${prefix}/share/mystonline/data
distname ${name}_v[strsed ${version} {g/\.//}]
checksums md5 8a3dace5f7158e65e81fcc337c4b8082 \
sha1 724358f43d38009512d6d03f0b1e28b07efccc4d \
rmd160 4adab63b65699aae5fc0e7941da94cc23718f728
depends_lib port:libhsplasma \
depends_run port:python26
patchfiles patch-sounddecompress.py.diff \
patch-wxSoundDecompress.py.diff
reinplace "s|^#!/usr/bin/env python$|#!${prefix}/bin/python2.6|g" \
${worksrcpath}/sounddecompress.py \
${worksrcpath}/wxSoundDecompress.py
reinplace "s|@PREFIX@|${prefix}|g" \
${worksrcpath}/wxSoundDecompress.py