Subject: Re: CVS commit: pkgsrc/devel/gdb6
To: John R. Shannon <shannonjr@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-changes
Date: 06/03/2004 12:09:02
On Thu, 3 Jun 2004, John R. Shannon wrote:

> Log Message:
> Revised Makefile so that the GNU libraries: libbfd.a, libbfd.la, libiberty.a
> libmmalloc.a, libopcodes.a, and libopcodes.la along with associated header
> files are installed relative to ${PREFIX}/gdb6 rather than ${PREFIX} to avoid
> conflicts with other packages. PLIST adjusted accordingly.

I'd prefer that we didn't clutter up ${PREFIX}. (Other packages do this
too.) In my case, I use LOCALBASE as /usr on several machines.

Can you consider doing something like the following instead?

CONFIGURE_ARGS+=	--libdir=${PREFIX}/lib/${GDB_SUBPREFIX}
CONFIGURE_ARGS+= 	--includedir=${PREFIX}/include/${GDB_SUBPREFIX}

And then PLIST like:
include/${GDB_SUBPREFIX}/bfdlink.h
...
lib/${GDB_SUBPREFIX}/libbfd.a

Also, if you are going to use some variable to define this (GDB_SUBPREFIX
and GDB_PREFIX), you may want to use them in the PLIST too (with
PLIST_SUBSTR). If those variables aren't used anywhere else, I'd just get
rid of them.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/