From e7a8230d7acc2b3efed92547f8f179c5a19ac786 Mon Sep 17 00:00:00 2001 From: Juergen Lock Date: Wed, 12 May 2010 19:04:03 +0000 Subject: Fix build for nonstandard PREFIX / LOCALBASE. PR: ports/146506 Submitted by: kmoore --- astro/google-earth/Makefile | 2 +- astro/google-earth/files/patch-stacksize | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'astro/google-earth') diff --git a/astro/google-earth/Makefile b/astro/google-earth/Makefile index 66a395850ce0..62c8355201ed 100644 --- a/astro/google-earth/Makefile +++ b/astro/google-earth/Makefile @@ -53,7 +53,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 -pre-patch: +post-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 diff --git a/astro/google-earth/files/patch-stacksize b/astro/google-earth/files/patch-stacksize index 1927d545a67e..f30765e88d9c 100644 --- a/astro/google-earth/files/patch-stacksize +++ b/astro/google-earth/files/patch-stacksize @@ -1,10 +1,10 @@ Index: bin/googleearth -@@ -34,6 +34,8 @@ +@@ -34,6 +34,8 @@ FindPath() dirname $fullpath } +ulimit -s 32768 2>/dev/null + - GOOGLEEARTH_DATA_PATH=/usr/local/share/google-earth + # Set the home if not already set. if [ "${GOOGLEEARTH_DATA_PATH}" = "" ]; then GOOGLEEARTH_DATA_PATH="`FindPath $0`" -- cgit v1.2.3