mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
82 lines
2.4 KiB
Bash
82 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-2010 by the authors of Gutenprint"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="3"
|
|
SOURCE_URI="http://prdownloads.sourceforge.net/gimp-print/gutenprint-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="c1a34cd2e02527de4d2a9bf6c14732cb9aa11b333f771eb6043fdc974de24df9"
|
|
PATCHES="gutenprint-5.2.10.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
gutenprint$secondaryArchSuffix = $portVersion compat >= 5
|
|
cmd:escputil$secondaryArchSuffix = $portVersion compat >= 5
|
|
cmd:testpattern$secondaryArchSuffix = $portVersion compat >= 5
|
|
lib:libgutenprint$secondaryArchSuffix = 2.3.0 compat >= 2
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gutenprint${secondaryArchSuffix}_devel = $portVersion compat >= 5
|
|
devel:libgutenprint$secondaryArchSuffix = 2.3.0 compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
gutenprint$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
# git doesn't handle correctly multilines with straybackspaces.
|
|
sed -i '/#define DECLARE_MODEUSES.*/ {N;N;N;N;N; s/#define DECLARE_MODEUSES.*\}/#define DECLARE_MODEUSES(name) static const canon_modeuselist_t name##_modeuselist = \{ #name, sizeof(name##_modeuses) \/ sizeof(canon_modeuse_t), name##_modeuses \}/g}' src/main/canon-media-mode.h
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libgutenprint.la
|
|
|
|
prepareInstalledDevelLibs libgutenprint
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir/man1
|
|
}
|