aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-03-03 11:05:41 +0800
committerperky <perky@FreeBSD.org>2003-03-03 11:05:41 +0800
commit06936dc8c3f800fa90f7f5ee3bde7cbe0e0c0b6f (patch)
treeb0f3ad1ec8a515ccde82f0f8ae9f8c9671f49486
parent28c610d3a7062003338df8cece74ef9301d29eda (diff)
downloadfreebsd-ports-gnome-06936dc8c3f800fa90f7f5ee3bde7cbe0e0c0b6f.tar.gz
freebsd-ports-gnome-06936dc8c3f800fa90f7f5ee3bde7cbe0e0c0b6f.tar.zst
freebsd-ports-gnome-06936dc8c3f800fa90f7f5ee3bde7cbe0e0c0b6f.zip
Fix build on 4.
Spotted by: kris
-rw-r--r--audio/py-mad/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/audio/py-mad/Makefile b/audio/py-mad/Makefile
index a7a80f373bb9..236c4c145456 100644
--- a/audio/py-mad/Makefile
+++ b/audio/py-mad/Makefile
@@ -21,11 +21,18 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
+
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} 's/^\(.*compile.*\)\?\(.*\)\?\(.*\)$$/\1\2\3/' \
${WRKSRC}/setup.py
+.if ${OSVERSION} < 500028
+ @${REINPLACE_CMD} 's/#include <stdint.h>//g' \
+ ${WRKSRC}/src/pymadfile.c
+.endif
do-configure:
@cd ${WRKSRC} && ${PYTHON_CMD} config_unix.py --prefix ${PREFIX}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>