aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/mpgtx/Makefile
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2004-11-03 21:58:08 +0800
committerarved <arved@FreeBSD.org>2004-11-03 21:58:08 +0800
commited930bfc3411c436d79cc0fd8ee86211fa3bf80a (patch)
tree1a19ee2bc7b742378c4af99df8fa1fcbe63fa0d8 /multimedia/mpgtx/Makefile
parent9261cab952e4008494d961ffa6a7814e5f145218 (diff)
downloadfreebsd-ports-gnome-ed930bfc3411c436d79cc0fd8ee86211fa3bf80a.tar.gz
freebsd-ports-gnome-ed930bfc3411c436d79cc0fd8ee86211fa3bf80a.tar.zst
freebsd-ports-gnome-ed930bfc3411c436d79cc0fd8ee86211fa3bf80a.zip
Add -O to CFLAGS on FreeBSD 6.x to work around build failuer with -O2.
Reported by: pointyhat
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>