Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 19:10:05 -0700 (PDT)
From:      <adam@vectors.cx>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        <cy@FreeBSD.org>
Subject:   ports/42721: patch: add PNG support to x11-wm/fvwm2-devel
Message-ID:  <200209130210.g8D2A5LK022465@vectors.cx>

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

>Number:         42721
>Category:       ports
>Synopsis:       patch: add PNG support to x11-wm/fvwm2-devel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 19:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 4.7-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD smacky.vectors.cx 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #10: Fri Sep 6 00:58:18 PDT 2002 root@smacky.vectors.cx:/usr/src/sys/compile/smacky i386


	
>Description:
	PNG support is currently disabled in x11-wm/fvwm2-devel. this patch adds
	a new option, WITHOUT_PNG, and patches the configure script to provide
	libpng support to the windowmanager. also added are LIB_DEPENDS, and a
	PORTREVISION bump.
	
>How-To-Repeat:
	
>Fix:

	

--- fvwm2-makefile.patch begins here ---
--- Makefile.orig	Thu Sep 12 19:00:49 2002
+++ Makefile	Thu Sep 12 19:01:18 2002
@@ -7,6 +7,7 @@
 
 PORTNAME=	fvwm
 PORTVERSION=	2.5.3
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	ftp://ftp.fvwm.org/pub/fvwm/version-2/ \
 		http://www.fvwm.org/generated/icon_download/
@@ -27,6 +28,7 @@
 USE_BZIP2=	yes
 USE_GNOMENG=	yes
 WANT_GNOME=	yes
+USE_REINPLACE_CMD= yes
 
 .include <bsd.port.pre.mk>
 
@@ -45,6 +47,13 @@
 CONFIGURE_ARGS+=	--disable-shape
 .endif
 
+.if !defined(WITHOUT_PNG)
+LIB_DEPENDS+=	png.5:${PORTSDIR}/graphics/png
+CONFIGURE_ARGS+=	--with-png --with-png-includes=${LOCALBASE}/include \
+			--with-png-library=${LOCALBASE}/lib
+.endif
+		
+
 PLIST_SUB+=	FVWM_VERSION="${PORTVERSION}"
 
 .if ${HAVE_GNOME:Mimlib}!=""
@@ -77,6 +86,8 @@
 post-patch:
 	@${PERL} -pi -e 's,%%LOCALBASE%%,${LOCALBASE},' \
 		${WRKSRC}/modules/FvwmM4/FvwmM4.c
+	@${PERL} -pi -e 's,\"-lpng -lz,\"-L${LOCALBASE}/lib -lpng -lz,' \
+		${WRKSRC}/configure
 
 post-install:
 	@${INSTALL_DATA} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc \
--- fvwm2-makefile.patch ends here ---


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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