mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
fix build on 5
This commit is contained in:
parent
356be11d8d
commit
e0ed504765
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95625
1 changed files with 17 additions and 10 deletions
|
@ -11,7 +11,7 @@ CATEGORIES= emulators tk82
|
||||||
MASTER_SITES= ftp://ftp.redlinelabs.com/pub/bsvc/ \
|
MASTER_SITES= ftp://ftp.redlinelabs.com/pub/bsvc/ \
|
||||||
${MASTER_SITE_SUNSITE}
|
${MASTER_SITE_SUNSITE}
|
||||||
MASTER_SITE_SUBDIR= system/emulators
|
MASTER_SITE_SUBDIR= system/emulators
|
||||||
DISTFILES= ${DISTNAME}-src.tar.gz
|
DISTFILES= ${DISTNAME}-src${EXTRACT_SUFX}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= An extensible hardware simulation framework with MC68K support
|
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>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ${OSVERSION} >= 500113
|
|
||||||
BROKEN= "Does not compile (bad C++ code)"
|
|
||||||
.endif
|
|
||||||
|
|
||||||
pre-patch:
|
pre-patch:
|
||||||
${CP} ${WRKSRC}/Makefile.Linux ${WRKSRC}/Makefile
|
@${CP} ${WRKSRC}/Makefile.Linux ${WRKSRC}/Makefile
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${FIND} ${WRKSRC} -name "*.[ch]xx" -exec \
|
|
||||||
${REINPLACE_CMD} -e 's/iostream\.h/iostream/; s/fstream\.h/fstream/' \{\} \;
|
.for cfile in codegen.c listing.c object.c main.c
|
||||||
${FIND} ${WRKSRC} -name Makefile -exec \
|
@${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)/' \{\} \;
|
${REINPLACE_CMD} -e 's/make/$(MAKE)/' \{\} \;
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue