ports/50961: graphics/png2ico: let port use CFLAGS and remove -g

Franz Klammer klammer at webonaut.com
Tue Apr 15 00:50:12 UTC 2003


>Number:         50961
>Category:       ports
>Synopsis:       graphics/png2ico: let port use CFLAGS and remove -g
>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:   Mon Apr 14 17:50:10 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Franz Klammer
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ds9.webonaut.com 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Thu Apr 3 02:32:50 CEST 2003 root at ds9.webonaut.com:/usr/obj/usr/src/sys/DS9 i386


	
>Description:
	
	change png2ico to use ${CFLAGS}
	remove needless -g from ports Makefile
>How-To-Repeat:
	
>Fix:

	

--- png2ico.diff begins here ---
diff -ruN png2ico.orig/Makefile png2ico/Makefile
--- png2ico.orig/Makefile	Fri Feb 21 13:15:26 2003
+++ png2ico/Makefile	Tue Apr 15 02:28:34 2003
@@ -20,6 +20,10 @@
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 USE_GMAKE=	yes
+USE_REINPLACE=	yes
+
+post-patch:
+	${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|' ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff -ruN png2ico.orig/files/patch-Makefile png2ico/files/patch-Makefile
--- png2ico.orig/files/patch-Makefile	Thu Jan  2 20:27:00 2003
+++ png2ico/files/patch-Makefile	Tue Apr 15 02:32:42 2003
@@ -1,8 +1,11 @@
---- Makefile.orig	Sun Dec  8 14:50:10 2002
-+++ Makefile	Sun Dec  8 14:50:17 2002
-@@ -1,4 +1,4 @@
+--- Makefile.orig	Sat Dec  7 23:49:52 2002
++++ Makefile	Tue Apr 15 02:32:25 2003
+@@ -1,6 +1,6 @@
 -CPPFLAGS=-W -Wall -O2 -finline-functions
 +CPPFLAGS=-W -Wall -O2 -finline-functions -I/usr/local/include -L/usr/local/lib
  #CPPFLAGS=-O0 -W -Wall
- DEBUG=-g
+-DEBUG=-g
++#DEBUG=-g
+ 
+ all: png2ico
  
--- png2ico.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list