summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorahoka <ahoka>2009-06-14 19:28:10 +0000
committerahoka <ahoka>2009-06-14 19:28:10 +0000
commit4ba0f28aec80ad9aeed54cf1ed0449fa33258970 (patch)
treea888d22240b3984a1cc5caed8d06bc5a851aa32b /multimedia
parent6dd538c1923dc4905ca3b245385d8d7678d4a83b (diff)
downloadpkgsrc-4ba0f28aec80ad9aeed54cf1ed0449fa33258970.tar.gz
Add --enable-memalign-hack for NetBSD 4.0 and earlier.
Diffstat (limited to 'multimedia')
-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