freebsd-ports/games/apoolGL/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

47 lines
1.2 KiB
Makefile

# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
PORTNAME= apoolGL
PORTVERSION= 0.99.22
PORTREVISION= 9
CATEGORIES= games
MASTER_SITES= http://www.planetjahn.de/files/
DISTNAME= ${PORTNAME}-099-pre22
MAINTAINER= ports@FreeBSD.org
COMMENT= Another billiards simulator
LICENSE= GPLv2+
USES= dos2unix gl sdl
USE_SDL= sdl
USE_GL= gl
DOS2UNIX_FILES= ApoolGL.txt
# Seems dead upstream. Don't expect a proper fix.
CFLAGS+= -fcommon
PORTDOCS= ApoolGL.txt CHANGELOG OpenGL-Features
OPTIONS_DEFINE= DOCS
post-patch:
@${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 -lm \
-o ${WRKSRC}/apool ${WRKSRC}/*.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/apool ${STAGEDIR}${PREFIX}/bin
.for i in hi lo med
@${MKDIR} ${STAGEDIR}${DATADIR}/textures-${i}
${INSTALL_DATA} ${WRKSRC}/textures-${i}/*.bmp ${STAGEDIR}${DATADIR}/textures-${i}
.endfor
${INSTALL_DATA} ${WRKSRC}/*.dat ${STAGEDIR}${DATADIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>