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
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 12
|
2005-02-08 01:07:49 +01:00
|
|
|
CATEGORIES= games
|
2008-03-20 19:03:08 +01:00
|
|
|
MASTER_SITES= SF
|
2005-02-08 01:07:49 +01:00
|
|
|
DISTFILES= ${PORTNAME}-linux-src-${PORTVERSION}5${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}-linux-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
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
|
|
|
|
USE_SDL= mixer image
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= gl
|
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 \
|
2010-08-19 22:23:15 +02:00
|
|
|
%%DATADIR%%/tomatoes.mpk \
|
|
|
|
%%DATADIR%%/icon.png
|
2005-06-27 02:32:56 +02:00
|
|
|
PLIST_DIRS= %%DATADIR%%/music \
|
|
|
|
%%DATADIR%%
|
2005-02-14 08:18:37 +01:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
SDL_CFLAGS= `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
|
2005-06-27 02:32:56 +02:00
|
|
|
SDL_LDFLAGS= `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
-L${LOCALBASE}/lib -lGL -lGLU
|
2005-06-27 02:32:56 +02:00
|
|
|
|
2010-08-19 22:23:15 +02:00
|
|
|
DESKTOP_ENTRIES= "Tomatoes" \
|
|
|
|
"I Have No Tomatoes" \
|
|
|
|
"${DATADIR}/icon.png" \
|
|
|
|
"tomatoes" \
|
|
|
|
"Game;ArcadeGame;" \
|
|
|
|
false
|
|
|
|
|
2005-06-27 02:32:56 +02:00
|
|
|
.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}
|
2010-08-19 22:23:15 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/icon.png ${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>
|