mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Merged in tgkokk/haikuports/tgkokk_exiv2 (pull request #282)
Added exiv2 0.24. Works only on gcc4.
This commit is contained in:
73
dev-libs/exiv2/exiv2-0.24.recipe
Normal file
73
dev-libs/exiv2/exiv2-0.24.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="Exiv2 is a C++ library and a 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 <ahuggel@gmx.net>
|
||||
2009 Brad Schick <schickb@gmail.com>
|
||||
"
|
||||
LICENSE="GNU GPL v2"
|
||||
SRC_URI="http://www.exiv2.org/exiv2-0.24.tar.gz"
|
||||
CHECKSUM_SHA256="f4a443e6c7fb9d9f5e787732f76969a64c72c4c04af69b10ed57f949c2dfef8e"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
ARCHITECTURES="x86_gcc2 $ARCHITECTURES"
|
||||
else
|
||||
ARCHITECTURES="!x86_gcc2 $ARCHITECTURES"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PATCHES="exiv2-0.24.patch"
|
||||
|
||||
PROVIDES="
|
||||
exiv2$secondaryArchSuffix = $portVersion
|
||||
cmd:exiv2$secondaryArchSuffix = $portVersion
|
||||
lib:libexiv2$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:awk # required by configure
|
||||
cmd:find # required by libtool
|
||||
"
|
||||
|
||||
BUILD() {
|
||||
cd config
|
||||
autoconf
|
||||
cp configure ..
|
||||
cd ..
|
||||
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL() {
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libexiv2
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
exiv2${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libexiv2${secondaryArchSuffix} = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
exiv2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
12
dev-libs/exiv2/patches/exiv2-0.24.patch
Normal file
12
dev-libs/exiv2/patches/exiv2-0.24.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -ur exiv2-0.24-orig/config/configure.ac exiv2-0.24/config/configure.ac
|
||||
--- exiv2-0.24-orig/config/configure.ac 2013-07-24 02:47:31.008126464 +0000
|
||||
+++ exiv2-0.24/config/configure.ac 2014-12-06 10:53:18.091488256 +0000
|
||||
@@ -212,6 +212,8 @@
|
||||
case "$host_os" in
|
||||
*mingw* | *cygwin*)
|
||||
LDFLAGS="$LDFLAGS -no-undefined -lpsapi" ;;
|
||||
+*beos* | *haiku*)
|
||||
+ ;;
|
||||
*)
|
||||
LDFLAGS="$LDFLAGS -ldl" ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user