2005-09-01 02:35:35 +02:00
|
|
|
# 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
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 5
|
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
|
2005-09-01 02:35:35 +02:00
|
|
|
COMMENT= Another billiard simulator
|
|
|
|
|
|
|
|
USE_SDL= sdl
|
2008-03-19 07:48:34 +01:00
|
|
|
USE_GL= gl
|
2005-09-01 02:35:35 +02:00
|
|
|
|
|
|
|
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` \
|
- 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
|
|
|
-I${LOCALBASE}/include -L${LOCALBASE}/lib -lGL -lGLU \
|
2005-09-01 02:35:35 +02:00
|
|
|
-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>
|