|
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 |