mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
cairomm: Fix config headers.
This commit is contained in:
@@ -5,7 +5,7 @@ the Standard Template Library where it makes sense."
|
||||
HOMEPAGE="https://www.cairographics.org/cairomm/"
|
||||
COPYRIGHT="2006-2016 cairomm authors"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://www.cairographics.org/releases/cairomm-${portVersion}.tar.gz"
|
||||
CHECKSUM_SHA256="97a78bd7de6baf8af3da1f9b39f1317f8da9f1145b7694e928fbd5521da08ef6"
|
||||
|
||||
@@ -14,10 +14,11 @@ SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="1.4.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
apiVersion="1.0"
|
||||
|
||||
PROVIDES="
|
||||
cairomm$secondaryArchSuffix = $portVersion
|
||||
lib:libcairomm_1.0$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libcairomm_$apiVersion$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -30,7 +31,7 @@ REQUIRES="
|
||||
|
||||
PROVIDES_devel="
|
||||
cairomm${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libcairomm_1.0$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libcairomm_$apiVersion$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
cairomm$secondaryArchSuffix == $portVersion base
|
||||
@@ -51,7 +52,7 @@ BUILD_PREREQUIRES="
|
||||
"
|
||||
|
||||
defineDebugInfoPackage cairomm$secondaryArchSuffix \
|
||||
"$libDir"/libcairomm-1.0.so.$libVersion
|
||||
"$libDir"/libcairomm-$apiVersion.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
@@ -65,11 +66,16 @@ INSTALL()
|
||||
|
||||
rm -rf $libDir/*.la
|
||||
|
||||
mv $libDir/cairomm-$apiVersion/include/*.h $includeDir/cairomm-$apiVersion
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libcairomm-1.0
|
||||
libcairomm-$apiVersion
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
sed -i -e 's|-I${libdir}/cairomm-$apiVersion/include||' \
|
||||
$developLibDir/pkgconfig/cairomm-$apiVersion.pc
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user