aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2005-03-10 23:28:59 +0000
committerMichael Johnson <ahze@FreeBSD.org>2005-03-10 23:28:59 +0000
commitd78bf1fd8084f11ecd40b35a41242d045bb8b4b0 (patch)
tree0350f3899c1b49b045920ad8a81ae05c71ce4703 /audio
parentb9316eb218a512dd56f46301fcc4dde07cec825e (diff)
downloadports-d78bf1fd8084f11ecd40b35a41242d045bb8b4b0.tar.gz
ports-d78bf1fd8084f11ecd40b35a41242d045bb8b4b0.zip
- Fix build on 4.x
Pointed out by: kris via pointyhat
Notes
Notes: svn path=/head/; revision=130835
Diffstat (limited to 'audio')
-rw-r--r--audio/alac/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/alac/Makefile b/audio/alac/Makefile
index 809312de605c..ddda3d0084ed 100644
--- a/audio/alac/Makefile
+++ b/audio/alac/Makefile
@@ -21,11 +21,17 @@ USE_REINPLACE= yes
PLIST_FILES= bin/alac
PORTDOCS= README
+.include <bsd.port.pre.mk>
+
post-patch:
.if !defined(WITH_DEBUG)
@${REINPLACE_CMD} -e 's|-ggdb||' \
${WRKSRC}/${MAKEFILE}
.endif
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
+ ${WRKSRC}/*.*
+.endif
@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O3|${CFLAGS}|' \
${WRKSRC}/${MAKEFILE}
@@ -36,4 +42,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>