diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2003-12-11 17:13:00 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2003-12-11 17:13:00 +0000 |
commit | e0ed504765fd6d0cc2f1839a6588b581f63fce7f (patch) | |
tree | cf8073c715637c35a7332f108b58b4ea98e8b481 /emulators | |
parent | 356be11d8deb43f12fec41b1dc151adb201dedf6 (diff) | |
download | ports-e0ed504765fd6d0cc2f1839a6588b581f63fce7f.tar.gz ports-e0ed504765fd6d0cc2f1839a6588b581f63fce7f.zip |
Notes
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/bsvc/Makefile | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/emulators/bsvc/Makefile b/emulators/bsvc/Makefile index 6dd30412cd24..e58a76752a4e 100644 --- a/emulators/bsvc/Makefile +++ b/emulators/bsvc/Makefile @@ -11,7 +11,7 @@ CATEGORIES= emulators tk82 MASTER_SITES= ftp://ftp.redlinelabs.com/pub/bsvc/ \ ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= system/emulators -DISTFILES= ${DISTNAME}-src.tar.gz +DISTFILES= ${DISTNAME}-src${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= An extensible hardware simulation framework with MC68K support @@ -26,16 +26,23 @@ MAKE_ENV= PROJECT_BASE=${PREFIX} WRKSRC=${WRKSRC} .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile (bad C++ code)" -.endif - pre-patch: - ${CP} ${WRKSRC}/Makefile.Linux ${WRKSRC}/Makefile + @${CP} ${WRKSRC}/Makefile.Linux ${WRKSRC}/Makefile + post-patch: - ${FIND} ${WRKSRC} -name "*.[ch]xx" -exec \ - ${REINPLACE_CMD} -e 's/iostream\.h/iostream/; s/fstream\.h/fstream/' \{\} \; - ${FIND} ${WRKSRC} -name Makefile -exec \ - ${REINPLACE_CMD} -e 's/make/$(MAKE)/' \{\} \; + +.for cfile in codegen.c listing.c object.c main.c + @${REINPLACE_CMD} -e 's|exit()|exit(1)|g' ${WRKSRC}/Assemblers/68kasm/${cfile} +.endfor + @${REINPLACE_CMD} -e 's|^#endif.*$$|#endif|g' \ + ${WRKSRC}/Assemblers/68kasm/instlookup.c + + @${FIND} ${WRKSRC} -name "*.[ch]xx" -exec \ + ${REINPLACE_CMD} -e \ + 's/iostream\.h/iostream/; \ + s/strstream\.h/strstream/; \ + s/fstream\.h/fstream/' \{\} \; + @${FIND} ${WRKSRC} -name Makefile -exec \ + ${REINPLACE_CMD} -e 's/make/$(MAKE)/' \{\} \; .include <bsd.port.post.mk> |