source: trunk/dports/games/blockout2/Portfile

Last change on this file was 129417, checked in by jmr@…, 3 years ago

blockout2: build fix (#46163, maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 129417 2014-12-13 05:56:03Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               app 1.0
6
7name                    blockout2
8version                 2.4
9revision                1
10set short_version       [strsed ${version} {g/\.//}]
11categories              games
12platforms               darwin
13maintainers             rixon.org:jeremy
14license                 GPL-2+
15installs_libs           no
16
17description             Open source clone of the 1989 California Dreams classic game Blockout.
18long_description        ${description}
19
20homepage                http://www.blockout.net/blockout2/
21master_sites            sourceforge:project/blockout/blockout/BlockOut%20${version}/
22distname                bl${short_version}-src-linux-i586
23worksrcdir              bl${short_version}_lin_src
24
25checksums               rmd160  3ddbf10a71b748687f335cd5ec55a8fbf8f9e138 \
26                        sha256  c95766b8d6fce9820e14a23cd1bdea28591c01d8fdf5ece06cca1071f082c088
27
28depends_lib             port:libsdl \
29                        port:libsdl_mixer
30
31post-extract {
32    copy ${filespath}/Makefile ${worksrcpath}
33}
34
35patchfiles              patch-BlockOut-BlockOut.cpp.diff \
36                        patch-BlockOut-GLApp-GLApp.cpp.diff \
37                        patch-BlockOut-GLApp-GLFont.cpp.diff \
38                        patch-BlockOut-GLApp-GLSprite.cpp.diff \
39                        patch-BlockOut-Makefile.diff \
40                        patch-BlockOut-Utils.cpp.diff \
41                        patch-ImageLib-src-gif-gif.c.diff \
42                        patch-ImageLib-src-jpg-jpegdecoder.cpp.diff \
43                        patch-ImageLib-src-png-hpng.c.diff \
44                        patch-ImageLib-src-Makefile.diff
45
46post-patch {
47    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/BlockOut/Utils.cpp
48}
49
50use_configure           no
51
52variant universal {}
53
54build.args              CC="${configure.cc} [get_canonical_archflags cc]" \
55                        CXX="${configure.cxx} [get_canonical_archflags cxx]" \
56                        PREFIX=${prefix}
57
58destroot.args           PREFIX=${prefix}
59
60app.name                BlockOut II
61app.executable          ${prefix}/bin/blockout2
Note: See TracBrowser for help on using the repository browser.