2004-04-08 08:29:23 +00:00
|
|
|
# New ports collection makefile for: d2x
|
|
|
|
# Date created: 5 Apr 2004
|
|
|
|
# Whom: Radim Kolar
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= d2x
|
|
|
|
PORTVERSION= 0.2.5
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 8
|
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
|
|
|
|
USE_SDL= sdl image
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --disable-network --disable-debug
|
|
|
|
|
|
|
|
PORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt
|
|
|
|
PLIST_FILES= bin/d2x
|
|
|
|
|
2004-05-04 18:22:38 +00:00
|
|
|
.ifdef(WITH_OPENGL)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_GL= glut
|
2004-05-04 18:22:38 +00:00
|
|
|
CONFIGURE_ARGS+=--with-opengl
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CONFIGURE_ENV=LDFLAGS=-L${LOCALBASE}/lib CPPFLAGS=-I${LOCALBASE}/include
|
2004-05-04 18:22:38 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.ifndef(WITH_OPENGL)
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Define WITH_OPENGL to use OpenGL for 3D graphics"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2004-04-08 08:29:23 +00:00
|
|
|
do-install:
|
2004-05-04 18:22:38 +00:00
|
|
|
.ifdef(WITH_OPENGL)
|
|
|
|
${INSTALL} ${WRKSRC}/d2x-gl ${PREFIX}/bin/d2x
|
|
|
|
.else
|
2004-04-08 08:29:23 +00:00
|
|
|
${INSTALL} ${WRKSRC}/d2x-sdl ${PREFIX}/bin/d2x
|
2004-05-04 18:22:38 +00:00
|
|
|
.endif
|
2004-04-08 08:29:23 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|