summaryrefslogtreecommitdiff
path: root/media-libs/libgroove
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libgroove
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libgroove')
-rw-r--r--media-libs/libgroove/Manifest6
-rw-r--r--media-libs/libgroove/files/libgroove-4.3.0_GNUInstallDirs.patch105
-rw-r--r--media-libs/libgroove/files/libgroove-4.3.0_cflags.patch43
-rw-r--r--media-libs/libgroove/libgroove-4.3.0-r1.ebuild42
-rw-r--r--media-libs/libgroove/metadata.xml28
5 files changed, 224 insertions, 0 deletions
diff --git a/media-libs/libgroove/Manifest b/media-libs/libgroove/Manifest
new file mode 100644
index 000000000000..87a8cc331b02
--- /dev/null
+++ b/media-libs/libgroove/Manifest
@@ -0,0 +1,6 @@
+AUX libgroove-4.3.0_GNUInstallDirs.patch 4199 SHA256 ed556688e1bab1b059f65e99d42f8b9edbfb911c3168a0998cd28a704bf73cd6 SHA512 e7e2458cfc10f41afe163fda4f54fd1c9a3305c0cbe351b2954c64b066eb8fe529e83a4c333c4eb54ebc24edb39fcda4127c7f60011cbcfa2926f55f29725dea WHIRLPOOL 155aa54ab2bf5a8786b279954ba3796a5144b7da611862915749695ef2aacd7f2af236de77b37937b5b7fdd40bc2c7a82cce2399ca6e3e3612e177e7a2c66a5b
+AUX libgroove-4.3.0_cflags.patch 1872 SHA256 a2afe9e8fda42453b4877a7fbc717a1cb4c0655df312ecdbdad9de39f82fbd6e SHA512 d0ab678d4bf0bac17493fbf7de51273bc918ef141a9951f6bae94362e8e142131e6098b68a2955b22e73b4c159940cd94630d5a6e6b6ae82e84bb18648770cc1 WHIRLPOOL 6008dbf8d2bddcb2cfbde92278332d273ca9eb4a26126d1705bb26bd5093af9c3404280e482dd053177b9dc5dcdcc9f9c3a9851ebad8e55016b1efcc73a7aae3
+DIST libgroove-4.3.0.tar.gz 48857 SHA256 76f68896f078a9613d420339ef887ca8293884ad2cd0fbc031d89a6af2993636 SHA512 30d75a3b1b3efa9b33687bb146648b66f8f4c718551c0db2c24c0259f09cf355a7c7bbac40d60d7a97bbbd7f83401d09464c6ac2b18cdfcd6198220cefc8a705 WHIRLPOOL 4040769723e7891b285318d538cf628203289aca7f7a655855716fe450f58712cd64b2fdc2abbd316bef6f80bf6b65ae6620b9ac339b3ebd5c7e091a36129040
+EBUILD libgroove-4.3.0-r1.ebuild 1100 SHA256 74bd95411bd17627163e8ae665bd136eaab8a118f591478805032e5ad639723d SHA512 cb376845b2b7a5df359a03d095cbb65a10807eea7870e392c342f494077e36baf858c1670401fd1582767e7af1eaa7db3bd3ca3943e7a90d5738f4911580593e WHIRLPOOL 27c6f727a1a5ec82080c8d6d2572b4324cfb50c2d764fe081e07ea236003b7185762d7fae1b65e8bd9b6a459bcf9452b1a773353574b9156469425b3bcc44b8f
+MISC ChangeLog 2005 SHA256 619ccffd3d21089895577b5b9d6671bb35800e7d7a2a1075a674903366f00e75 SHA512 eabd2e6b946b99e26839df12c4558d55e834366df2a44cd31f7fd2bc74e7ae0a0aa8187af8c229d7175fa11c303cdb03fe7b61d92d378ff72df30d79b31676f4 WHIRLPOOL d8bb2eaafc5e806207cc7a370bc7d41164d2fe8531ac05095e5c9d12e61515aced090bbfa6e36cc0beecc4808efbea8e332c7cd7927af68c096965c92c75460a
+MISC metadata.xml 1201 SHA256 e1ee72c9c9ba8c760c9b6892eed204a3db652bcb56612115c0093844107f9788 SHA512 e1bd4fdaeb9c023eb75fcd90751ab28a92c083046fd4f1258db9588d5dbc46696b718db7ba2e754a276440438995c99f8d566b64d3600415e1691d02cb58650c WHIRLPOOL 2e526bd29252850a792eb250d91d570e1511cc0bba8fa14f0bf9028a723d6a749b37ddea6b1b029b5532ad38fb7a408cb3b794952d0d77d21595f39942a5dc55
diff --git a/media-libs/libgroove/files/libgroove-4.3.0_GNUInstallDirs.patch b/media-libs/libgroove/files/libgroove-4.3.0_GNUInstallDirs.patch
new file mode 100644
index 000000000000..a4e77b87ce74
--- /dev/null
+++ b/media-libs/libgroove/files/libgroove-4.3.0_GNUInstallDirs.patch
@@ -0,0 +1,105 @@
+From 8b741249fc17d7cf7d72a702fcdf7f07870b0b27 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@hasufell.de>
+Date: Thu, 20 Aug 2015 14:30:16 +0200
+Subject: [PATCH] CMake: make installation directories more configurable
+
+We use GNUInstallDirs now to be able to control the following variables:
+ CMAKE_INSTALL_LIBDIR
+ CMAKE_INSTALL_INCLUDEDIR
+
+This fixes support for distribution that have a multi-arch setup.
+Also see https://github.com/gentoo/gentoo/pull/22
+---
+ CMakeLists.txt | 26 ++++++++++++++------------
+ 1 file changed, 14 insertions(+), 12 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f2029eb..49e150e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,6 @@
+-cmake_minimum_required(VERSION 2.8)
++cmake_minimum_required(VERSION 2.8.5)
++
++include(GNUInstallDirs)
+
+ if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
+@@ -157,7 +159,7 @@ add_library(groove_static STATIC ${LIBGROOVE_SOURCES} ${LIBGROOVE_HEADERS})
+ set_target_properties(groove_static PROPERTIES
+ OUTPUT_NAME groove
+ COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
+-install(TARGETS groove_static DESTINATION lib)
++install(TARGETS groove_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+
+ install(FILES
+@@ -165,7 +167,7 @@ install(FILES
+ "groove/queue.h"
+ "groove/encoder.h"
+ DESTINATION "include/groove")
+-install(TARGETS groove DESTINATION lib)
++install(TARGETS groove DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+ add_executable(metadata example/metadata.c)
+ set_target_properties(metadata PROPERTIES
+@@ -207,8 +209,8 @@ else()
+ target_link_libraries(grooveplayer LINK_PRIVATE ${SDL2_LIBRARY})
+ include_directories(${SDL2_INCLUDE_DIR})
+
+- install(FILES "grooveplayer/player.h" DESTINATION "include/grooveplayer")
+- install(TARGETS grooveplayer DESTINATION lib)
++ install(FILES "grooveplayer/player.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/grooveplayer")
++ install(TARGETS grooveplayer DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+ add_library(grooveplayer_static STATIC
+ ${LIBGROOVE_PLAYER_SOURCES}
+@@ -216,7 +218,7 @@ else()
+ set_target_properties(grooveplayer_static PROPERTIES
+ OUTPUT_NAME grooveplayer
+ COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
+- install(TARGETS grooveplayer_static DESTINATION lib)
++ install(TARGETS grooveplayer_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+
+ add_executable(playlist example/playlist.c ${PROJECT_SOURCE_DIR}/grooveplayer/player.h)
+@@ -242,8 +244,8 @@ else()
+ target_link_libraries(grooveloudness LINK_PRIVATE ${EBUR128_LIBRARY})
+ include_directories(${EBUR128_INCLUDE_DIR})
+
+- install(FILES "grooveloudness/loudness.h" DESTINATION "include/grooveloudness")
+- install(TARGETS grooveloudness DESTINATION lib)
++ install(FILES "grooveloudness/loudness.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/grooveloudness")
++ install(TARGETS grooveloudness DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+
+ add_library(grooveloudness_static STATIC
+@@ -252,7 +254,7 @@ else()
+ set_target_properties(grooveloudness_static PROPERTIES
+ OUTPUT_NAME grooveloudness
+ COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
+- install(TARGETS grooveloudness_static DESTINATION lib)
++ install(TARGETS grooveloudness_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+
+ add_executable(replaygain example/replaygain.c)
+@@ -278,8 +280,8 @@ else()
+ target_link_libraries(groovefingerprinter LINK_PRIVATE ${CHROMAPRINT_LIBRARY})
+ include_directories(${CHROMAPRINT_INCLUDE_DIR})
+
+- install(FILES "groovefingerprinter/fingerprinter.h" DESTINATION "include/groovefingerprinter")
+- install(TARGETS groovefingerprinter DESTINATION lib)
++ install(FILES "groovefingerprinter/fingerprinter.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/groovefingerprinter")
++ install(TARGETS groovefingerprinter DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+
+ add_library(groovefingerprinter_static STATIC
+@@ -288,7 +290,7 @@ else()
+ set_target_properties(groovefingerprinter_static PROPERTIES
+ OUTPUT_NAME groovefingerprinter
+ COMPILE_FLAGS "${LIB_CFLAGS} -fPIC")
+- install(TARGETS groovefingerprinter_static DESTINATION lib)
++ install(TARGETS groovefingerprinter_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+
+ add_executable(fingerprint example/fingerprint.c)
diff --git a/media-libs/libgroove/files/libgroove-4.3.0_cflags.patch b/media-libs/libgroove/files/libgroove-4.3.0_cflags.patch
new file mode 100644
index 000000000000..c7d21cbe2de4
--- /dev/null
+++ b/media-libs/libgroove/files/libgroove-4.3.0_cflags.patch
@@ -0,0 +1,43 @@
+From e5af72acd284db1ee2b79aeeb06714770d1ad5c3 Mon Sep 17 00:00:00 2001
+From: Diogo Pereira <sir.suriv@gmail.com>
+Date: Thu, 20 Aug 2015 15:05:25 +0100
+Subject: [PATCH] Remove -Werror, -pedantic and -g from CFLAGS
+
+Based on upstream commits:
+0b619fa build: -Werror and -pedantic in debug mode only
+856c260 build: remove redundant -Werror and -pedantic
+
+https://github.com/andrewrk/libgroove/compare/44aa5db96cfe45e56fa1f7d762fb032ca178a35c...856c26013e4356d4fc078da980083bc4d002771d
+---
+ CMakeLists.txt | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a1e8541..14aca44 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -135,8 +135,11 @@ configure_file (
+ "${PROJECT_BINARY_DIR}/config.h"
+ )
+
+-set(LIB_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
+-set(EXAMPLE_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -g")
++set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wno-unused-variable")
++set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror -pedantic")
++
++set(LIB_CFLAGS "-std=c99 -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
++set(EXAMPLE_CFLAGS "-std=c99 -Wall")
+ set(EXAMPLE_INCLUDES "${PROJECT_SOURCE_DIR}")
+
+ add_library(groove SHARED ${LIBGROOVE_SOURCES} ${LIBGROOVE_HEADERS})
+@@ -306,6 +309,7 @@ message("\n"
+ "Installation Summary\n"
+ "--------------------\n"
+ "* Install Directory : ${CMAKE_INSTALL_PREFIX}\n"
++"* Build Type : ${CMAKE_BUILD_TYPE}\n"
+ "* Build libgroove : ${LIBGROOVE_STATUS}\n"
+ "* Build libgrooveplayer : ${LIBGROOVE_PLAYER_STATUS}\n"
+ "* Build libgrooveloudness : ${LIBGROOVE_LOUDNESS_STATUS}\n"
+--
+2.5.0
+
diff --git a/media-libs/libgroove/libgroove-4.3.0-r1.ebuild b/media-libs/libgroove/libgroove-4.3.0-r1.ebuild
new file mode 100644
index 000000000000..2b555731b7e2
--- /dev/null
+++ b/media-libs/libgroove/libgroove-4.3.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multilib cmake-utils
+
+DESCRIPTION="Streaming audio processing library."
+HOMEPAGE="https://github.com/andrewrk/libgroove"
+SRC_URI="https://github.com/andrewrk/libgroove/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/4"
+KEYWORDS="~amd64"
+IUSE="+chromaprint libav +loudness +sound static-libs"
+
+DEPEND="libav? ( media-video/libav )
+ !libav? ( media-video/ffmpeg )
+ chromaprint? ( media-libs/chromaprint )
+ loudness? ( media-libs/libebur128[speex(+)] )
+ sound? ( media-libs/libsdl2[sound] )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}_cflags.patch"
+ "${FILESDIR}/${P}_GNUInstallDirs.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_disable chromaprint FINGERPRINTER)
+ $(cmake-utils_use_disable loudness LOUDNESS)
+ $(cmake-utils_use_disable sound PLAYER)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if ! use static-libs ; then
+ rm "${ED%/}"/usr/$(get_libdir)/*.a || die "failed to remove static libs"
+ fi
+}
diff --git a/media-libs/libgroove/metadata.xml b/media-libs/libgroove/metadata.xml
new file mode 100644
index 000000000000..7ee925645b2a
--- /dev/null
+++ b/media-libs/libgroove/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>sir.suriv@gmail.com</email>
+ <name>Diogo Pereira</name>
+ <description>Proxy maintainer. Assign bugs to him.</description>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+<longdescription lang="en">
+ This library provides decoding and encoding of audio on a playlist. It is intended to be used as a backend for music player applications. That said, it is also generic enough to be used as a backend for any streaming audio processing utility.
+</longdescription>
+<use>
+ <flag name="chromaprint">Enable audio fingerprinting using <pkg>media-libs/chromaprint</pkg>.</flag>
+ <flag name="loudness">Enable loudness detection according to the EBU R128 standard using <pkg>media-libs/libebur128</pkg>.</flag>
+ <flag name="sound">Enable audio playing.</flag>
+</use>
+<upstream>
+ <maintainer status="active">
+ <email>superjoe30@gmail.com</email>
+ <name>Andrew Kelley</name>
+ </maintainer>
+ <remote-id type="github">andrewrk/libgroove</remote-id>
+</upstream>
+</pkgmetadata>