exiv2: bump version

This commit is contained in:
Gerasim Troeglazov
2019-08-24 13:42:15 +10:00
parent c270524a7c
commit d574dec076
3 changed files with 37 additions and 69 deletions

View File

@@ -0,0 +1,86 @@
SUMMARY="A C++ library and command line utility to manage image metadata"
DESCRIPTION="Exiv2 provides fast and easy read and write access to the Exif, \
IPTC and XMP metadata of images in various formats. Exiv2 is available as \
free software and with a commercial license, and is used in many projects."
HOMEPAGE="http://www.exiv2.org/"
COPYRIGHT="2004-2013 Andreas Huggel
2009 Brad Schick"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/Exiv2/exiv2/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="3dbcaf01fbc5b98d42f091d1ff0d4b6cd9750dc724de3d9c0d113948570b2934"
PATCHES="exiv2-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
exiv2$secondaryArchSuffix = $portVersion
cmd:exiv2$secondaryArchSuffix = $portVersion
lib:libexiv2$secondaryArchSuffix = $portVersion
lib:libexiv2_xmp$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libexpat$secondaryArchSuffix
lib:libgettextpo$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
exiv2${secondaryArchSuffix}_devel = $portVersion
devel:libexiv2${secondaryArchSuffix} = $portVersion
devel:libexiv2_xmp${secondaryArchSuffix} = $portVersion
"
REQUIRES_devel="
exiv2$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcurl$secondaryArchSuffix
devel:libexpat$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:gettext
cmd:grep
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
BUILD()
{
export CXXFLAGS="-D_BSD_SOURCE"
export LDFLAGS="-lbsd -lnetwork"
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DEXIV2_ENABLE_CURL=ON \
-DEXIV2_ENABLE_VIDEO=ON \
-DEXIV2_BUILD_SAMPLES=OFF
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs libexiv2 libexiv2-xmp
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}