Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2007 19:52:40 +0300 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/108378: [PATCH] games/foobillard: add OPTIONS
Message-ID:  <20070126165240.2ECBA4098@hades.panopticon>
Resent-Message-ID: <200701261700.l0QH0biN050830@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108378
>Category:       ports
>Synopsis:       [PATCH] games/foobillard: add OPTIONS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 26 17:00:36 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE-p12 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Tue Jan 16 23:12:21 MSK 2007 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
Add OPTIONS support for games/foobillard.

>How-To-Repeat:
>Fix:

--- foobillard.patch begins here ---
diff -ruN foobillard.orig/Makefile foobillard/Makefile
--- foobillard.orig/Makefile	Fri Jan 26 19:46:09 2007
+++ foobillard/Makefile	Fri Jan 26 19:49:21 2007
@@ -17,6 +17,9 @@
 LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
 		freetype.9:${PORTSDIR}/print/freetype2
 
+OPTIONS=	SDL	"Use SDL instead of glut"	off \
+		NVIDIA_BUMPREF	"Enable NVidia extensions"	off
+
 .include <bsd.port.pre.mk>
 
 FREETYPE_CONFIG?=	${LOCALBASE}/bin/freetype-config
@@ -42,20 +45,6 @@
 .endif
 
 MAN6=		foobillard.6
-
-pre-everything::
-.if !defined(WITH_SDL) || !defined(WITH_NVIDIA_BUMPREF)
-	@${ECHO_MSG} "You may specify the following on the command line:"
-	@${ECHO_MSG} ""
-.endif
-
-.if !defined(WITH_SDL)
-	@${ECHO_MSG} "WITH_SDL=yes to use SDL-lib instead of glut"
-.endif
-
-.if !defined(WITH_NVIDIA_BUMPREF)
-	@${ECHO_MSG} "WITH_NVIDIA_BUMPREF=yes to enable NV-extensions"
-.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g' \
--- foobillard.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070126165240.2ECBA4098>