mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
fbd0197639
- Update audio/sdl_mixer to 1.2.15 - Update graphics/sdl_image to 1.2.12 - Update graphics/sdl_ttf to 2.0.11 - Update graphics/sdl_gfx to 2.0.23 - Update net/sdl_net to 1.2.8 - Bump PORTREVISIONs on ports that depend on one or more packages due to ABI and shared library version changes - Update Mk/bsd.sdl.mk accordingly for the new shared library versions Tested by: exp-run by pav
71 lines
1.7 KiB
Makefile
71 lines
1.7 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= 12
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF
|
|
DISTFILES= ${PORTNAME}-linux-src-${PORTVERSION}5${EXTRACT_SUFX} \
|
|
${PORTNAME}-linux-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Tomato-smashing, Q-Bert style
|
|
|
|
WRKSRC= ${WRKDIR}/tomatoes-${PORTVERSION}5
|
|
TDATA= ${WRKDIR}/tomatoes-${PORTVERSION}
|
|
|
|
USE_BZIP2= yes
|
|
USE_SDL= mixer image
|
|
USE_GL= gl
|
|
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 \
|
|
%%DATADIR%%/icon.png
|
|
PLIST_DIRS= %%DATADIR%%/music \
|
|
%%DATADIR%%
|
|
|
|
SDL_CFLAGS= `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
|
|
SDL_LDFLAGS= `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer \
|
|
-L${LOCALBASE}/lib -lGL -lGLU
|
|
|
|
DESKTOP_ENTRIES= "Tomatoes" \
|
|
"I Have No Tomatoes" \
|
|
"${DATADIR}/icon.png" \
|
|
"tomatoes" \
|
|
"Game;ArcadeGame;" \
|
|
false
|
|
|
|
.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} ${WRKSRC}/icon.png ${DATADIR}
|
|
${INSTALL_DATA} ${TDATA}/music/IHaveNoTomatoes.it ${DATADIR}/music
|
|
|
|
.include <bsd.port.post.mk>
|