2006-06-13 17:11:48 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= google-earth
|
2013-04-21 16:08:38 +02:00
|
|
|
PORTVERSION= 6.0.3.2197
|
Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
2014-09-22 12:40:00 +02:00
|
|
|
PORTREVISION= 2
|
2012-01-31 23:14:51 +01:00
|
|
|
PORTEPOCH= 3
|
2007-07-22 21:53:52 +02:00
|
|
|
CATEGORIES= astro deskutils geography
|
2010-12-17 22:10:56 +01:00
|
|
|
MASTER_SITES= http://dl.google.com/earth/client/advanced/previous/:previous \
|
|
|
|
http://dl.google.com/earth/client/current/:current
|
2013-04-21 16:08:38 +02:00
|
|
|
DISTFILES= GoogleEarthLinux.bin:current
|
2010-12-17 22:10:56 +01:00
|
|
|
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
2012-01-29 17:27:58 +01:00
|
|
|
EXTRACT_ONLY= # none
|
2006-06-13 17:11:48 +02:00
|
|
|
|
2007-09-17 23:23:48 +02:00
|
|
|
MAINTAINER= nox@FreeBSD.org
|
2012-07-25 08:32:06 +02:00
|
|
|
COMMENT= Explore, Search, and Discover
|
2006-06-13 17:11:48 +02:00
|
|
|
|
2012-01-29 17:27:58 +01:00
|
|
|
EXTRACT_DEPENDS= unmakeself:${PORTSDIR}/archivers/unmakeself
|
2006-06-13 17:11:48 +02:00
|
|
|
|
2013-12-11 19:39:17 +01:00
|
|
|
RESTRICTED= Not really sure about the redistribution terms
|
2006-06-13 17:11:48 +02:00
|
|
|
|
2012-01-29 17:27:58 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\..*//g}/
|
2006-07-10 13:02:08 +02:00
|
|
|
|
Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
2014-09-22 12:40:00 +02:00
|
|
|
OPTIONS_DEFINE= NVIDIA
|
|
|
|
|
2006-06-13 17:11:48 +02:00
|
|
|
USE_LINUX= yes
|
2014-01-29 23:39:37 +01:00
|
|
|
USE_LINUX_APPS= xorglibs curl
|
2014-01-26 20:06:44 +01:00
|
|
|
USES= perl5 shared-mime-info desktop-file-utils
|
2013-07-31 08:54:09 +02:00
|
|
|
USE_PERL5= patch build
|
2006-06-13 17:11:48 +02:00
|
|
|
|
Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
2014-09-22 12:40:00 +02:00
|
|
|
#SUB_FILES= bin/googleearth
|
2006-06-13 17:11:48 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
2014-09-22 12:40:00 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-06-13 17:11:48 +02:00
|
|
|
|
2012-01-29 17:27:58 +01:00
|
|
|
UNMAKESELF= ${LOCALBASE}/bin/unmakeself
|
|
|
|
|
Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
2014-09-22 12:40:00 +02:00
|
|
|
.if ${PORT_OPTIONS:MNVIDIA}
|
2006-06-13 17:11:48 +02:00
|
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
|
|
|
|
.else
|
Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
2014-09-22 12:40:00 +02:00
|
|
|
USE_LINUX_APPS+= dri libpciaccess
|
|
|
|
LIBGL_ALWAYS_SOFTWARE=LIBGL_ALWAYS_SOFTWARE=yes
|
2006-06-13 17:11:48 +02:00
|
|
|
.endif
|
|
|
|
|
2013-04-21 16:08:38 +02:00
|
|
|
# Fixed by the first post-patch target line? Also, linprocfs needs to be mounted.
|
|
|
|
#.if ${OSVERSION} >= 900000 && ${ARCH} == "amd64"
|
|
|
|
#BROKEN= seems to crash on >= 9.x/amd64: http://www.freebsd.org/cgi/query-pr.cgi?pr=160422
|
|
|
|
#.endif
|
2011-12-03 00:34:11 +01:00
|
|
|
|
2012-01-29 17:27:58 +01:00
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${_DISTFILES} ${WRKSRC}
|
|
|
|
@cd ${WRKSRC} && ${UNMAKESELF} ${_DISTFILES} && ${RM} -f ${_DISTFILES}
|
|
|
|
@cd ${WRKSRC} && ${TAR} xf googleearth-data.tar && ${RM} -f googleearth-data.tar
|
|
|
|
@cd ${WRKSRC} && ${TAR} xf googleearth-linux-x86.tar && ${RM} -f googleearth-linux-x86.tar
|
|
|
|
|
2010-05-12 21:04:03 +02:00
|
|
|
post-patch:
|
Update CentOS base to 6.5, add userland ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
2014-09-22 12:40:00 +02:00
|
|
|
@${REINPLACE_CMD} -e '/OS.*=/s|linux|FreeBSD|' ${WRKSRC}/drivers.ini
|
|
|
|
@${REINPLACE_CMD} -e 's|^# Set the home.*|GOOGLEEARTH_DATA_PATH=${DATADIR}|; \
|
|
|
|
s|%%LIBGL_ALWAYS_SOFTWARE%%|${LIBGL_ALWAYS_SOFTWARE}|' ${WRKSRC}/bin/googleearth
|
|
|
|
@${REINPLACE_CMD} -i "" -e "s|^# Let's boogie.*|rm -f ${LINUXBASE}\$${HOME}/.googleearth/instance-running-lock|" ${WRKSRC}/bin/googleearth
|
2012-01-29 17:27:58 +01:00
|
|
|
@${REINPLACE_CMD} -i "" -e 's/^TMPPATH.*/exit 0/' ${WRKSRC}/postinstall.sh
|
|
|
|
@${REINPLACE_CMD} -i "" -e 's|\"\$$SETUP_INSTALLPATH/|\"${WRKSRC}/|' ${WRKSRC}/postinstall.sh
|
|
|
|
@${REINPLACE_CMD} -i "" -e 's|\$$SETUP_INSTALLPATH/googleearth |${PREFIX}/bin/googleearth |' ${WRKSRC}/postinstall.sh
|
2014-01-29 23:39:37 +01:00
|
|
|
${RM} ${WRKSRC}/libcurl.so.4
|
2012-01-29 17:27:58 +01:00
|
|
|
${PERL} -i -pe 's|/lib/ld-lsb.so.3\0\0\0|/lib/ld-linux.so.2\0|' ${WRKSRC}/googleearth-bin
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${SETENV} SETUP_INSTALLPATH=${DATADIR} ${WRKSRC}/postinstall.sh
|
|
|
|
@cd ${WRKSRC} && ${RM} -rf setup.* preuninstall.sh postinstall.sh \
|
|
|
|
bin/googleearth.orig
|
2009-01-24 22:00:09 +01:00
|
|
|
|
2006-06-13 17:11:48 +02:00
|
|
|
do-install:
|
2014-01-26 20:06:44 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/googleearth-mimetypes.xml \
|
|
|
|
${STAGEDIR}${PREFIX}/share/mime/packages/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Google-googleearth.desktop \
|
|
|
|
${STAGEDIR}${PREFIX}/share/applications/googleearth.desktop
|
|
|
|
${CP} -rp ${WRKSRC}/* ${STAGEDIR}${DATADIR}
|
|
|
|
${RM} -f ${STAGEDIR}${DATADIR}/googleearth-mimetypes.xml \
|
|
|
|
${STAGEDIR}${DATADIR}/googleearth.desktop
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/browserwrapper \
|
|
|
|
${STAGEDIR}${DATADIR}/bin/
|
|
|
|
${LN} -sf ${DATADIR}/bin/googleearth \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/
|
2006-06-13 17:11:48 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|