From 5ef60692c2912f795c33cf3c22c8447d2d24c8b4 Mon Sep 17 00:00:00 2001 From: Tudor Nazarie Date: Tue, 10 Jan 2017 23:45:59 +0200 Subject: [PATCH] icoutils: added recipe (#1020) Added recipe for icoutils icon and cursor file convertor. --- media-gfx/icoutils/icoutils-0.31.1.recipe | 63 +++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 media-gfx/icoutils/icoutils-0.31.1.recipe diff --git a/media-gfx/icoutils/icoutils-0.31.1.recipe b/media-gfx/icoutils/icoutils-0.31.1.recipe new file mode 100644 index 000000000..a5ff97228 --- /dev/null +++ b/media-gfx/icoutils/icoutils-0.31.1.recipe @@ -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 +}