mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
faad2: add libVersion, fixPkgconfig, debuginfo (#6296)
This commit is contained in:
@@ -7,7 +7,7 @@ library (libfaad) that may be used by other programs."
|
||||
HOMEPAGE="https://www.audiocoding.com/"
|
||||
COPYRIGHT="2003-2005 M. Bakker, Nero AG."
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/knik0/faad2/archive/${portVersion//./_}.tar.gz"
|
||||
CHECKSUM_SHA256="0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb"
|
||||
SOURCE_DIR="faad2-${portVersion//./_}"
|
||||
@@ -16,11 +16,14 @@ PATCHES="faad2-$portVersion.patchset"
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
libVersion="2.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
faad2$secondaryArchSuffix = $portVersion compat >= 2
|
||||
cmd:faad$secondaryArchSuffix = $portVersion
|
||||
lib:libfaad$secondaryArchSuffix = 2.0.0 compat >= 2
|
||||
lib:libfaad_drm$secondaryArchSuffix = 2.0.0 compat >= 2
|
||||
lib:libfaad$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libfaad_drm$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
@@ -28,8 +31,8 @@ REQUIRES="
|
||||
|
||||
PROVIDES_devel="
|
||||
faad2${secondaryArchSuffix}_devel = $portVersion compat >= 2
|
||||
devel:libfaad$secondaryArchSuffix = 2.0.0 compat >= 2
|
||||
devel:libfaad_drm$secondaryArchSuffix = 2.0.0 compat >= 2
|
||||
devel:libfaad$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libfaad_drm$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
faad2$secondaryArchSuffix == $portVersion base
|
||||
@@ -48,6 +51,10 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage faad2$secondaryArchSuffix \
|
||||
$libDir/libfaad.so.$libVersion \
|
||||
$libDir/libfaad_drm.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
@@ -63,6 +70,8 @@ INSTALL()
|
||||
|
||||
prepareInstalledDevelLibs libfaad libfaad_drm
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
Reference in New Issue
Block a user