summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2005-06-15 22:42:38 +0000
committerhubertf <hubertf@pkgsrc.org>2005-06-15 22:42:38 +0000
commitbfe24ea6067f9e07a7b0adb72bd94e07564a9d1d (patch)
tree1787ab48736ab7400bf549f3fdf0109a586b9422 /multimedia
parent9f7a3de6d9e6275142c32640c4c5fd5c65afcc88 (diff)
downloadpkgsrc-bfe24ea6067f9e07a7b0adb72bd94e07564a9d1d.tar.gz
Work around gcc 4 (on MacOS X 10.4.something) not knowing -fmove-all-movables
Bump to rev. mjpegtools-1.6.2nb5
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mjpegtools/Makefile4
-rw-r--r--multimedia/mjpegtools/hacks.mk16
2 files changed, 18 insertions, 2 deletions
diff --git a/multimedia/mjpegtools/Makefile b/multimedia/mjpegtools/Makefile
index fcada3523d8..aef88cea225 100644
--- a/multimedia/mjpegtools/Makefile
+++ b/multimedia/mjpegtools/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2005/06/07 21:23:04 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2005/06/15 22:42:38 hubertf Exp $
DISTNAME= mjpegtools-1.6.2
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mjpeg/}
diff --git a/multimedia/mjpegtools/hacks.mk b/multimedia/mjpegtools/hacks.mk
new file mode 100644
index 00000000000..6fda52f341c
--- /dev/null
+++ b/multimedia/mjpegtools/hacks.mk
@@ -0,0 +1,16 @@
+# $NetBSD: hacks.mk,v 1.1 2005/06/15 22:42:38 hubertf Exp $
+
+.if !defined(MJPEGTOOLS_HACKS_MK)
+MJPEGTOOLS_HACKS_MK= defined
+
+### Hack to work around MacOS X 4.x (and probably other)'s gcc 4.x
+### which does not understand -fmove-all-movables. Remove that option
+### if gcc-4 is _not_ used.
+###
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-4.*)
+BUILDLINK_TRANSFORM+= rm:-fmove-all-movables
+.endif
+
+.endif # MJPEGTOOLS_HACKS_MK