aboutsummaryrefslogtreecommitdiff
path: root/astro/google-earth/Makefile
blob: cf6a716c3d8cfed4321ff2c4122944f3c4f67a93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $FreeBSD$

PORTNAME=	google-earth
PORTVERSION=	7.1.7.2606
PORTREVISION=	1
PORTEPOCH=	3
CATEGORIES=	astro deskutils geography
MASTER_SITES=	https://dl.google.com/dl/earth/client/current/
DISTFILES_amd64=google-earth-stable_current_x86_64.rpm
DISTFILES_i386=	google-earth-stable_current_i386.rpm
DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Virtual globe, map and geographical information program

RESTRICTED=	Not really sure about the redistribution terms

NO_BUILD=	yes
NO_WRKSUBDIR=	yes
PLIST_SUB=	LINUXBASE=${LINUXBASE}
USES=		desktop-file-utils linux
USE_LINUX=	dri xorglibs

post-patch:
	@${SED} -i '' 's/^Exec=[^[:space:]]*/Exec=googleearth/' \
		${WRKSRC}/opt/google/earth/free/google-earth.desktop

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/free/product_logo_${s}.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/google-earth.png
.endfor
	${INSTALL_DATA} ${WRKSRC}/opt/google/earth/free/google-earth.desktop \
		${STAGEDIR}${DESKTOPDIR}
	${MKDIR} ${STAGEDIR}${LINUXBASE}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} opt ${STAGEDIR}${LINUXBASE})
	${CHMOD} +x ${STAGEDIR}${LINUXBASE}/opt/google/earth/free/googleearth-bin
	${INSTALL_SCRIPT} ${FILESDIR}/googleearth ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>