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