Date: Mon, 03 May 2004 12:09:43 +0200 From: Radim Kolar <hsn@netmag.cz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/66221: portupgrade: d2x Message-ID: <E1BKaON-0002cV-Pw@asura.bsd> Resent-Message-ID: <200405031940.i43JeJCd048095@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66221 >Category: ports >Synopsis: portupgrade: d2x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon May 03 12:40:19 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Radim Kolar >Release: FreeBSD 5.2.1-RELEASE-p3 i386 >Organization: Sanatana Dharma >Environment: System: FreeBSD asura.bsd 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #6: Mon Apr 5 17:41:24 CEST 2004 root@asura.bsd:/usr/src/sys/i386/compile/UP i386 >Description: Added OPENGL renderer support. It has some bugs, so it is optional. >How-To-Repeat: >Fix: diff -Naur /usr/ports/games/d2x/Makefile d2x/Makefile --- /usr/ports/games/d2x/Makefile Thu Apr 8 10:29:23 2004 +++ d2x/Makefile Mon May 3 12:06:13 2004 @@ -7,6 +7,7 @@ PORTNAME= d2x PORTVERSION= 0.2.5 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://www.icculus.org/d2x/src/ @@ -23,8 +24,26 @@ PORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt PLIST_FILES= bin/d2x +.ifdef(WITH_OPENGL) +USE_GL= yes +USE_XLIB= yes +CONFIGURE_ARGS+=--with-opengl +CONFIGURE_ENV=LDFLAGS=-L${X11BASE}/lib CPPFLAGS=-I${X11BASE}/include +.endif + +pre-everything:: +.ifndef(WITH_OPENGL) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define WITH_OPENGL to use OpenGL for 3D graphics" + @${ECHO_MSG} "" +.endif + do-install: +.ifdef(WITH_OPENGL) + ${INSTALL} ${WRKSRC}/d2x-gl ${PREFIX}/bin/d2x +.else ${INSTALL} ${WRKSRC}/d2x-sdl ${PREFIX}/bin/d2x +.endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BKaON-0002cV-Pw>