summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2005-03-06 11:14:50 +0000
committerPhil Blundell <philb@gnu.org>2005-03-06 11:14:50 +0000
commit68938fe01b8b8ad4c195dae80eaea86c6bde158d (patch)
tree1995056616f7b81c0fd685b8fb3c8ddbe29877c4 /packages
parenta9cb2b5c2a6120a98d108828e8f7e37ba4c95567 (diff)
add -D_BSD_SOURCE to libxvmc cflags
BKrev: 422ae62a86_KQ7n8Vj1-8jOtLqG8iQ
Diffstat (limited to 'packages')
-rw-r--r--packages/libxvmc/libxvmc_20041025.bb36
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/libxvmc/libxvmc_20041025.bb b/packages/libxvmc/libxvmc_20041025.bb
index e69de29bb2..cd1ff4960f 100644
--- a/packages/libxvmc/libxvmc_20041025.bb
+++ b/packages/libxvmc/libxvmc_20041025.bb
@@ -0,0 +1,36 @@
+DESCRIPTION = "X Video Motion Compensation extension library."
+SECTION = "x11/libs"
+DEPENDS = "x11 xext libxv drm xserver-xorg"
+PR = "r1"
+
+SRC_URI = "cvs://anoncvs@cvs.freedesktop.org/cvs/xlibs;module=XvMC;date=${PV};method=pserver \
+ file://true.patch;patch=1"
+S = "${WORKDIR}/XvMC"
+
+CFLAGS += "-I${STAGING_INCDIR}/X11/extensions -I${STAGING_INCDIR}/xserver-xorg -D_BSD_SOURCE"
+
+# this one is for via only atm.
+COMPATIBLE_HOST = 'i.86.*-linux'
+
+inherit autotools pkgconfig
+
+do_compile() {
+ oe_runmake
+ oe_runmake -C hw/via
+}
+
+do_install() {
+ oe_runmake DESTDIR='${D}' install
+ oe_runmake -C hw/via DESTDIR='${D}' install
+}
+
+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/
+}