2013-09-20 19:36:33 +02:00
|
|
|
# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
|
2005-09-01 02:35:35 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= apoolGL
|
|
|
|
PORTVERSION= 0.99.22
|
2017-05-23 07:03:14 +02:00
|
|
|
PORTREVISION= 8
|
2005-09-01 02:35:35 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.planetjahn.de/files/
|
|
|
|
DISTNAME= ${PORTNAME}-099-pre22
|
|
|
|
|
2006-07-22 06:28:27 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-07-28 17:57:55 +02:00
|
|
|
COMMENT= Another billiards simulator
|
2005-09-01 02:35:35 +02:00
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2013-10-30 03:19:57 +01:00
|
|
|
|
2005-09-01 02:35:35 +02:00
|
|
|
USE_SDL= sdl
|
2008-03-19 07:48:34 +01:00
|
|
|
USE_GL= gl
|
2016-10-21 15:13:27 +02:00
|
|
|
USES= dos2unix
|
|
|
|
DOS2UNIX_FILES= ApoolGL.txt
|
2005-09-01 02:35:35 +02:00
|
|
|
|
|
|
|
PORTDOCS= ApoolGL.txt CHANGELOG OpenGL-Features
|
|
|
|
|
2017-06-26 11:00:14 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2005-09-01 02:35:35 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/*.c
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${CC} ${CFLAGS} -DDATADIR="\"${DATADIR}\"" \
|
|
|
|
`${SDL_CONFIG} --cflags --libs` \
|
2013-10-08 01:13:03 +02:00
|
|
|
-I${LOCALBASE}/include -L${LOCALBASE}/lib -lGL -lGLU -lm \
|
2005-09-01 02:35:35 +02:00
|
|
|
-o ${WRKSRC}/apool ${WRKSRC}/*.c
|
|
|
|
|
|
|
|
do-install:
|
2013-10-30 03:19:57 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/apool ${STAGEDIR}${PREFIX}/bin
|
2005-09-01 02:35:35 +02:00
|
|
|
.for i in hi lo med
|
2013-10-30 03:19:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/textures-${i}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/textures-${i}/*.bmp ${STAGEDIR}${DATADIR}/textures-${i}
|
2005-09-01 02:35:35 +02:00
|
|
|
.endfor
|
2013-10-30 03:19:57 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.dat ${STAGEDIR}${DATADIR}
|
2017-06-26 11:00:14 +02:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2013-10-30 03:19:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2005-09-01 02:35:35 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|