1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- fix build for FreeBSD 12.0

This commit is contained in:
Dirk Meyer 2018-05-14 14:56:47 +00:00
parent c4e1ae5b39
commit 02371f63a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469896
2 changed files with 29 additions and 4 deletions

View File

@ -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

View File

@ -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