mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
exiv2_0.27, re-enable, required for building current qgis (#12891)
This commit is contained in:
@@ -7,7 +7,7 @@ COPYRIGHT="2004-2021 Exiv2 authors
|
||||
2004-2013 Andreas Huggel
|
||||
2009 Brad Schick"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/Exiv2/exiv2/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="551b1266e3aabd321f6d555dccd776128ee449d5039feafee927a1f33f7a9753"
|
||||
SOURCE_DIR="exiv2-$portVersion"
|
||||
@@ -28,6 +28,15 @@ REQUIRES="
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
exiv2_0.27${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libexiv2${secondaryArchSuffix} = $portVersion
|
||||
devel:libexiv2_xmp${secondaryArchSuffix} = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
exiv2_0.27$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
@@ -39,7 +48,6 @@ BUILD_REQUIRES="
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
# cmd:gettext$secondaryArchSuffix
|
||||
cmd:grep
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
@@ -53,7 +61,6 @@ BUILD()
|
||||
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_DOCDIR=$documentationDir/packages/exiv2 \
|
||||
-DEXIV2_ENABLE_CURL=ON \
|
||||
-DEXIV2_ENABLE_VIDEO=ON \
|
||||
-DEXIV2_BUILD_EXIV2_COMMAND=OFF \
|
||||
@@ -67,8 +74,24 @@ INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
rm -rf $documentationDir
|
||||
|
||||
prepareInstalledDevelLibs libexiv2 libexiv2-xmp
|
||||
fixPkgconfig
|
||||
|
||||
rm -rf $developDir $libDir/cmake
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
sed -i 's,\/lib/x86/libexiv2-xmp.a,\/develop/lib/x86/libexiv2-xmp.a,g' \
|
||||
$prefix/$relativeLibDir/cmake/exiv2/exiv2Config-release.cmake
|
||||
sed -i 's,\/include,\/develop/headers/x86,g' \
|
||||
$prefix/$relativeLibDir/cmake/exiv2/exiv2Config.cmake
|
||||
else
|
||||
sed -i 's,\/lib/libexiv2-xmp.a,\/develop/lib/libexiv2-xmp.a,g' \
|
||||
$prefix/$relativeLibDir/cmake/exiv2/exiv2Config-release.cmake
|
||||
sed -i 's,\/include,\/develop/headers,g' \
|
||||
$prefix/$relativeLibDir/cmake/exiv2/exiv2Config.cmake
|
||||
fi
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user