From nick.hibma@jrc.it Mon Jun 21 02:54:30 1999
Return-Path: <nick.hibma@jrc.it>
Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65])
	by hub.freebsd.org (Postfix) with ESMTP id 35E2B14C12
	for <freebsd-gnats-submit@freebsd.org>; Mon, 21 Jun 1999 02:54:22 -0700 (PDT)
	(envelope-from nick.hibma@jrc.it)
Received: from elpc36.jrc.it (elpc36.jrc.it [139.191.71.36])
	by mrelay.jrc.it (LMC5692) with ESMTP id LAA19797
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Jun 1999 11:54:19 +0200 (MET DST)
Received: (from n_hibma@localhost)
	by elpc36.jrc.it (8.9.3/8.8.7) id LAA03437;
	Mon, 21 Jun 1999 11:52:57 +0200 (CEST)
	(envelope-from n_hibma)
Message-Id: <199906210952.LAA03437@elpc36.jrc.it>
Date: Mon, 21 Jun 1999 11:52:57 +0200 (CEST)
From: Nick Hibma <nick.hibma@jrc.it>
Reply-To: nick.hibma@jrc.it
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] xv-3.10a checks in /usr/local/include instead of LOCALBASE/include
X-Send-Pr-Version: 3.2

>Number:         12323
>Category:       ports
>Synopsis:       [PATCH] xv-3.10a checks in /usr/local/include instead of LOCALBASE/include
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    shige
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 21 03:00:03 PDT 1999
>Closed-Date:    Thu Jun 24 09:01:00 PDT 1999
>Last-Modified:  Thu Jun 24 09:05:02 PDT 1999
>Originator:     Nick Hibma
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

ports as of 10:00 this morning

>Description:

xv cannot find the files jpeglib.h and friends when installed with the
PREFIX=/home/t.

I am not sure whether LOCALBASE is the way to go though, but I think so.

>How-To-Repeat:

cd /usr/ports/graphics/xv
make PREFIX=/sometime/someplace/somewhere install


>Fix:
	
--- /usr/ports/graphics/xv/patches/patch-ac.orig        Mon Jun 21 13:54:34 1999
+++ /usr/ports/graphics/xv/patches/patch-ac     Mon Jun 21 13:56:08 1999
@@ -16,8 +16,8 @@
 -/* #define GS_PATH "/usr/local/bin/gs" */
 -/* #define GS_LIB  "."                 */
 -/* #define GS_DEV  "ppmraw"            */
-+#define GS_PATH "/usr/local/bin/gs"
-+#define GS_LIB  "/usr/local/lib/ghostscript"
++#define GS_PATH "${LOCALBASE}/bin/gs"
++#define GS_LIB  "${LOCALBASE}/lib/ghostscript"
 +#define GS_DEV  "ppmraw"
  
  
--- /usr/ports/graphics/xv/patches/patch-ad.orig        Mon Jun 21 13:54:46 1999
+++ /usr/ports/graphics/xv/patches/patch-ad     Mon Jun 21 13:56:46 1999
@@ -28,8 +28,8 @@
  
 +#ifdef UseInstalledJpeg
 +JPEG = -DDOJPEG
-+LIBJPEG = -L/usr/local/lib -ljpeg
-+JPEGINCLUDE = -I/usr/local/include
++LIBJPEG = -L${LOCALBASE}/lib -ljpeg
++JPEGINCLUDE = -I${LOCALBASE}/include
 +#endif
 +
  #ifdef HaveTiff
@@ -42,8 +42,8 @@
  
 +#ifdef UseInstalledTiff
 +TIFF = -DDOTIFF
-+LIBTIFF = -L/usr/local/lib -ltiff
-+TIFFINCLUDE = -I/usr/local/include
++LIBTIFF = -L${LOCALBASE}/lib -ltiff
++TIFFINCLUDE = -I${LOCALBASE}/include
 +#endif
 +
  #ifdef HavePDS



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->shige 
Responsible-Changed-By: shige 
Responsible-Changed-When: Tue Jun 22 09:08:18 PDT 1999 
Responsible-Changed-Why:  
I'll handle this. 
State-Changed-From-To: open->closed 
State-Changed-By: shige 
State-Changed-When: Thu Jun 24 09:01:00 PDT 1999 
State-Changed-Why:  
Committed. Thanks! 
>Unformatted:
