View | Details | Raw Unified | Return to bug 82677
Collapse All | Expand All

(-)games/tomatoes/Makefile (-10 / +29 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	tomatoes
8
PORTNAME=	tomatoes
9
PORTVERSION=	1.5
9
PORTVERSION=	1.5
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
Lines 17-42 Link Here
17
MAINTAINER=	ports@FreeBSD.org
17
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	Tomato-smashing, Q-Bert style
18
COMMENT=	Tomato-smashing, Q-Bert style
19
19
20
LIB_DEPENDS=	mikmod:${PORTSDIR}/audio/libmikmod
21
22
USE_BZIP2=	yes
23
WRKSRC=		${WRKDIR}/tomatoes-${PORTVERSION}5
20
WRKSRC=		${WRKDIR}/tomatoes-${PORTVERSION}5
24
TDATA=		${WRKDIR}/tomatoes-${PORTVERSION}
21
TDATA=		${WRKDIR}/tomatoes-${PORTVERSION}
25
22
23
USE_BZIP2=	yes
26
USE_X_PREFIX=	yes
24
USE_X_PREFIX=	yes
27
MAKEFILE=	makefile
25
USE_SDL=	mixer image
26
USE_GL=		yes
28
USE_GMAKE=	yes
27
USE_GMAKE=	yes
29
USE_SDL=	mixer image sound
28
MAKEFILE=	makefile
29
MAKE_ARGS=	CC="${CXX}" \
30
		MPKDIR="${DATADIR}/" \
31
		MUSICDIR="${DATADIR}/music/" \
32
		HISCOREDIR="${DATADIR}/" \
33
		CONFIGDIR="${DATADIR}/" \
34
		CFLAGS="${CXXFLAGS} ${SDL_CFLAGS}" \
35
		LDFLAGS="${SDL_LDFLAGS}"
36
37
PLIST_FILES=	bin/tomatoes \
38
		%%DATADIR%%/config.cfg \
39
		%%DATADIR%%/music/IHaveNoTomatoes.it \
40
		%%DATADIR%%/tomatoes.mpk
41
PLIST_DIRS=	%%DATADIR%%/music \
42
		%%DATADIR%%
43
44
SDL_CFLAGS=	`${SDL_CONFIG} --cflags` -I${X11BASE}/include
45
SDL_LDFLAGS=	`${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer \
46
		-L${X11BASE}/lib -lGL -lGLU
30
47
31
.include <bsd.port.pre.mk>
48
.include <bsd.port.pre.mk>
32
49
33
.if ${OSVERSION} < 500000
34
BROKEN=		Does not build on 4.X
35
.endif
36
37
.if ${ARCH} != "i386"
50
.if ${ARCH} != "i386"
38
BROKEN=		"Does not compile on !i386"
51
BROKEN=		"Does not compile on !i386"
39
.endif
52
.endif
53
54
post-patch:
55
.for file in include/font.h
56
	cd ${WRKSRC} && ${CP} ${file} ${file}.bak \
57
		&& ${TR} -d '\r' < ${file}.bak > ${file}
58
.endfor
40
59
41
do-install:
60
do-install:
42
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
61
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
(-)games/tomatoes/files/patch-makefile (-62 lines)
Lines 1-62 Link Here
1
--- makefile.orig	Sat Nov 20 13:50:09 2004
2
+++ makefile	Mon Feb  7 18:53:49 2005
3
@@ -4,7 +4,7 @@
4
 
5
 .PHONY: all clean veryclean rebuild compress
6
 
7
-CC = g++
8
+CC ?= g++
9
 COMPRESS = upx --best
10
 TARGET = ./tomatoes
11
 MARCH = pentium
12
@@ -14,18 +14,18 @@
13
 # necessary. Remember to include the trailing /
14
 
15
 # MPK directory (where 'tomatoes.mpk' is), default: ./
16
-MPKDIR = ./
17
+MPKDIR = ${PREFIX}/share/tomatoes/
18
 
19
 # Music directory (where the music files are), default: ./music/
20
-MUSICDIR = ./music/
21
+MUSICDIR = ${PREFIX}/share/tomatoes/music/
22
 
23
 # Hiscore directory (where the hiscores are written to), default: ./
24
 # We need read/write access!
25
-HISCOREDIR = ./
26
+HISCOREDIR = ${PREFIX}/share/tomatoes/
27
 
28
 # Config directory (where the 'config.cfg' is), default: ./
29
 # We need read/write access!
30
-CONFIGDIR = ./
31
+CONFIGDIR = ${PREFIX}/share/tomatoes/
32
 
33
 # Override directory (unused at the moment), default: ./data/
34
 OVERRIDEDIR = ./data/
35
@@ -35,20 +35,20 @@
36
 
37
 
38
 # SDL flags
39
-SDL_FLAGS = `sdl-config --cflags`
40
+SDL_FLAGS = `sdl11-config --cflags`
41
 
42
 
43
 # Debugmode stuff
44
 ifdef DEBUGMODE
45
-CFLAGS = -MMD -g3 -W -Wall -mcpu=$(MARCH) -DDEBUGMODE
46
-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU
47
+CFLAGS += -MMD -g3 -W -Wall -mcpu=$(MARCH) -DDEBUGMODE
48
+LDFLAGS += `sdl11-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU
49
 else
50
 ifdef PROFILE
51
-CFLAGS = -MMD -g3 -O3 -march=$(MARCH) -Wall -pg
52
-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg
53
+CFLAGS += -MMD -g3 -march=$(MARCH) -Wall -pg
54
+LDFLAGS += `sdl11-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg
55
 else
56
-CFLAGS = -MMD -O3 -march=$(MARCH) -Wall $(SDL_FLAGS)
57
-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -s
58
+CFLAGS += -MMD -march=$(MARCH) -Wall $(SDL_FLAGS) -I${X11BASE}/include
59
+LDFLAGS += `sdl11-config --libs` -L${X11BASE}/lib -lSDL_image -lSDL_mixer -lGL -lGLU -s -lSDL_sound
60
 endif
61
 endif
62
 
(-)games/tomatoes/pkg-plist (-6 lines)
Lines 1-6 Link Here
1
bin/tomatoes
2
share/tomatoes/config.cfg
3
share/tomatoes/music/IHaveNoTomatoes.it
4
share/tomatoes/tomatoes.mpk
5
@dirrm share/tomatoes/music
6
@dirrm share/tomatoes

Return to bug 82677