1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/games/apoolGL/Makefile
Jean-Yves Lefort 9a692f2f78 Add apoolGL.
Another Pool GL is a 3D computer billiards simulation based on Another Pool,
with a realistic physics system using OpenGL/SDL as graphical subsystem.

WWW: http://www.planetjahn.de/apool/

PR:		ports/85324
Submitted by:	Igor Pokrovsky <ip@doom.homeunix.org>
2005-09-01 00:35:35 +00:00

48 lines
1.1 KiB
Makefile

# New ports collection makefile for: apoolGL
# Date created: 26 Aug 2005
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= apoolGL
PORTVERSION= 0.99.22
CATEGORIES= games
MASTER_SITES= http://www.planetjahn.de/files/
DISTNAME= ${PORTNAME}-099-pre22
MAINTAINER= ip@doom.homeunix.org
COMMENT= Another billiard simulator
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_SDL= sdl
USE_GL= yes
PORTDOCS= ApoolGL.txt CHANGELOG OpenGL-Features
post-patch:
@${REINPLACE_CMD} -e "s|`${PRINTF} '\r'`$$||" ${WRKSRC}/ApoolGL.txt
@${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/*.c
do-build:
${CC} ${CFLAGS} -DDATADIR="\"${DATADIR}\"" \
`${SDL_CONFIG} --cflags --libs` \
-I${X11BASE}/include -L${X11BASE}/lib -lGL -lGLU \
-o ${WRKSRC}/apool ${WRKSRC}/*.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/apool ${PREFIX}/bin
.for i in hi lo med
${MKDIR} ${DATADIR}/textures-${i}
${INSTALL_DATA} ${WRKSRC}/textures-${i}/*.bmp ${DATADIR}/textures-${i}
.endfor
${INSTALL_DATA} ${WRKSRC}/*.dat ${DATADIR}
.ifndef (NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>