aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2009-08-06 16:41:35 +0000
committerJuergen Lock <nox@FreeBSD.org>2009-08-06 16:41:35 +0000
commit7b1a593232fe380400c70182641a2ea30e974b0f (patch)
treec714bcc71ff4df77a93167b19734db182678b95f /astro
parentd3dfe534979cc2ca11120955e7c4b09c82fe31e8 (diff)
downloadports-7b1a593232fe380400c70182641a2ea30e974b0f.tar.gz
ports-7b1a593232fe380400c70182641a2ea30e974b0f.zip
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/google-earth/Makefile6
-rw-r--r--astro/google-earth/files/patch-stacksize10
2 files changed, 14 insertions, 2 deletions
diff --git a/astro/google-earth/Makefile b/astro/google-earth/Makefile
index a7b9b1b96c96..9b107074d6ef 100644
--- a/astro/google-earth/Makefile
+++ b/astro/google-earth/Makefile
@@ -7,6 +7,7 @@
PORTNAME= google-earth
PORTVERSION= 5.0.11733.9347
+PORTREVISION= 1
CATEGORIES= astro deskutils geography
MASTER_SITES= http://dl.google.com/earth/client/current/
DISTNAME= GoogleEarthLinux
@@ -45,7 +46,7 @@ do-extract:
@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
-do-patch:
+pre-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
@@ -54,7 +55,8 @@ do-patch:
do-build:
@${SETENV} SETUP_INSTALLPATH=${DATADIR} ${WRKSRC}/postinstall.sh
- @cd ${WRKSRC} && ${RM} -rf setup.* preuninstall.sh postinstall.sh
+ @cd ${WRKSRC} && ${RM} -rf setup.* preuninstall.sh postinstall.sh \
+ bin/googleearth.orig
pre-su-install:
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}
diff --git a/astro/google-earth/files/patch-stacksize b/astro/google-earth/files/patch-stacksize
new file mode 100644
index 000000000000..1927d545a67e
--- /dev/null
+++ b/astro/google-earth/files/patch-stacksize
@@ -0,0 +1,10 @@
+Index: bin/googleearth
+@@ -34,6 +34,8 @@
+ dirname $fullpath
+ }
+
++ulimit -s 32768 2>/dev/null
++
+ GOOGLEEARTH_DATA_PATH=/usr/local/share/google-earth
+ if [ "${GOOGLEEARTH_DATA_PATH}" = "" ]; then
+ GOOGLEEARTH_DATA_PATH="`FindPath $0`"