From f14aa64945596881b4f89625f3220f7140148e95 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 19 Mar 2009 04:13:55 +0100 Subject: [PATCH] libXvMC: converted to subpkgs, new deps style. --HG-- extra : convert_revision : 3f56f877c890ce52197265098fb64a29cf701145 --- templates/libXvMC-devel | 1 + templates/libXvMC/depends | 2 ++ templates/libXvMC/devel.template | 17 +++++++++++++++++ templates/libXvMC/template | 14 +++++++++++--- 4 files changed, 31 insertions(+), 3 deletions(-) create mode 120000 templates/libXvMC-devel create mode 100644 templates/libXvMC/depends create mode 100644 templates/libXvMC/devel.template diff --git a/templates/libXvMC-devel b/templates/libXvMC-devel new file mode 120000 index 00000000000..c3baedae7e3 --- /dev/null +++ b/templates/libXvMC-devel @@ -0,0 +1 @@ +libXvMC \ No newline at end of file diff --git a/templates/libXvMC/depends b/templates/libXvMC/depends new file mode 100644 index 00000000000..9dbd85baa2a --- /dev/null +++ b/templates/libXvMC/depends @@ -0,0 +1,2 @@ +abi_depends=1.0.4 +api_depends=${abi_depends} diff --git a/templates/libXvMC/devel.template b/templates/libXvMC/devel.template new file mode 100644 index 00000000000..47ea114d7c3 --- /dev/null +++ b/templates/libXvMC/devel.template @@ -0,0 +1,17 @@ +# Template file for 'libXvMC-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libXvMC + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/templates/libXvMC/template b/templates/libXvMC/template index 81ac9c8f83c..6da92527e58 100644 --- a/templates/libXvMC/template +++ b/templates/libXvMC/template @@ -1,4 +1,6 @@ +# Template build file for 'libXvMC'. pkgname=libXvMC +sourcepkg=$pkgname version=1.0.4 distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2" build_style=gnu_configure @@ -10,6 +12,12 @@ long_desc=" playback by offloading video decoding to hardware. It is an extension of the X video extension for the X Window System." -shared_deps="libX11-1.1 libXext-1.0 libXv-1.0" -build_depends="pkg-config-0.23 xextproto-7.0 videoproto-2.2 ${shared_deps}" -run_depends="glibc-2.8 ${shared_deps}" +subpackages="devel" +Add_dependency build pkg-config +Add_dependency build xproto +Add_dependency build xextproto +Add_dependency build videoproto +Add_dependency full glibc +Add_dependency full libX11 +Add_dependency full libXext +Add_dependency full libXv