Files
haikuports/net-print/gutenprint/gutenprint8-5.3.1.recipe
OscarL 42cdd7b173 gutenprint{8,9}: fix build, remove static libs, add TEST(). (#7573)
After the changes on Haiku's <dirent.h>, gutenprint needs a bit
of help to figure things out (-D_DIRENT_HAVE_D_RECLEN).

Also:

- Disable building of static libs.
- Add a TEST() section.
- Enabled x86_gcc2 for gutenprint9 (thanks to Begasus work).

Fixes #7550.
2023-01-05 07:33:20 +01:00

94 lines
2.4 KiB
Bash

SUMMARY="Suite of printer drivers"
DESCRIPTION="Gutenprint, formerly named Gimp-Print, is a suite of printer \
drivers that may be used with most common UNIX print spooling systems, \
including CUPS, lpr, LPRng, or others. These drivers provide high quality \
printing for UNIX (including Macintosh OS X 10.3 and newer) and Linux \
systems in many cases equal to or better than proprietary vendor-supplied \
drivers.
Gutenprint also includes an enhanced print plug-in for the GIMP image editor, \
replacing the Gimp-Print 4.2-based plugin supplied with GIMP 1.2, \
2.0, and 2.2, and offering an alternative with additional \
capabilities to the GtkPrint-based plugin supplied with GIMP 2.4 \
and beyond."
HOMEPAGE="http://gimp-print.sourceforge.net/"
COPYRIGHT="1999-2018 The authors of Gutenprint"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://downloads.sourceforge.net/gimp-print/gutenprint-$portVersion.tar.xz"
CHECKSUM_SHA256="d80d8f5272d15bca5710f6ef4a2bb95e76d34e1155c5bcd5e83cb9f0a111d0d4"
SOURCE_DIR="gutenprint-$portVersion"
PATCHES="gutenprint-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gutenprint8$secondaryArchSuffix = $portVersion
lib:libgutenprint$secondaryArchSuffix = 8.1.0 compat >= 8
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
PROVIDES_devel="
gutenprint8${secondaryArchSuffix}_devel = $portVersion
devel:libgutenprint$secondaryArchSuffix = 8.1.0 compat >= 8
"
REQUIRES_devel="
gutenprint8$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
runConfigure ./configure \
--disable-dependency-tracking \
--disable-static \
--disable-testpattern \
CFLAGS=-D_DIRENT_HAVE_D_RECLEN=1
# Disable this test, as it a very looong time to run:
# (taken from Fedora's gutenprint.spec file)
sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libgutenprint.la
rm -rf $binDir $manDir
prepareInstalledDevelLibs libgutenprint
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
# according to test/Makefile.am: "run-weavetest" will take too long
# (unless it gets disabled in BUILD()) and be of little use.
make check
}