Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/branches/develbranch_6@46315 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
neteler committed May 15, 2011
1 parent 12af3a7 commit 3ed591b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion binaryInstall.src
Expand Up @@ -9,7 +9,7 @@
# GRASS binary package installation tool
# platform independent
#
# 1999-2000 by Markus Neteler, neteler@itc.it
# 1999-2000, 2011 by Markus Neteler, GRASS Development Team
#
##########################################################################

Expand Down Expand Up @@ -345,6 +345,17 @@ GISBASE="$DESTDIR" GISRC=junk LD_LIBRARY_PATH_VAR="${DESTDIR}/lib:$LD_LIBRARY_PA

echo""

# fix include/Make/Platform.make file for g.extension
mv ${DESTDIR}/include/Make/Platform.make ${DESTDIR}/include/Make/Platform.make.orig
cat ${DESTDIR}/include/Make/Platform.make.orig | \
sed "s+prefix = /usr/local+prefix = $DESTDIR+g" | \
sed "s+INST_DIR = $prefix/grass-$NAME_VER+INST_DIR = $prefix+g" | \
sed "s+^.*GRASS_HOME.*$+GRASS_HOME = $DESTDIR+" | \
sed "s+^.*RUN_GISBASE.*$+RUN_GISBASE = $DESTDIR+" | \
sed "s+^.*RUN_GISRC.*$+RUN_GISRC = +" > ${DESTDIR}/include/Make/Platform.make

# rm -f ${DESTDIR}/include/Make/Platform.make.orig

# Print out some messages
echo "Installation finished. Start GRASS $NAME_VER with"
echo " $BINDIR/$GRASSPRG"
Expand Down

0 comments on commit 3ed591b

Please sign in to comment.