source: trunk/dports/games/2Pong/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.1 KB
Line 
1# $Id: Portfile 114119 2013-11-29 22:31:11Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               app 1.0
5
6name                    2Pong
7version                 1.0.1a
8categories              games
9platforms               darwin
10maintainers             nomaintainer
11license                 GPL-2
12installs_libs           no
13
14description             Pong game with 2 balls, 2 and 4 player support
15long_description        ${description}
16
17homepage                http://twopong.sourceforge.net/
18master_sites            sourceforge:project/twopong/2Pong/2Pong-${version}
19distname                2pong-src-${version}
20worksrcdir              2Pong-Source
21
22checksums               rmd160  43e0cde2485a3b89a4009db80118dda4a14aa82c \
23                        sha256  4075bf686126f785e10f3ff9dcaa7febc05291ad6ddf7a84bf2dd2890382a87b
24
25depends_lib             port:libsdl \
26                        port:libsdl_net \
27                        port:libsdl_mixer \
28                        port:libiconv \
29                        port:zlib \
30                        port:libxml2
31
32post-extract {
33    copy ${filespath}/${name}.in ${workpath}/${name}
34}
35
36patchfiles              patch-Makefile.diff \
37                        patch-defs.h.diff
38
39post-patch {
40    reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name}
41}
42
43use_configure           no
44
45variant universal {}
46
47build.dir               ${worksrcpath}/src
48build.args              CC="${configure.cc} [get_canonical_archflags]" \
49                        CPPFLAGS="${configure.cppflags}" \
50                        CXX="${configure.cxx} [get_canonical_archflags]" \
51                        LINK="${configure.cxx} [get_canonical_archflags]"
52
53destroot {
54    xinstall ${workpath}/${name} ${destroot}${prefix}/bin
55    xinstall -d ${destroot}${prefix}/share/${name}/src ${destroot}${prefix}/libexec/${name}
56    xinstall ${worksrcpath}/2pong ${destroot}${prefix}/libexec/${name}/${name}
57    copy ${worksrcpath}/conf.xml ${destroot}${prefix}/share/${name}
58    copy ${worksrcpath}/src/data ${destroot}${prefix}/share/${name}/src
59}
60
61app.icon                src/icon.bmp
62
63livecheck.regex         /2pong-src-(\[0-9a-z.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.