Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2005 11:05:06 +0200
From:      "Franz Klammer" <klammer@webonaut.com>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/87563: [MAINTAINER UPDATE] graphics/png2ico - repect non-standard PREFIX 
Message-ID:  <1129539906.0@acer.webonaut.com>
Resent-Message-ID: <200510170910.j9H9AFrx008991@freefall.freebsd.org>

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

>Number:         87563
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] graphics/png2ico - repect non-standard PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 17 09:10:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Franz Klammer
>Release:        FreeBSD 6.0-RC1 i386
>Organization:
>Environment:


System: FreeBSD 6.0-RC1 #6: Tue Oct 11 18:53:26 CEST 2005
    root@acer.webonaut.com:/usr/obj/usr/src/sys/ACER292



>Description:


- repect non-standard PREFIX 

don't search in hardcoded /usr/local for include 
and libs - instead use PREFIX/include and PREFIX/lib

as this port has no configure-script look 
also in the default-PREFIX  /usr/local for includes and libs

got info from: Kris Kennaway <kris@obsecurity.org>


>How-To-Repeat:





>Fix:


--- png2ico_use_prefix.diff begins here ---
diff -Nur png2ico.orig/Makefile png2ico/Makefile
--- png2ico.orig/Makefile	Fri Feb  6 14:11:28 2004
+++ png2ico/Makefile	Mon Oct 17 10:42:42 2005
@@ -25,7 +25,7 @@
 USE_REINPLACE=	yes
 
 post-patch:
-	${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|' ${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff -Nur png2ico.orig/files/patch-Makefile png2ico/files/patch-Makefile
--- png2ico.orig/files/patch-Makefile	Mon Mar  1 13:26:35 2004
+++ png2ico/files/patch-Makefile	Mon Oct 17 10:55:30 2005
@@ -2,7 +2,7 @@
 +++ Makefile	Mon Mar  1 13:24:57 2004
 @@ -1,11 +1,11 @@
 -CPPFLAGS=-W -Wall -O2 -finline-functions
-+CPPFLAGS=-W -Wall -g -O -pipe  -finline-functions -I/usr/local/include -L/usr/local/lib
++CPPFLAGS=-W -Wall -g -O -pipe  -finline-functions -I%%PREFIX%%/include -L%%PREFIX%%/lib -I/usr/local/include -L/usr/local/lib
  #CPPFLAGS=-O0 -W -Wall
 -DEBUG=-g
 +#DEBUG=-g
--- png2ico_use_prefix.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?1129539906.0>