aboutsummaryrefslogtreecommitdiffstats
path: root/games/goonies
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2010-03-06 01:11:14 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2010-03-06 01:11:14 +0800
commit5156831a6ed1e4bc3d07ecd58c1ddbf19ae5fd22 (patch)
treef8062a6d4aa0da50132cbbe7b3528b074c1a276a /games/goonies
parent73cbbe4f67c558c1d1046260f268f902089ddd36 (diff)
downloadfreebsd-ports-gnome-5156831a6ed1e4bc3d07ecd58c1ddbf19ae5fd22.tar.gz
freebsd-ports-gnome-5156831a6ed1e4bc3d07ecd58c1ddbf19ae5fd22.tar.zst
freebsd-ports-gnome-5156831a6ed1e4bc3d07ecd58c1ddbf19ae5fd22.zip
- Unbreak on 9-CURRENT and 8-STABLE after scandir interface changes
Reported by: pointyhat via erwin Feature safe: yes
Diffstat (limited to 'games/goonies')
-rw-r--r--games/goonies/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/games/goonies/Makefile b/games/goonies/Makefile
index 7905671ae51f..0d8a5b1d3ecf 100644
--- a/games/goonies/Makefile
+++ b/games/goonies/Makefile
@@ -28,9 +28,13 @@ MAKE_ENV= DATADIR="${DATADIR}"
DATADIRS= sound graphics maps
PORTDOCS= *
+.include <bsd.port.pre.mk>
+
post-patch:
+.if ${OSVERSION} < 800501 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900006)
@${REINPLACE_CMD} -e 's|__APPLE__|__FreeBSD__|' \
${WRKSRC}/src/SFXManager.cpp
+.endif
@${REINPLACE_CMD} -e 's|sound/|${DATADIR}/sound/|g' \
${WRKSRC}/src/SFXManager.cpp
@${REINPLACE_CMD} -e 's|graphics/|${DATADIR}/graphics/|g' \
@@ -49,4 +53,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>