From d4975750e7bb4845416553da734d5fb576a53d9a Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 2 Jan 2014 22:14:42 +0100 Subject: [PATCH] xf86-video-virtualbox: convert to new package format Signed-off-by: Stephan Raue --- .../x11/driver/xf86-video-virtualbox/install | 31 ------------------- .../{meta => package.mk} | 30 +++++++++++++++--- .../x11/driver/xf86-video-virtualbox/unpack | 25 --------------- 3 files changed, 26 insertions(+), 60 deletions(-) delete mode 100755 packages/x11/driver/xf86-video-virtualbox/install rename packages/x11/driver/xf86-video-virtualbox/{meta => package.mk} (63%) delete mode 100755 packages/x11/driver/xf86-video-virtualbox/unpack diff --git a/packages/x11/driver/xf86-video-virtualbox/install b/packages/x11/driver/xf86-video-virtualbox/install deleted file mode 100755 index b374ad003b..0000000000 --- a/packages/x11/driver/xf86-video-virtualbox/install +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 2 of the License, or -# (at your option) any later version. -# -# OpenELEC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC. If not, see . -################################################################################ - -. config/options - -mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers - cp -P $PKG_BUILD/lib/VBoxGuestAdditions/vboxvideo_drv_114.so $INSTALL/$XORG_PATH_MODULES/drivers/vboxvideo_drv.so -mkdir -p $INSTALL/usr/lib/dri - cp -P $PKG_BUILD/lib/VBoxOGL.so $INSTALL/usr/lib/dri/vboxvideo_dri.so -mkdir -p $INSTALL/usr/lib - cp -aP $PKG_BUILD/lib/* $INSTALL/usr/lib - -mkdir -p $INSTALL/etc/X11 - cp $PKG_DIR/config/*.conf $INSTALL/etc/X11 diff --git a/packages/x11/driver/xf86-video-virtualbox/meta b/packages/x11/driver/xf86-video-virtualbox/package.mk similarity index 63% rename from packages/x11/driver/xf86-video-virtualbox/meta rename to packages/x11/driver/xf86-video-virtualbox/package.mk index 0867dae0ab..37edd8f6ea 100644 --- a/packages/x11/driver/xf86-video-virtualbox/meta +++ b/packages/x11/driver/xf86-video-virtualbox/package.mk @@ -22,13 +22,35 @@ PKG_REV="1" PKG_ARCH="i386 x86_64" PKG_LICENSE="OSS" PKG_SITE="http://www.virtualbox.org" -PKG_URL="${DISTRO_SRC}/${PKG_NAME}-${PKG_VERSION}-${TARGET_ARCH}.tar.bz2" -PKG_DEPENDS="libXcomposite libXdamage libXfixes libXext libX11" -PKG_BUILD_DEPENDS="toolchain libXcomposite libXdamage libXfixes libXext libX11 libxcb libXau" +PKG_DEPENDS_TARGET="libXcomposite libXdamage libXfixes libXext libX11" +PKG_BUILD_DEPENDS_TARGET="toolchain libXcomposite libXdamage libXfixes libXext libX11 libxcb libXau" PKG_PRIORITY="optional" PKG_SECTION="x11/driver" PKG_SHORTDESC="xf86-video-virtualbox: The Xorg driver for virtualbox video" PKG_LONGDESC="xf86-video-virtualbox: The Xorg driver for virtualbox video" -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +unpack() { + mkdir -p $PKG_BUILD + tar jxpf $SOURCES/$PKG_NAME/$PKG_NAME-$PKG_VERSION-$TARGET_ARCH.tar.bz2 -C $PKG_BUILD +} + +make_target() { + : # nothing todo +} + +makeinstall_target() { + mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers + cp -P lib/VBoxGuestAdditions/vboxvideo_drv_114.so $INSTALL/$XORG_PATH_MODULES/drivers/vboxvideo_drv.so + + mkdir -p $INSTALL/usr/lib/dri + cp -P lib/VBoxOGL.so $INSTALL/usr/lib/dri/vboxvideo_dri.so + + mkdir -p $INSTALL/usr/lib + cp -aP lib/* $INSTALL/usr/lib + + mkdir -p $INSTALL/etc/X11 + cp $PKG_DIR/config/*.conf $INSTALL/etc/X11 +} diff --git a/packages/x11/driver/xf86-video-virtualbox/unpack b/packages/x11/driver/xf86-video-virtualbox/unpack deleted file mode 100755 index 4637be808b..0000000000 --- a/packages/x11/driver/xf86-video-virtualbox/unpack +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 2 of the License, or -# (at your option) any later version. -# -# OpenELEC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC. If not, see . -################################################################################ - -. config/options $1 - -mkdir $BUILD/$PKG_NAME-$PKG_VERSION - -tar jxpf $SOURCES/$1/$PKG_NAME-$PKG_VERSION-$TARGET_ARCH.tar.bz2 -C $BUILD/$PKG_NAME-$PKG_VERSION