1 # $NetBSD: Makefile,v 1.106 2013/05/10 06:13:30 riastradh Exp $
3 PKGNAME
= ffmpeg-20130510.
${DISTVERSION}
4 MAINTAINER
= pkgsrc-users@NetBSD.org
5 HOMEPAGE
= http
://ffmpeg.mplayerhq.hu
/
6 COMMENT
= Decoding
, encoding and streaming software
8 CONFIGURE_ARGS
+= --enable-avfilter
9 #CONFIGURE_ARGS+= --enable-avfilter-lavf
10 CONFIGURE_ARGS
+= --enable-postproc
12 INSTALLATION_DIRS
= lib share
/examples
/ffmpeg share
/doc
/ffmpeg
14 CONF_FILES
+= ${PREFIX}/share
/examples
/ffmpeg
/ffserver.conf \
15 ${PKG_SYSCONFDIR}/ffserver.conf
17 .
include "../../mk/bsd.prefs.mk"
19 .if
!empty
(MACHINE_PLATFORM
:MDarwin-
*-i386
) \
20 ||
!empty
(MACHINE_PLATFORM
:MSunOS-
*-i386
)
21 CONFIGURE_ARGS
+= --disable-asm
24 .if
!empty
(USE_CROSS_COMPILE
:M
[yY
][eE
][sS
])
25 CONFIGURE_ARGS
+= --enable-cross-compile
26 CONFIGURE_ARGS
+= --target-os
=${LOWER_OPSYS
:Q
}
27 CONFIGURE_ARGS
+= --arch
=${MACHINE_ARCH
:Q
}
28 CONFIGURE_ARGS
+= --host-cc
=${NATIVE_CC
:Q
}
29 CONFIGURE_ARGS
+= --host-ld
=${NATIVE_CC
:Q
}
35 ${INSTALL_DATA} ${WRKSRC}/doc
/*.txt \
36 ${DESTDIR}${PREFIX}/share
/doc
/ffmpeg
37 ${INSTALL_DATA} ${WRKSRC}/doc
/ffserver.conf \
38 ${DESTDIR}${PREFIX}/share
/examples
/ffmpeg
42 .
include "../../mk/compiler.mk"
44 .if
!empty
(PKGSRC_COMPILER
:Mclang
)
45 CFLAGS
+= -no-integrated-as
48 .
include "../../multimedia/ffmpeg/Makefile.common"