View | Details | Raw Unified | Return to bug 148597
Collapse All | Expand All

(-)/usr/ports/emulators/lisaem/Makefile (-3 / +5 lines)
Lines 14-21 Link Here
14
MAINTAINER=	trasz@FreeBSD.org
14
MAINTAINER=	trasz@FreeBSD.org
15
COMMENT=	Apple Lisa 2 Emulator
15
COMMENT=	Apple Lisa 2 Emulator
16
16
17
BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash \
17
BUILD_DEPENDS=	pngtopnm:${PORTSDIR}/graphics/netpbm
18
		pngtopnm:${PORTSDIR}/graphics/netpbm
18
19
LICENSE=	GPLv2
20
LICENSE_FILE=	${WRKSRC}/COPYING
19
21
20
USE_BZIP2=	yes
22
USE_BZIP2=	yes
21
USE_WX=		2.8
23
USE_WX=		2.8
Lines 24-30 Link Here
24
		${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
26
		${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
25
				 -e "s|wx-config|${WX_CONFIG}|g" ${WRKSRC}/build.sh
27
				 -e "s|wx-config|${WX_CONFIG}|g" ${WRKSRC}/build.sh
26
do-build:
28
do-build:
27
		cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/bash build.sh build
29
		cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build.sh build
28
30
29
do-install:
31
do-install:
30
		@# This file is a symlink to itself; result of mistyped command?
32
		@# This file is a symlink to itself; result of mistyped command?
(-)/usr/ports/emulators/lisaem/files/patch-build.sh (-7 / +102 lines)
Lines 1-16 Link Here
1
--- build.sh.orig	2007-12-11 15:26:12.000000000 +0100
1
--- ./build.sh.orig	2007-12-11 15:26:12.000000000 +0100
2
+++ build.sh	2007-12-13 23:24:15.000000000 +0100
2
+++ ./build.sh	2010-07-14 12:13:45.217194209 +0200
3
@@ -469,8 +469,8 @@
3
@@ -1,4 +1,4 @@
4
     which wx-config
4
-#!/bin/bash
5
+#!/bin/sh
6
 
7
 #### Edit these options for your system
8
 
9
@@ -44,7 +44,7 @@
10
 
11
 if [ -z "$CYGWIN" ];
12
 then
13
- [ "`uname`" == "CYGWIN_NT-5.0" ] && CYGWIN="`uname`"
14
+ [ "`uname`" = "CYGWIN_NT-5.0" ] && CYGWIN="`uname`"
15
 fi
16
 
17
 
18
@@ -154,14 +154,14 @@
19
 else
20
 
21
 WXVER=0
22
-case "`wx-config --version`" in
23
+case "`/usr/local/bin/wxgtk2-2.8-config --version`" in
24
   2.9*|3*)
25
         echo WARNING: wxWidgets versions higher than 2.8 have not been tested.
26
         echo It might work if they are compiled with backwards compatibility.
27
         ;;
28
   2.8*) ;;
29
   *)    echo Could not find wxWidgets 2.8.0 or higher.
30
-        echo Please install it and ensure that wx-config is in the path
31
+        echo Please install it and ensure that /usr/local/bin/wxgtk2-2.8-config is in the path
32
         exit 1
33
   ;;
34
 esac
35
@@ -169,7 +169,7 @@
36
 
37
 fi
38
 #$CYGWIN is pre-set.  Cache $DARWIN so we don't have to call uname over and over.
39
-[ "`uname`" == "Darwin" ] && DARWIN="Darwin"
40
+[ "`uname`" = "Darwin" ] && DARWIN="Darwin"
41
 
42
 # not needed on OS X
43
 if [ -z "$DARWIN" ]
44
@@ -190,8 +190,8 @@
45
 # purpose of this is to avoid errors on systems that have only unicode.
46
 if [ -z "$CYGWIN" ]
47
 then
48
-  WXREL="`wx-config --release`"
49
-  if [ -n "`wx-config --list | grep $WXREL | grep unicode`" ]
50
+  WXREL="`/usr/local/bin/wxgtk2-2.8-config --release`"
51
+  if [ -n "`/usr/local/bin/wxgtk2-2.8-config --list | grep $WXREL | grep unicode`" ]
52
   then
53
     WITHUNICODE="--unicode=yes"
54
   fi
55
@@ -230,11 +230,11 @@
56
 # if the object is older than the source, it will return true.
57
 ##############################################################################
58
 
