aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mpgtx/Makefile
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-11-03 13:58:08 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-11-03 13:58:08 +0000
commit983c4b97651976d6ceb0ad6ca457e90e183efcf0 (patch)
treea67420a4514b109751688232e19297fc4b13055f /multimedia/mpgtx/Makefile
parent620661c1d53d191c8ce52c2b339a1569dcf9e088 (diff)
downloadports-983c4b97651976d6ceb0ad6ca457e90e183efcf0.tar.gz
ports-983c4b97651976d6ceb0ad6ca457e90e183efcf0.zip
Add -O to CFLAGS on FreeBSD 6.x to work around build failuer with -O2.
Reported by: pointyhat
Notes
Notes: svn path=/head/; revision=120704
Diffstat (limited to 'multimedia/mpgtx/Makefile')
-rw-r--r--multimedia/mpgtx/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/multimedia/mpgtx/Makefile b/multimedia/mpgtx/Makefile
index 439cc04e4486..782b2361fdec 100644
--- a/multimedia/mpgtx/Makefile
+++ b/multimedia/mpgtx/Makefile
@@ -28,6 +28,12 @@ MLINKS= mpgtx.1 mpgcat.1 \
mpgtx.1 mpgjoin.1 \
mpgtx.1 mpgsplit.1
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 600000
+CFLAGS+= -O
+.endif
+
pre-patch:
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g ; \
s|\$$cflags \$$optimization_cflags|$$cflags|g ; \
@@ -41,4 +47,4 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/man/mpgtx.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/tagmp3.1 ${MANPREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>