From 19a6c8bd15bd2c3331f7e60151cfbe6c63c68210 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Mon, 7 May 2018 20:02:39 +0200 Subject: [PATCH] SOX: enable x86_64, definedebuginfo, enabled some features (#2515) --- media-sound/sox/sox-14.4.2.recipe | 55 +++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/media-sound/sox/sox-14.4.2.recipe b/media-sound/sox/sox-14.4.2.recipe index e8d151a48..f1b21215c 100644 --- a/media-sound/sox/sox-14.4.2.recipe +++ b/media-sound/sox/sox-14.4.2.recipe @@ -6,14 +6,16 @@ bonus, SoX can play and record audio files on most platforms." HOMEPAGE="http://sox.sourceforge.net" COPYRIGHT="1991-2015 Lance Norskog" LICENSE="GNU GPL v2" -REVISION="1" -SOURCE_URI="http://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.bz2" +REVISION="2" +SOURCE_URI="https://downloads.sf.net/sox/sox-$portVersion.tar.bz2" CHECKSUM_SHA256="81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c" -SOURCE_DIR="sox-14.4.2" -PATCHES="sox-14.4.2.patchset" +PATCHES="sox-$portVersion.patchset" -ARCHITECTURES="x86 !x86_gcc2 ?x86_64" -SECONDARY_ARCHITECTURES="x86_gcc2 x86" +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="3.0.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" sox$secondaryArchSuffix = $portVersion compat >= 1 @@ -21,21 +23,28 @@ PROVIDES=" cmd:play$secondaryArchSuffix = $portVersion cmd:rec$secondaryArchSuffix = $portVersion cmd:soxi$secondaryArchSuffix = $portVersion - lib:libsox$secondaryArchSuffix = 0.0.0 compat >= 0 + lib:libsox$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix + lib:libao$secondaryArchSuffix lib:libflac$secondaryArchSuffix - lib:libvorbis$secondaryArchSuffix - lib:libogg$secondaryArchSuffix - lib:libmp3lame$secondaryArchSuffix - lib:libsndfile$secondaryArchSuffix lib:libgomp$secondaryArchSuffix + lib:libid3tag$secondaryArchSuffix + lib:libmad$secondaryArchSuffix + lib:libmagic$secondaryArchSuffix + lib:libmp3lame$secondaryArchSuffix + lib:libogg$secondaryArchSuffix +# lib:libopus$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + lib:libsndfile$secondaryArchSuffix + lib:libvorbis$secondaryArchSuffix + lib:libwavpack$secondaryArchSuffix " PROVIDES_devel=" sox${secondaryArchSuffix}_devel = $portVersion - devel:libsox$secondaryArchSuffix = 0.0.0 compat >= 0 + devel:libsox$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" sox${secondaryArchSuffix} == $portVersion base @@ -43,20 +52,31 @@ REQUIRES_devel=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel + devel:libao$secondaryArchSuffix devel:libflac$secondaryArchSuffix - devel:libvorbis$secondaryArchSuffix - devel:libogg$secondaryArchSuffix + devel:libid3tag$secondaryArchSuffix + devel:libmad$secondaryArchSuffix + devel:libmagic$secondaryArchSuffix devel:libmp3lame$secondaryArchSuffix - devel:libsndfile$secondaryArchSuffix + devel:libogg$secondaryArchSuffix +# devel:libopus$secondaryArchSuffix devel:libpng$secondaryArchSuffix + devel:libpng16$secondaryArchSuffix + devel:libsndfile$secondaryArchSuffix + devel:libvorbis$secondaryArchSuffix + devel:libwavpack$secondaryArchSuffix " BUILD_PREREQUIRES=" + cmd:autoconf cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make - cmd:autoconf + cmd:pkg_config$secondaryArchSuffix " +defineDebugInfoPackage sox$secondaryArchSuffix \ + "$libDir"/libsox.so.$libVersion + BUILD() { runConfigure ./configure @@ -70,5 +90,6 @@ INSTALL() prepareInstalledDevelLibs libsox fixPkgconfig - packageEntries devel $developDir + packageEntries devel \ + "$developDir" }