summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorahoka <ahoka@pkgsrc.org>2009-06-14 19:28:10 +0000
committerahoka <ahoka@pkgsrc.org>2009-06-14 19:28:10 +0000
commit56136fad357f75d6629df5d11c61a939877732c6 (patch)
treea888d22240b3984a1cc5caed8d06bc5a851aa32b
parentb806c78190c3d4e7641943873943b0965b438b12 (diff)
downloadpkgsrc-56136fad357f75d6629df5d11c61a939877732c6.tar.gz
Add --enable-memalign-hack for NetBSD 4.0 and earlier.
-rw-r--r--multimedia/ffmpeg/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/multimedia/ffmpeg/Makefile.common b/multimedia/ffmpeg/Makefile.common
index d7561545e03..8d69a5062c2 100644
--- a/multimedia/ffmpeg/Makefile.common
+++ b/multimedia/ffmpeg/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1 2009/06/12 20:26:30 ahoka Exp $
+# $NetBSD: Makefile.common,v 1.2 2009/06/14 19:28:10 ahoka Exp $
DISTNAME= ffmpeg-${DISTVERSION:S/-//g}
CATEGORIES= multimedia
@@ -42,6 +42,12 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} \
--enable-pthreads \
--enable-gpl
+# No posix_memalign() in NetBSD 4.0 and earlier
+#
+.if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*)
+CONFIGURE_ARGS+= --enable-memalign-hack
+.endif
+
pre-configure:
mkdir ${WRKSRC}/tmp