summaryrefslogtreecommitdiff
path: root/astro/google-earth/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'astro/google-earth/Makefile')
-rw-r--r--astro/google-earth/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/astro/google-earth/Makefile b/astro/google-earth/Makefile
index 7204c2efafda..4ba88654dbbb 100644
--- a/astro/google-earth/Makefile
+++ b/astro/google-earth/Makefile
@@ -9,7 +9,7 @@ PORTNAME= google-earth
PORTVERSION= 4.0.1660
CATEGORIES= astro deskutils
MASTER_SITES= http://dl.google.com/earth/GE${PORTVERSION:C/\..*//g}/
-DISTFILES= GoogleEarthLinux.bin
+DISTFILES= ${TARGET_DISTFILE}
EXTRACT_ONLY= # none
MAINTAINER= flz@FreeBSD.org
@@ -25,6 +25,12 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\..*//g}/
USE_LINUX= yes
USE_GNOME= desktopfileutils
+REAL_DISTFILE= GoogleEarthLinux.bin
+TARGET_DISTFILE= GoogleEarthLinux-${PORTVERSION}.bin
+
+FETCH_CMD= /usr/bin/fetch -ARm
+FETCH_BEFORE_ARGS= -o ${TARGET_DISTFILE}
+
.include <bsd.port.pre.mk>
UNMAKESELF= ${LOCALBASE}/bin/unmakeself
@@ -39,6 +45,10 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_d
RUN_DEPENDS+= ${LINUXBASE}/lib/libGL.so.1:${PORTSDIR}/graphics/linux_glx
.endif
+do-fetch:
+ @cd ${DISTDIR}; \
+ ${FETCH_CMD} ${FETCH_BEFORE_ARGS} -1 ${MASTER_SITES:S|$|${REAL_DISTFILE}|g} ${FETCH_AFTER_ARGS}
+
do-build:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}