2013-09-20 17:36:33 +00:00
|
|
|
# Created by: Radim Kolar
|
2004-04-08 08:29:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= d2x
|
|
|
|
PORTVERSION= 0.2.5
|
2012-08-04 22:52:02 +00:00
|
|
|
PORTREVISION= 11
|
2004-04-08 08:29:23 +00:00
|
|
|
CATEGORIES= games
|
2009-01-31 22:36:36 +00:00
|
|
|
MASTER_SITES= http://offload2.icculus.org:9090/d2x/src/
|
2004-04-08 08:29:23 +00:00
|
|
|
|
2004-10-12 13:23:48 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-04-08 08:29:23 +00:00
|
|
|
COMMENT= Unix port of Descent 2 Game
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2013-11-01 02:50:40 +00:00
|
|
|
USES= gmake
|
2004-04-08 08:29:23 +00:00
|
|
|
USE_SDL= sdl image
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --disable-network --disable-debug
|
|
|
|
|
|
|
|
PORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt
|
|
|
|
PLIST_FILES= bin/d2x
|
|
|
|
|
2013-11-01 02:50:40 +00:00
|
|
|
OPTIONS_DEFINE= OPENGL DOCS
|
|
|
|
|
|
|
|
OPENGL_CONFIGURE_WITH= opengl
|
|
|
|
OPENGL_CXXFLAGS= -I${LOCALBASE}/include
|
|
|
|
OPENGL_LDFLAGS= -L${LOCALBASE}/lib
|
2004-05-04 18:22:38 +00:00
|
|
|
|
2013-11-01 02:50:40 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
|
|
|
USE_GL= glut
|
2004-05-04 18:22:38 +00:00
|
|
|
.endif
|
|
|
|
|
2004-04-08 08:29:23 +00:00
|
|
|
do-install:
|
2013-11-01 02:50:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/d2x-gl ${STAGEDIR}${PREFIX}/bin/d2x
|
2004-05-04 18:22:38 +00:00
|
|
|
.else
|
2013-11-01 02:50:40 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/d2x-sdl ${STAGEDIR}${PREFIX}/bin/d2x
|
2004-05-04 18:22:38 +00:00
|
|
|
.endif
|
2013-11-01 02:50:40 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2004-04-08 08:29:23 +00:00
|
|
|
.for i in ${PORTDOCS}
|
2013-11-01 02:50:40 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2004-04-08 08:29:23 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|