aboutsummaryrefslogtreecommitdiffstats
path: root/games/BillardGL/Makefile
blob: a6c388d8ca0e3678a85417d7d34c185a3c1dd0e2 (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
# New ports collection makefile for: BillardGL
# Date created:     02 Jan 2004
# Whom:         Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#

PORTNAME=       BillardGL
PORTVERSION=        1.75
PORTREVISION=       7
CATEGORIES=     games
MASTER_SITES=       SF/${PORTNAME:L}/${PORTNAME:L}/${PORTNAME}%20${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    OpenGL billiards simulator

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src

USE_GMAKE=  yes
USE_XORG=   xmu xext x11 xi
USE_GL=     gl glut

post-patch:
    @${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \
                  s|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Namen.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

    @${MKDIR} ${DATADIR}
    @${MKDIR} ${DATADIR}/lang
    ${INSTALL_DATA} ${WRKSRC}/lang/*.lang ${DATADIR}/lang
    @${MKDIR} ${DATADIR}/Texturen
.for i in 1 2 4 8
    @${MKDIR} ${DATADIR}/Texturen/${i}
    ${INSTALL_DATA} ${WRKSRC}/Texturen/${i}/*.bmp ${DATADIR}/Texturen/${i}
.endfor

.ifndef (NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${TR} -d '\r' <${WRKSRC}/README >${DOCSDIR}/README
.endif

.include <bsd.port.mk>