From 1b5fa23b6f826ed7dfda07ef12ea34d600e7d17f Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Tue, 5 Mar 2024 20:48:26 +1000 Subject: [PATCH] libspectre: add recipe --- app-text/libspectre/libspectre-0.2.12.recipe | 78 ++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 app-text/libspectre/libspectre-0.2.12.recipe diff --git a/app-text/libspectre/libspectre-0.2.12.recipe b/app-text/libspectre/libspectre-0.2.12.recipe new file mode 100644 index 000000000..5912a4ca2 --- /dev/null +++ b/app-text/libspectre/libspectre-0.2.12.recipe @@ -0,0 +1,78 @@ +SUMMARY="Library for rendering Postscript documents" +DESCRIPTION="libspectre is a small library for rendering Postscript documents. It provides a \ +convenient easy to use API for handling and rendering Postscript documents." +HOMEPAGE="https://www.freedesktop.org/wiki/Software/libspectre/" +COPYRIGHT="Albert Astals Cid + Carlos Garcia Campos" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="http://libspectre.freedesktop.org/releases/libspectre-$portVersion.tar.gz" +CHECKSUM_SHA256="55a7517cd3572bd2565df0cf450944a04d5273b279ebb369a895391957f0f960" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="1.1.12" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libspectre$secondaryArchSuffix = $portVersion + lib:libspectre$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgs$secondaryArchSuffix + " + +PROVIDES_devel=" + libspectre${secondaryArchSuffix}_devel = $portVersion + devel:libspectre$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libspectre$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgs$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:autoheader + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoheader + automake -a -c --foreign + autoconf + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm -f $libDir/{libspectre.a,libspectre.la} + + prepareInstalledDevelLib libspectre + + fixPkgconfig + + packageEntries devel $developDir +} + +TEST() +{ + make check +}