aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2018-05-14 14:56:47 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2018-05-14 14:56:47 +0000
commit02371f63a0ab144308abd5170eb687edb42d8456 (patch)
treee7e7ac73d113742a76dede0443b26085fc03d95b /emulators
parentc4e1ae5b39486c964c03c6f87e4551438ab8c0d4 (diff)
downloadports-02371f63a0ab144308abd5170eb687edb42d8456.tar.gz
ports-02371f63a0ab144308abd5170eb687edb42d8456.zip
Notes
Diffstat (limited to 'emulators')
-rw-r--r--emulators/frodo/Makefile10
-rw-r--r--emulators/frodo/files/patch-Makefile.in23
2 files changed, 29 insertions, 4 deletions
diff --git a/emulators/frodo/Makefile b/emulators/frodo/Makefile
index f0216fa8f19c..9b0bf7b36ffd 100644
--- a/emulators/frodo/Makefile
+++ b/emulators/frodo/Makefile
@@ -10,15 +10,17 @@ DISTNAME= FrodoV4_1b.Src
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Emulates a Commodore 64
-BROKEN_FreeBSD_12= Regression C++
-
USES= shebangfix tk:run
+USE_CXXSTD= gnu++98
+CXXFLAGS+= -std=gnu++98
USE_XORG= x11 xt xext sm ice
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CXXFLAGS='${CXXFLAGS}'
+MAKE_ENV= LDFLAGS='${LDFLAGS}'
ALL_TARGET= Frodo
INSTALL_WRKSRC= ${WRKDIR}/Frodo-4.1b
-WRKSRC= ${INSTALL_WRKSRC}/Src
-GNU_CONFIGURE= yes
SHEBANG_FILES= ../TkGui.tcl
+WRKSRC= ${INSTALL_WRKSRC}/Src
ROM= 1541 Basic Char Kernal
diff --git a/emulators/frodo/files/patch-Makefile.in b/emulators/frodo/files/patch-Makefile.in
new file mode 100644
index 000000000000..70e54b405157
--- /dev/null
+++ b/emulators/frodo/files/patch-Makefile.in
@@ -0,0 +1,23 @@
+--- Makefile.in.orig 2002-01-02 16:44:04 UTC
++++ Makefile.in
+@@ -9,6 +9,7 @@ REVISION = 1
+ CXX = @CXX@
+ LIBS = @LIBS@
+ CFLAGS = @CFLAGS@ -I./ -DFRODO_HPUX_REV=@HPUX_REV@ -DKBD_LANG=@KBD_LANG@
++CXXFLAGS = @CXXFLAGS@ @CFLAGS@ -I./ -DFRODO_HPUX_REV=@HPUX_REV@ -DKBD_LANG=@KBD_LANG@
+
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -62,10 +63,10 @@ depend dep:
+ makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
+
+ .cpp.o:
+- $(CC) $(INCLUDES) $(CFLAGS) -o $@ -c $*.cpp
++ $(CC) $(INCLUDES) $(CXXFLAGS) -o $@ -c $*.cpp
+
+ .cpp.s:
+- $(CC) $(INCLUDES) $(CFLAGS) $(EXTRAFLAGS) -o $@ -S $*.cpp -g0
++ $(CC) $(INCLUDES) $(CXXFLAGS) $(EXTRAFLAGS) -o $@ -S $*.cpp -g0
+
+ C64_PC.o: C64.cpp C64.h C64_x.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h
+ $(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp