1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/games/apoolGL/Makefile
Carlo Strub e9a2c0a4b1 Fix typos in COMMENT
Approved by:	portmgr@ (implicit)
2012-07-28 15:57:55 +00:00

47 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
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://www.planetjahn.de/files/
DISTNAME= ${PORTNAME}-099-pre22
MAINTAINER= ports@FreeBSD.org
COMMENT= Another billiards simulator
USE_SDL= sdl
USE_GL= gl
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${LOCALBASE}/include -L${LOCALBASE}/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>