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 svinepalsen
version 0.2.1
categories games
platforms darwin
maintainers nomaintainer@macports.org
description Space Invaders style arcade game
long_description In Svinepalsen, the year is 2223 and the population of \
space has begun. You are tentacled creature from \
Nurobi Gernash on a mission to reach the home planet \
of a race called humans. You are to deliver one \
message to all nations of Earth: 'There must be \
security for all or no one is secure'. The mission \
fails and you are forced to make an example of the \
human insolence. With your vastly superior ship you \
must destroy all resistance. You must kill them all or \
there will be retaliation.
homepage http://svinepalsen.sourceforge.net/
master_sites sourceforge
extract.suffix .tar.bz2
use_bzip2 yes
distfiles ${name}-src-${version}${extract.suffix} \
${name}-data-${version}${extract.suffix}
checksums ${name}-src-${version}${extract.suffix} \
md5 1c80abb76d139c51051e84ee79042349 \
${name}-data-${version}${extract.suffix} \
md5 51580dffcfdc8c9301d653145cd4bc75
depends_lib lib:libsdl:libsdl \
lib:libsdl_mixer:libsdl_mixer \
lib:libsdl_image:libsdl_image \
lib:libSDL_ttf:libsdl_ttf \
lib:libsmpeg:smpeg
configure.dir ${workpath}/${name}
configure.env CPPFLAGS='-I${prefix}/include -I${prefix}/include/smpeg' \
LDFLAGS='-L${prefix}/lib'
configure.args --disable-sdltest
post-configure {
reinplace "s|-lSDL_ttf|-lSDL_ttf -lsmpeg|g" \
${configure.dir}/src/Makefile
reinplace "s|data/|${prefix}/share/${name}/|g" \
${configure.dir}/src/CEnemyBase.cc \
${configure.dir}/src/svinepalsen.cc
}
build.dir ${configure.dir}
build.env ${configure.env}
destroot.dir ${build.dir}
post-destroot {
file mkdir ${destroot}${prefix}/share/ \
${destroot}${prefix}/share/doc/${name}
file copy ${workpath}/data ${destroot}${prefix}/share/${name}
file copy ${build.dir}/AUTHORS ${build.dir}/README ${build.dir}/TODO \
${destroot}${prefix}/share/doc/${name}
}