diff options
Diffstat (limited to 'astro/google-earth-pro/Makefile')
-rw-r--r-- | astro/google-earth-pro/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/astro/google-earth-pro/Makefile b/astro/google-earth-pro/Makefile new file mode 100644 index 000000000000..81476fcd7e0b --- /dev/null +++ b/astro/google-earth-pro/Makefile @@ -0,0 +1,51 @@ +# +# See versions at: +# https://support.google.com/earth/answer/168344 + +PORTNAME= google-earth-pro +PORTVERSION= 7.3.6 +CATEGORIES= astro deskutils geography +MASTER_SITES= https://dl.google.com/dl/linux/direct/ +DISTFILES_amd64=google-earth-pro-stable-7.3.6.x86_64.rpm + +MAINTAINER= jhay@FreeBSD.org +COMMENT= Virtual globe, map and geographical information program +WWW= https://www.google.com/earth/ + +LICENSE= GEARTH +LICENSE_NAME= Google Earth +LICENSE_TEXT= Google Earth Terms are available at: \ + https://www.google.com/help/terms_maps/ \ + https://about.google/brand-resource-center/products-and-services/geo-guidelines/#google-earth +LICENSE_PERMS= no-dist-mirror no-pkg-mirror auto-accept + +ONLY_FOR_ARCHS= amd64 + +USES= desktop-file-utils linux:rl9 +USE_LINUX= dbuslibs dri gstreamer1 libproxy libxml2 sqlite3 xorglibs + +NO_BUILD= yes +NO_WRKSUBDIR= yes +PLIST_SUB= LINUXBASE=${LINUXBASE} +SUB_FILES= google-earth-pro +SUB_LIST= LINUXBASE=${LINUXBASE} + +post-patch: + @${SED} -i '' 's/^Exec=[^[:space:]]*/Exec=google-earth-pro/' \ + ${WRKSRC}/opt/google/earth/pro/google-earth-pro.desktop + @${LN} -sf googleearth ${WRKSRC}/opt/google/earth/pro/google-earth-pro + +do-install: +.for s in 16 22 24 32 48 64 128 256 + ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps + ${INSTALL_DATA} ${WRKSRC}/opt/google/earth/pro/product_logo_${s}.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/google-earth-pro.png +.endfor + ${INSTALL_DATA} ${WRKSRC}/opt/google/earth/pro/google-earth-pro.desktop \ + ${STAGEDIR}${DESKTOPDIR} + ${MKDIR} ${STAGEDIR}${LINUXBASE} + (cd ${WRKSRC} && ${COPYTREE_SHARE} opt ${STAGEDIR}${LINUXBASE}) + ${CHMOD} +x ${STAGEDIR}${LINUXBASE}/opt/google/earth/pro/googleearth-bin + ${INSTALL_SCRIPT} ${WRKDIR}/google-earth-pro ${STAGEDIR}${PREFIX}/bin + +.include <bsd.port.mk> |