Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 1999 15:31:24 -0700 (PDT)
From:      scottm@CS.UCLA.EDU
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13839: Fixes to kdegraphics11 (PREFIX + one patch file)
Message-ID:  <199909192231.PAA21137@mordred.cs.ucla.edu>

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

>Number:         13839
>Category:       ports
>Synopsis:       kdegraphics11 'make PREFIX' fix, one compile bug killed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 15:40: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' is slightly broken when configure
tries to locate libraries. The enclosed patch fixes this.

As an added bonus, fixed a compile error in kpaint. Apparently, the
FreeBSD ports version of giflib installs its headers in ${LOCALBASE}/giflib
which this port failed to find. The other enclosed patch fixes this.

>How-To-Repeat:

cd /usr/ports/graphics/kdegraphics11
make PREFIX=/your/fav/path/here
>Fix:
	
Apply the following patch to /usr/ports/graphics/kdegraphics11:

*** Makefile.orig	Sun Sep 19 14:23:47 1999
--- Makefile	Sun Sep 19 14:24:17 1999
***************
*** 26,29 ****
--- 26,37 ----
  CFLAGS+=	"-I${PREFIX}/include"
  USE_GMAKE=	yes
  
+ .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.mk>

Also include this patch in /usr/ports/graphics/kdegraphics11/patch-aa:

*** kpaint/gif.cpp.orig	Sun Sep 19 14:55:42 1999
--- kpaint/gif.cpp	Sun Sep 19 14:52:46 1999
***************
*** 34,40 ****
  #include "gif.h"
  
  extern "C" {
! #include <gif_lib.h>
  };
  
  void read_gif_file(QImageIO * imageio)
--- 34,40 ----
  #include "gif.h"
  
  extern "C" {
! #include <giflib/gif_lib.h>
  };
  
  void read_gif_file(QImageIO * imageio)

>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?199909192231.PAA21137>