aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/openmsx
diff options
context:
space:
mode:
authorjohans <johans@FreeBSD.org>2006-10-08 19:57:11 +0800
committerjohans <johans@FreeBSD.org>2006-10-08 19:57:11 +0800
commit172738a237d846ba698fe2687f8150707cd5ec5a (patch)
tree5724d9cc18333edb30a9da7f1cc50b56e2c6e329 /emulators/openmsx
parentf9f0872bdf37dfbbece6befb95deaa321f3d4d42 (diff)
downloadfreebsd-ports-gnome-172738a237d846ba698fe2687f8150707cd5ec5a.tar.gz
freebsd-ports-gnome-172738a237d846ba698fe2687f8150707cd5ec5a.tar.zst
freebsd-ports-gnome-172738a237d846ba698fe2687f8150707cd5ec5a.zip
- Fix build on FreeBSD 4.x
Reported by: krismail
Diffstat (limited to 'emulators/openmsx')
-rw-r--r--emulators/openmsx/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/emulators/openmsx/Makefile b/emulators/openmsx/Makefile
index 4747628582f8..b9ff6127956a 100644
--- a/emulators/openmsx/Makefile
+++ b/emulators/openmsx/Makefile
@@ -25,7 +25,7 @@ MAKE_ARGS+= INSTALL_BINARY_DIR=${PREFIX}/bin \
MAKEFILE= GNUmakefile
USE_GMAKE= yes
-USE_GCC= 3.2+
+USE_GCC= 3.3+
USE_TCL= 84
USE_TCL_BUILD= 84
USE_SDL= sdl image
@@ -35,4 +35,11 @@ USE_SDL= sdl image
MAKE_ARGS+= INSTALL_DOC_DIR=${WRKSRC}/dummy
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OSVERSION} < 503000
+ @${REINPLACE_CMD} -e 's/round/rint/' ${WRKSRC}/src/Math.hh
+.endif
+
+.include <bsd.port.post.mk>