Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2004 20:53:58 +0100
From:      "Arjan van Leeuwen" <avleeuwen@piwebs.com>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/63653: Maintainer update: fix graphics/pixieplus on 64-bit systems
Message-ID:  <1078257238.0@vincent.piwebs.com>
Resent-Message-ID: <200403022000.i22K0dZ8024202@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63653
>Category:       ports
>Synopsis:       Maintainer update: fix graphics/pixieplus on 64-bit systems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 02 12:00:39 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Arjan van Leeuwen
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 5.2-CURRENT #0: Mon Mar  1 22:22:48 CET 2004
    root@vincent.piwebs.com:/usr/obj/usr/src/sys/AMD760



>Description:


- (hopefully) fix support for 64-bit systems
	Reported by: bento (http://bento.freebsd.org/errorlogs/sparc64-5-latest/pixieplus-0.5.4_2.log)

- Handle PTHREAD_LIBS and SIZEify while I'm here.


>How-To-Repeat:





>Fix:


--- pixieplus.diff begins here ---
diff -urN /usr/ports/graphics/pixieplus/Makefile pixieplus/Makefile
--- /usr/ports/graphics/pixieplus/Makefile	Thu Feb  5 01:51:19 2004
+++ pixieplus/Makefile	Tue Mar  2 20:49:00 2004
@@ -22,6 +22,13 @@
 USE_GMAKE=	yes
 USE_KDELIBS_VER=3
 INSTALLS_SHLIB=	yes
+USE_REINPLACE=	yes
 USE_LIBTOOL=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+pre-configure::
+	${REINPLACE_CMD} -e 's@-lpthread@${PTHREAD_LIBS}@g' ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>
+
diff -urN /usr/ports/graphics/pixieplus/distinfo pixieplus/distinfo
--- /usr/ports/graphics/pixieplus/distinfo	Wed Apr 16 14:38:16 2003
+++ pixieplus/distinfo	Tue Mar  2 20:34:28 2004
@@ -1 +1,2 @@
 MD5 (pixieplus-0.5.4.tar.gz) = a6296cdc53b5f1a38cd629f7591fef9e
+SIZE (pixieplus-0.5.4.tar.gz) = 2297945
diff -urN /usr/ports/graphics/pixieplus/files/patch-imageheaders.cpp pixieplus/files/patch-imageheaders.cpp
--- /usr/ports/graphics/pixieplus/files/patch-imageheaders.cpp	Thu Jan  1 01:00:00 1970
+++ pixieplus/files/patch-imageheaders.cpp	Tue Mar  2 20:25:45 2004
@@ -0,0 +1,11 @@
+--- app/imageheaders.cpp.orig	Fri Jun 13 00:47:07 2003
++++ app/imageheaders.cpp	Fri Jun 13 00:47:49 2003
+@@ -90,7 +90,7 @@
+         if(TIFFSetDirectory(t, thumbDir)){
+             TIFFGetField(t, TIFFTAG_IMAGELENGTH, &height);
+             img.create(minWidth, height, 32);
+-            if(!TIFFReadRGBAImage(t, minWidth, height, (unsigned long*)
++            if(!TIFFReadRGBAImage(t, minWidth, height, (uint32*)
+                                   img.bits(), 0))
+                 img.reset();
+             else{
--- pixieplus.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1078257238.0>