aboutsummaryrefslogtreecommitdiffstats
path: root/games/apoolGL/Makefile
blob: 61d3f09b212c5c3b738da44f81365df3f3c39621 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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>