2005-02-08 01:07:49 +01:00
|
|
|
# New ports collection makefile for: tomatoes
|
|
|
|
# Date created: 2005 07 Feb
|
|
|
|
# Whom: Adam Weinberger <adamw@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tomatoes
|
|
|
|
PORTVERSION= 1.5
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 4
|
2005-02-08 01:07:49 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTFILES= ${PORTNAME}-linux-src-${PORTVERSION}5${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}-linux-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
|
2006-12-21 21:41:33 +01:00
|
|
|
MAINTAINER= amdmi3@amdmi3.ru
|
2005-02-08 01:07:49 +01:00
|
|
|
COMMENT= Tomato-smashing, Q-Bert style
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/tomatoes-${PORTVERSION}5
|
|
|
|
TDATA= ${WRKDIR}/tomatoes-${PORTVERSION}
|
|
|
|
|
2005-06-27 02:32:56 +02:00
|
|
|
USE_BZIP2= yes
|
2005-02-08 01:07:49 +01:00
|
|
|
USE_X_PREFIX= yes
|
2005-06-27 02:32:56 +02:00
|
|
|
USE_SDL= mixer image
|
|
|
|
USE_GL= yes
|
2005-02-08 01:07:49 +01:00
|
|
|
USE_GMAKE= yes
|
2005-06-27 02:32:56 +02:00
|
|
|
MAKEFILE= makefile
|
|
|
|
MAKE_ARGS= CC="${CXX}" \
|
|
|
|
MPKDIR="${DATADIR}/" \
|
|
|
|
MUSICDIR="${DATADIR}/music/" \
|
|
|
|
HISCOREDIR="${DATADIR}/" \
|
|
|
|
CONFIGDIR="${DATADIR}/" \
|
|
|
|
CFLAGS="${CXXFLAGS} ${SDL_CFLAGS}" \
|
|
|
|
LDFLAGS="${SDL_LDFLAGS}"
|
2005-02-08 01:07:49 +01:00
|
|
|
|
2005-06-27 02:32:56 +02:00
|
|
|
PLIST_FILES= bin/tomatoes \
|
|
|
|
%%DATADIR%%/config.cfg \
|
|
|
|
%%DATADIR%%/music/IHaveNoTomatoes.it \
|
|
|
|
%%DATADIR%%/tomatoes.mpk
|
|
|
|
PLIST_DIRS= %%DATADIR%%/music \
|
|
|
|
%%DATADIR%%
|
2005-02-14 08:18:37 +01:00
|
|
|
|
2005-06-27 02:32:56 +02:00
|
|
|
SDL_CFLAGS= `${SDL_CONFIG} --cflags` -I${X11BASE}/include
|
|
|
|
SDL_LDFLAGS= `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer \
|
|
|
|
-L${X11BASE}/lib -lGL -lGLU
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2005-02-14 08:18:37 +01:00
|
|
|
|
2005-06-27 02:32:56 +02:00
|
|
|
post-patch:
|
|
|
|
.for file in include/font.h
|
|
|
|
cd ${WRKSRC} && ${CP} ${file} ${file}.bak \
|
|
|
|
&& ${TR} -d '\r' < ${file}.bak > ${file}
|
|
|
|
.endfor
|
|
|
|
|
2005-02-08 01:07:49 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${MKDIR} ${DATADIR}/music
|
|
|
|
${INSTALL_DATA} ${TDATA}/config.cfg ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${TDATA}/tomatoes.mpk ${DATADIR}
|
2005-02-08 01:24:24 +01:00
|
|
|
${INSTALL_DATA} ${TDATA}/music/IHaveNoTomatoes.it ${DATADIR}/music
|
2005-02-08 01:07:49 +01:00
|
|
|
|
2005-02-14 08:18:37 +01:00
|
|
|
.include <bsd.port.post.mk>
|