summaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2016-08-24 15:43:30 +0000
committerBen Woods <woodsb02@FreeBSD.org>2016-08-24 15:43:30 +0000
commitee449e253fe975f9bf314804f23c462543cb3607 (patch)
tree442eca0b3910ef2793c316d35f7a269db4889ce9 /astro
parentsecurity/doas: Update to 5.9p5 (diff)
astro/google-earth: Allow installation with NVIDIA legacy drivers
PR: 201693 Submitted by: cmangin@arobas.net Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D7629
Notes
Notes: svn path=/head/; revision=420803
Diffstat (limited to 'astro')
-rw-r--r--astro/google-earth/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/astro/google-earth/Makefile b/astro/google-earth/Makefile
index c51dd32bdc89..273221a30715 100644
--- a/astro/google-earth/Makefile
+++ b/astro/google-earth/Makefile
@@ -2,7 +2,7 @@
PORTNAME= google-earth
PORTVERSION= 6.0.3.2197
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 3
CATEGORIES= astro deskutils geography
MASTER_SITES= http://dl.google.com/earth/client/advanced/previous/:previous \
@@ -20,7 +20,12 @@ RESTRICTED= Not really sure about the redistribution terms
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\..*//g}/
-OPTIONS_DEFINE= NVIDIA
+OPTIONS_DEFAULT= LINUX_DRI
+OPTIONS_SINGLE= LIBGL
+OPTIONS_SINGLE_LIBGL= LINUX_DRI NVIDIA_GL NVIDIA_GL_340 NVIDIA_GL_304
+LINUX_DRI_DESC= libGL support via Linux DRI libraries
+NVIDIA_GL_340_DESC= libGL support via nvidia-driver-340
+NVIDIA_GL_304_DESC= libGL support via nvidia-driver-304
USE_LINUX= yes
USE_LINUX_APPS= xorglibs curl nss
@@ -31,8 +36,10 @@ USE_PERL5= patch build
UNMAKESELF= ${LOCALBASE}/bin/unmakeself
-NVIDIA_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:x11/nvidia-driver
-NVIDIA_USE_OFF= LINUX_APPS=dri,libpciaccess
+NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:x11/nvidia-driver
+NVIDIA_GL_340_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:x11/nvidia-driver-340
+NVIDIA_GL_304_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:x11/nvidia-driver-304
+LINUX_DRI_USE= LINUX_APPS=dri,libpciaccess
# Fixed by the first post-patch target line? Also, linprocfs needs to be mounted.
#BROKEN= seems to crash on >= 9.x/amd64: http://www.freebsd.org/cgi/query-pr.cgi?pr=160422