[75794] trunk/dports/games
ryandesign at macports.org
ryandesign at macports.org
Tue Feb 8 14:19:25 PST 2011
Revision: 75794
http://trac.macports.org/changeset/75794
Author: ryandesign at macports.org
Date: 2011-02-08 14:19:23 -0800 (Tue, 08 Feb 2011)
Log Message:
-----------
chromium-bsu: new port, version 0.9.14.1, replaces chromium version 0.9.12
Modified Paths:
--------------
trunk/dports/games/chromium-bsu/Portfile
Added Paths:
-----------
trunk/dports/games/chromium-bsu/
trunk/dports/games/chromium-bsu/files/Info.plist.in
Removed Paths:
-------------
trunk/dports/games/chromium-bsu/files/patch-Makefile
trunk/dports/games/chromium-bsu/files/patch-Makefile.no-setup
trunk/dports/games/chromium-bsu/files/patch-NCString.cpp
trunk/dports/games/chromium-bsu/files/patch-configure_functions
trunk/dports/games/chromium-bsu/files/powerUpShield.png
Modified: trunk/dports/games/chromium-bsu/Portfile
===================================================================
--- trunk/dports/games/chromium/Portfile 2010-04-01 14:54:55 UTC (rev 65827)
+++ trunk/dports/games/chromium-bsu/Portfile 2011-02-08 22:19:23 UTC (rev 75794)
@@ -2,66 +2,73 @@
PortSystem 1.0
-name chromium
-version 0.9.12
-revision 1
+name chromium-bsu
+version 0.9.14.1
categories games
platforms darwin
-maintainers nomaintainer
+maintainers ryandesign openmaintainer
+license MIT
description fast paced, arcade-style, top-scrolling space shooter.
long_description ${description}
-homepage http://www.reptilelabour.com/software/chromium/
-master_sites http://www.reptilelabour.com/software/files/chromium/
-distfiles ${name}-src-${version}.tar.gz \
- ${name}-data-${version}.tar.gz
-checksums ${name}-src-${version}.tar.gz \
- md5 969883f2f20f10cd6cdb380582f130c4 \
- ${name}-data-${version}.tar.gz \
- md5 173fdf76f1e4d7496142cd5662456a73
-patchfiles patch-configure_functions \
- patch-Makefile.no-setup \
- patch-NCString.cpp \
- patch-Makefile
+homepage http://chromium-bsu.sourceforge.net/
+master_sites sourceforge
-worksrcdir Chromium-0.9
+checksums sha1 ecc3ec149f4edd7b05a26b4bc9bbbfaa8ea78b6e \
+ rmd160 a2fd3c4448a3e6c7412be96d167caf89388b1291
-depends_lib port:libvorbis \
+depends_build port:pkgconfig \
+ port:makeicns
+
+depends_lib port:quesoglc \
path:lib/pkgconfig/sdl.pc:libsdl \
- port:smpeg \
- port:openal
+ port:libsdl_image \
+ port:libsdl_mixer \
+ port:ftgl
-extract.post_args "| tar -xf - --exclude 'CVS'"
-
post-patch {
- reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/configure
reinplace "s|\"../data\"|\"${prefix}/share/${name}\"|g" \
${worksrcpath}/src/main.cpp \
${worksrcpath}/src/define.h
+ # Fix case conflict between config.h and src/Config.h
+ file rename ${worksrcpath}/src/Config.h ${worksrcpath}/src/ChromiumConfig.h
+ foreach f [glob ${worksrcpath}/src/*.cpp] {
+ reinplace {s|"Config.h"|"ChromiumConfig.h"|} ${f}
+ }
}
-configure.pre_args
-configure.args --enable-sdl \
- --enable-smpeg \
- --enable-vorbis \
- --disable-setup
+configure.args --enable-glc \
+ --disable-glpng \
+ --enable-ftgl \
+ --enable-sdl \
+ --enable-sdlimage \
+ --disable-glut \
+ --disable-openal \
+ --enable-sdlmixer
-use_parallel_build no
+configure.ldflags-append -lintl
-destroot {
- xinstall -m 755 ${worksrcpath}/bin/chromium ${destroot}${prefix}/bin
- xinstall -m 755 -d ${destroot}${prefix}/share/
- file copy ${worksrcpath}/data ${destroot}${prefix}/share/${name}
- xinstall -m 644 ${filespath}/powerUpShield.png \
- ${destroot}${prefix}/share/${name}/png
-}
-
platform darwin {
+ set appname {Chromium B.S.U.}
+ post-extract {
+ copy ${filespath}/Info.plist.in ${workpath}/Info.plist
+ }
+ post-patch {
+ reinplace "s|@APPNAME@|${appname}|g" ${workpath}/Info.plist
+ reinplace "s|@NAME@|${name}|g" ${workpath}/Info.plist
+ reinplace "s|@VERSION@|${version}|g" ${workpath}/Info.plist
+ }
+ post-build {
+ system "makeicns -in ${worksrcpath}/misc/chromium-bsu.png -out ${workpath}/${name}.icns"
+ }
post-destroot {
- xinstall -d ${destroot}${applications_dir}/Chromium.app/Contents/MacOS
- ln -s ${prefix}/bin/chromium \
- ${destroot}${applications_dir}/Chromium.app/Contents/MacOS/Chromium
+ xinstall -d ${destroot}${applications_dir}/${appname}.app/Contents/MacOS \
+ ${destroot}${applications_dir}/${appname}.app/Contents/Resources
+ xinstall -m 644 ${workpath}/Info.plist ${destroot}${applications_dir}/${appname}.app/Contents
+ ln -s ${prefix}/bin/chromium-bsu \
+ ${destroot}${applications_dir}/${appname}.app/Contents/MacOS/${appname}
+ xinstall -m 644 ${workpath}/${name}.icns ${destroot}${applications_dir}/${appname}.app/Contents/Resources/
}
}
Added: trunk/dports/games/chromium-bsu/files/Info.plist.in
===================================================================
--- trunk/dports/games/chromium-bsu/files/Info.plist.in (rev 0)
+++ trunk/dports/games/chromium-bsu/files/Info.plist.in 2011-02-08 22:19:23 UTC (rev 75794)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>@APPNAME@</string>
+ <key>CFBundleIconFile</key>
+ <string>@NAME at .icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>net.sourceforge.chromium-bsu</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>@APPNAME@</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>@VERSION@</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>@VERSION@</string>
+</dict>
+</plist>
Property changes on: trunk/dports/games/chromium-bsu/files/Info.plist.in
___________________________________________________________________
Added: svn:eol-style
+ native
Deleted: trunk/dports/games/chromium-bsu/files/patch-Makefile
===================================================================
--- trunk/dports/games/chromium/files/patch-Makefile 2010-04-01 14:54:55 UTC (rev 65827)
+++ trunk/dports/games/chromium-bsu/files/patch-Makefile 2011-02-08 22:19:23 UTC (rev 75794)
@@ -1,11 +0,0 @@
---- src/Makefile Tue May 22 07:25:50 2001
-+++ ../../Makefile Fri Nov 5 13:43:15 2004
-@@ -15,7 +15,7 @@
- INCPATH = -I../support/include -I../support/glpng/include -I/usr/X11R6/include
- LINK = g++
- LFLAGS =
--LIBS = $(SUBLIBS) -L../support/glpng/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib $(GL_LIBS) $(AL_LIBS) $(SDL_LIBS) $(SMPEG_LIBS) $(VORBIS_LIBS)
-+LIBS = $(SUBLIBS) -L../support/glpng/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib $(GL_LIBS) $(AL_LIBS) $(SDL_LIBS) $(SMPEG_LIBS) $(VORBIS_LIBS) -undefined suppress -flat_namespace
- MOC = $(QTDIR)/bin/moc
- UIC = $(QTDIR)/bin/uic
-
Deleted: trunk/dports/games/chromium-bsu/files/patch-Makefile.no-setup
===================================================================
--- trunk/dports/games/chromium/files/patch-Makefile.no-setup 2010-04-01 14:54:55 UTC (rev 65827)
+++ trunk/dports/games/chromium-bsu/files/patch-Makefile.no-setup 2011-02-08 22:19:23 UTC (rev 75794)
@@ -1,8 +0,0 @@
---- scripts/Makefile.no-setup Sat Feb 10 03:32:31 2001
-+++ ../../Makefile.no-setup Fri Nov 5 13:05:12 2004
-@@ -1,5 +1,4 @@
- SUPPORT_DIRS = \
-- ./support/openal/ \
- ./support/glpng/src
-
- CHROMIUM_DIRS = \
Deleted: trunk/dports/games/chromium-bsu/files/patch-NCString.cpp
===================================================================
--- trunk/dports/games/chromium/files/patch-NCString.cpp 2010-04-01 14:54:55 UTC (rev 65827)
+++ trunk/dports/games/chromium-bsu/files/patch-NCString.cpp 2011-02-08 22:19:23 UTC (rev 75794)
@@ -1,11 +0,0 @@
---- src/NCString.cpp Sun May 20 19:04:58 2001
-+++ ../../NCString.cpp Fri Nov 5 13:09:19 2004
-@@ -1055,7 +1055,7 @@
- uint NCString::toULong(const char *str, bool *ok)
- {
- int n;
-- ulong tmp = 0;
-+ unsigned long tmp = 0;
- if(str)
- {
- n = sscanf(str, "%lu", &tmp);
Deleted: trunk/dports/games/chromium-bsu/files/patch-configure_functions
===================================================================
--- trunk/dports/games/chromium/files/patch-configure_functions 2010-04-01 14:54:55 UTC (rev 65827)
+++ trunk/dports/games/chromium-bsu/files/patch-configure_functions 2011-02-08 22:19:23 UTC (rev 75794)
@@ -1,11 +0,0 @@
---- scripts/configure_functions Sat Mar 31 23:21:24 2001
-+++ ../../configure_functions Fri Nov 5 12:59:55 2004
-@@ -191,7 +191,7 @@
- local LIBVORBISFILE
-
- for directory in $std_lib_dirs; do
-- if [ -f $directory/libvorbis.so ]; then
-+ if [ -f $directory/libvorbis.dylib ]; then
- LIBVORBISDIR=$directory
- LIBVORBIS="-lvorbis"
- fi
Deleted: trunk/dports/games/chromium-bsu/files/powerUpShield.png
===================================================================
(Binary files differ)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110208/44849b8e/attachment-0001.html>
More information about the macports-changes
mailing list