pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/bootstrap-mk-files Import pkgtools/bootstrap-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/44134b1e4bf4
branches:  trunk
changeset: 516145:44134b1e4bf4
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jul 14 23:13:00 2006 +0000

description:
Import pkgtools/bootstrap-mk-files, which is the collection of bmake *.mk
files from the bootstrap kit.  This package is used during bootstrap to
properly register the installed *.mk files.

The bootstrap bmake(1) utility uses some customised .mk files in order
to pre-define certain definitions and targets, which guide the build
process.  This package provides those *.mk files for the bmake(1)
utility.

diffstat:

 pkgtools/bootstrap-mk-files/DESCR                            |    4 +
 pkgtools/bootstrap-mk-files/Makefile                         |   50 +
 pkgtools/bootstrap-mk-files/PLIST                            |   22 +
 pkgtools/bootstrap-mk-files/files/bsd.README                 |  683 +++++++++++
 pkgtools/bootstrap-mk-files/files/bsd.dep.mk                 |   62 +
 pkgtools/bootstrap-mk-files/files/bsd.depall.mk              |    5 +
 pkgtools/bootstrap-mk-files/files/bsd.doc.mk                 |   84 +
 pkgtools/bootstrap-mk-files/files/bsd.files.mk               |   40 +
 pkgtools/bootstrap-mk-files/files/bsd.hostprog.mk            |  137 ++
 pkgtools/bootstrap-mk-files/files/bsd.inc.mk                 |   29 +
 pkgtools/bootstrap-mk-files/files/bsd.info.mk                |   64 +
 pkgtools/bootstrap-mk-files/files/bsd.kernobj.mk             |   33 +
 pkgtools/bootstrap-mk-files/files/bsd.kinc.mk                |  145 ++
 pkgtools/bootstrap-mk-files/files/bsd.kmod.mk                |   98 +
 pkgtools/bootstrap-mk-files/files/bsd.lib.mk                 |  524 ++++++++
 pkgtools/bootstrap-mk-files/files/bsd.links.mk               |   44 +
 pkgtools/bootstrap-mk-files/files/bsd.man.mk                 |  201 +++
 pkgtools/bootstrap-mk-files/files/bsd.nls.mk                 |   65 +
 pkgtools/bootstrap-mk-files/files/bsd.obj.mk                 |   91 +
 pkgtools/bootstrap-mk-files/files/bsd.prog.mk                |  174 ++
 pkgtools/bootstrap-mk-files/files/bsd.subdir.mk              |   62 +
 pkgtools/bootstrap-mk-files/files/bsd.sys.mk                 |  134 ++
 pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.lib.mk     |  524 ++++++++
 pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.man.mk     |  205 +++
 pkgtools/bootstrap-mk-files/files/mods/Darwin.bsd.sys.mk     |   65 +
 pkgtools/bootstrap-mk-files/files/mods/Darwin.sys.mk         |  210 +++
 pkgtools/bootstrap-mk-files/files/mods/FreeBSD.bsd.man.mk    |  137 ++
 pkgtools/bootstrap-mk-files/files/mods/IRIX.bsd.lib.mk       |  522 ++++++++
 pkgtools/bootstrap-mk-files/files/mods/IRIX.bsd.own.mk.in    |  246 +++
 pkgtools/bootstrap-mk-files/files/mods/IRIX.sys.mk           |  193 +++
 pkgtools/bootstrap-mk-files/files/mods/Interix.bsd.lib.mk    |  472 +++++++
 pkgtools/bootstrap-mk-files/files/mods/Interix.sys.mk        |  194 +++
 pkgtools/bootstrap-mk-files/files/mods/Linux.bsd.lib.mk      |  524 ++++++++
 pkgtools/bootstrap-mk-files/files/mods/Linux.bsd.man.mk      |  203 +++
 pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk          |  194 +++
 pkgtools/bootstrap-mk-files/files/mods/NetBSD.bsd.man.mk     |  206 +++
 pkgtools/bootstrap-mk-files/files/mods/NetBSD.sys.mk         |  207 +++
 pkgtools/bootstrap-mk-files/files/mods/OSF1.sys.mk           |  193 +++
 pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.man.mk    |  137 ++
 pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in |  308 ++++
 pkgtools/bootstrap-mk-files/files/mods/OpenBSD.sys.mk        |  202 +++
 pkgtools/bootstrap-mk-files/files/mods/SunOS.bsd.sys.mk      |  141 ++
 pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk          |  211 +++
 pkgtools/bootstrap-mk-files/files/mods/UnixWare.sys.mk       |  195 +++
 pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in         |  326 +++++
 pkgtools/bootstrap-mk-files/files/sys.mk                     |  208 +++
 46 files changed, 8774 insertions(+), 0 deletions(-)

