aboutsummaryrefslogtreecommitdiffstats
path: root/games/glasteroids/Makefile
blob: 8fa2331720305e6377660400f7ac32768cc4c7aa (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
# New ports collection makefile for:    glasteroids
# Date created:             16 August 1999
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   glasteroids
PORTVERSION=    1.0
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   http://www.honors.montana.edu/~jjc/Glasteroids/
DISTNAME=   Glasteriods

MAINTAINER= ports@FreeBSD.org
COMMENT=    3D Asteroids game for X Window System

WRKSRC=     ${WRKDIR}/Glasteroids

USE_GL=     glut
MAKE_ENV=   PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
        PTHREAD_LIBS="${PTHREAD_LIBS}"
MAKEFILE=   ${FILESDIR}/Makefile.FreeBSD

do-install:
    ${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/gameText.txf ${DATADIR}
    ${TAR} -C ${WRKSRC} -cf - scores.txt textures | \
        ${TAR} -C ${DATADIR} --unlink -xf -
    @${CHMOD} a+rx ${DATADIR}/textures
    @${CHMOD} g+rw,a-x ${DATADIR}/scores.txt
    @${CHOWN} root:games ${DATADIR}/scores.txt
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>