Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2001 19:04:14 -0800 (PST)
From:      Kazutoshi Kubota <tu7k-kbt@asahi-net.or.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/32097: scr2png doesn't make with other LOCALBASE
Message-ID:  <200111190304.fAJ34EB42900@freefall.freebsd.org>

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

>Number:         32097
>Category:       ports
>Synopsis:       scr2png doesn't make with other LOCALBASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 18 19:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kazutoshi Kubota
>Release:        FreeBSD 4.4-STABLE
>Organization:
CBUG - Tokyo west area BSD Users Group
>Environment:
FreeBSD schia 4.4-STABLE FreeBSD 4.4-STABLE #2: Thu Nov 15 21:58:46 JST 2001
 root@schia:/usr/obj/usr/src/sys/PURISSIMA  i386

>Description:
The scr2png doesn't make if it is specified non-default LOCALBASE such as /opt.
Because the path `/usr/local' is hard coded in the Makefile of the scr2png.

>How-To-Repeat:
make LOCALBASE=/opt

>Fix:
Apply this patch.

--- Makefile.orig       Mon Nov 19 11:33:23 2001
+++ Makefile    Mon Nov 19 11:55:41 2001
@@ -20,6 +20,9 @@
 MAN1=          scr2png.1
 MANCOMPRESSED= yes
 
+post-extract:
+	@${PERL} -pi -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile
+
 do-install:
	@cd ${WRKSRC}; ${MAKE} BINDIR=${LOCALBASE}/bin SHAREDIR=${LOCALBASE} install

>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?200111190304.fAJ34EB42900>