ports/145117: x11-wm/pekwm: fix build for png-1.4.1

Barbara barbara.xxx1975 at libero.ot
Sun Mar 28 18:50:08 UTC 2010


>Number:         145117
>Category:       ports
>Synopsis:       x11-wm/pekwm: fix build for png-1.4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 28 18:50:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Barbara
>Release:        
>Organization:
>Environment:
FreeBSD satanasso.local.net 7.3-STABLE FreeBSD 7.3-STABLE #0: Thu Mar 25 09:52:40 CET 2010     root at satanasso.local.net:/usr/obj/usr/src/sys/SATANASSO  i386 
>Description:
Fix the build after png update.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2010-03-28 08:47:44.000000000 +0200
+++ Makefile	2010-03-28 20:28:44.000000000 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=	pekwm
 PORTVERSION=	0.1.11
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	http://pekwm.org/projects/3/files/
@@ -32,4 +32,14 @@
 MAN1=		pekwm.1
 MANCOMPRESSED=	no
 
+# replace calls to obsolete libpng12 functions
+post-extract:
+	${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|; \
+			s|png_check_sig(sig, PImageLoaderPng::PNG_SIG_BYTES) !=|png_sig_cmp(sig, 0, PImageLoaderPng::PNG_SIG_BYTES) ==|' \
+		${WRKSRC}/src/PImageLoaderPng.cc
+
+post-patch:
+	${REINPLACE_CMD} -e 's|libpng12|libpng14|g' \
+		${WRKSRC}/configure
+
 .include <bsd.port.mk>


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



More information about the freebsd-ports-bugs mailing list