freebsd-ports/games/tomatoes/Makefile
Edwin Groothuis 23ac2035b9 [MAINTAINER] update my email address in 76 ports + mirror some distfiles
I've got a brand new hosting, so change my email to the new
	one.  Also, now I can mirror some distfiles, so update
	MASTER_SITES for some ports.

PR:		ports/107038
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
2006-12-21 20:41:33 +00:00

64 lines
1.6 KiB
Makefile

# New ports collection makefile for: tomatoes
# Date created: 2005 07 Feb
# Whom: Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tomatoes
PORTVERSION= 1.5
PORTREVISION= 3
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= amdmi3@amdmi3.ru
COMMENT= Tomato-smashing, Q-Bert style
WRKSRC= ${WRKDIR}/tomatoes-${PORTVERSION}5
TDATA= ${WRKDIR}/tomatoes-${PORTVERSION}
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_SDL= mixer image
USE_GL= yes
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ARGS= CC="${CXX}" \
MPKDIR="${DATADIR}/" \
MUSICDIR="${DATADIR}/music/" \
HISCOREDIR="${DATADIR}/" \
CONFIGDIR="${DATADIR}/" \
CFLAGS="${CXXFLAGS} ${SDL_CFLAGS}" \
LDFLAGS="${SDL_LDFLAGS}"
PLIST_FILES= bin/tomatoes \
%%DATADIR%%/config.cfg \
%%DATADIR%%/music/IHaveNoTomatoes.it \
%%DATADIR%%/tomatoes.mpk
PLIST_DIRS= %%DATADIR%%/music \
%%DATADIR%%
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>
post-patch:
.for file in include/font.h
cd ${WRKSRC} && ${CP} ${file} ${file}.bak \
&& ${TR} -d '\r' < ${file}.bak > ${file}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}/music
${INSTALL_DATA} ${TDATA}/config.cfg ${DATADIR}
${INSTALL_DATA} ${TDATA}/tomatoes.mpk ${DATADIR}
${INSTALL_DATA} ${TDATA}/music/IHaveNoTomatoes.it ${DATADIR}/music
.include <bsd.port.post.mk>