diff options
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/chromium-bsu/Makefile | 38 | ||||
-rw-r--r-- | games/chromium-bsu/distinfo | 2 | ||||
-rw-r--r-- | games/chromium-bsu/files/patch-Makefile.no-setup | 8 | ||||
-rw-r--r-- | games/chromium-bsu/files/patch-NCString.cpp | 19 | ||||
-rw-r--r-- | games/chromium-bsu/files/patch-glpng-src-Makefile | 13 | ||||
-rw-r--r-- | games/chromium-bsu/files/patch-main.cpp | 30 | ||||
-rw-r--r-- | games/chromium-bsu/files/patch-src-Makefile | 18 | ||||
-rw-r--r-- | games/chromium-bsu/pkg-descr | 6 | ||||
-rw-r--r-- | games/chromium-bsu/pkg-plist | 93 | ||||
-rw-r--r-- | games/chromium-bsu/scripts/configure | 32 | ||||
-rw-r--r-- | games/chromium/Makefile | 38 | ||||
-rw-r--r-- | games/chromium/distinfo | 2 | ||||
-rw-r--r-- | games/chromium/files/patch-Makefile.no-setup | 8 | ||||
-rw-r--r-- | games/chromium/files/patch-NCString.cpp | 19 | ||||
-rw-r--r-- | games/chromium/files/patch-glpng-src-Makefile | 13 | ||||
-rw-r--r-- | games/chromium/files/patch-main.cpp | 30 | ||||
-rw-r--r-- | games/chromium/files/patch-src-Makefile | 18 | ||||
-rw-r--r-- | games/chromium/pkg-descr | 6 | ||||
-rw-r--r-- | games/chromium/pkg-plist | 93 | ||||
-rw-r--r-- | games/chromium/scripts/configure | 32 |
21 files changed, 519 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 3bd2198bf7eb..e12d0005a9b9 100644 --- a/games/Makefile +++ b/games/Makefile @@ -56,6 +56,7 @@ SUBDIR += bzflag SUBDIR += cgoban SUBDIR += cgoban2 + SUBDIR += chromium SUBDIR += circuslinux SUBDIR += civ2demo SUBDIR += clanbomber diff --git a/games/chromium-bsu/Makefile b/games/chromium-bsu/Makefile new file mode 100644 index 000000000000..abc15d90d13c --- /dev/null +++ b/games/chromium-bsu/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: chromium +# Date created: 17 Dec, 2003 +# Whom: Eric Anholt <anholt@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= chromium +PORTVERSION= 0.9.12 +CATEGORIES= games +MASTER_SITES= http://www.reptilelabour.com/software/files/chromium/ +DISTFILES= ${PORTNAME}-src-${PORTVERSION}.tar.gz \ + ${PORTNAME}-data-${PORTVERSION}.tar.gz + +MAINTAINER= anholt@FreeBSD.org +COMMENT= An arcade-style, top-scrolling space shooter + +LIB_DEPENDS= ogg.4:${PORTSDIR}/audio/libogg \ + smpeg.1:${PORTSDIR}/multimedia/smpeg \ + openal.0:${PORTSDIR}/audio/openal + +USE_GL= yes +USE_GMAKE= yes +WRKSRC= ${WRKDIR}/Chromium-0.9 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/chromium ${PREFIX}/bin + ${MKDIR} ${DATADIR}/data + (cd ${WRKSRC}/data && \ + ${TAR} -c -f - png fonts wav --exclude "*CVS*" --exclude "*xvpics*") | \ + (cd ${DATADIR}/data && ${TAR} -x -f - ) +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + (cd ${WRKSRC}/data/doc && ${TAR} -c -f - * --exclude "*CVS*") | \ + (cd ${DOCSDIR} && ${TAR} -x -f - ) +.endif + +.include <bsd.port.mk> diff --git a/games/chromium-bsu/distinfo b/games/chromium-bsu/distinfo new file mode 100644 index 000000000000..46cbd3490a3f --- /dev/null +++ b/games/chromium-bsu/distinfo @@ -0,0 +1,2 @@ +MD5 (chromium-src-0.9.12.tar.gz) = 969883f2f20f10cd6cdb380582f130c4 +MD5 (chromium-data-0.9.12.tar.gz) = 173fdf76f1e4d7496142cd5662456a73 diff --git a/games/chromium-bsu/files/patch-Makefile.no-setup b/games/chromium-bsu/files/patch-Makefile.no-setup new file mode 100644 index 000000000000..c155f9f3c855 --- /dev/null +++ b/games/chromium-bsu/files/patch-Makefile.no-setup @@ -0,0 +1,8 @@ +--- scripts/Makefile.no-setup.orig Fri Mar 14 20:45:01 2003 ++++ scripts/Makefile.no-setup Fri Mar 14 20:45:07 2003 +@@ -1,5 +1,4 @@ + SUPPORT_DIRS = \ +- ./support/openal/ \ + ./support/glpng/src + + CHROMIUM_DIRS = \ diff --git a/games/chromium-bsu/files/patch-NCString.cpp b/games/chromium-bsu/files/patch-NCString.cpp new file mode 100644 index 000000000000..f1c98cd4a8f9 --- /dev/null +++ b/games/chromium-bsu/files/patch-NCString.cpp @@ -0,0 +1,19 @@ +--- src/NCString.cpp.orig Fri Mar 14 19:57:50 2003 ++++ src/NCString.cpp Fri Mar 14 20:06:44 2003 +@@ -5,6 +5,7 @@ + #include <stdlib.h> + #include <string.h> + #include <limits.h> ++#include <stdarg.h> + + /** + * ctor +@@ -1055,7 +1056,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); diff --git a/games/chromium-bsu/files/patch-glpng-src-Makefile b/games/chromium-bsu/files/patch-glpng-src-Makefile new file mode 100644 index 000000000000..2ed9b3ce3d47 --- /dev/null +++ b/games/chromium-bsu/files/patch-glpng-src-Makefile @@ -0,0 +1,13 @@ +--- support/glpng/src/Makefile.orig Fri Mar 14 20:53:54 2003 ++++ support/glpng/src/Makefile Fri Mar 14 20:54:26 2003 +@@ -7,10 +7,6 @@ + + ####### Compiler, tools and options + +-CC = gcc +-CXX = g++ +-CFLAGS = -pipe -O2 +-CXXFLAGS= -pipe -O2 + INCPATH = -I../include -I/usr/include -I/usr/X11R6/include + AR = ar cqs + RANLIB = diff --git a/games/chromium-bsu/files/patch-main.cpp b/games/chromium-bsu/files/patch-main.cpp new file mode 100644 index 000000000000..721801210fe7 --- /dev/null +++ b/games/chromium-bsu/files/patch-main.cpp @@ -0,0 +1,30 @@ +--- src/main.cpp.orig Fri Mar 14 21:01:12 2003 ++++ src/main.cpp Fri Mar 14 21:01:12 2003 +@@ -109,10 +109,6 @@ + } + } + +-#ifdef PKGDATADIR +- strcpy(dataDir, PKGDATADIR); +- strcat(dataDir, "/data"); +-#else + char *chromData = getenv("CHROMIUM_DATA"); + if(chromData) + strcpy(dataDir, chromData); +@@ -121,7 +117,7 @@ + #ifdef macintosh + strcpy(dataDir, "::data"); + #else +- strcpy(dataDir, "../data"); ++ strcpy(dataDir, CHROMIUM_DATA_DIR); + #endif + fprintf(stderr, "!!\n"); + fprintf(stderr, "!! WARNING - CHROMIUM_DATA environment variable is not set!\n"); +@@ -131,7 +127,6 @@ + fprintf(stderr, "!! (using %s)\n", dataDir); + fprintf(stderr, "!!\n"); + } +-#endif + + srand(time(NULL)); + diff --git a/games/chromium-bsu/files/patch-src-Makefile b/games/chromium-bsu/files/patch-src-Makefile new file mode 100644 index 000000000000..b984ee7513a9 --- /dev/null +++ b/games/chromium-bsu/files/patch-src-Makefile @@ -0,0 +1,18 @@ +--- src/Makefile.orig Mon May 21 22:25:50 2001 ++++ src/Makefile Fri Mar 14 20:56:28 2003 +@@ -8,12 +8,10 @@ + include ../config.mak + ####### Compiler, tools and options + +-CC = gcc +-CXX = g++ +-CFLAGS = -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT +-CXXFLAGS= -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT ++CFLAGS += $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -DAUDIO_OPENAL -D_REENTRANT ++CXXFLAGS+= $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -DAUDIO_OPENAL -D_REENTRANT + INCPATH = -I../support/include -I../support/glpng/include -I/usr/X11R6/include +-LINK = g++ ++LINK = ${CXX} + 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) + MOC = $(QTDIR)/bin/moc diff --git a/games/chromium-bsu/pkg-descr b/games/chromium-bsu/pkg-descr new file mode 100644 index 000000000000..909f495ba1b5 --- /dev/null +++ b/games/chromium-bsu/pkg-descr @@ -0,0 +1,6 @@ +Chromium B.S.U. is a fast paced, arcade-style, top-scrolling space shooter. + +WWW: http://www.reptilelabour.com/software/chromium/ + +- Eric Anholt +anholt@FreeBSD.org diff --git a/games/chromium-bsu/pkg-plist b/games/chromium-bsu/pkg-plist new file mode 100644 index 000000000000..239d03b4201c --- /dev/null +++ b/games/chromium-bsu/pkg-plist @@ -0,0 +1,93 @@ +bin/chromium +share/chromium/data/png/check.png +share/chromium/data/png/chrome.jpg +share/chromium/data/png/darken.png +share/chromium/data/png/elect.png +share/chromium/data/png/electric.png +share/chromium/data/png/enemy00.png +share/chromium/data/png/enemy01-extra.png +share/chromium/data/png/enemy01-rot.png +share/chromium/data/png/enemy01.png +share/chromium/data/png/enemy02.png +share/chromium/data/png/enemy03-extra.png +share/chromium/data/png/enemy03.png +share/chromium/data/png/enemy04.png +share/chromium/data/png/enemy05.png +share/chromium/data/png/enemy06.png +share/chromium/data/png/enemyAmmo00.png +share/chromium/data/png/enemyAmmo01.png +share/chromium/data/png/enemyAmmo02.png +share/chromium/data/png/enemyAmmo03.png +share/chromium/data/png/enemyAmmo04.png +share/chromium/data/png/enemyAmmoExplo00.png +share/chromium/data/png/enemyAmmoExplo01.png +share/chromium/data/png/enemyAmmoExplo02.png +share/chromium/data/png/enemyAmmoExplo03.png +share/chromium/data/png/enemyAmmoExplo04.png +share/chromium/data/png/enemyExplo.png +share/chromium/data/png/explo.png +share/chromium/data/png/glitter.png +share/chromium/data/png/gndBaseSea.png +share/chromium/data/png/gndMetalBase00.png +share/chromium/data/png/gndMetalBase01.png +share/chromium/data/png/gndMetalBase02.png +share/chromium/data/png/gndMetalBlip.png +share/chromium/data/png/hero.png +share/chromium/data/png/heroAmmo00.png +share/chromium/data/png/heroAmmo01.png +share/chromium/data/png/heroAmmo02.png +share/chromium/data/png/heroAmmoExplo00.png +share/chromium/data/png/heroAmmoExplo01.png +share/chromium/data/png/heroAmmoExplo02.png +share/chromium/data/png/heroExplo00.png +share/chromium/data/png/heroAmmoFlash00.png +share/chromium/data/png/heroAmmoFlash01.png +share/chromium/data/png/heroAmmoFlash02.png +share/chromium/data/png/heroExplo01.png +share/chromium/data/png/heroExplo02.png +share/chromium/data/png/heroShields.png +share/chromium/data/png/heroSuper.png +share/chromium/data/png/life.png +share/chromium/data/png/menu_back.png +share/chromium/data/png/powerUpAmmo.png +share/chromium/data/png/powerUpShield.png +share/chromium/data/png/powerUpTex.png +share/chromium/data/png/reflect-blend.png +share/chromium/data/png/reflect-gnd.png +share/chromium/data/png/reflect.png +share/chromium/data/png/shields.png +share/chromium/data/png/stat-top.png +share/chromium/data/png/statBar.png +share/chromium/data/png/superBomb.png +share/chromium/data/png/useFocus.png +share/chromium/data/png/useItem00.png +share/chromium/data/png/useItem01.png +share/chromium/data/png/cursor.png +share/chromium/data/png/menu_updown.png +share/chromium/data/fonts/space.txf +share/chromium/data/fonts/space.txf.small +share/chromium/data/wav/boom.wav +share/chromium/data/wav/exploBig.wav +share/chromium/data/wav/exploPop.wav +share/chromium/data/wav/exploStd.wav +share/chromium/data/wav/life_add.wav +share/chromium/data/wav/life_lose.wav +share/chromium/data/wav/music_game.wav +share/chromium/data/wav/music_menu.wav +share/chromium/data/wav/power.wav +%%PORTDOCS%%%%DOCSDIR%%/info.htm +%%PORTDOCS%%%%DOCSDIR%%/faq.htm +%%PORTDOCS%%%%DOCSDIR%%/images/heroAmmo00.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/heroAmmo01.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/heroAmmo02.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/powerUp00.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/powerUp01.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/powerUp02.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/useItem00.jpg +@dirrm share/chromium/data/png +@dirrm share/chromium/data/fonts +@dirrm share/chromium/data/wav +@dirrm share/chromium/data +@dirrm share/chromium +%%PORTDOCS%%@dirrm %%DOCSDIR%%/images +%%PORTDOCS%%@dirrm %%DOCSDIR%% diff --git a/games/chromium-bsu/scripts/configure b/games/chromium-bsu/scripts/configure new file mode 100644 index 000000000000..340d35281dd2 --- /dev/null +++ b/games/chromium-bsu/scripts/configure @@ -0,0 +1,32 @@ + +SDL_CONFIG=sdl11-config +SMPEG_CONFIG=smpeg-config +OPENAL_CONFIG_OPTS="./configure --enable-sdl --enable-smpeg--enable-vorbis" +SDL_LIBS="\`\$(SDL_CONFIG) --libs\`" +SDL_CFLAGS="\`\$(SDL_CONFIG) --cflags\` -DUSE_SDL" +SMPEG_LIBS="\`\$(SMPEG_CONFIG) --libs\`" +SMPEG_CFLAGS="\`\$(SMPEG_CONFIG) --cflags\`" +GL_LIBS="-lglpng -lGL -lGLU -lm" +AL_LIBS="-L${LOCALBASE}/lib -lopenal" +AL_CFLAGS="-I${LOCALBASE}/include" +PKG_CFLAGS="-DPKGDATADIR=\\\"$PREFIX/share/chromium\\\"" + +CONFIGFILE=${WRKSRC}/config.mak + +echo "OPENAL_CONFIG_OPTS = $OPENAL_CONFIG_OPTS" > ${CONFIGFILE} +echo "" >> ${CONFIGFILE} +echo "SDL_CONFIG = $SDL_CONFIG" >> ${CONFIGFILE} +echo "SMPEG_CONFIG = $SMPEG_CONFIG" >> ${CONFIGFILE} +echo "" >> ${CONFIGFILE} +echo "AL_CFLAGS = $AL_CFLAGS" >> ${CONFIGFILE} +echo "SDL_CFLAGS = $SDL_CFLAGS" >> ${CONFIGFILE} +echo "SMPEG_CFLAGS = $SMPEG_CFLAGS" >> ${CONFIGFILE} +echo "PKG_CFLAGS = $PKG_CFLAGS" >> ${CONFIGFILE} +echo "" >> ${CONFIGFILE} +echo "GL_LIBS = $GL_LIBS" >> ${CONFIGFILE} +echo "AL_LIBS = $AL_LIBS" >> ${CONFIGFILE} +echo "SDL_LIBS = $SDL_LIBS" >> ${CONFIGFILE} +echo "SMPEG_LIBS = $SMPEG_LIBS" >> ${CONFIGFILE} +echo "VORBIS_LIBS = $VORBIS_LIBS" >> ${CONFIGFILE} + +cp -f ${WRKSRC}/scripts/Makefile.no-setup ${WRKSRC}/Makefile diff --git a/games/chromium/Makefile b/games/chromium/Makefile new file mode 100644 index 000000000000..abc15d90d13c --- /dev/null +++ b/games/chromium/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: chromium +# Date created: 17 Dec, 2003 +# Whom: Eric Anholt <anholt@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= chromium +PORTVERSION= 0.9.12 +CATEGORIES= games +MASTER_SITES= http://www.reptilelabour.com/software/files/chromium/ +DISTFILES= ${PORTNAME}-src-${PORTVERSION}.tar.gz \ + ${PORTNAME}-data-${PORTVERSION}.tar.gz + +MAINTAINER= anholt@FreeBSD.org +COMMENT= An arcade-style, top-scrolling space shooter + +LIB_DEPENDS= ogg.4:${PORTSDIR}/audio/libogg \ + smpeg.1:${PORTSDIR}/multimedia/smpeg \ + openal.0:${PORTSDIR}/audio/openal + +USE_GL= yes +USE_GMAKE= yes +WRKSRC= ${WRKDIR}/Chromium-0.9 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/chromium ${PREFIX}/bin + ${MKDIR} ${DATADIR}/data + (cd ${WRKSRC}/data && \ + ${TAR} -c -f - png fonts wav --exclude "*CVS*" --exclude "*xvpics*") | \ + (cd ${DATADIR}/data && ${TAR} -x -f - ) +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + (cd ${WRKSRC}/data/doc && ${TAR} -c -f - * --exclude "*CVS*") | \ + (cd ${DOCSDIR} && ${TAR} -x -f - ) +.endif + +.include <bsd.port.mk> diff --git a/games/chromium/distinfo b/games/chromium/distinfo new file mode 100644 index 000000000000..46cbd3490a3f --- /dev/null +++ b/games/chromium/distinfo @@ -0,0 +1,2 @@ +MD5 (chromium-src-0.9.12.tar.gz) = 969883f2f20f10cd6cdb380582f130c4 +MD5 (chromium-data-0.9.12.tar.gz) = 173fdf76f1e4d7496142cd5662456a73 diff --git a/games/chromium/files/patch-Makefile.no-setup b/games/chromium/files/patch-Makefile.no-setup new file mode 100644 index 000000000000..c155f9f3c855 --- /dev/null +++ b/games/chromium/files/patch-Makefile.no-setup @@ -0,0 +1,8 @@ +--- scripts/Makefile.no-setup.orig Fri Mar 14 20:45:01 2003 ++++ scripts/Makefile.no-setup Fri Mar 14 20:45:07 2003 +@@ -1,5 +1,4 @@ + SUPPORT_DIRS = \ +- ./support/openal/ \ + ./support/glpng/src + + CHROMIUM_DIRS = \ diff --git a/games/chromium/files/patch-NCString.cpp b/games/chromium/files/patch-NCString.cpp new file mode 100644 index 000000000000..f1c98cd4a8f9 --- /dev/null +++ b/games/chromium/files/patch-NCString.cpp @@ -0,0 +1,19 @@ +--- src/NCString.cpp.orig Fri Mar 14 19:57:50 2003 ++++ src/NCString.cpp Fri Mar 14 20:06:44 2003 +@@ -5,6 +5,7 @@ + #include <stdlib.h> + #include <string.h> + #include <limits.h> ++#include <stdarg.h> + + /** + * ctor +@@ -1055,7 +1056,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); diff --git a/games/chromium/files/patch-glpng-src-Makefile b/games/chromium/files/patch-glpng-src-Makefile new file mode 100644 index 000000000000..2ed9b3ce3d47 --- /dev/null +++ b/games/chromium/files/patch-glpng-src-Makefile @@ -0,0 +1,13 @@ +--- support/glpng/src/Makefile.orig Fri Mar 14 20:53:54 2003 ++++ support/glpng/src/Makefile Fri Mar 14 20:54:26 2003 +@@ -7,10 +7,6 @@ + + ####### Compiler, tools and options + +-CC = gcc +-CXX = g++ +-CFLAGS = -pipe -O2 +-CXXFLAGS= -pipe -O2 + INCPATH = -I../include -I/usr/include -I/usr/X11R6/include + AR = ar cqs + RANLIB = diff --git a/games/chromium/files/patch-main.cpp b/games/chromium/files/patch-main.cpp new file mode 100644 index 000000000000..721801210fe7 --- /dev/null +++ b/games/chromium/files/patch-main.cpp @@ -0,0 +1,30 @@ +--- src/main.cpp.orig Fri Mar 14 21:01:12 2003 ++++ src/main.cpp Fri Mar 14 21:01:12 2003 +@@ -109,10 +109,6 @@ + } + } + +-#ifdef PKGDATADIR +- strcpy(dataDir, PKGDATADIR); +- strcat(dataDir, "/data"); +-#else + char *chromData = getenv("CHROMIUM_DATA"); + if(chromData) + strcpy(dataDir, chromData); +@@ -121,7 +117,7 @@ + #ifdef macintosh + strcpy(dataDir, "::data"); + #else +- strcpy(dataDir, "../data"); ++ strcpy(dataDir, CHROMIUM_DATA_DIR); + #endif + fprintf(stderr, "!!\n"); + fprintf(stderr, "!! WARNING - CHROMIUM_DATA environment variable is not set!\n"); +@@ -131,7 +127,6 @@ + fprintf(stderr, "!! (using %s)\n", dataDir); + fprintf(stderr, "!!\n"); + } +-#endif + + srand(time(NULL)); + diff --git a/games/chromium/files/patch-src-Makefile b/games/chromium/files/patch-src-Makefile new file mode 100644 index 000000000000..b984ee7513a9 --- /dev/null +++ b/games/chromium/files/patch-src-Makefile @@ -0,0 +1,18 @@ +--- src/Makefile.orig Mon May 21 22:25:50 2001 ++++ src/Makefile Fri Mar 14 20:56:28 2003 +@@ -8,12 +8,10 @@ + include ../config.mak + ####### Compiler, tools and options + +-CC = gcc +-CXX = g++ +-CFLAGS = -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT +-CXXFLAGS= -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT ++CFLAGS += $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -DAUDIO_OPENAL -D_REENTRANT ++CXXFLAGS+= $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -DAUDIO_OPENAL -D_REENTRANT + INCPATH = -I../support/include -I../support/glpng/include -I/usr/X11R6/include +-LINK = g++ ++LINK = ${CXX} + 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) + MOC = $(QTDIR)/bin/moc diff --git a/games/chromium/pkg-descr b/games/chromium/pkg-descr new file mode 100644 index 000000000000..909f495ba1b5 --- /dev/null +++ b/games/chromium/pkg-descr @@ -0,0 +1,6 @@ +Chromium B.S.U. is a fast paced, arcade-style, top-scrolling space shooter. + +WWW: http://www.reptilelabour.com/software/chromium/ + +- Eric Anholt +anholt@FreeBSD.org diff --git a/games/chromium/pkg-plist b/games/chromium/pkg-plist new file mode 100644 index 000000000000..239d03b4201c --- /dev/null +++ b/games/chromium/pkg-plist @@ -0,0 +1,93 @@ +bin/chromium +share/chromium/data/png/check.png +share/chromium/data/png/chrome.jpg +share/chromium/data/png/darken.png +share/chromium/data/png/elect.png +share/chromium/data/png/electric.png +share/chromium/data/png/enemy00.png +share/chromium/data/png/enemy01-extra.png +share/chromium/data/png/enemy01-rot.png +share/chromium/data/png/enemy01.png +share/chromium/data/png/enemy02.png +share/chromium/data/png/enemy03-extra.png +share/chromium/data/png/enemy03.png +share/chromium/data/png/enemy04.png +share/chromium/data/png/enemy05.png +share/chromium/data/png/enemy06.png +share/chromium/data/png/enemyAmmo00.png +share/chromium/data/png/enemyAmmo01.png +share/chromium/data/png/enemyAmmo02.png +share/chromium/data/png/enemyAmmo03.png +share/chromium/data/png/enemyAmmo04.png +share/chromium/data/png/enemyAmmoExplo00.png +share/chromium/data/png/enemyAmmoExplo01.png +share/chromium/data/png/enemyAmmoExplo02.png +share/chromium/data/png/enemyAmmoExplo03.png +share/chromium/data/png/enemyAmmoExplo04.png +share/chromium/data/png/enemyExplo.png +share/chromium/data/png/explo.png +share/chromium/data/png/glitter.png +share/chromium/data/png/gndBaseSea.png +share/chromium/data/png/gndMetalBase00.png +share/chromium/data/png/gndMetalBase01.png +share/chromium/data/png/gndMetalBase02.png +share/chromium/data/png/gndMetalBlip.png +share/chromium/data/png/hero.png +share/chromium/data/png/heroAmmo00.png +share/chromium/data/png/heroAmmo01.png +share/chromium/data/png/heroAmmo02.png +share/chromium/data/png/heroAmmoExplo00.png +share/chromium/data/png/heroAmmoExplo01.png +share/chromium/data/png/heroAmmoExplo02.png +share/chromium/data/png/heroExplo00.png +share/chromium/data/png/heroAmmoFlash00.png +share/chromium/data/png/heroAmmoFlash01.png +share/chromium/data/png/heroAmmoFlash02.png +share/chromium/data/png/heroExplo01.png +share/chromium/data/png/heroExplo02.png +share/chromium/data/png/heroShields.png +share/chromium/data/png/heroSuper.png +share/chromium/data/png/life.png +share/chromium/data/png/menu_back.png +share/chromium/data/png/powerUpAmmo.png +share/chromium/data/png/powerUpShield.png +share/chromium/data/png/powerUpTex.png +share/chromium/data/png/reflect-blend.png +share/chromium/data/png/reflect-gnd.png +share/chromium/data/png/reflect.png +share/chromium/data/png/shields.png +share/chromium/data/png/stat-top.png +share/chromium/data/png/statBar.png +share/chromium/data/png/superBomb.png +share/chromium/data/png/useFocus.png +share/chromium/data/png/useItem00.png +share/chromium/data/png/useItem01.png +share/chromium/data/png/cursor.png +share/chromium/data/png/menu_updown.png +share/chromium/data/fonts/space.txf +share/chromium/data/fonts/space.txf.small +share/chromium/data/wav/boom.wav +share/chromium/data/wav/exploBig.wav +share/chromium/data/wav/exploPop.wav +share/chromium/data/wav/exploStd.wav +share/chromium/data/wav/life_add.wav +share/chromium/data/wav/life_lose.wav +share/chromium/data/wav/music_game.wav +share/chromium/data/wav/music_menu.wav +share/chromium/data/wav/power.wav +%%PORTDOCS%%%%DOCSDIR%%/info.htm +%%PORTDOCS%%%%DOCSDIR%%/faq.htm +%%PORTDOCS%%%%DOCSDIR%%/images/heroAmmo00.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/heroAmmo01.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/heroAmmo02.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/powerUp00.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/powerUp01.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/powerUp02.jpg +%%PORTDOCS%%%%DOCSDIR%%/images/useItem00.jpg +@dirrm share/chromium/data/png +@dirrm share/chromium/data/fonts +@dirrm share/chromium/data/wav +@dirrm share/chromium/data +@dirrm share/chromium +%%PORTDOCS%%@dirrm %%DOCSDIR%%/images +%%PORTDOCS%%@dirrm %%DOCSDIR%% diff --git a/games/chromium/scripts/configure b/games/chromium/scripts/configure new file mode 100644 index 000000000000..340d35281dd2 --- /dev/null +++ b/games/chromium/scripts/configure @@ -0,0 +1,32 @@ + +SDL_CONFIG=sdl11-config +SMPEG_CONFIG=smpeg-config +OPENAL_CONFIG_OPTS="./configure --enable-sdl --enable-smpeg--enable-vorbis" +SDL_LIBS="\`\$(SDL_CONFIG) --libs\`" +SDL_CFLAGS="\`\$(SDL_CONFIG) --cflags\` -DUSE_SDL" +SMPEG_LIBS="\`\$(SMPEG_CONFIG) --libs\`" +SMPEG_CFLAGS="\`\$(SMPEG_CONFIG) --cflags\`" +GL_LIBS="-lglpng -lGL -lGLU -lm" +AL_LIBS="-L${LOCALBASE}/lib -lopenal" +AL_CFLAGS="-I${LOCALBASE}/include" +PKG_CFLAGS="-DPKGDATADIR=\\\"$PREFIX/share/chromium\\\"" + +CONFIGFILE=${WRKSRC}/config.mak + +echo "OPENAL_CONFIG_OPTS = $OPENAL_CONFIG_OPTS" > ${CONFIGFILE} +echo "" >> ${CONFIGFILE} +echo "SDL_CONFIG = $SDL_CONFIG" >> ${CONFIGFILE} +echo "SMPEG_CONFIG = $SMPEG_CONFIG" >> ${CONFIGFILE} +echo "" >> ${CONFIGFILE} +echo "AL_CFLAGS = $AL_CFLAGS" >> ${CONFIGFILE} +echo "SDL_CFLAGS = $SDL_CFLAGS" >> ${CONFIGFILE} +echo "SMPEG_CFLAGS = $SMPEG_CFLAGS" >> ${CONFIGFILE} +echo "PKG_CFLAGS = $PKG_CFLAGS" >> ${CONFIGFILE} +echo "" >> ${CONFIGFILE} +echo "GL_LIBS = $GL_LIBS" >> ${CONFIGFILE} +echo "AL_LIBS = $AL_LIBS" >> ${CONFIGFILE} +echo "SDL_LIBS = $SDL_LIBS" >> ${CONFIGFILE} +echo "SMPEG_LIBS = $SMPEG_LIBS" >> ${CONFIGFILE} +echo "VORBIS_LIBS = $VORBIS_LIBS" >> ${CONFIGFILE} + +cp -f ${WRKSRC}/scripts/Makefile.no-setup ${WRKSRC}/Makefile |