summaryrefslogtreecommitdiff
path: root/mplayer/mplayer_1.0pre3try2.oe
blob: 5f783cba2ec66327d749eb31a1456c653fc01f96 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
DESCRIPTION = "Open Source multimedia player."
SECTION = "opie/multimedia"
PRIORITY = "optional"
HOMEPAGE = "http://www.mplayerhq.hu/"
DEPENDS = "libsdl-qpe libmad tremor-20030325 libogg libvorbis zlib libpng jpeg"
PR = "r1"

SRC_URI = "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-${PV}.tar.bz2 \
			file://Makefile.patch;patch=0 \
			file://sdl.patch;patch=0 \
			file://zlib.patch;patch=0 "

DEPENDS_corgi += "sharp-aticore"
DEPENDS_shepherd += "sharp-aticore"
DEPENDS_husky += "sharp-aticore"
DEPENDS_tosa += "sharp-aticore"

PACKAGE_ARCH_corgi = "${MACHINE}"
PACKAGE_ARCH_shepherd = "${MACHINE}"
PACKAGE_ARCH_husky = "${MACHINE}"
PACKAGE_ARCH_tosa = "${MACHINE}"

SRC_URI_append_corgi = "file://mplayer-w100_1.0pre3.1.modified.diff;patch=1 \
			file://Makefile-vidix.patch;patch=0 "
SRC_URI_shepherd += "file://mplayer-w100_1.0pre3.1.modified.diff;patch=1 \
			file://Makefile-vidix.patch;patch=0 "
SRC_URI_husky += "file://mplayer-w100_1.0pre3.1.modified.diff;patch=1 \
			file://Makefile-vidix.patch;patch=0 "
SRC_URI_tosa += "file://mplayer-w100_1.0pre3.1.modified.diff;patch=1 \
			file://Makefile-vidix.patch;patch=0 "
			
S = "${WORKDIR}/MPlayer-${PV}"

PACKAGES =+ "postproc postproc-dev"

FILES_${PN} = "/usr/bin/mplayer"

FILES_postproc = " /usr/lib/libpostproc.so.0.0.0 /usr/lib/libpostproc.so.0"
FILES_postproc-dev = " /usr/include/postproc/postprocess.h /usr/lib/libpostproc.so /usr/lib/libpostproc.a"

inherit autotools 

EXTRA_OECONF = " \
	--prefix=/usr \
	--target=${TARGET_ARCH} \
	--enable-shared-pp \
	\
	--disable-win32 \
	--disable-macosx \
	--disable-dvdread \
	--disable-mpdvdkit \
	--disable-tv \
	--disable-tv-v4l \
	--disable-tv-v4l2 \
	--disable-tv-bsdbt848 \
	--disable-mencoder \
	\
	--enable-dynamic-plugins \
	--enable-fbdev \
	--enable-sdl \
	--with-sdl-config=${STAGING_BINDIR}/sdl-config \
	\
	--enable-mad \
	--enable-tremor \
	--enable-vorbis \
	\
	--enable-ossaudio \
	\
	--with-extralibdir=${STAGING_LIBDIR} "

#	--enable-static \
#	--enable-live \
#	--with-livelibdir=/Projects/armbuild/live \
#	--host=${HOST} \
#	--cc=arm-linux-gcc \
#	--disable-dvdnav \


do_configure() {
	./configure ${EXTRA_OECONF}
}

do_install_append () {
	mkdir ${D}/usr/lib
	cp ${S}/libavcodec/libpostproc/libpostproc.so ${D}/usr/lib/libpostproc.so.0.0.0
	mkdir ${D}/usr/include
	mkdir ${D}/usr/include/postproc
	cp ${S}/libavcodec/libpostproc/postprocess.h ${D}/usr/include/postproc/postprocess.h
	cd ${D}/usr/lib
	ln -sf libpostproc.so.0.0.0 libpostproc.so.0
	ln -sf libpostproc.so.0 libpostproc.so
}

do_stage () {
	oe_libinstall -a -so -C libavcodec/libpostproc libpostproc ${STAGING_LIBDIR}
	cd ${STAGING_LIBDIR}
	ln -sf libpostproc.so libpostproc.so.0.0.0
	ln -sf libpostproc.so libpostproc.so.0

	install -d ${STAGING_INCDIR}/postproc
	install -m 0644 ${S}/libavcodec/libpostproc/postprocess.h ${STAGING_INCDIR}/postproc/postprocess.h
}