1 | # $Id: Portfile,v 1.3 2005/04/21 15:57:48 jberry Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name chromium |
---|
6 | version 0.9.12 |
---|
7 | categories games |
---|
8 | platforms darwin |
---|
9 | maintainers mww@opendarwin.org |
---|
10 | description fast paced, arcade-style, top-scrolling space shooter. |
---|
11 | long_description ${description} |
---|
12 | |
---|
13 | homepage http://www.reptilelabour.com/software/chromium/ |
---|
14 | master_sites http://www.reptilelabour.com/software/files/chromium/ |
---|
15 | distfiles ${name}-src-${version}.tar.gz \ |
---|
16 | ${name}-data-${version}.tar.gz |
---|
17 | checksums ${name}-src-${version}.tar.gz \ |
---|
18 | md5 969883f2f20f10cd6cdb380582f130c4 \ |
---|
19 | ${name}-data-${version}.tar.gz \ |
---|
20 | md5 173fdf76f1e4d7496142cd5662456a73 |
---|
21 | patchfiles patch-configure_functions \ |
---|
22 | patch-Makefile.no-setup \ |
---|
23 | patch-NCString.cpp \ |
---|
24 | patch-Makefile \ |
---|
25 | patch-MainSDL_Event.cpp |
---|
26 | |
---|
27 | worksrcdir Chromium-0.9 |
---|
28 | |
---|
29 | depends_lib lib:libvorbis:libvorbis \ |
---|
30 | port:libsdl \ |
---|
31 | port:smpeg \ |
---|
32 | port:openal |
---|
33 | |
---|
34 | extract.post_args "| tar -xf - --exclude 'CVS'" |
---|
35 | |
---|
36 | post-patch { |
---|
37 | reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/configure |
---|
38 | reinplace "s|\"../data\"|\"${prefix}/share/${name}\"|g" \ |
---|
39 | ${worksrcpath}/src/main.cpp ${worksrcpath}/src/define.h |
---|
40 | } |
---|
41 | configure.pre_args |
---|
42 | configure.args --enable-sdl \ |
---|
43 | --enable-smpeg \ |
---|
44 | --enable-vorbis \ |
---|
45 | --disable-setup |
---|
46 | |
---|
47 | destroot { |
---|
48 | xinstall -m 755 ${worksrcpath}/bin/chromium ${destroot}${prefix}/bin |
---|
49 | xinstall -m 755 -d ${destroot}${prefix}/share/ |
---|
50 | file copy ${worksrcpath}/data ${destroot}${prefix}/share/${name} |
---|
51 | xinstall -m 644 ${filespath}/powerUpShield.png \ |
---|
52 | ${destroot}${prefix}/share/${name}/png |
---|
53 | } |
---|
54 | |
---|
55 | variant darwin { |
---|
56 | post-destroot { |
---|
57 | xinstall -m 755 -d ${destroot}/Applications/DarwinPorts/Chromium.app/Contents/MacOS |
---|
58 | system "ln -s ${prefix}/bin/chromium \ |
---|
59 | ${destroot}/Applications/DarwinPorts/Chromium.app/Contents/MacOS/Chromium" |
---|
60 | } |
---|
61 | } |
---|