mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
SOX: enable x86_64, definedebuginfo, enabled some features (#2515)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user