ports/108378: [PATCH] games/foobillard: add OPTIONS
Dmitry Marakasov
amdmi3 at amdmi3.ru
Fri Jan 26 17:00:38 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list