summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-10 06:13:30 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-10 06:13:30 +0000
commit360fb2ecf4f3b46a913297df3a2869a11d872972 (patch)
treeb939acfab8a63e44c0a679ba534b3777d6809418 /multimedia/ffmpeg
parent10ccb2e89c97862fda44204ea1093771a165391a (diff)
downloadpkgsrc-360fb2ecf4f3b46a913297df3a2869a11d872972.tar.gz
First stab at cross-compiling ffmpeg.
Won't work on arm yet because we need to specify the arm cpu flavour.
Diffstat (limited to 'multimedia/ffmpeg')
-rw-r--r--multimedia/ffmpeg/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile
index bf7354964c5..5bb174acc6f 100644
--- a/multimedia/ffmpeg/Makefile
+++ b/multimedia/ffmpeg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.105 2013/04/14 01:36:44 cheusov Exp $
+# $NetBSD: Makefile,v 1.106 2013/05/10 06:13:30 riastradh Exp $
PKGNAME= ffmpeg-20130315.${DISTVERSION}
PKGREVISION= 1
@@ -22,6 +22,14 @@ CONF_FILES+= ${PREFIX}/share/examples/ffmpeg/ffserver.conf \
CONFIGURE_ARGS+= --disable-asm
.endif
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+CONFIGURE_ARGS+= --enable-cross-compile
+CONFIGURE_ARGS+= --target-os=${LOWER_OPSYS:Q}
+CONFIGURE_ARGS+= --arch=${MACHINE_ARCH:Q}
+CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q}
+CONFIGURE_ARGS+= --host-ld=${NATIVE_CC:Q}
+.endif
+
TEST_TARGET= check
post-install: