summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorriastradh <riastradh>2013-05-10 06:13:30 +0000
committerriastradh <riastradh>2013-05-10 06:13:30 +0000
commit1ff1e6880130bf842b668e371568abb6933ae6f1 (patch)
treeb939acfab8a63e44c0a679ba534b3777d6809418 /multimedia
parentb1f34483be08f84343600202a15564087c5d3aac (diff)
downloadpkgsrc-1ff1e6880130bf842b668e371568abb6933ae6f1.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')
-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: