diff --git a/net-print/gutenprint/gutenprint-5.2.10.recipe b/net-print/gutenprint/gutenprint-5.2.10.recipe new file mode 100644 index 000000000..2787cf07d --- /dev/null +++ b/net-print/gutenprint/gutenprint-5.2.10.recipe @@ -0,0 +1,83 @@ +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" +SRC_URI="http://prdownloads.sourceforge.net/gimp-print/gutenprint-$portVersion.tar.bz2" +CHECKSUM_SHA256="431f352b412dfb9809d126a85a37a1fcd1c1826275ace8cdcd4fd9a6ee360e59" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PATCHES="gutenprint-$portVersion.patchset" + +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 >= $haikuVersion + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +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 + + prepareInstalledDevelLibs libgutenprint + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir \ + $manDir/man1 +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + gutenprint${secondaryArchSuffix}_devel = $portVersion compat >= 5 + devel:libgutenprint$secondaryArchSuffix = 2.3.0 compat >= 2 + " +REQUIRES_devel=" + gutenprint$secondaryArchSuffix == $portVersion base + " diff --git a/net-print/gutenprint/patches/gutenprint-5.2.10.patchset b/net-print/gutenprint/patches/gutenprint-5.2.10.patchset new file mode 100644 index 000000000..3808af0cb --- /dev/null +++ b/net-print/gutenprint/patches/gutenprint-5.2.10.patchset @@ -0,0 +1,239 @@ +From 4ad1f9d3595da336f9f11fa77ee5b01c52b0656b Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Thu, 8 May 2014 16:34:31 +0000 +Subject: undef PAGESIZE on HAIKU + +* gcc2 build fix on pixma_parse.c + +diff --git a/src/testpattern/testpattern.c b/src/testpattern/testpattern.c +index b31128f..4ffa520 100644 +--- a/src/testpattern/testpattern.c ++++ b/src/testpattern/testpattern.c +@@ -38,6 +38,9 @@ + #include + #include + #include ++#ifdef __HAIKU__ ++#undef PAGESIZE ++#endif + #include "testpattern.h" + #include + #include +diff --git a/src/testpattern/testpatternl.c b/src/testpattern/testpatternl.c +index cee5dea..5990d70 100644 +--- a/src/testpattern/testpatternl.c ++++ b/src/testpattern/testpatternl.c +@@ -20,6 +20,9 @@ + #include + #include + #include ++#ifdef __HAIKU__ ++#undef PAGESIZE ++#endif + + /* end standard C headers. */ + +diff --git a/src/testpattern/testpatternl.l b/src/testpattern/testpatternl.l +index f4f6708..7364f63 100644 +--- a/src/testpattern/testpatternl.l ++++ b/src/testpattern/testpatternl.l +@@ -29,6 +29,9 @@ + #include + #include + #include ++#ifdef __HAIKU__ ++#undef PAGESIZE ++#endif + #include "testpattern.h" + + #pragma GCC diagnostic ignored "-Wredundant-decls" +diff --git a/src/testpattern/testpatterny.c b/src/testpattern/testpatterny.c +index 818087e..ea0e141 100644 +--- a/src/testpattern/testpatterny.c ++++ b/src/testpattern/testpatterny.c +@@ -78,6 +78,9 @@ + #include + #include + #include ++#ifdef __HAIKU__ ++#undef PAGESIZE ++#endif + #include "testpattern.h" + + extern int mylineno; +diff --git a/src/testpattern/testpatterny.y b/src/testpattern/testpatterny.y +index 229109a..6c6e8f8 100644 +--- a/src/testpattern/testpatterny.y ++++ b/src/testpattern/testpatterny.y +@@ -29,6 +29,9 @@ + #include + #include + #include ++#ifdef __HAIKU__ ++#undef PAGESIZE ++#endif + #include "testpattern.h" + + extern int mylineno; +-- +1.8.3.4 + + +From 67f129ba6cdfe266fea43411661d7d6584b8ab4a Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 17 Sep 2014 17:49:21 +0000 +Subject: strings.h fixes + + +diff --git a/src/main/curve.c b/src/main/curve.c +index 7e4d02b..9d9ccec 100644 +--- a/src/main/curve.c ++++ b/src/main/curve.c +@@ -32,6 +32,7 @@ + #include + #endif + #include ++#include + #include + #include + #include +diff --git a/src/main/escp2-papers.c b/src/main/escp2-papers.c +index f1c44b4..cfd3466 100644 +--- a/src/main/escp2-papers.c ++++ b/src/main/escp2-papers.c +@@ -24,6 +24,7 @@ + #ifdef HAVE_CONFIG_H + #include + #endif ++#include + #include + #include "gutenprint-internal.h" + #include +diff --git a/src/main/print-ps.c b/src/main/print-ps.c +index d969596..d59fd6a 100644 +--- a/src/main/print-ps.c ++++ b/src/main/print-ps.c +@@ -34,6 +34,7 @@ + #include "gutenprint-internal.h" + #include + #include ++#include + #include + #ifdef HAVE_LIMITS_H + #include +diff --git a/src/main/xmlppd.c b/src/main/xmlppd.c +index 0ee9dc9..27bd6b8 100644 +--- a/src/main/xmlppd.c ++++ b/src/main/xmlppd.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include "xmlppd.h" + + typedef struct +-- +1.8.3.4 + + +From 87664680829de821756bfe70a07f308e7a2c8d89 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 17 Sep 2014 18:37:22 +0000 +Subject: fixes endianess check + + +diff --git a/src/main/print-olympus.c b/src/main/print-olympus.c +index 42c4897..0687f74 100644 +--- a/src/main/print-olympus.c ++++ b/src/main/print-olympus.c +@@ -4901,13 +4901,13 @@ dyesub_do_print(stp_vars_t *v, stp_image_t *image) + } + + if (pv.bytes_per_ink_channel > 1) { +-#if defined(__LITTLE_ENDIAN) || defined(__LITTLE_ENDIAN__) ++#if __BYTE_ORDER == __LITTLE_ENDIAN + pv.byteswap = dyesub_feature(caps, DYESUB_FEATURE_BIGENDIAN); +-#elif defined (__BIG_ENDIAN) || defined(__BIG_ENDIAN__) ++#elif __BYTE_ORDER == __BIG_ENDIAN + pv.byteswap = !dyesub_feature(caps, DYESUB_FEATURE_BIGENDIAN); + #else + #error "Unable to determine endianness, aborting compilation!" +-#endif ++#endif + } + + pv.image_data = dyesub_read_image(v, &pv, image); +-- +1.8.3.4 + + +From a7d48485dc30cc480b2ad1203ac36d0d13ec7c34 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 17 Sep 2014 18:55:46 +0000 +Subject: strings.h fixes + + +diff --git a/src/escputil/escputil.c b/src/escputil/escputil.c +index d7fec55..e0157e8 100644 +--- a/src/escputil/escputil.c ++++ b/src/escputil/escputil.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/src/testpattern/testpatternl.c b/src/testpattern/testpatternl.c +index 5990d70..819eee0 100644 +--- a/src/testpattern/testpatternl.c ++++ b/src/testpattern/testpatternl.c +@@ -18,6 +18,7 @@ + /* begin standard C headers. */ + #include + #include ++#include + #include + #include + #ifdef __HAIKU__ +diff --git a/src/testpattern/testpatternl.l b/src/testpattern/testpatternl.l +index 7364f63..90f635f 100644 +--- a/src/testpattern/testpatternl.l ++++ b/src/testpattern/testpatternl.l +@@ -27,6 +27,7 @@ + #endif + + #include ++#include + #include + #include + #ifdef __HAIKU__ +diff --git a/src/testpattern/testpatterny.c b/src/testpattern/testpatterny.c +index ea0e141..12651b7 100644 +--- a/src/testpattern/testpatterny.c ++++ b/src/testpattern/testpatterny.c +@@ -76,6 +76,7 @@ + #endif + + #include ++#include + #include + #include + #ifdef __HAIKU__ +diff --git a/src/testpattern/testpatterny.y b/src/testpattern/testpatterny.y +index 6c6e8f8..b495143 100644 +--- a/src/testpattern/testpatterny.y ++++ b/src/testpattern/testpatterny.y +@@ -27,6 +27,7 @@ + #endif + + #include ++#include + #include + #include + #ifdef __HAIKU__ +-- +1.8.3.4 +