Files
haikuports/media-libs/exiftool/exiftool-11.18.recipe
2018-11-13 00:59:57 +00:00

61 lines
1.3 KiB
Bash

SUMMARY="A Perl library and a command-line tool for editing image metdata"
DESCRIPTION="ExifTool is both a Perl library and a command-line script that \
enables editing of the metadata of a large variety of files. This includes all \
major image formats which support metadata as well as the vendor-specific \
metadata of numerous digital cameras."
HOMEPAGE="https://www.sno.phy.queensu.ca/~phil/exiftool/"
COPYRIGHT="2003-2018 Phil Harvey"
LICENSE="GNU GPL v1
Artistic"
REVISION="1"
SOURCE_URI="https://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-$portVersion.tar.gz"
CHECKSUM_SHA256="16cfbca764f089f95127444602f5e3182903744e42253f67ab3edd3842db97d5"
SOURCE_DIR="Image-ExifTool-$portVersion"
ARCHITECTURES="any"
PROVIDES="
exiftool = $portVersion
cmd:exiftool = $portVersion
"
REQUIRES="
haiku
cmd:perl >= 5.0.0
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make install
cd "$libDir"/perl5
# delete 5.x.y/`uname -m`-haiku/perllocal.pod
perllocal=*/*-haiku/perllocal.pod
rm $perllocal
rmdir -p `dirname $perllocal`
cd vendor_perl/5.*
# delete `uname -m`-haiku/auto/auto/Image/ExifTool/.packlist
packlist=*-haiku/auto/Image/ExifTool/.packlist
rm $packlist
rmdir -p `dirname $packlist`
}
TEST()
{
make test
}