ports/66221: portupgrade: d2x

Radim Kolar hsn at netmag.cz
Mon May 3 19:40:20 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list