aboutsummaryrefslogtreecommitdiff
path: root/games/tomatoes
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2005-02-08 00:07:49 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2005-02-08 00:07:49 +0000
commit1437004df76e8d2646f174b6ad8a15f7106a1453 (patch)
treebe0bf3ce503f6b5eab790363f7ddf1c3383541d1 /games/tomatoes
parentddfb449d820578e9262fd50b1aa2ee9f1305445e (diff)
downloadports-1437004df76e8d2646f174b6ad8a15f7106a1453.tar.gz
ports-1437004df76e8d2646f174b6ad8a15f7106a1453.zip
Notes
Diffstat (limited to 'games/tomatoes')
-rw-r--r--games/tomatoes/Makefile34
-rw-r--r--games/tomatoes/distinfo4
-rw-r--r--games/tomatoes/files/patch-makefile62
-rw-r--r--games/tomatoes/pkg-descr6
-rw-r--r--games/tomatoes/pkg-plist7
5 files changed, 113 insertions, 0 deletions
diff --git a/games/tomatoes/Makefile b/games/tomatoes/Makefile
new file mode 100644
index 000000000000..3f298ec2367b
--- /dev/null
+++ b/games/tomatoes/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: tomatoes
+# Date created: 2005 07 Feb
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tomatoes
+PORTVERSION= 1.5
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTFILES= ${PORTNAME}-linux-src-${PORTVERSION}5${EXTRACT_SUFX} \
+ ${PORTNAME}-linux-${PORTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Tomato-smashing, Q-Bert style
+
+USE_BZIP2= yes
+WRKSRC= ${WRKDIR}/tomatoes-${PORTVERSION}5
+TDATA= ${WRKDIR}/tomatoes-${PORTVERSION}
+
+USE_X_PREFIX= yes
+MAKEFILE= makefile
+USE_GMAKE= yes
+USE_SDL= mixer image
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}/music
+ ${INSTALL_DATA} ${TDATA}/config.cfg ${DATADIR}
+ ${INSTALL_DATA} ${TDATA}/tomatoes.mpk ${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/games/tomatoes/distinfo b/games/tomatoes/distinfo
new file mode 100644
index 000000000000..cb3db73842f9
--- /dev/null
+++ b/games/tomatoes/distinfo
@@ -0,0 +1,4 @@
+MD5 (tomatoes-linux-src-1.55.tar.bz2) = b0fa201bfb55d1cb402c52ab7e743086
+SIZE (tomatoes-linux-src-1.55.tar.bz2) = 62947
+MD5 (tomatoes-linux-1.5.tar.bz2) = a6a7ff71bb1098fd0a4098fd3d846339
+SIZE (tomatoes-linux-1.5.tar.bz2) = 8807421
diff --git a/games/tomatoes/files/patch-makefile b/games/tomatoes/files/patch-makefile
new file mode 100644
index 000000000000..fc6a95ce06e5
--- /dev/null
+++ b/games/tomatoes/files/patch-makefile
@@ -0,0 +1,62 @@
+--- makefile.orig Sat Nov 20 13:50:09 2004
++++ makefile Mon Feb 7 18:53:49 2005
+@@ -4,7 +4,7 @@
+
+ .PHONY: all clean veryclean rebuild compress
+
+-CC = g++
++CC ?= g++
+ COMPRESS = upx --best
+ TARGET = ./tomatoes
+ MARCH = pentium
+@@ -14,18 +14,18 @@
+ # necessary. Remember to include the trailing /
+
+ # MPK directory (where 'tomatoes.mpk' is), default: ./
+-MPKDIR = ./
++MPKDIR = ${PREFIX}/share/tomatoes/
+
+ # Music directory (where the music files are), default: ./music/
+-MUSICDIR = ./music/
++MUSICDIR = ${PREFIX}/share/tomatoes/music/
+
+ # Hiscore directory (where the hiscores are written to), default: ./
+ # We need read/write access!
+-HISCOREDIR = ./
++HISCOREDIR = ${PREFIX}/share/tomatoes/
+
+ # Config directory (where the 'config.cfg' is), default: ./
+ # We need read/write access!
+-CONFIGDIR = ./
++CONFIGDIR = ${PREFIX}/share/tomatoes/
+
+ # Override directory (unused at the moment), default: ./data/
+ OVERRIDEDIR = ./data/
+@@ -35,20 +35,20 @@
+
+
+ # SDL flags
+-SDL_FLAGS = `sdl-config --cflags`
++SDL_FLAGS = `sdl11-config --cflags`
+
+
+ # Debugmode stuff
+ ifdef DEBUGMODE
+-CFLAGS = -MMD -g3 -W -Wall -mcpu=$(MARCH) -DDEBUGMODE
+-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU
++CFLAGS += -MMD -g3 -W -Wall -mcpu=$(MARCH) -DDEBUGMODE
++LDFLAGS += `sdl11-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU
+ else
+ ifdef PROFILE
+-CFLAGS = -MMD -g3 -O3 -march=$(MARCH) -Wall -pg
+-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg
++CFLAGS += -MMD -g3 -march=$(MARCH) -Wall -pg
++LDFLAGS += `sdl11-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg
+ else
+-CFLAGS = -MMD -O3 -march=$(MARCH) -Wall $(SDL_FLAGS)
+-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -s
++CFLAGS += -MMD -march=$(MARCH) -Wall $(SDL_FLAGS) -I${X11BASE}/include
++LDFLAGS += `sdl11-config --libs` -L${X11BASE}/lib -lSDL_image -lSDL_mixer -lGL -lGLU -s
+ endif
+ endif
+
diff --git a/games/tomatoes/pkg-descr b/games/tomatoes/pkg-descr
new file mode 100644
index 000000000000..d99dd35e54f1
--- /dev/null
+++ b/games/tomatoes/pkg-descr
@@ -0,0 +1,6 @@
+I Have No Tomatoes is an extreme leisure time activity idea of which culminates
+in the following question: How many tomatoes can you smash in ten short
+minutes? If you have the time to spare, this game has the vegetables just
+waiting to be eliminated!
+
+WWW: http://tomatoes.sourceforge.net/
diff --git a/games/tomatoes/pkg-plist b/games/tomatoes/pkg-plist
new file mode 100644
index 000000000000..773991606e11
--- /dev/null
+++ b/games/tomatoes/pkg-plist
@@ -0,0 +1,7 @@
+bin/tomatoes
+etc/tomatoes/config.cfg
+share/tomatoes/music/IHaveNoTomatoes.it
+share/tomatoes/tomatoes.mpk
+@dirrm share/tomatoes/music
+@dirrm share/tomatoes
+@dirrm etc/tomatoes