From a43fbbfdb069aab4160291ecef2b3a109a2d21fa Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 1 Apr 2023 10:58:45 +0200 Subject: [PATCH] exiv2, cleanup (#8216) --- media-gfx/exiv2/exiv2-0.27.3.recipe | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/media-gfx/exiv2/exiv2-0.27.3.recipe b/media-gfx/exiv2/exiv2-0.27.3.recipe index 47cba71d3..58069ee5d 100644 --- a/media-gfx/exiv2/exiv2-0.27.3.recipe +++ b/media-gfx/exiv2/exiv2-0.27.3.recipe @@ -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