mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
gutenprint: add recipe for version 5.2.9
This commit is contained in:
85
net-print/gutenprint/gutenprint-5.2.9.recipe
Normal file
85
net-print/gutenprint/gutenprint-5.2.9.recipe
Normal file
@@ -0,0 +1,85 @@
|
||||
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-5.2.9.tar.bz2"
|
||||
CHECKSUM_SHA256="4b27e4f06f32d30271df89ecb6089bb11bcf2caec5f60b0909e083095354bca0"
|
||||
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.1.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
|
||||
|
||||
rmdir $prefix/sbin
|
||||
|
||||
prepareInstalledDevelLibs libgutenprint
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$manDir/man1
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
gutenprint${secondaryArchSuffix}_devel = $portVersion compat >= 5
|
||||
devel:libgutenprint$secondaryArchSuffix = 2.1.0 compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gutenprint$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
94
net-print/gutenprint/patches/gutenprint-5.2.9.patchset
Normal file
94
net-print/gutenprint/patches/gutenprint-5.2.9.patchset
Normal file
@@ -0,0 +1,94 @@
|
||||
From 0c0e500f1ef9a22ed62ed28cd74905b1704722c7 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
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 624d7d6..6ac0fe9 100644
|
||||
--- a/src/testpattern/testpattern.c
|
||||
+++ b/src/testpattern/testpattern.c
|
||||
@@ -38,6 +38,9 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
+#ifdef __HAIKU__
|
||||
+#undef PAGESIZE
|
||||
+#endif
|
||||
#include "testpattern.h"
|
||||
#include <gutenprint/gutenprint-intl.h>
|
||||
#include <errno.h>
|
||||
diff --git a/src/testpattern/testpatternl.c b/src/testpattern/testpatternl.c
|
||||
index e8ec86b..9953d25 100644
|
||||
--- a/src/testpattern/testpatternl.c
|
||||
+++ b/src/testpattern/testpatternl.c
|
||||
@@ -20,6 +20,9 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
+#ifdef __HAIKU__
|
||||
+#undef PAGESIZE
|
||||
+#endif
|
||||
|
||||
/* end standard C headers. */
|
||||
|
||||
diff --git a/src/testpattern/testpatternl.l b/src/testpattern/testpatternl.l
|
||||
index 16cb38c..bf164e4 100644
|
||||
--- a/src/testpattern/testpatternl.l
|
||||
+++ b/src/testpattern/testpatternl.l
|
||||
@@ -29,6 +29,9 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#ifdef __HAIKU__
|
||||
+#undef PAGESIZE
|
||||
+#endif
|
||||
#include "testpattern.h"
|
||||
|
||||
#define YY_NO_UNPUT
|
||||
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 <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#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 <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#ifdef __HAIKU__
|
||||
+#undef PAGESIZE
|
||||
+#endif
|
||||
#include "testpattern.h"
|
||||
|
||||
extern int mylineno;
|
||||
diff --git a/test/pixma_parse.c b/test/pixma_parse.c
|
||||
index 0fc368b..d5f23f8 100644
|
||||
--- a/test/pixma_parse.c
|
||||
+++ b/test/pixma_parse.c
|
||||
@@ -638,8 +638,8 @@ static int process(FILE* in, FILE* out,int verbose,unsigned int maxw,unsigned in
|
||||
|
||||
|
||||
}else if(buf[0]==0x1 && buf[1]==0x0 && buf[2]==0x1){
|
||||
- fprintf(stderr," 1bit-per pixel\n");
|
||||
int num_colors = cnt*3; /*no idea yet! 3 for iP4000 */
|
||||
+ fprintf(stderr," 1bit-per pixel\n");
|
||||
/*num_colors=9;*/
|
||||
/*for(i=0;i<MAX_COLORS;i++){*/
|
||||
for(i=0;i<num_colors;i++){
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user