Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Mar 2010 18:43:56 GMT
From:      Barbara <barbara.xxx1975@libero.ot>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/145117: x11-wm/pekwm: fix build for png-1.4.1
Message-ID:  <201003281843.o2SIhuiY009763@www.freebsd.org>
Resent-Message-ID: <201003281850.o2SIo8jM072338@freefall.freebsd.org>

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

>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@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:



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