a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name wop
version 0.4.2
categories games
platforms darwin
maintainers nomaintainer@macports.org
description Worms of Prey is a real-time Worms game
long_description ${description}
homepage http://www.wormsofprey.org/
master_sites ${homepage}/download/
set data 2005-12-21
distfiles ${distname}-src.tar.bz2 \
wopdata-${data}.tar.bz2
checksums ${distname}-src.tar.bz2 md5 fc2567427b8970299f88df1d45aa106b \
wopdata-${data}.tar.bz2 md5 0bf42f28e03dcac5c8066b46d7733907
use_bzip2 yes
depends_lib port:libsdl \
port:libsdl_net \
port:libsdl_ttf \
port:libsdl_image \
port:libsdl_mixer
use_configure no
destroot {
xinstall -m 755 -s ${worksrcpath}/bin/wop ${destroot}${prefix}/bin
xinstall -m 755 ${filespath}/wop ${destroot}${prefix}/bin/wop-client
xinstall -m 755 ${filespath}/wop ${destroot}${prefix}/bin/wop-server
reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/wop-client \
${destroot}${prefix}/bin/wop-server
reinplace "s|_MODE_|client|g" ${destroot}${prefix}/bin/wop-client
reinplace "s|_MODE_|server|g" ${destroot}${prefix}/bin/wop-server
file copy ${workpath}/wopdata-${data} ${destroot}${prefix}/share/wop
}
platform darwin 8 {
build.args CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0
}