summaryrefslogtreecommitdiff
path: root/package/ffmpeg/Makefile
blob: 1f920ec4a5ab34d29476b661dbcf7995a7ab56ff (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
54
55
56
57
58
59
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		ffmpeg
PKG_VERSION:=		0.5
PKG_RELEASE:=		2
PKG_MD5SUM:=		be8503f15c3b81ba00eb8379ca8dcf33
PKG_DESCR:=		solution to record, convert and stream audio and video
PKG_SECTION:=		sound
PKG_URL:=		http://www.ffmpeg.org
PKG_SITES:=		http://www.ffmpeg.org/releases/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,FFMPEG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_STYLE:=	manual
BUILD_STYLE:=		auto
INSTALL_STYLE:=		auto

include ${TOPDIR}/mk/cpu.mk

do-configure:
	cd ${WRKBUILD}; \
		env ${CONFIGURE_ENV} \
		${BASH} ${WRKSRC}/configure \
		--prefix=/usr \
		--arch=${CPU_ARCH} \
		--enable-cross-compile \
		--source-path=${WRKSRC} \
		--cross-prefix=${TARGET_CROSS} \
		--cc=$(TARGET_CC) \
		--host-cc=$(HOSTCC) \
		--disable-debug \
		--disable-stripping \
		--enable-small \
		--enable-shared \
		--enable-static \
		--disable-ffmpeg \
		--disable-ffplay \
		--disable-ffserver \
		--disable-vhook \
		--enable-gpl \
		--enable-swscale \
		--enable-postproc \
		--enable-libfaad \
		${CONFIGURE_CPU_OPTS}

post-install:
	${INSTALL_DIR} ${IDIR_FFMPEG}/usr/lib
	${CP} ${WRKINST}/usr/lib/libavformat.so* ${IDIR_FFMPEG}/usr/lib
	${CP} ${WRKINST}/usr/lib/libavcodec.so* ${IDIR_FFMPEG}/usr/lib
	${CP} ${WRKINST}/usr/lib/libavutil.so* ${IDIR_FFMPEG}/usr/lib

include ${TOPDIR}/mk/pkg-bottom.mk