mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
libreplaygain, don't build/install static library (#8348)
This commit is contained in:
@@ -4,17 +4,21 @@ suggests dB adjustments according to the ReplayGain standard."
|
||||
HOMEPAGE="https://www.musepack.net/"
|
||||
COPYRIGHT="1997-2011 Musepack Project"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="http://files.musepack.net/source/libreplaygain_r$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="8258bf785547ac2cda43bb195e07522f0a3682f55abe97753c974609ec232482"
|
||||
SOURCE_DIR="libreplaygain_r$portVersion"
|
||||
PATCHES="libreplaygain-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="1.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libreplaygain$secondaryArchSuffix = $portVersion
|
||||
lib:libreplaygain$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||
lib:libreplaygain$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -22,7 +26,7 @@ REQUIRES="
|
||||
|
||||
PROVIDES_devel="
|
||||
libreplaygain${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libreplaygain$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||
devel:libreplaygain$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libreplaygain$secondaryArchSuffix == $portVersion base
|
||||
@@ -39,13 +43,15 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=$prefix -DLIB_SUFFIX=$secondaryArchSubDir
|
||||
make $jobArgs
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix\
|
||||
-DLIB_SUFFIX=$secondaryArchSubDir
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
make -C build install
|
||||
|
||||
mkdir -p $includeDir
|
||||
cp -r include/replaygain $includeDir
|
||||
|
||||
26
media-libs/libreplaygain/patches/libreplaygain-475.patchset
Normal file
26
media-libs/libreplaygain/patches/libreplaygain-475.patchset
Normal file
@@ -0,0 +1,26 @@
|
||||
From 0702ffc2f03a10099555ec1b12a972f19b882b82 Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Wed, 12 Apr 2023 11:52:51 +0200
|
||||
Subject: Don't build/install the static libraries
|
||||
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
old mode 100755
|
||||
new mode 100644
|
||||
index 121cdb4..837e959
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -1,9 +1,6 @@
|
||||
include_directories(${libreplaygain_SOURCE_DIR}/include)
|
||||
|
||||
-add_library(replaygain-static STATIC gain_analysis)
|
||||
-set_target_properties(replaygain-static PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1)
|
||||
-
|
||||
add_library(replaygain-shared SHARED gain_analysis)
|
||||
set_target_properties(replaygain-shared PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1 VERSION 1.0.0 SOVERSION 1)
|
||||
|
||||
-install(TARGETS replaygain-static replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
|
||||
+install(TARGETS replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
|
||||
--
|
||||
2.37.3
|
||||
|
||||
Reference in New Issue
Block a user