aboutsummaryrefslogtreecommitdiffstats
path: root/games/linux-darwinia-demo
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2013-04-27 01:29:05 +0800
committermva <mva@FreeBSD.org>2013-04-27 01:29:05 +0800
commite1c6c8be4399ab6f4acf691a302a7876147f9854 (patch)
tree2237c75efd91897967253c06558efcb93510ec6f /games/linux-darwinia-demo
parent0028ae9b99c5edf0d98d8fda5e4d353ee8f88aeb (diff)
downloadfreebsd-ports-gnome-e1c6c8be4399ab6f4acf691a302a7876147f9854.tar.gz
freebsd-ports-gnome-e1c6c8be4399ab6f4acf691a302a7876147f9854.tar.zst
freebsd-ports-gnome-e1c6c8be4399ab6f4acf691a302a7876147f9854.zip
- Trim Makefile headers
- Convert to new options framework - Pet portlint
Diffstat (limited to 'games/linux-darwinia-demo')
-rw-r--r--games/linux-darwinia-demo/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/games/linux-darwinia-demo/Makefile b/games/linux-darwinia-demo/Makefile
index 7429863cbc41..d14f05b8cdbf 100644
--- a/games/linux-darwinia-demo/Makefile
+++ b/games/linux-darwinia-demo/Makefile
@@ -1,9 +1,4 @@
-# New ports collection makefile for: linux-darwinia
-# Date created: 24 May 2007
-# Whom: Marcus von Appen <mva@sysfault.org>
-#
# $FreeBSD$
-#
PORTNAME= darwinia-demo
PORTVERSION= 1.3.0
@@ -26,11 +21,12 @@ NO_WRKSUBDIR= yes
DATADIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
SUB_FILES= darwinia
-OPTIONS= NVIDIA "Install support for nvidia" off
+OPTIONS_DEFINE= NVIDIA DOCS
+NVIDIA_DESC= Enable nvidia graphics driver support
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_NVIDIA)
+.if ${PORT_OPTIONS:MNVIDIA}
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
USE_LINUX_APPS+=libglu
.else
@@ -51,7 +47,7 @@ do-install:
${INSTALL_PROGRAM} darwinia.bin.x86 ${DATADIR} && \
${INSTALL_DATA} *.dat open-www.sh ${DATADIR}
${INSTALL_PROGRAM} ${WRKDIR}/darwinia ${PREFIX}/bin/${PKGNAMEPREFIX}darwinia
-.if !defined (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/LICENSE
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
@@ -60,4 +56,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>