summaryrefslogtreecommitdiff
path: root/emulators/lisaem/files/patch-build.sh
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-10-19 05:15:42 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-10-19 05:15:42 +0000
commit35c408f36f9f14d9345f089b89fc03f24bb571a4 (patch)
tree0d00a9b35ffab88a108eaf76d425824a88050f8a /emulators/lisaem/files/patch-build.sh
parentGit::Repository is a Perl interface to Git, for scripted interactions (diff)
- Remove bash build dependency
- use DATADIR PR: ports/148597 Submitted by: Bapt <baptiste.daroussin@gmail.com> Approved by: maintainer timeout (trasz ; 61 days)
Diffstat (limited to 'emulators/lisaem/files/patch-build.sh')
-rw-r--r--emulators/lisaem/files/patch-build.sh109
1 files changed, 102 insertions, 7 deletions
diff --git a/emulators/lisaem/files/patch-build.sh b/emulators/lisaem/files/patch-build.sh
index 171bc2dc0332..382fcf7ce67f 100644
--- a/emulators/lisaem/files/patch-build.sh
+++ b/emulators/lisaem/files/patch-build.sh
@@ -1,16 +1,111 @@
---- build.sh.orig 2007-12-11 15:26:12.000000000 +0100
-+++ build.sh 2007-12-13 23:24:15.000000000 +0100
-@@ -469,8 +469,8 @@
- which wx-config
+--- ./build.sh.orig 2007-12-11 15:26:12.000000000 +0100
++++ ./build.sh 2010-07-14 12:13:45.217194209 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+
+ #### Edit these options for your system
+
+@@ -44,7 +44,7 @@
+
+ if [ -z "$CYGWIN" ];
+ then
+- [ "`uname`" == "CYGWIN_NT-5.0" ] && CYGWIN="`uname`"
++ [ "`uname`" = "CYGWIN_NT-5.0" ] && CYGWIN="`uname`"
+ fi
+
+
+@@ -154,14 +154,14 @@
+ else
+
+ WXVER=0
+-case "`wx-config --version`" in
++case "`/usr/local/bin/wxgtk2-2.8-config --version`" in
+ 2.9*|3*)
+ echo WARNING: wxWidgets versions higher than 2.8 have not been tested.
+ echo It might work if they are compiled with backwards compatibility.
+ ;;
+ 2.8*) ;;
+ *) echo Could not find wxWidgets 2.8.0 or higher.
+- echo Please install it and ensure that wx-config is in the path
++ echo Please install it and ensure that /usr/local/bin/wxgtk2-2.8-config is in the path
+ exit 1
+ ;;
+ esac
+@@ -169,7 +169,7 @@
+
+ fi
+ #$CYGWIN is pre-set. Cache $DARWIN so we don't have to call uname over and over.
+-[ "`uname`" == "Darwin" ] && DARWIN="Darwin"
++[ "`uname`" = "Darwin" ] && DARWIN="Darwin"
+
+ # not needed on OS X
+ if [ -z "$DARWIN" ]
+@@ -190,8 +190,8 @@
+ # purpose of this is to avoid errors on systems that have only unicode.
+ if [ -z "$CYGWIN" ]
+ then
+- WXREL="`wx-config --release`"
+- if [ -n "`wx-config --list | grep $WXREL | grep unicode`" ]
++ WXREL="`/usr/local/bin/wxgtk2-2.8-config --release`"
++ if [ -n "`/usr/local/bin/wxgtk2-2.8-config --list | grep $WXREL | grep unicode`" ]
+ then
+ WITHUNICODE="--unicode=yes"
+ fi
+@@ -230,11 +230,11 @@
+ # if the object is older than the source, it will return true.
+ ##############################################################################
+
+-function NEEDED()
++NEEDED()
+ {
+ if [ -f $2 ]
+ then
+- [ "`ls -tr $2 $1 2>/dev/null| tail -1`" == "$1" ] && return 0
++ [ "`ls -tr $2 $1 2>/dev/null| tail -1`" = "$1" ] && return 0
+ return 1
+ fi
+ return 0
+@@ -379,8 +379,8 @@
+ (OS X only, doesn't work properly elsewhere)
+ --without-rawbitmap Disables Raw bitmap access, uses wxImage::SetRGB instead
+ (default for non-OS X)
+---with-unicode Ask wx-config for a unicode build (might not yet work)
+---without-unicode Ask wx-config for a non-unicode build (default)
++--with-unicode Ask /usr/local/bin/wxgtk2-2.8-config for a unicode build (might not yet work)
++--without-unicode Ask /usr/local/bin/wxgtk2-2.8-config for a non-unicode build (default)
+
+ Environment Variables you can pass:
+
+@@ -462,20 +462,20 @@
+ then
+ # many thanks to David Cecchin for finding the unicode issues fixed below.
+
+- WXCONFIGFLAGS=`wx-config --cppflags $WITHUNICODE `
++ WXCONFIGFLAGS=`/usr/local/bin/wxgtk2-2.8-config --cppflags $WITHUNICODE `
+ if [ -z "$WXCONFIGFLAGS" ]
+ then
+- echo wx-config has failed, or returned an error. Ensure that it exists in your path.
+- which wx-config
++ echo /usr/local/bin/wxgtk2-2.8-config has failed, or returned an error. Ensure that it exists in your path.
++ which /usr/local/bin/wxgtk2-2.8-config
exit 3
fi
- CFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
- CXXFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
-+ CFLAGS+=" -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
-+ CXXFLAGS+=" -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
- LINKOPTS="`wx-config $STATIC $WITHUNICODE --libs --linkdeps --cppflags`"
+- LINKOPTS="`wx-config $STATIC $WITHUNICODE --libs --linkdeps --cppflags`"
++ CFLAGS="$CFLAGS -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
++ CXXFLAGS="$CXXFLAGS -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
++ LINKOPTS="`/usr/local/bin/wxgtk2-2.8-config $STATIC $WITHUNICODE --libs --linkdeps --cppflags`"
if [ -z "$LINKOPTS" ]
then
+- echo wx-config has failed, or returned an error. Ensure that it exists in your path.
+- which wx-config
++ echo /usr/local/bin/wxgtk2-2.8-config has failed, or returned an error. Ensure that it exists in your path.
++ which /usr/local/bin/wxgtk2-2.8-config
+ exit 3
+ fi
+
@@ -840,7 +840,7 @@
#echo $CXX $GCCSTATIC $WITHTRACE $WITHDEBUG -o ../bin/lisaem $LIST ../generator/libgenerator.a ../cpu68k/lib68k.a $LINKOPTS $SYSLIBS
if [ -z "$WITHWXUI" ]