diff options
Diffstat (limited to 'meta/packages/xorg-lib/libxvmc_20040919.bb')
-rw-r--r-- | meta/packages/xorg-lib/libxvmc_20040919.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/packages/xorg-lib/libxvmc_20040919.bb b/meta/packages/xorg-lib/libxvmc_20040919.bb new file mode 100644 index 0000000000..f256211962 --- /dev/null +++ b/meta/packages/xorg-lib/libxvmc_20040919.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | DESCRIPTION = "X Video Motion Compensation extension library." | ||
2 | SECTION = "x11/libs" | ||
3 | DEPENDS = "virtual/libx11 libxext libxv drm xserver-xorg" | ||
4 | PR = "r2" | ||
5 | |||
6 | SRC_URI = "${FREEDESKTOP_CVS}/xlibs;module=XvMC;date=${PV};method=pserver \ | ||
7 | cvs://anonymous@cvs.sourceforge.net/cvsroot/unichrome;module=libxvmc;date=${PV};method=pserver \ | ||
8 | file://via.patch;patch=1 \ | ||
9 | file://true.patch" | ||
10 | S = "${WORKDIR}/XvMC" | ||
11 | |||
12 | CFLAGS += "-I${STAGING_INCDIR}/X11/extensions -I${STAGING_INCDIR}/xserver-xorg" | ||
13 | |||
14 | # this one is for via only atm. | ||
15 | COMPATIBLE_HOST = 'i.86.*-linux' | ||
16 | |||
17 | inherit autotools pkgconfig | ||
18 | |||
19 | do_configure_prepend() { | ||
20 | install -d ${S}/hw/via | ||
21 | cp ${WORKDIR}/libxvmc/*.[ch] ${S}/hw/via/ | ||
22 | ( cd ${S}/hw/via ; patch < ${WORKDIR}/true.patch ) | ||
23 | } | ||
24 | |||
25 | do_compile() { | ||
26 | oe_runmake | ||
27 | oe_runmake -C hw/via | ||
28 | } | ||
29 | |||
30 | do_stage() { | ||
31 | oe_runmake install prefix=${STAGING_DIR} \ | ||
32 | bindir=${STAGING_BINDIR} \ | ||
33 | includedir=${STAGING_INCDIR} \ | ||
34 | libdir=${STAGING_LIBDIR} \ | ||
35 | datadir=${STAGING_DATADIR} \ | ||
36 | mandir=${STAGING_DATADIR}/man | ||
37 | oe_libinstall -so -C hw/via libviaXvMC ${STAGING_LIBDIR} | ||
38 | install hw/via/vldXvMC.h ${STAGING_INCDIR}/X11/extensions/ | ||
39 | } | ||