From 9e5344a42a6ab8923fb1e818dfe7b4dfcadd4716 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 19 Mar 2009 04:10:36 +0100 Subject: [PATCH] libXv: converted to subpkgs, new deps style. --HG-- extra : convert_revision : c60f97d6a41d08bca0683d93be5baf469e52ce8c --- templates/libXv-devel | 1 + templates/libXv/depends | 2 ++ templates/libXv/devel.template | 18 ++++++++++++++++++ templates/libXv/template | 14 ++++++++++---- 4 files changed, 31 insertions(+), 4 deletions(-) create mode 120000 templates/libXv-devel create mode 100644 templates/libXv/depends create mode 100644 templates/libXv/devel.template diff --git a/templates/libXv-devel b/templates/libXv-devel new file mode 120000 index 00000000000..a4457ce4914 --- /dev/null +++ b/templates/libXv-devel @@ -0,0 +1 @@ +libXv \ No newline at end of file diff --git a/templates/libXv/depends b/templates/libXv/depends new file mode 100644 index 00000000000..9dbd85baa2a --- /dev/null +++ b/templates/libXv/depends @@ -0,0 +1,2 @@ +abi_depends=1.0.4 +api_depends=${abi_depends} diff --git a/templates/libXv/devel.template b/templates/libXv/devel.template new file mode 100644 index 00000000000..7164332b3e8 --- /dev/null +++ b/templates/libXv/devel.template @@ -0,0 +1,18 @@ +# Template file for 'libXv-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libXv + +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 + mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr +} diff --git a/templates/libXv/template b/templates/libXv/template index e60261b5cd5..c13ee0f8f02 100644 --- a/templates/libXv/template +++ b/templates/libXv/template @@ -1,4 +1,6 @@ +# Template build file for 'libXv'. pkgname=libXv +sourcepkg=$pkgname version=1.0.4 distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2" build_style=gnu_configure @@ -9,7 +11,11 @@ long_desc=" This package provides the X Window System video extension from the modular X.org project" -shared_deps="libX11-1.1 libXext-1.0" -build_depends="pkg-config-0.23 xproto-7.0 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