diffs (truncated from 8958 to 300 lines):

diff -r 23049ac67b14 -r 44134b1e4bf4 pkgtools/bootstrap-mk-files/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/bootstrap-mk-files/DESCR Fri Jul 14 23:13:00 2006 +0000
@@ -0,0 +1,4 @@
+The bootstrap bmake(1) utility uses some customised .mk files in order
+to pre-define certain definitions and targets, which guide the build
+process.  This package provides those *.mk files for the bmake(1)
+utility.
diff -r 23049ac67b14 -r 44134b1e4bf4 pkgtools/bootstrap-mk-files/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/bootstrap-mk-files/Makefile      Fri Jul 14 23:13:00 2006 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/14 23:13:00 jlam Exp $
+
+DISTNAME=      bootstrap-mk-files-20060714
+CATEGORIES=    pkgtools
+MASTER_SITES=  # empty
+DISTFILES=     # empty
+
+CONFLICTS+=    mk-files-[0-9]*
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.pkgsrc.org/
+COMMENT=       *.mk files for the bootstrap bmake utility
+
+NO_PKGTOOLS_REQD_CHECK=        # defined
+PKG_PRESERVE=          # defined
+
+NO_CHECKSUM=   yes
+NO_MTREE=      yes
+NO_BUILD=      yes
+
+USE_TOOLS+=    sed
+
+INSTALLTION_DIRS=      share/mk
+
+do-extract:
+       @${CP} -R ${FILESDIR} ${WRKSRC}
+
+do-configure:
+       cd ${WRKSRC}; for file in bsd.* sys.mk; do                      \
+               ${TEST} ! -f mods/${OPSYS}.$$file ||                    \
+               ${CP} -f mods/${OPSYS}.$$file ${WRKSRC}/$$file;         \
+       done
+       cd ${WRKSRC};                                                   \
+       if ${TEST} -f mods/${OPSYS}.bsd.own.mk.in; then                 \
+               own_mk=mods/${OPSYS}.bsd.own.mk.in;                     \
+       else                                                            \
+               own_mk=mods/bsd.own.mk.in;                              \
+       fi;                                                             \
+       ${SED}  -e 's|@ROOT_GROUP@|'${ROOT_GROUP}'|g'                   \
+               -e 's|@ROOT_USER@|'${ROOT_USER}'|g'                     \
+               -e 's|@SYSCONFDIR@|'${PKG_SYSCONFDIR}'|g'               \
+               $$own_mk > bsd.own.mk
+
+do-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/mk
+       cd ${WRKSRC} && for file in bsd.* sys.mk; do                    \
+               ${INSTALL_DATA} $$file ${PREFIX}/share/mk/$$file;       \
+       done
+
+.include "../../mk/bsd.pkg.mk"
diff -r 23049ac67b14 -r 44134b1e4bf4 pkgtools/bootstrap-mk-files/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/bootstrap-mk-files/PLIST Fri Jul 14 23:13:00 2006 +0000
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/14 23:13:00 jlam Exp $
+share/mk/bsd.dep.mk
+share/mk/bsd.depall.mk
+share/mk/bsd.doc.mk
+share/mk/bsd.files.mk
+share/mk/bsd.hostprog.mk
+share/mk/bsd.inc.mk
+share/mk/bsd.info.mk
+share/mk/bsd.kernobj.mk
+share/mk/bsd.kinc.mk
+share/mk/bsd.kmod.mk
+share/mk/bsd.lib.mk
+share/mk/bsd.links.mk
+share/mk/bsd.man.mk
+share/mk/bsd.nls.mk
+share/mk/bsd.obj.mk
+share/mk/bsd.own.mk
+share/mk/bsd.prog.mk
+share/mk/bsd.subdir.mk
+share/mk/bsd.sys.mk
+share/mk/sys.mk
+@dirrm share/mk
diff -r 23049ac67b14 -r 44134b1e4bf4 pkgtools/bootstrap-mk-files/files/bsd.README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/bootstrap-mk-files/files/bsd.README      Fri Jul 14 23:13:00 2006 +0000
@@ -0,0 +1,683 @@
+#      $NetBSD: bsd.README,v 1.1.1.1 2006/07/14 23:13:00 jlam Exp $
+#      @(#)bsd.README  8.2 (Berkeley) 4/2/94
+
+This is the README file for the new make "include" files for the BSD
+source tree.  The files are installed in /usr/share/mk, and are, by
+convention, named with the suffix ".mk".
+
+Note, this file is not intended to replace reading through the .mk
+files for anything tricky.
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+RANDOM THINGS WORTH KNOWING:
+
+The files are simply C-style #include files, and pretty much behave like
+you'd expect.  The syntax is slightly different in that a single '.' is
+used instead of the hash mark, i.e. ".include <bsd.prog.mk>".
+
+One difference that will save you lots of debugging time is that inclusion
+of the file is normally done at the *end* of the Makefile.  The reason for
+this is because .mk files often modify variables and behavior based on the
+values of variables set in the Makefile.  To make this work, remember that
+the FIRST target found is the target that is used, i.e. if the Makefile has:
+
+       a:
+               echo a
+       a:
+               echo a number two
+
+the command "make a" will echo "a".  To make things confusing, the SECOND
+variable assignment is the overriding one, i.e. if the Makefile has:
+
+       a=      foo
+       a=      bar
+
+       b:
+               echo ${a}
+
+the command "make b" will echo "bar".  This is for compatibility with the
+way the V7 make behaved.
+
+It's fairly difficult to make the BSD .mk files work when you're building
+multiple programs in a single directory.  It's a lot easier to split up the
+programs than to deal with the problem.  Most of the agony comes from making
+the "obj" directory stuff work right, not because we switched to a new version
+of make.  So, don't get mad at us, figure out a better way to handle multiple
+architectures so we can quit using the symbolic link stuff.  (Imake doesn't
+count.)
+
+The file .depend in the source directory is expected to contain dependencies
+for the source files.  This file is read automatically by make after reading
+the Makefile.
+
+The variable DESTDIR works as before.  It's not set anywhere but will change
+the tree where the file gets installed.
+
+The profiled libraries are no longer built in a different directory than
+the regular libraries.  A new suffix, ".po", is used to denote a profiled
+object, and ".so" denotes a shared (position-independent) object.
+
+The following variables that control how things are made/installed that
+are not set by default. These should not be set by Makefiles; they're for
+the user to define in MAKECONF (see bsd.own.mk, below) or on the make(1)
+command line:
+
+BUILD          If defined, 'make install' checks that the targets in the
+               source directories are up-to-date and remakes them if they
+                are out of date, instead of blindly trying to install
+                out of date or non-existent targets.
+
+UPDATE                 If defined, 'make install' only installs targets that are
+               more recently modified in the source directories that their
+               installed counterparts.
+
+UNPRIVILEGED   If defined, don't set the owner/group/mode when installing
+               files or directories.  This allows a non-root "make install".
+
+MKCATPAGES     If "no", don't build or install the catman pages.
+
+MKDOC          If "no", don't build or install the documentation.
+
+MKINFO         If "no", don't build or install Info documentation from
+               Texinfo source files.
+
+MKLINT         If "no", don't build or install the lint libraries.
+
+MKMAN          If "no", don't build or install the man or catman pages.
+               Also acts as "MKCATPAGES=no"
+
+MKNLS          If "no", don't build or install the NLS files and locale
+               definition files.
+
+MKOBJ          If "no", don't enable the rule which creates objdirs.
+               "yes" by default.
+
+MKOBJDIRS      If "no", don't create objdirs during a "make build".
+               "no" by default.
+
+MKPIC          If "no", don't build or install shared libraries.
+
+MKPICINSTALL   If "no", don't install the *_pic.a libraries.
+
+MKPROFILE      If "no", don't build or install the profiling libraries.
+
+MKSHARE                If "no", act as "MKCATPAGES=no MKDOC=no MKINFO=no MKMAN=no
+               MKNLS=no".  I.e, don't build catman pages, documentation,
+               Info documentation, man pages, NLS files, ...
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+The include file <sys.mk> has the default rules for all makes, in the BSD
+environment or otherwise.  You probably don't want to touch this file.
+If you intend to run a cross build, you will need to supply the following
+host tools, and configure the following variables properly:
+
+OBJCOPY                objcopy - copy and translate object files
+
+STRIP          strip - Discard symbols from object files
+
+CONFIG         config - build kernel compilation directories
+
+RPCGEN         rpcgen - Remote Procedure Call (RPC) protocol compiler
+
+MKLOCALE       mklocale - make LC_CTYPE locale files
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+The include file <bsd.man.mk> handles installing manual pages and their
+links.
+
+It has a two targets:
+
+       maninstall:
+               Install the manual page sources and their links.
+       catinstall:
+               Install the preformatted manual pages and their links.
+
+It sets/uses the following variables:
+
+MANDIR         Base path for manual installation.
+
+MANGRP         Manual group.
+
+MANOWN         Manual owner.
+
+MANMODE                Manual mode.
+
+MANSUBDIR      Subdirectory under the manual page section, i.e. "/vax"
+               or "/tahoe" for machine specific manual pages.
+
+MAN            The manual pages to be installed (use a .1 - .9 suffix).
+
+MLINKS         List of manual page links (using a .1 - .9 suffix).  The
+               linked-to file must come first, the linked file second,
+               and there may be multiple pairs.  The files are soft-linked.
+
+The include file <bsd.man.mk> includes a file named "../Makefile.inc" if
+it exists.
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+The include file <bsd.own.mk> contains source tree configuration parameters,
+such as the owners, groups, etc. for both manual pages and binaries, and
+a few global "feature configuration" parameters.
+
+It has no targets.
+
+To get system-specific configuration parameters, bsd.own.mk will try to
+include the file specified by the "MAKECONF" variable.  If MAKECONF is not
+set, or no such file exists, the system make configuration file, /etc/mk.conf
+is included.  These files may define any of the variables described below.
+
+bsd.own.mk sets the following variables, if they are not already defined
+(defaults are in brackets):
+
+BSDSRCDIR      The real path to the system sources, so that 'make obj'
+               will work correctly. [/usr/src]
+
+BSDOBJDIR      The real path to the system 'obj' tree, so that 'make obj'
+               will work correctly. [/usr/obj]
+
+BINGRP         Binary group. [wheel]
+
+BINOWN         Binary owner. [root]
+
+BINMODE                Binary mode. [555]
+
+NONBINMODE     Mode for non-executable files. [444]
+
+MANDIR         Base path for manual installation. [/usr/share/man/cat]
+
+MANGRP         Manual group. [wheel]
+
+MANOWN         Manual owner. [root]
+
+MANMODE                Manual mode. [${NONBINMODE}]
+
+MANINSTALL     Manual installation type: maninstall, catinstall, or both
+
+LDSTATIC       Control program linking; if set blank, link everything
+               dynamically. If set to "-static", link everything statically.
+               If not set, programs link according to their makefile.
+
+LIBDIR         Base path for library installation. [/usr/lib]
+
+LINTLIBDIR     Base path for lint(1) library installation. [/usr/libdata/lint]
+
+LIBGRP         Library group. [${BINGRP}]



Home | Main Index | Thread Index | Old Index