mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
exiv2, cleanup (#8216)
This commit is contained in:
@@ -6,7 +6,7 @@ HOMEPAGE="https://www.exiv2.org/"
|
||||
COPYRIGHT="2004-2013 Andreas Huggel
|
||||
2009 Brad Schick"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/Exiv2/exiv2/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="6398bc743c32b85b2cb2a604273b8c90aa4eb0fd7c1700bf66cbb2712b4f00c1"
|
||||
PATCHES="exiv2-$portVersion.patchset"
|
||||
@@ -64,27 +64,22 @@ BUILD()
|
||||
export CXXFLAGS="-D_BSD_SOURCE"
|
||||
export LDFLAGS="-lbsd -lnetwork"
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. $cmakeDirArgs \
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DEXIV2_ENABLE_CURL=ON \
|
||||
-DEXIV2_ENABLE_VIDEO=ON \
|
||||
-DEXIV2_BUILD_SAMPLES=OFF
|
||||
|
||||
make $jobArgs
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLibs libexiv2 libexiv2-xmp
|
||||
fixPkgconfig
|
||||
|
||||
sed -i "s|.self/$relativeLibDir|.self/$relativeDevelopLibDir|" $libDir/cmake/exiv2/exiv2Config-noconfig.cmake
|
||||
sed -i "s|/include|/$relativeIncludeDir|" $libDir/cmake/exiv2/exiv2Config.cmake
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
|
||||
Reference in New Issue
Block a user