summaryrefslogtreecommitdiff
path: root/multimedia/x264-devel
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-10 05:39:20 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-10 05:39:20 +0000
commitf397a26de0d057ac7a255ecf29ddace2ba7acece (patch)
treed99734291bfda6f20a92d8c892af2dac6e7d6153 /multimedia/x264-devel
parent4e854d2449102a5609bd186e22eff12dab0f0fae (diff)
downloadpkgsrc-f397a26de0d057ac7a255ecf29ddace2ba7acece.tar.gz
Fix cross-build of x264-devel by passing --host to configure.
Diffstat (limited to 'multimedia/x264-devel')
-rw-r--r--multimedia/x264-devel/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/multimedia/x264-devel/Makefile b/multimedia/x264-devel/Makefile
index e93aa315d9f..6d10603847b 100644
--- a/multimedia/x264-devel/Makefile
+++ b/multimedia/x264-devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2013/01/16 20:55:30 adam Exp $
+# $NetBSD: Makefile,v 1.41 2013/05/10 05:39:20 riastradh Exp $
SNAPSHOT_DATE= 20130115
@@ -52,6 +52,11 @@ CONFIGURE_ARGS+= --enable-pic # uses libtool's -prefer-pic
CONFIGURE_ARGS+= --prefix=${PREFIX}
MAKE_ENV+= SH=${SH:Q}
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+# XXX Consider passing this whether cross-compiling or not.
+CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q}
+.endif
+
BUILD_TARGET= default
INSTALL_TARGET= install-lib-static install-cli
INSTALLATION_DIRS= bin