59
-function NEEDED()
60
+NEEDED()
61
 {
62
  if [ -f $2 ]
63
  then
64
-   [ "`ls -tr $2 $1 2>/dev/null| tail -1`" == "$1" ] && return 0
65
+   [ "`ls -tr $2 $1 2>/dev/null| tail -1`" = "$1" ] && return 0
66
    return 1
67
  fi
68
  return 0
69
@@ -379,8 +379,8 @@
70
                        (OS X only, doesn't work properly elsewhere)
71
 --without-rawbitmap    Disables Raw bitmap access, uses wxImage::SetRGB instead
72
 					   (default for non-OS X)
73
---with-unicode         Ask wx-config for a unicode build (might not yet work)
74
---without-unicode      Ask wx-config for a non-unicode build (default)
75
+--with-unicode         Ask /usr/local/bin/wxgtk2-2.8-config for a unicode build (might not yet work)
76
+--without-unicode      Ask /usr/local/bin/wxgtk2-2.8-config for a non-unicode build (default)
77
 
78
 Environment Variables you can pass:
79
 
80
@@ -462,20 +462,20 @@
81
 then
82
  # many thanks to David Cecchin for finding the unicode issues fixed below.
83
 
84
- WXCONFIGFLAGS=`wx-config  --cppflags $WITHUNICODE `
85
+ WXCONFIGFLAGS=`/usr/local/bin/wxgtk2-2.8-config  --cppflags $WITHUNICODE `
86
  if [ -z "$WXCONFIGFLAGS" ]
87
  then
88
-    echo wx-config has failed, or returned an error.  Ensure that it exists in your path.
89
-    which wx-config
90
+    echo /usr/local/bin/wxgtk2-2.8-config has failed, or returned an error.  Ensure that it exists in your path.
91
+    which /usr/local/bin/wxgtk2-2.8-config
5
     exit 3
92
     exit 3
6
  fi
93
  fi
7
- CFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
94
- CFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
8
- CXXFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
95
- CXXFLAGS="-I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
9
+ CFLAGS+=" -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
96
- LINKOPTS="`wx-config $STATIC  $WITHUNICODE  --libs --linkdeps --cppflags`"
10
+ CXXFLAGS+=" -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
97
+ CFLAGS="$CFLAGS -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
11
  LINKOPTS="`wx-config $STATIC  $WITHUNICODE  --libs --linkdeps --cppflags`"
98
+ CXXFLAGS="$CXXFLAGS -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS"
99
+ LINKOPTS="`/usr/local/bin/wxgtk2-2.8-config $STATIC  $WITHUNICODE  --libs --linkdeps --cppflags`"
12
  if [ -z "$LINKOPTS" ]
100
  if [ -z "$LINKOPTS" ]
13
  then
101
  then
102
-    echo wx-config has failed, or returned an error.  Ensure that it exists in your path.
103
-    which wx-config
104
+    echo /usr/local/bin/wxgtk2-2.8-config has failed, or returned an error.  Ensure that it exists in your path.
105
+    which /usr/local/bin/wxgtk2-2.8-config
106
     exit 3
107
  fi
108
 
14
@@ -840,7 +840,7 @@
109
@@ -840,7 +840,7 @@
15
 #echo $CXX $GCCSTATIC $WITHTRACE $WITHDEBUG -o ../bin/lisaem  $LIST ../generator/libgenerator.a ../cpu68k/lib68k.a $LINKOPTS $SYSLIBS
110
 #echo $CXX $GCCSTATIC $WITHTRACE $WITHDEBUG -o ../bin/lisaem  $LIST ../generator/libgenerator.a ../cpu68k/lib68k.a $LINKOPTS $SYSLIBS
16
 if [ -z "$WITHWXUI" ]
111
 if [ -z "$WITHWXUI" ]
(-)/usr/ports/emulators/lisaem/pkg-plist (-28 / +28 lines)
Lines 1-30 Link Here
1
bin/lisaem
1
bin/lisaem
2
share/lisaem/Info.plist
2
%%DATADIR%%Info.plist
3
share/lisaem/LisaEm.icns
3
%%DATADIR%%LisaEm.icns
4
share/lisaem/floppy0.png
4
%%DATADIR%%floppy0.png
5
share/lisaem/floppy1.png
5
%%DATADIR%%floppy1.png
6
share/lisaem/floppy2.png
6
%%DATADIR%%floppy2.png
7
share/lisaem/floppy3.png
7
%%DATADIR%%floppy3.png
8
share/lisaem/floppyN.png
8
%%DATADIR%%floppyN.png
9
share/lisaem/floppy_eject.wav
9
%%DATADIR%%floppy_eject.wav
10
share/lisaem/floppy_insert_sound.wav
10
%%DATADIR%%floppy_insert_sound.wav
11
share/lisaem/floppy_motor1.wav
11
%%DATADIR%%floppy_motor1.wav
12
share/lisaem/floppy_motor2.wav
12
%%DATADIR%%floppy_motor2.wav
13
share/lisaem/lisa128x85.xpm
13
%%DATADIR%%lisa128x85.xpm
14
share/lisaem/lisa2icon.ico
14
%%DATADIR%%lisa2icon.ico
15
share/lisaem/lisa2icon.ico.old
15
%%DATADIR%%lisa2icon.ico.old
16
share/lisaem/lisa2icon.xpm
16
%%DATADIR%%lisa2icon.xpm
17
share/lisaem/lisa_power_switch01.wav
17
%%DATADIR%%lisa_power_switch01.wav
18
share/lisaem/lisa_power_switch02.wav
18
%%DATADIR%%lisa_power_switch02.wav
19
share/lisaem/lisaem.exe.Manifest
19
%%DATADIR%%lisaem.exe.Manifest
20
share/lisaem/lisaem.ico
20
%%DATADIR%%lisaem.ico
21
share/lisaem/lisaem.ico.old
21
%%DATADIR%%lisaem.ico.old
22
share/lisaem/lisaface0.png
22
%%DATADIR%%lisaface0.png
23
share/lisaem/lisaface1.png
23
%%DATADIR%%lisaface1.png
24
share/lisaem/lisaface2.png
24
%%DATADIR%%lisaface2.png
25
share/lisaem/lisaface3.png
25
%%DATADIR%%lisaface3.png
26
share/lisaem/power_off.png
26
%%DATADIR%%power_off.png
27
share/lisaem/power_on.png
27
%%DATADIR%%power_on.png
28
share/lisaem/poweroffclk.wav
28
%%DATADIR%%poweroffclk.wav
29
@dirrm share/lisaem
29
@dirrm %%DATADIR%%
30
share/LisaEm
30
share/LisaEm

Return to bug 148597