source: trunk/dports/games/rrgbis/Portfile @ 37929

Last change on this file since 37929 was 37929, checked in by ryandesign@…, 12 years ago

Set svn:keywords to Id on all portfiles per current guidelines

  • Property svn:eol-style set to native
  • Property svn:keyword set to Id
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 37929 2008-06-29 22:28:34Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                rrgbis
6version             1.06-2
7categories          games
8platforms           darwin
9maintainers         simon openmaintainer
10description         Real time strategy game with fleets of spaceships.
11long_description    ${description}
12
13homepage            http://rrgbis.sourceforge.net/
14master_sites        sourceforge
15checksums           md5 195038ed3b76e2189fa126e0c88ddcba \
16                    sha1 82b65ad78de21f3760a51377f4ed75c3b497780b \
17                    rmd160 bab91a9d4ead8e0aa6c4986c0f0ecae679ac3871
18use_bzip2           yes
19worksrcdir          ${name}
20
21depends_lib         port:libsdl \
22                    port:libsdl_image \
23                    port:libsdl_mixer \
24                    port:libvorbis
25
26patchfiles          patch-Makefile.diff \
27                    patch-src_GLSDL.cpp.diff
28
29pre-patch {
30    # Convert files from DOS to UNIX linefeeds before patching.
31    reinplace "s/\r$//g" ${worksrcpath}/Makefile
32}
33post-patch {
34    # Set the correct path to the installed rrgbis data in the settings file.
35    reinplace "s|pwd|${prefix}/share/rrgbis/|g" ${worksrcpath}/settings.dat
36}
37
38use_configure       no
39
40build.target        {}
41
42destroot {
43    # Install the helper script which automatically sets the correct
44    # LD_LIBRARY_PATH variable and set the right ${prefix} path.
45    xinstall ${portpath}/${filesdir}/rrgbis ${destroot}${prefix}/bin
46    reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/rrgbis
47
48    # Install the helper setup script which creates ~/.rrgbis and the
49    # settings.dat file in it.
50    xinstall ${portpath}/${filesdir}/rrgbis-setup ${destroot}${prefix}/bin
51    reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/rrgbis-setup
52
53    # Install the real binary and rename it to rrgbis-bin.
54    copy ${worksrcpath}/rrgbis ${destroot}${prefix}/bin/rrgbis-bin
55
56    # Create the directory for the rrgbis data.
57    xinstall -d ${destroot}${prefix}/share/rrgbis
58    # Copy all data files and directories to ${destroot}.
59    set files {aiscripts images missions music settings.dat sound \
60               squirrelscripts unitdata unitpictures}
61    foreach file $files {
62        move ${worksrcpath}/${file} ${destroot}${prefix}/share/rrgbis/${file}
63    }
64}
65
66post-install {
67    ui_msg "****************************************************************"
68    ui_msg "*                                                              *"
69    ui_msg "* If you run rrgbis the first time, you must call rrgbis-setup *"
70    ui_msg "* so the default configuration data can be set up.             *"
71    ui_msg "*                                                              *"
72    ui_msg "* This script is provided by macports and not part of the      *"
73    ui_msg "* official distribution! If there are any problems with it     *"
74    ui_msg "* contact the port maintainer.                                 *"
75    ui_msg "*                                                              *"
76    ui_msg "****************************************************************"
77}
78
79livecheck.version   1.06
Note: See TracBrowser for help on using the repository browser.