Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 1999 16:21:14 -0700 (PDT)
From:      scottm@CS.UCLA.EDU
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13840: Fix 'make PREFIX' for kdenetwork11
Message-ID:  <199909192321.QAA74133@mordred.cs.ucla.edu>

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

>Number:         13840
>Category:       ports
>Synopsis:       'make PREFIX' fails for kdenetwork11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 16:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>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?199909192321.QAA74133>