aboutsummaryrefslogtreecommitdiffstats
path: root/games/billardgl/Makefile
blob: 2ef21a91b0902385419b7f989e262df5937d6d2f (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
48
49
50
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   billardgl
PORTVERSION=    1.75
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/BillardGL%20${PORTVERSION}
DISTNAME=   BillardGL-${PORTVERSION}

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    OpenGL pool billiard simulation

LICENSE=    GPLv2 # from website

WRKSRC_SUBDIR=  src

USES=       dos2unix
DOS2UNIX_FILES= Makefile bmp.cpp
USE_GL=     gl glu glut
USE_XORG=   x11 xext xmu xi

PORTDOCS=   README
PORTDATA=   *
PLIST_FILES=    bin/billardgl \
        share/pixmaps/billardgl.bmp

DESKTOP_ENTRIES="${PORTNAME}" \
        "" \
        "${PREFIX}/share/pixmaps/${PORTNAME}.bmp" \
        "${PORTNAME}" \
        "Game;Simulation;" \
        ""

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/share/BillardGL/|${DATADIR}/|' ${WRKSRC}/Namen.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/BillardGL ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    @${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} "Texturen lang" ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/Texturen/1/dreizehn.bmp ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.bmp

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>