aboutsummaryrefslogtreecommitdiffstats
path: root/games/atr3d/Makefile
blob: ff5b73b0ea2de422f234f414c671294cf3136ec5 (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
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$

PORTNAME=   atr3d
PORTVERSION=    0.6
PORTREVISION=   17
CATEGORIES= games
MASTER_SITES=   http://rodrigo.osorio.free.fr/freebsd/distfiles/
DISTNAME=   ${PORTNAME}_source_${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    3D asteroids-like multiplayer game

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

WRKSRC=     ${WRKDIR}/${PORTNAME}

USES=       autoreconf gmake perl5 tar:tgz
USE_GL=     glut glu
USE_XORG=   xmu xi x11
USE_PERL5=  build
GNU_CONFIGURE=  yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= OPENAL
OPTIONS_DEFAULT=OPENAL

OPENAL_USES=    openal:alut
OPENAL_CONFIGURE_ENABLE=    sound

pre-patch:
    @${REINPLACE_CMD} -e 's|-lopenal|& -lalut|' ${WRKSRC}/Makefile.am

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile.am

.include <bsd.port.mk>