From tkato432@yahoo.com  Sun Jun 11 16:01:42 2006
Return-Path: <tkato432@yahoo.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EB72716A476
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun, 11 Jun 2006 16:01:42 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from nm05omta059.dion.ne.jp (nm05mta.dion.ne.jp [219.125.112.10])
	by mx1.FreeBSD.org (Postfix) with SMTP id 1EF9643D60
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sun, 11 Jun 2006 16:01:33 +0000 (GMT)
	(envelope-from tkato432@yahoo.com)
Received: from localhost ([61.204.127.223])
	by nm05mta.dion.ne.jp
	id <20060612010124120.MA84.832D480@nm05mta.dion.ne.jp>;
	Mon, 12 Jun 2006 01:01:24 +0900
Message-Id: <20060612010028.a2a23430.tkato432@yahoo.com>
Date: Mon, 12 Jun 2006 01:00:28 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: print/pslib to 0.2.7

>Number:         98828
>Category:       ports
>Synopsis:       Update port: print/pslib to 0.2.7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 11 16:10:14 GMT 2006
>Closed-Date:    Mon Jun 12 01:45:50 GMT 2006
>Last-Modified:  Mon Jun 12 01:45:50 GMT 2006
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p18 i386
>Organization:
>Environment:
>Description:
- Update to version 0.2.7

New file:
files/patch-src__bmp.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/print/pslib/Makefile print/pslib/Makefile
--- /usr/ports/print/pslib/Makefile	Fri Feb 24 00:46:09 2006
+++ print/pslib/Makefile	Thu Jun  8 22:13:22 2006
@@ -7,8 +7,7 @@
 #
 
 PORTNAME=	pslib
-PORTVERSION=	0.2.6
-PORTREVISION=	1
+PORTVERSION=	0.2.7
 CATEGORIES=	print
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -17,10 +16,12 @@
 COMMENT=	A C-library for generating multi page PostScript documents
 
 LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
-		png.5:${PORTSDIR}/graphics/png
+		png.5:${PORTSDIR}/graphics/png \
+		tiff.4:${PORTSDIR}/graphics/tiff
 
 USE_GNOME=	gnomehack gnometarget intlhack pkgconfig
-GNU_CONFIGURE=	yes
+USE_GMAKE=	yes
+USE_AUTOTOOLS=	libtool:15
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib" \
 		ac_cv_prog_DOC_TO_MAN=""
@@ -32,6 +33,11 @@
 .else
 USE_GETTEXT=	yes
 PLIST_SUB+=	NLS=""
+.endif
+
+post-patch:
+.if defined(WITHOUT_NLS)
+	@${REINPLACE_CMD} -e 's|@USE_NLS@|no|g' ${WRKSRC}/po/Makefile.in.in
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/print/pslib/distinfo print/pslib/distinfo
--- /usr/ports/print/pslib/distinfo	Sat Nov 26 19:30:39 2005
+++ print/pslib/distinfo	Thu Jun  8 12:50:51 2006
@@ -1,3 +1,3 @@
-MD5 (pslib-0.2.6.tar.gz) = 6727e5086c7e6795e7b0db6f49442a2e
-SHA256 (pslib-0.2.6.tar.gz) = 48a61dd1f22fa6e2175e32560039ea9875121281f437377f60d74bc4aa92f334
-SIZE (pslib-0.2.6.tar.gz) = 486812
+MD5 (pslib-0.2.7.tar.gz) = 17a6a461276fd4eb3fd12ced926aeee1
+SHA256 (pslib-0.2.7.tar.gz) = 653ec4b1685500d3eb86dc89093854e1928f040b457556365bd52a31dda9a84d
+SIZE (pslib-0.2.7.tar.gz) = 510671
diff -urN /usr/ports/print/pslib/files/patch-src__bmp.c print/pslib/files/patch-src__bmp.c
--- /usr/ports/print/pslib/files/patch-src__bmp.c	Thu Jan  1 09:00:00 1970
+++ print/pslib/files/patch-src__bmp.c	Thu Jun  8 18:59:39 2006
@@ -0,0 +1,31 @@
+--- src/bmp.c.orig	Mon Apr 24 23:25:31 2006
++++ src/bmp.c	Thu Jun  8 18:59:00 2006
+@@ -41,10 +41,28 @@
+ #include <fcntl.h>
+ #include <unistd.h>
+ 
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
++#if defined(__FreeBSD__) && __FreeBSD_version >= 470000
++#include <sys/endian.h>
++
++#if __FreeBSD_version >= 500000
++#define BMPSwabShort(x) bswap16(x)
++#define BMPSwabLong(x) bswap32(x)
++#else
++#define BMPSwabShort(x) (be16toh(x))
++#define BMPSwabLong(x) (be32toh(x))
++#endif
++#endif
++
++#ifdef linux
+ #include <byteswap.h>
+ 
+ #define BMPSwabShort(x) *x = bswap_16 (*x)
+ #define BMPSwabLong(x) *x = bswap_32 (*x)
++#endif
+ 
+ #include <inttypes.h>
+ 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Mon Jun 12 01:45:42 UTC 2006 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98828 
>Unformatted:
