icoutils: added recipe (#1020)

Added recipe for icoutils icon and cursor file convertor.
This commit is contained in:
Tudor Nazarie
2017-01-10 23:45:59 +02:00
committed by Jérôme Duval
parent 801fbb8a42
commit 5ef60692c2

View File

@@ -0,0 +1,63 @@
# FIXME: extresso and genresscript won't work because of missing libwww-perl
# and that won't compile because reasons
SUMMARY="Tools for extracting and converting Windows icon and cursor files"
DESCRIPTION="A set of command-line programs for extracting and converting \
images in Microsoft Windows icon and cursor files (usually with the extension \
.ico or .cur, but they can also be embedded in executables and DLL libraries."
HOMEPAGE="http://nongnu.org/icoutils/"
COPYRIGHT="1998-2017 Frank Richter"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://savannah.nongnu.org/download/icoutils/icoutils-$portVersion.tar.bz2"
CHECKSUM_SHA256="26e29d3c78f25d4cdf402501ac0414c51a9a092daebf6c9dee3b837dee693093"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
icoutils = $portVersion
cmd:extresso = $portVersion
cmd:genresscript = $portVersion
cmd:icotool = $portVersion
cmd:wrestool = $portVersion
"
REQUIRES="
haiku
lib:libpng16
lib:libz
cmd:perl
"
BUILD_REQUIRES="
haiku_devel
devel:libpng16
devel:libz
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc
cmd:ld
cmd:make
"
PATCH()
{
sed -i -e "1 s|/usr/bin/perl|/bin/env perl|" \
extresso/extresso.in \
extresso/genresscript.in
}
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
make check
}