source: trunk/dports/emulators/lisaem/files/patch-build.sh.diff @ 110248

Last change on this file since 110248 was 110248, checked in by mojca@…, 7 years ago

lisaem: use wxWidgets-2.8 or wxgtk-2.8 (#38375)

File size: 3.1 KB
  • build.sh

    WITHUNICODE="--unicode=no" 
    1515
    1616#WXDEV=""
    1717
     18if [ -z "$WX_CONFIG" ]
     19then
     20    WX_CONFIG="wx-config"
     21fi
    1822
    1923########################################################################
    2024 VERSION="1.2.6-RELEASE_2007.12.12"
    WITHBLITS="-DUSE_RAW_BITMAP_ACCESS" 
    154158else
    155159
    156160WXVER=0
    157 case "`wx-config --version`" in
     161case "`$WX_CONFIG --version`" in
    158162  2.9*|3*)
    159163        echo WARNING: wxWidgets versions higher than 2.8 have not been tested.
    160164        echo It might work if they are compiled with backwards compatibility.
    fi 
    190194# purpose of this is to avoid errors on systems that have only unicode.
    191195if [ -z "$CYGWIN" ]
    192196then
    193   WXREL="`wx-config --release`"
    194   if [ -n "`wx-config --list | grep $WXREL | grep unicode`" ]
     197  WXREL="`$WX_CONFIG --release`"
     198  if [ -n "`$WX_CONFIG --list | grep $WXREL | grep unicode`" ]
    195199  then
    196200    WITHUNICODE="--unicode=yes"
    197201  fi
    do 
    293297  ;;
    294298 build*)    echo ;;    #default - nothing to do here, this is the default.
    295299 install)   
    296             [ -z "$CYGWIN" ] && [ "`whoami`" != "root" ] && echo "Need to be root to install. try sudo ./build.sh $@" && exit 1
    297300            INSTALL=1;
    298301            ;;
    299302
    if [ -z "$CYGWIN" ] 
    462465then
    463466 # many thanks to David Cecchin for finding the unicode issues fixed below.
    464467
    465  WXCONFIGFLAGS=`wx-config  --cppflags $WITHUNICODE `
     468 WXCONFIGFLAGS=`$WX_CONFIG  --cppflags $WITHUNICODE `
    466469 if [ -z "$WXCONFIGFLAGS" ]
    467470 then
    468471    echo wx-config has failed, or returned an error.  Ensure that it exists in your path.
    then 
    471474 fi
    472475 CFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
    473476 CXXFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
    474  LINKOPTS="`wx-config $STATIC  $WITHUNICODE  --libs --linkdeps --cppflags`"
     477 LINKOPTS="`$WX_CONFIG $STATIC  $WITHUNICODE  --libs --linkdeps --cppflags`"
    475478 if [ -z "$LINKOPTS" ]
    476479 then
    477480    echo wx-config has failed, or returned an error.  Ensure that it exists in your path.
    then 
    849852cd ../bin
    850853echo -n " "
    851854
    852 # Report size and hashes ####
    853 
    854 if [ -z "$DARWIN" ]
    855 then
    856     SIZE="`du -sh lisaem 2>/dev/null`"
    857 else
    858     SIZE="`du -sh LisaEm.app 2>/dev/null`"
    859 fi
    860 
    861855
    862856if [ -n "$DARWIN" ]
    863857then
    then 
    895889    then
    896890      cd ../bin/
    897891      echo Installing LisaEm.app
    898       tar cf - ./LisaEm.app | (cd $PREFIX; tar xf -)
    899       mkdir -pm755 /usr/local/bin
    900       echo Installing lisafsh-tool and lisadiskinfo to /usr/local/bin
     892      tar cf - ./LisaEm.app | (cd $PREFIXAPP; tar xf -)
     893      mkdir -pm755 $PREFIXBIN
     894      echo Installing lisafsh-tool and lisadiskinfo to $PREFIXBIN
    901895      chmod 755 lisafsh-tool lisadiskinfo
    902       cp lisafsh-tool lisadiskinfo /usr/local/bin
     896      cp lisafsh-tool lisadiskinfo $PREFIXBIN
    903897      echo Done Installing.
    904898    fi
    905899fi
    906900
     901
     902# Report size and hashes ####
     903
     904if [ -z "$DARWIN" ]
     905then
     906    SIZE="`du -sh lisaem 2>/dev/null`"
     907else
     908    SIZE="`du -sh LisaEm.app 2>/dev/null`"
     909fi
     910
    907911# some older OS's don't support du -sh, so fall back to du -sk and convert to MB's
    908912if [ -z "$SIZE" ]
    909913then
Note: See TracBrowser for help on using the repository browser.