pkgsrc-wip/GoogleEarth/Makefile

52 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.10 2008/05/22 12:17:14 tnn2 Exp $
DISTNAME= GoogleEarthLinux.bin
PKGNAME= GoogleEarth-${GE_VERSION}
CATEGORIES= geography x11
MASTER_SITES= http://dl.google.com/earth/client/current/
EXTRACT_SUFX=
2007-05-15 00:48:00 +00:00
MAINTAINER= tnn@NetBSD.org
HOMEPAGE= http://earth.google.com/
COMMENT= Interactive browser for satellite imagery and maps
LICENSE= google-earth-license
2007-05-15 00:48:00 +00:00
LICENSE_FILE= ${FILESDIR}/google-earth-license
RESTRICTED= No redistribution allowed
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
DEPENDS+= vera-ttf>=1.10:../../fonts/vera-ttf
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= fontconfig glx gtk2
NOT_FOR_PLATFORM= NetBSD-[0-2]*-*
GE_VERSION= 4.3.7204.836
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}/GoogleEarthLinuxPlus-installer
2007-06-30 12:55:05 +00:00
DIST_SUBDIR= ${PKGNAME_NOREV}
EXTRACT_CMD= ${SH} "$$extract_file" --noexec --keep
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= bin
do-build:
2007-05-15 00:48:00 +00:00
cd ${WRKSRC} && ${MKDIR} GoogleEarth && cd GoogleEarth && \
${PAX} -r -f ../googleearth-linux-x86.tar && \
${PAX} -r -f ../googleearth-data.tar && \
${CP} ../*.xpm ../*.png ../bin/googleearth . && \
${FIND} . -type f | ${XARGS} ${CHMOD} -x && \
${CHMOD} +x googleearth googleearth-bin *.so*
printf '#! /bin/sh\nexec ${PREFIX}/GoogleEarth/googleearth "$$@"\n' > \
${WRKDIR}/googleearth
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/googleearth ${DESTDIR}${PREFIX}/bin/googleearth
cd ${WRKSRC} && ${PAX} -rw GoogleEarth ${DESTDIR}${PREFIX}
.include "../../mk/bsd.pkg.mk"