source: trunk/dports/games/svinepalsen/Portfile

Last change on this file was 114119, checked in by jmr@…, 4 years ago

libsdl dependents: use port: depspec - there's now only one port that provides sdl.pc, and most of these never worked with libsdl-devel in the first place

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 114119 2013-11-29 22:31:11Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            svinepalsen
6version         0.2.1
7categories      games
8platforms       darwin
9maintainers     nomaintainer
10license         GPL-2+
11
12description     Space Invaders style arcade game
13long_description        In Svinepalsen, the year is 2223 and the population of \
14                        space has begun. You are tentacled creature from \
15                        Nurobi Gernash on a mission to reach the home planet \
16                        of a race called humans. You are to deliver one \
17                        message to all nations of Earth: 'There must be \
18                        security for all or no one is secure'. The mission \
19                        fails and you are forced to make an example of the \
20                        human insolence. With your vastly superior ship you \
21                        must destroy all resistance. You must kill them all or \
22                        there will be retaliation.
23
24homepage        http://svinepalsen.sourceforge.net/
25master_sites    sourceforge:project/svinepalsen/svinepalsen-src/svinepalsen-src-${version}:src \
26                sourceforge:project/svinepalsen/svinepalsen-data/svinepalsen-data-${version}:data
27
28use_bzip2       yes
29
30distfiles       ${name}-src-${version}${extract.suffix}:src \
31                ${name}-data-${version}${extract.suffix}:data
32
33checksums       ${name}-src-${version}${extract.suffix} \
34                        md5 1c80abb76d139c51051e84ee79042349 \
35                ${name}-data-${version}${extract.suffix} \
36                        md5 51580dffcfdc8c9301d653145cd4bc75
37
38depends_lib     port:libsdl \
39                port:libsdl_mixer \
40                port:libsdl_image \
41                port:libsdl_ttf \
42                port:smpeg
43
44worksrcdir      ${name}
45
46configure.cppflags-append       '-I${prefix}/include/smpeg'
47configure.args  --disable-sdltest
48
49post-configure  {
50        reinplace "s|-lSDL_ttf|-lSDL_ttf -lsmpeg|g" \
51                ${configure.dir}/src/Makefile
52        reinplace "s|data/|${prefix}/share/${name}/|g" \
53                ${configure.dir}/src/CEnemyBase.cc \
54                ${configure.dir}/src/svinepalsen.cc
55}
56
57build.env       CPPFLAGS="-I${prefix}/include -I${prefix}/include/smpeg" LDFLAGS="-L${prefix}/lib"
58
59post-destroot   {
60        xinstall -d ${destroot}${prefix}/share/doc/${name}
61        file copy ${workpath}/data ${destroot}${prefix}/share/${name}
62        xinstall -m 644 -W ${worksrcpath} AUTHORS README TODO \
63                ${destroot}${prefix}/share/doc/${name}
64}
Note: See TracBrowser for help on using the repository browser.