From scottm@mordred.cs.ucla.edu Sun Sep 19 16:21:15 1999
Return-Path: <scottm@mordred.cs.ucla.edu>
Received: from mailman.cs.ucla.edu (Mailman.CS.UCLA.EDU [131.179.128.30])
	by hub.freebsd.org (Postfix) with ESMTP id D66D714D0F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Sep 1999 16:21:14 -0700 (PDT)
	(envelope-from scottm@mordred.cs.ucla.edu)
Received: from mordred.cs.ucla.edu (mordred.cs.ucla.edu [131.179.192.128])
	by mailman.cs.ucla.edu (8.9.1/UCLACS-5.0) with ESMTP id QAA07030
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Sep 1999 16:21:14 -0700 (PDT)
Received: (from root@localhost)
	by mordred.cs.ucla.edu (8.9.3/8.9.3) id QAA74133;
	Sun, 19 Sep 1999 16:21:14 -0700 (PDT)
	(envelope-from scottm)
Message-Id: <199909192321.QAA74133@mordred.cs.ucla.edu>
Date: Sun, 19 Sep 1999 16:21:14 -0700 (PDT)
From: scottm@CS.UCLA.EDU
Sender: scottm@mordred.cs.ucla.edu
Reply-To: scottm@CS.UCLA.EDU
To: FreeBSD-gnats-submit@freebsd.org
Subject: Fix 'make PREFIX' for kdenetwork11
X-Send-Pr-Version: 3.2

>Number:         13840
>Category:       ports
>Synopsis:       'make PREFIX' fails for kdenetwork11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    will
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 16:30:01 PDT 1999
>Closed-Date:    Mon Oct 23 14:10:15 PDT 2000
>Last-Modified:  Mon Oct 23 14:10:21 PDT 2000
>Originator:     Scott Michel
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
UCLA Computer Science Department
>Environment:

N/A

>Description:

'make PREFIX=/your/fav/path/here' breaks when configure attempts to
locate libraries not in ${PREFIX}/lib but in ${LOCALBASE}/lib. The
attached patch fixes this problem.

>How-To-Repeat:

cd /usr/ports/net/kdenetwork11
make PREFIX=/your/fav/path/here

>Fix:
	
Apply the following patch to /usr/ports/net/kdenetwork11/Makefile:

*** Makefile.orig	Sun Sep 19 15:31:54 1999
--- Makefile	Sun Sep 19 16:15:11 1999
***************
*** 13,19 ****
--- 13,23 ----
  
  MAINTAINER=	se@freebsd.org
  
+ LOCALBASE?=	${DESTDIR}/usr/local
+ 
+ .if !exists(${PREFIX}/lib/libgdbm.a) && !exists(${LOCALBASE}/lib/libgdbm.a)
  BUILD_DEPENDS=	${PREFIX}/lib/libgdbm.a:${PORTSDIR}/databases/gdbm
+ .endif
  LIB_DEPENDS=	gif.3:${PORTSDIR}/graphics/giflib \
  		jpeg.9:${PORTSDIR}/graphics/jpeg \
  		png.3:${PORTSDIR}/graphics/png \
***************
*** 32,37 ****
--- 36,49 ----
  		INSTALL_SCRIPT="install -c -m 555"
  USE_GMAKE=	yes
  CFLAGS+=	"-I${PREFIX}/include"
+ 
+ .if defined(PREFIX)
+ CONFIGURE_ARGS+= "--with-qt-includes=$(PREFIX)/include/X11/qt" \
+ 		"--with-qt-libraries=$(PREFIX)/lib" \
+ 		"--with-extra-libs=${LOCALBASE}/lib" \
+ 		"--with-extra-includes=${LOCALBASE}/include"
+ CONFIGURE_ENV+= QTDIR="$(PREFIX)"
+ .endif
  
  .include <bsd.port.pre.mk>
  

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->se 
Responsible-Changed-By: imura 
Responsible-Changed-When: Tue Sep 21 01:25:11 PDT 1999 
Responsible-Changed-Why:  
Over to the maintainer. 
Responsible-Changed-From-To: se->will 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon May 29 16:04:53 PDT 2000 
Responsible-Changed-Why:  
Will now maintains the KDE ports. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=13840 
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Mon Oct 23 14:10:15 PDT 2000 
State-Changed-Why:  
Imura-san fixed this for me, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=13840 
>Unformatted:
