summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/Makefile
blob: 6582dbac13c8579730ffb313433c5526b3b8e8d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $NetBSD: Makefile,v 1.34 2007/12/22 00:05:25 joerg Exp $

DISTNAME=	ffmpeg-0.4.9-pre1
PKGNAME=	ffmpeg-0.4.9pre1
PKGREVISION=	3
CATEGORIES=	multimedia
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=ffmpeg/}

MAINTAINER=	zul@NetBSD-fr.org
HOMEPAGE=	http://ffmpeg.mplayerhq.hu/
COMMENT=	MPEG decoding, encoding and streaming software

PKG_DESTDIR_SUPPORT=	user-destdir

HAS_CONFIGURE=	YES
CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
USE_TOOLS+=	gmake texi2html pod2man
USE_LIBTOOL=	YES

CONFLICTS+=	ffmpeg-devel-[0-9]*

REPLACE_PERL+=	doc/texi2pod.pl

CONF_FILES=	${PREFIX}/share/examples/ffmpeg/ffserver.conf \
		${PKG_SYSCONFDIR}/ffserver.conf

MAKE_ENV+=	EXTRA_LIBS=${LIBGETOPT:Q} \
		FFSERVER_CONF=${PKG_SYSCONFDIR}/ffserver.conf \
		LOCALBASE=${LOCALBASE:Q}

CONFIGURE_ARGS+=	--cc=${CC:Q} --prefix=${PREFIX:Q}
CONFIGURE_ARGS+=	--enable-pp --disable-vhook --disable-debug
CONFIGURE_ARGS+=	--enable-gpl
CONFIGURE_ARGS+=	--enable-ffplay

INSTALLATION_DIRS=	include/ffmpeg/libpostproc lib \
			share/examples/ffmpeg share/doc/ffmpeg

.include "options.mk"

post-install:
	${INSTALL_DATA} ${WRKSRC}/libavcodec/apiexample.c \
		${DESTDIR}${PREFIX}/share/doc/ffmpeg
	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/TODO \
		${DESTDIR}${PREFIX}/share/doc/ffmpeg
	${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/ffmpeg
	${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
		${DESTDIR}${PREFIX}/share/examples/ffmpeg
	${INSTALL_DATA} ${WRKSRC}/libavcodec/libpostproc/postprocess.h \
		${DESTDIR}${PREFIX}/include/ffmpeg/libpostproc

.include "../../devel/libgetopt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"