diff --git a/packages/audio/taglib/build b/packages/audio/taglib/build deleted file mode 100755 index 8c22bad6fe..0000000000 --- a/packages/audio/taglib/build +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program 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, or (at your option) -# any later version. -# -# This Program 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.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -cd $PKG_BUILD -mkdir -p build && cd build - -cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \ - -DCMAKE_INSTALL_PREFIX=/usr \ - .. - -make -$MAKEINSTALL diff --git a/packages/audio/taglib/install b/packages/audio/taglib/install deleted file mode 100755 index 261329232e..0000000000 --- a/packages/audio/taglib/install +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program 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, or (at your option) -# any later version. -# -# This Program 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.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/usr/lib - cp -P $PKG_BUILD/build/taglib/*.so* $INSTALL/usr/lib - cp -P $PKG_BUILD/build/bindings/c/*.so* $INSTALL/usr/lib diff --git a/packages/audio/taglib/meta b/packages/audio/taglib/package.mk similarity index 86% rename from packages/audio/taglib/meta rename to packages/audio/taglib/package.mk index 1137b9ba08..63cfef652b 100644 --- a/packages/audio/taglib/meta +++ b/packages/audio/taglib/package.mk @@ -26,11 +26,20 @@ PKG_LICENSE="LGPL" PKG_SITE="http://taglib.github.com/" PKG_URL="https://github.com/downloads/taglib/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz" PKG_DEPENDS="zlib" -PKG_BUILD_DEPENDS="toolchain zlib" +PKG_BUILD_DEPENDS_TARGET="toolchain cmake zlib" PKG_PRIORITY="optional" PKG_SECTION="audio" PKG_SHORTDESC="taglib: a library for reading and editing the meta-data of several popular audio formats." PKG_LONGDESC="TagLib is a library for reading and editing the meta-data of several popular audio formats." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +# package specific configure options +configure_target() { + cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF -DCMAKE_INSTALL_PREFIX=/usr .. +} + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +}