First stab at cross-compiling ffmpeg.

Won't work on arm yet because we need to specify the arm cpu flavour.
This commit is contained in:
riastradh 2013-05-10 06:13:30 +00:00
parent f397a26de0
commit a5167c4737

View file

@ -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: