mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
796c9a9308
crashes for me right at startup even on Linux: http://people.freebsd.org/~nox/google-earth-5.2.1.1547/linux-crashlog-4c6996e2.txt ..with a very similar backtrace to the one I got on FreeBSD: http://people.freebsd.org/~nox/google-earth-5.2.1.1547/freebsd-crashlog-4c69956f.txt If you want to test the new version yourself I've put a shar of the 5.2.1.1547 port here: http://people.freebsd.org/~nox/google-earth-5.2.1.1547/google-earth-5.2.1.1547.shar
84 lines
2.9 KiB
Makefile
84 lines
2.9 KiB
Makefile
# New ports collection makefile for: google-earth
|
|
# Date created: Jun 13 2006
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= google-earth
|
|
PORTVERSION= 5.1.3535.3218
|
|
PORTEPOCH= 1
|
|
CATEGORIES= astro deskutils geography
|
|
MASTER_SITES= http://dl.google.com/earth/client/advanced/previous/
|
|
DISTNAME= GoogleEarthLinux
|
|
EXTRACT_SUFX= .bin
|
|
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
|
EXTRACT_ONLY= # none
|
|
|
|
MAINTAINER= nox@FreeBSD.org
|
|
COMMENT= Explore, Search and Discover
|
|
|
|
EXTRACT_DEPENDS= unmakeself:${PORTSDIR}/archivers/unmakeself
|
|
RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
|
|
|
RESTRICTED= Not sure about redistribution rights
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\..*//g}/
|
|
|
|
USE_LINUX= yes
|
|
USE_LINUX_APPS= xorglibs
|
|
USE_GNOME= desktopfileutils
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
UNMAKESELF= ${LOCALBASE}/bin/unmakeself
|
|
|
|
.if defined(WITH_NVIDIA_GL)
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
|
|
.else
|
|
USE_LINUX_APPS+= dri
|
|
.endif
|
|
|
|
.if ${OSVERSION}<700055
|
|
IGNORE= FreeBSD>=7.X is needed with Linux emulation 2.6.x.
|
|
.elif ${OSVERSION}<800076 && \
|
|
(! defined (OVERRIDE_LINUX_NONBASE_PORTS) || \
|
|
! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10))
|
|
IGNORE= needs non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10)
|
|
.endif
|
|
|
|
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
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i "" -e 's|^# Set the home.*|GOOGLEEARTH_DATA_PATH=${DATADIR}|' ${WRKSRC}/bin/googleearth
|
|
@${REINPLACE_CMD} -i "" -e "s|^# Let's boogie.*|rm -f \$${HOME}/.googleearth/instance-running-lock|" ${WRKSRC}/bin/googleearth
|
|
@${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
|
|
|
|
do-build:
|
|
@${SETENV} SETUP_INSTALLPATH=${DATADIR} ${WRKSRC}/postinstall.sh
|
|
@cd ${WRKSRC} && ${RM} -rf setup.* preuninstall.sh postinstall.sh \
|
|
bin/googleearth.orig
|
|
|
|
pre-su-install:
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
|
|
|
|
do-install:
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/googleearth-mimetypes.xml ${PREFIX}/share/mime/packages/
|
|
${INSTALL_DATA} ${WRKSRC}/Google-googleearth.desktop ${PREFIX}/share/applications/googleearth.desktop
|
|
${CP} -rp ${WRKSRC}/* ${DATADIR}
|
|
${RM} -f ${DATADIR}/googleearth-mimetypes.xml ${DATADIR}/googleearth.desktop
|
|
${INSTALL_SCRIPT} ${FILESDIR}/browserwrapper ${DATADIR}/bin
|
|
${LN} -sf ${DATADIR}/bin/googleearth ${PREFIX}/bin/
|
|
-@update-mime-database ${PREFIX}/share/mime
|
|
-@update-desktop-database
|
|
|
|
.include <bsd.port.post.mk>
|