From c9f63fbd39c439f6add7590462594e57b0293d23 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 21 Jan 2014 19:01:30 +0100 Subject: [PATCH] openal-soft: convert to new package format Signed-off-by: Stephan Raue --- packages/multimedia/openal-soft/build | 35 ------------------- packages/multimedia/openal-soft/install | 25 ------------- .../openal-soft/{meta => package.mk} | 14 ++++++-- 3 files changed, 11 insertions(+), 63 deletions(-) delete mode 100755 packages/multimedia/openal-soft/build delete mode 100755 packages/multimedia/openal-soft/install rename packages/multimedia/openal-soft/{meta => package.mk} (87%) diff --git a/packages/multimedia/openal-soft/build b/packages/multimedia/openal-soft/build deleted file mode 100755 index e199ad42bd..0000000000 --- a/packages/multimedia/openal-soft/build +++ /dev/null @@ -1,35 +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 - -cd $PKG_BUILD - -mkdir -p .build && cd .build - -cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DEXAMPLES="off" \ - -DUTILS="off" \ - .. - -make - -$MAKEINSTALL diff --git a/packages/multimedia/openal-soft/install b/packages/multimedia/openal-soft/install deleted file mode 100755 index d398022ee1..0000000000 --- a/packages/multimedia/openal-soft/install +++ /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 -p $INSTALL/usr/lib - cp -P $PKG_BUILD/.build/*.so* $INSTALL/usr/lib - diff --git a/packages/multimedia/openal-soft/meta b/packages/multimedia/openal-soft/package.mk similarity index 87% rename from packages/multimedia/openal-soft/meta rename to packages/multimedia/openal-soft/package.mk index c273fbf4d8..b71abefba5 100644 --- a/packages/multimedia/openal-soft/meta +++ b/packages/multimedia/openal-soft/package.mk @@ -23,12 +23,20 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openal.org/" PKG_URL="http://kcat.strangesoft.net/openal-releases/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="alsa-lib" -PKG_BUILD_DEPENDS="toolchain alsa-lib" +PKG_DEPENDS_TARGET="alsa-lib" +PKG_BUILD_DEPENDS_TARGET="toolchain alsa-lib" PKG_PRIORITY="optional" PKG_SECTION="multimedia" PKG_SHORTDESC="openal: Open Audio Library" PKG_LONGDESC="OpenAL, the Open Audio Library, is a joint effort to create an open, vendor- neutral, cross-platform API for interactive, primarily spatialized audio. OpenAL's primary audience are application developers and desktop users that rely on portable standards like OpenGL, for games and other multimedia applications. OpenAL is already supported by a number of hardware vendors and developers." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +configure_target() { + cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DEXAMPLES="off" \ + -DUTILS="off" \ + .. +}