blob: 42ba195367b65bf8f8c1f13140a20635a204953d (
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
|
# Created by: Radim Kolar
# $FreeBSD$
PORTNAME= d2x
PORTVERSION= 0.2.5
PORTREVISION= 14
CATEGORIES= games
MASTER_SITES= http://offload2.icculus.org:9090/d2x/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Unix port of Descent 2 Game
BROKEN= unfetchable
GNU_CONFIGURE= yes
USES= gmake
USE_SDL= sdl image
CONFIGURE_ARGS= --disable-network --disable-debug
PORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt
PLIST_FILES= bin/d2x
OPTIONS_DEFINE= OPENGL DOCS
OPENGL_CONFIGURE_WITH= opengl
OPENGL_CXXFLAGS= -I${LOCALBASE}/include
OPENGL_LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENGL}
USE_GL= glut
.endif
do-install:
.if ${PORT_OPTIONS:MOPENGL}
${INSTALL_PROGRAM} ${WRKSRC}/d2x-gl ${STAGEDIR}${PREFIX}/bin/d2x
.else
${INSTALL_PROGRAM} ${WRKSRC}/d2x-sdl ${STAGEDIR}${PREFIX}/bin/d2x
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|