Subject: imake, xpkgwedge and audio/nas and Linux vs. NetBSD
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/10/2004 22:38:36
I am using default xpkgwedge under Linux and NetBSD.

Linux is using X11_TYPE=XFree86 and LOCALBASE is /usr. (So my imake is
from pkgsrc/x11/imake.)

NetBSD is using native /usr/X11R6 and default LOCALBASE.

nas appeared to build fine under both.

But under Linux, although PREFIX is /usr, imake configures it so it is
installed to /usr/X11R6.

And also under Linux the man3 manpages are installed with a 3x suffix
(IMAKE_LIBMAN_SUFFIX) but the PLIST assumes it is IMAKE_MANNEWSUFFIX which
is 1x on Linux ("0" for NetBSD).

For example (under Linux), my
work.puget/nas-1.6/clients/audio/auconvert/Makefile has:

        $(INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS)  auconvert
$(DESTDIR)$(BINDIR)/auconvert

And work.puget/nas-1.6/doc/man/lib/Makefile has:

        $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS)
AuSBAttr.$(MANNEWSUFFIX)
$(DESTDIR)$(MANDIR)/AuSetBucketAttributes.$(MANSUFFIX)

That Imakefile assignes MANSUFFIX to LIBMANSUFFIX. Under NetBSD, the
Makefile there just uses ".0" instead of $(MANSUFFIX) definition.

Where is DESTDIR defined when using USE_IMAKE with xpkgwedge?

And why doesn't the NetBSD install of nas use IMAKE_LIBMAN_SUFFIX for the
man3 man pages?

 Jeremy C. Reed

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