summaryrefslogtreecommitdiffstats
path: root/meta/packages/xorg-lib/libxvmc_20040919.bb
blob: f256211962c36e24e160e0451d79fa3354f94a99 (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
DESCRIPTION = "X Video Motion Compensation extension library."
SECTION = "x11/libs"
DEPENDS = "virtual/libx11 libxext libxv drm xserver-xorg"
PR = "r2"

SRC_URI = "${FREEDESKTOP_CVS}/xlibs;module=XvMC;date=${PV};method=pserver \
	cvs://anonymous@cvs.sourceforge.net/cvsroot/unichrome;module=libxvmc;date=${PV};method=pserver \
	file://via.patch;patch=1 \
	file://true.patch"
S = "${WORKDIR}/XvMC"

CFLAGS += "-I${STAGING_INCDIR}/X11/extensions -I${STAGING_INCDIR}/xserver-xorg"

# this one is for via only atm.
COMPATIBLE_HOST = 'i.86.*-linux'

inherit autotools pkgconfig 

do_configure_prepend() {
	install -d ${S}/hw/via
	cp ${WORKDIR}/libxvmc/*.[ch] ${S}/hw/via/
	( cd ${S}/hw/via ; patch < ${WORKDIR}/true.patch )
}

do_compile() {
	oe_runmake
	oe_runmake -C hw/via
}

do_stage() {
	oe_runmake install prefix=${STAGING_DIR} \
	       bindir=${STAGING_BINDIR} \
	       includedir=${STAGING_INCDIR} \
	       libdir=${STAGING_LIBDIR} \
	       datadir=${STAGING_DATADIR} \
	       mandir=${STAGING_DATADIR}/man
	oe_libinstall -so -C hw/via libviaXvMC ${STAGING_LIBDIR}
	install hw/via/vldXvMC.h ${STAGING_INCDIR}/X11/extensions/
}