summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/alternatives.mk58
-rw-r--r--mk/apache.mk146
-rw-r--r--mk/bdb.buildlink3.mk106
-rw-r--r--mk/bsd.hacks.mk69
-rw-r--r--mk/bsd.makevars.mk43
-rw-r--r--mk/bsd.options.mk417
-rw-r--r--mk/bsd.pkg.check.mk379
-rw-r--r--mk/bsd.pkg.extract.mk184
-rw-r--r--mk/bsd.pkg.mk4839
-rw-r--r--mk/bsd.pkg.patch.mk273
-rw-r--r--mk/bsd.pkg.subdir.mk240
-rw-r--r--mk/bsd.pkg.use.mk132
-rw-r--r--mk/bsd.prefs.mk599
-rw-r--r--mk/bsd.sites.mk291
-rw-r--r--mk/buildlink3/BUILDLINK3_DG77
-rw-r--r--mk/buildlink3/PKGVIEWS_UG222
-rw-r--r--mk/buildlink3/README140
-rw-r--r--mk/buildlink3/TODO51
-rw-r--r--mk/buildlink3/bsd.buildlink3.mk1084
-rw-r--r--mk/buildlink3/bsd.builtin.mk153
-rw-r--r--mk/buildlink3/buildcmd-libtool74
-rw-r--r--mk/buildlink3/cleanup-libtool41
-rw-r--r--mk/buildlink3/cmd-sink-libtool73
-rw-r--r--mk/buildlink3/find-files.mk101
-rw-r--r--mk/buildlink3/find-libs.mk74
-rwxr-xr-xmk/buildlink3/imake-check89
-rw-r--r--mk/buildlink3/imake-check.mk81
-rw-r--r--mk/buildlink3/libtool-fix-la352
-rw-r--r--mk/buildlink3/scan-libtool131
-rw-r--r--mk/buildlink3/transform-libtool119
-rw-r--r--mk/bulk/TODO2
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk486
-rw-r--r--mk/bulk/build447
-rw-r--r--mk/bulk/build.conf-example107
-rw-r--r--mk/bulk/do-sandbox-build14
-rw-r--r--mk/bulk/do-sandbox-upload14
-rw-r--r--mk/bulk/environment.txt106
-rwxr-xr-xmk/bulk/mksandbox358
-rw-r--r--mk/bulk/parallel.txt207
-rw-r--r--mk/bulk/post-build593
-rw-r--r--mk/bulk/post-build-conf162
-rw-r--r--mk/bulk/pre-build287
-rw-r--r--mk/bulk/printdepends125
-rw-r--r--mk/bulk/printindex131
-rwxr-xr-xmk/bulk/tflat121
-rw-r--r--mk/bulk/upload208
-rw-r--r--mk/compiler.mk150
-rw-r--r--mk/compiler/ccache.mk125
-rw-r--r--mk/compiler/ccc.mk97
-rw-r--r--mk/compiler/distcc.mk126
-rw-r--r--mk/compiler/f2c.mk123
-rw-r--r--mk/compiler/gcc.mk454
-rw-r--r--mk/compiler/icc.mk90
-rw-r--r--mk/compiler/ido.mk78
-rw-r--r--mk/compiler/mipspro-ucode.mk47
-rw-r--r--mk/compiler/mipspro.mk107
-rw-r--r--mk/compiler/sunpro.mk97
-rw-r--r--mk/compiler/xlc.mk125
-rw-r--r--mk/curses.buildlink3.mk21
-rw-r--r--mk/db1.builtin.mk95
-rw-r--r--mk/defaults/mk.conf2082
-rw-r--r--mk/defaults/obsolete.mk50
-rw-r--r--mk/defaults/options.description309
-rw-r--r--mk/dirs.mk69
-rw-r--r--mk/djbware.mk91
-rw-r--r--mk/dlopen.buildlink3.mk44
-rw-r--r--mk/dlopen.builtin.mk102
-rw-r--r--mk/emacs.mk334
-rw-r--r--mk/endian.mk51
-rw-r--r--mk/fam.buildlink3.mk54
-rw-r--r--mk/find-prefix.mk32
-rw-r--r--mk/fonts.mk60
-rw-r--r--mk/ghostscript.mk105
-rwxr-xr-xmk/gnu-config/config.guess1463
-rw-r--r--mk/gnu-config/config.rpath523
-rwxr-xr-xmk/gnu-config/config.sub1555
-rw-r--r--mk/gnu-config/libtool-1.4.m4854
-rwxr-xr-xmk/gnu-config/missing339
-rw-r--r--mk/install/bsd.pkginstall.mk710
-rw-r--r--mk/install/deinstall71
-rw-r--r--mk/install/deinstall-pre18
-rw-r--r--mk/install/dirs236
-rw-r--r--mk/install/files325
-rw-r--r--mk/install/fonts47
-rw-r--r--mk/install/footer7
-rw-r--r--mk/install/header87
-rw-r--r--mk/install/install83
-rw-r--r--mk/install/install-info37
-rw-r--r--mk/install/install-post18
-rw-r--r--mk/install/perms83
-rw-r--r--mk/install/shell221
-rw-r--r--mk/install/usergroup393
-rw-r--r--mk/install/usergroupfuncs63
-rw-r--r--mk/install/usergroupfuncs.DragonFly58
-rw-r--r--mk/install/usergroupfuncs.FreeBSD58
-rw-r--r--mk/java-env.mk87
-rw-r--r--mk/java-vm.mk316
-rw-r--r--mk/krb5.buildlink3.mk60
-rw-r--r--mk/motif.buildlink3.mk102
-rw-r--r--mk/mysql.buildlink3.mk79
-rw-r--r--mk/ossaudio.buildlink3.mk84
-rw-r--r--mk/pam.buildlink3.mk89
-rw-r--r--mk/pgsql.buildlink3.mk102
-rw-r--r--mk/platform/AIX.mk94
-rw-r--r--mk/platform/AIX.pkg.dist1131
-rw-r--r--mk/platform/BSDOS.mk96
-rw-r--r--mk/platform/BSDOS.pkg.dist1131
-rw-r--r--mk/platform/Darwin.mk106
-rw-r--r--mk/platform/Darwin.pkg.dist1181
-rw-r--r--mk/platform/Darwin.x11.dist667
-rw-r--r--mk/platform/DragonFly.mk96
-rw-r--r--mk/platform/DragonFly.pkg.dist1180
-rw-r--r--mk/platform/DragonFly.x11.dist667
-rw-r--r--mk/platform/FreeBSD.mk92
-rw-r--r--mk/platform/FreeBSD.pkg.dist1180
-rw-r--r--mk/platform/FreeBSD.x11.dist667
-rw-r--r--mk/platform/IRIX.mk101
-rw-r--r--mk/platform/IRIX.pkg.dist1180
-rw-r--r--mk/platform/IRIX.x11.dist639
-rw-r--r--mk/platform/Interix.mk182
-rw-r--r--mk/platform/Interix.pkg.dist1177
-rw-r--r--mk/platform/Interix.x11.dist667
-rw-r--r--mk/platform/Linux.mk91
-rw-r--r--mk/platform/Linux.pkg.dist1181
-rw-r--r--mk/platform/Linux.x11.dist667
-rw-r--r--mk/platform/NetBSD.mk144
-rw-r--r--mk/platform/NetBSD.pkg.dist1177
-rw-r--r--mk/platform/NetBSD.x11.dist667
-rw-r--r--mk/platform/OSF1.mk80
-rw-r--r--mk/platform/OSF1.pkg.dist1180
-rw-r--r--mk/platform/OpenBSD.mk112
-rw-r--r--mk/platform/OpenBSD.pkg.dist1180
-rw-r--r--mk/platform/OpenBSD.x11.dist667
-rw-r--r--mk/platform/SunOS.mk132
-rw-r--r--mk/platform/SunOS.pkg.dist1185
-rw-r--r--mk/platform/SunOS.x11.dist667
-rw-r--r--mk/platform/UnixWare.mk96
-rw-r--r--mk/platform/UnixWare.pkg.dist1186
-rw-r--r--mk/pthread.buildlink3.mk156
-rw-r--r--mk/pthread.builtin.mk86
-rw-r--r--mk/reduce-depends.mk128
-rwxr-xr-xmk/scripts/binpkg-cache362
-rwxr-xr-xmk/scripts/chkdatabase.awk115
-rwxr-xr-xmk/scripts/genindex.awk389
-rwxr-xr-xmk/scripts/genreadme.awk867
-rwxr-xr-xmk/scripts/mkdatabase212
-rwxr-xr-xmk/scripts/mkreadme472
-rwxr-xr-xmk/scripts/print-la-libnames77
-rw-r--r--mk/scripts/shell-lib396
-rw-r--r--mk/solaris-pam.builtin.mk48
-rw-r--r--mk/subst.mk101
-rw-r--r--mk/tex.buildlink3.mk148
-rw-r--r--mk/texinfo.mk162
-rw-r--r--mk/tools/autoconf.mk218
-rw-r--r--mk/tools/automake.mk190
-rw-r--r--mk/tools/bootstrap.mk128
-rw-r--r--mk/tools/bsd.tools.mk218
-rw-r--r--mk/tools/defaults.mk200
-rw-r--r--mk/tools/imake.mk80
-rw-r--r--mk/tools/ldconfig.mk55
-rw-r--r--mk/tools/make.mk61
-rw-r--r--mk/tools/perl.mk63
-rw-r--r--mk/tools/pkg-config.mk62
-rw-r--r--mk/tools/replace.mk985
-rw-r--r--mk/tools/rpcgen.mk62
-rw-r--r--mk/tools/strip.mk52
-rw-r--r--mk/tools/texinfo.mk59
-rw-r--r--mk/tools/tools.AIX.mk57
-rw-r--r--mk/tools/tools.BSDOS.mk83
-rw-r--r--mk/tools/tools.Darwin.mk77
-rw-r--r--mk/tools/tools.DragonFly.mk74
-rw-r--r--mk/tools/tools.FreeBSD.mk75
-rw-r--r--mk/tools/tools.IRIX.mk66
-rw-r--r--mk/tools/tools.Interix.mk57
-rw-r--r--mk/tools/tools.Linux.mk157
-rw-r--r--mk/tools/tools.NetBSD.mk86
-rw-r--r--mk/tools/tools.OSF1.mk56
-rw-r--r--mk/tools/tools.OpenBSD.mk83
-rw-r--r--mk/tools/tools.SunOS.mk86
-rw-r--r--mk/tools/tools.UnixWare.mk53
-rw-r--r--mk/unprivileged.mk59
-rw-r--r--mk/wrapper/NOTES31
-rw-r--r--mk/wrapper/arg-pp-darwin-gcc76
-rw-r--r--mk/wrapper/arg-pp-main170
-rw-r--r--mk/wrapper/arg-pp-mipspro-cc48
-rw-r--r--mk/wrapper/arg-pp-sunpro-cxx59
-rw-r--r--mk/wrapper/arg-source140
-rw-r--r--mk/wrapper/bsd.wrapper.mk775
-rw-r--r--mk/wrapper/buildcmd75
-rw-r--r--mk/wrapper/cache-footer38
-rw-r--r--mk/wrapper/cache-header37
-rw-r--r--mk/wrapper/cmd-sink42
-rw-r--r--mk/wrapper/cmd-sink-aix-cc87
-rw-r--r--mk/wrapper/cmd-sink-aix-ld87
-rw-r--r--mk/wrapper/cmd-sink-aix-xlc74
-rw-r--r--mk/wrapper/cmd-sink-darwin-xlc59
-rw-r--r--mk/wrapper/cmd-sink-icc-cc59
-rw-r--r--mk/wrapper/cmd-sink-icc81-cc64
-rw-r--r--mk/wrapper/cmd-sink-interix-gcc50
-rw-r--r--mk/wrapper/cmd-sink-interix-ld50
-rw-r--r--mk/wrapper/cmd-sink-ld76
-rw-r--r--mk/wrapper/cmd-sink-osf1-cc47
-rw-r--r--mk/wrapper/cmd-sink-osf1-ld54
-rw-r--r--mk/wrapper/cmd-sink-solaris-imake46
-rw-r--r--mk/wrapper/cmd-sink-sunpro-cxx61
-rw-r--r--mk/wrapper/cmd-sink-unixware-gcc72
-rw-r--r--mk/wrapper/gen-reorder.sh142
-rw-r--r--mk/wrapper/gen-transform.sh451
-rw-r--r--mk/wrapper/logic173
-rw-r--r--mk/wrapper/scan44
-rw-r--r--mk/wrapper/transform-aix-cc52
-rw-r--r--mk/wrapper/transform-ccc-cc32
-rw-r--r--mk/wrapper/transform-icc-cc68
-rw-r--r--mk/wrapper/transform-ido-cc142
-rw-r--r--mk/wrapper/transform-mipspro-cc78
-rw-r--r--mk/wrapper/transform-mipspro-ucode-cc84
-rw-r--r--mk/wrapper/transform-solaris-gcc42
-rw-r--r--mk/wrapper/transform-sunpro-cc164
-rw-r--r--mk/wrapper/transform-xlc-cc75
-rw-r--r--mk/wrapper/wrapper-defs.mk46
-rw-r--r--mk/wrapper/wrapper.sh119
-rw-r--r--mk/x11.buildlink3.mk26
-rw-r--r--mk/x11.builtin.mk8
-rw-r--r--mk/x11.version.mk35
-rw-r--r--mk/xaw.buildlink3.mk27
225 files changed, 0 insertions, 61344 deletions
diff --git a/mk/alternatives.mk b/mk/alternatives.mk
deleted file mode 100644
index 19ca4982463..00000000000
--- a/mk/alternatives.mk
+++ /dev/null
@@ -1,58 +0,0 @@
-# $NetBSD: alternatives.mk,v 1.4 2005/01/25 16:48:53 jmmv Exp $
-#
-# This Makefile fragment handles the alternatives system, registering a
-# package in the database.
-#
-# The ALTERNATIVES_SRC variable contains the path to a file listing the
-# alternatives provided by the package. It defaults to the ALTERNATIVES
-# file in the current directory if found. If this variable is empty, no
-# actions are taken by this file.
-#
-
-.if !defined(ALTERNATIVES_MK)
-ALTERNATIVES_MK= # defined
-
-.if !defined(ALTERNATIVES_SRC)
-. if exists(${.CURDIR}/ALTERNATIVES)
-ALTERNATIVES_SRC?= ${.CURDIR}/ALTERNATIVES
-. else
-ALTERNATIVES_SRC?=
-. endif
-.endif
-
-.if !empty(ALTERNATIVES_SRC)
-
-${WRKDIR}/.altinstall: ${ALTERNATIVES_SRC}
- @{ ${ECHO} 'if ${TEST} $${STAGE} = "POST-INSTALL"; then'; \
- ${ECHO} '${CAT} >./+ALTERNATIVES <<EOF'; \
- ${SED} ${FILES_SUBST_SED} <${ALTERNATIVES_SRC}; \
- ${ECHO} 'EOF'; \
- ${ECHO} 'if ${TEST} -x ${PKG_ALTERNATIVES}; then'; \
- ${ECHO} '${PKG_ALTERNATIVES} -gs register ./+ALTERNATIVES'; \
- ${ECHO} 'fi'; \
- ${ECHO} 'fi'; \
- } >${WRKDIR}/.altinstall
-
-${WRKDIR}/.altdeinstall: ${ALTERNATIVES_SRC}
- @{ ${ECHO} 'if ${TEST} $${STAGE} = "DEINSTALL"; then'; \
- ${ECHO} 'if ${TEST} -x ${PKG_ALTERNATIVES}; then'; \
- ${ECHO} '${PKG_ALTERNATIVES} -gs unregister ./+ALTERNATIVES'; \
- ${ECHO} 'fi'; \
- ${ECHO} '${RM} -f ./+ALTERNATIVES'; \
- ${ECHO} 'fi'; \
- } >${WRKDIR}/.altdeinstall
-
-PRINT_PLIST_AWK+= /^libdata\/alternatives\// { next; }
-PRINT_PLIST_AWK+= /^@dirrm libdata\/alternatives/ { next; }
-
-EVAL_PREFIX+= PREFIX.pkg_alternatives=pkg_alternatives
-PREFIX.alternatives_DEFAULT= ${LOCALBASE}
-PKG_ALTERNATIVES= ${PREFIX.pkg_alternatives}/sbin/pkg_alternatives
-
-INSTALL_EXTRA_TMPL+= ${WRKDIR}/.altinstall
-DEINSTALL_EXTRA_TMPL+= ${WRKDIR}/.altdeinstall
-USE_PKGINSTALL= YES
-
-.endif
-
-.endif # ALTERNATIVES_MK
diff --git a/mk/apache.mk b/mk/apache.mk
deleted file mode 100644
index 821788503c3..00000000000
--- a/mk/apache.mk
+++ /dev/null
@@ -1,146 +0,0 @@
-# $NetBSD: apache.mk,v 1.9 2005/04/21 23:05:41 sketch Exp $
-#
-# This Makefile fragment handles Apache dependencies and make variables,
-# and is meant to be included by packages that require Apache either at
-# build-time or at run-time. apache.mk will:
-#
-# * set PKG_APACHE to the name of the apache web server used
-#
-# * add a full dependency on the apache server
-#
-# * optionally add a full dependency on apr
-#
-# The available user variables are:
-#
-# PKG_APACHE_DEFAULT is a user-settable variable whose value is the default
-# apache server to use. Possible values are apache13 and apache2.
-# If there is already a version of apache installed this will have no
-# effect.
-#
-# The available makefile variables are:
-#
-# PKG_APACHE_ACCEPTED is a package-settable list of servers that may be used as
-# possible dependencies for the package. Possible values are the same as
-# for PKG_APACHE_DEFAULT.
-#
-# USE_APR is used to note that the package requires the Apache Portable
-# runtime to build and execute. This is only takes effect if apache2
-# is chosen (by this file) as the web server to use. This adds a full
-# dependency on apr.
-#
-
-.if !defined(APACHE_MK)
-APACHE_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-PKG_APACHE_DEFAULT?= # empty
-
-_PKG_APACHES?= apache13 apache2
-
-.if defined(PKG_APACHE_ACCEPTED)
-. for _ap_ in ${PKG_APACHE_ACCEPTED}
-. if !empty(_PKG_APACHES:M${_ap_})
-_PKG_APACHE_ACCEPTED+= ${PKG_APACHE_ACCEPTED:M${_ap_}}
-. endif
-. endfor
-.endif
-
-_PKG_APACHE_ACCEPTED?= ${_PKG_APACHES}
-
-# Set the default apache for this platform.
-#
-.if !empty(PKG_APACHE_DEFAULT)
-_PKG_APACHE_DEFAULT= ${PKG_APACHE_DEFAULT}
-.endif
-.if !defined(_PKG_APACHE_DEFAULT)
-_PKG_APACHE_DEFAULT?= apache13
-.endif
-
-_APACHE_PKGBASE.apache13= apache-1\*
-_APACHE_PKGBASE.apache2= apache-2\*
-
-# Mark the acceptable apaches and check which apache packages are installed.
-.for _ap_ in ${_PKG_APACHE_ACCEPTED}
-_PKG_APACHE_OK.${_ap_}= yes
-_PKG_APACHE_INSTALLED.${_ap_}!= \
- if ${PKG_INFO} -qe ${_APACHE_PKGBASE.${_ap_}}; then \
- ${ECHO} yes; \
- else \
- ${ECHO} no; \
- fi
-.endfor
-
-# Use one of the installed apaches,...
-#
-.if !defined(_PKG_APACHE)
-. for _ap_ in ${_PKG_APACHE_ACCEPTED}
-. if !empty(_PKG_APACHE_INSTALLED.${_ap_}:M[yY][eE][sS])
-_PKG_APACHE?= ${_ap_}
-. else
-_PKG_APACHE_FIRSTACCEPTED?= ${_ap_}
-. endif
-. endfor
-.endif
-#
-# ...otherwise, prefer the default one if it's accepted,...
-#
-.if !defined(_PKG_APACHE)
-. if defined(_PKG_APACHE_OK.${_PKG_APACHE_DEFAULT}) && \
- !empty(_PKG_APACHE_OK.${_PKG_APACHE_DEFAULT}:M[yY][eE][sS])
-_PKG_APACHE= ${_PKG_APACHE_DEFAULT}
-. endif
-.endif
-#
-# ...otherwise, just use the first accepted apache.
-#
-.if !defined(_PKG_APACHE)
-. if defined(_PKG_APACHE_FIRSTACCEPTED)
-_PKG_APACHE= ${_PKG_APACHE_FIRSTACCEPTED}
-. endif
-.endif
-#
-# If there are no acceptable apaches, then generate an error.
-#
-.if !defined(_PKG_APACHE)
-# force an error
-PKG_FAIL_REASON= "no acceptable apache found"
-_PKG_APACHE= "none"
-.endif
-
-BUILDLINK_DEPENDS.apache13?= apache-1.3*
-BUILDLINK_DEPENDS.apache2?= apache-2*
-
-.if ${_PKG_APACHE} == "apache13"
-_APACHE_PKGSRCDIR= ../../www/apache
-.elif ${_PKG_APACHE} == "apache2"
-_APACHE_PKGSRCDIR= ../../www/apache2
-_APACHE_BL_SRCDIR= ${_APACHE_PKGSRCDIR}
-.endif
-
-_APACHE_BL_SRCDIR?= ../../www/apache
-
-# Add a runtime dependency on the apache server.
-# This may or may not create an actual dependency depending on
-# what the apache buildlink[23].mk file does.
-#
-.if defined(_APACHE_PKGSRCDIR)
-. include "${_APACHE_BL_SRCDIR}/buildlink3.mk"
-.endif
-
-# If we are building apache modules, then we might need a build-time
-# dependency on apr, and the apache sources?
-#
-.if ${_PKG_APACHE} == "apache2"
-. if defined(USE_APR) && !empty(USE_APR:M[yY][eE][sS])
-. include "../../devel/apr/buildlink3.mk"
-. endif
-.endif
-
-# PKG_APACHE is a publicly readable variable containing the name of the server
-# we will be using.
-#
-PKG_APACHE:= ${_PKG_APACHE}
-BUILD_DEFS+= PKG_APACHE
-
-.endif # APACHE_MK
diff --git a/mk/bdb.buildlink3.mk b/mk/bdb.buildlink3.mk
deleted file mode 100644
index 88e531dff93..00000000000
--- a/mk/bdb.buildlink3.mk
+++ /dev/null
@@ -1,106 +0,0 @@
-# $NetBSD: bdb.buildlink3.mk,v 1.14 2005/07/21 02:54:51 jlam Exp $
-#
-# This Makefile fragment is meant to be included by packages that
-# require a Berkeley DB implementation. bdb.buildlink3.mk will:
-#
-# * set BDBBASE to the base directory of the Berkeley DB files;
-# * set BDB_LIBS to the library option needed to link against
-# the Berkeley DB library;
-# * set BDB_TYPE to the Berkeley DB implementation used.
-#
-# There are two variables that can be used to tweak the selection of
-# the Berkeley DB implementation:
-#
-# BDB_DEFAULT is a user-settable variable whose value represents the
-# package we use when either a db-1.85 interface isn't required,
-# or a db-1.85 interface is required, but it's not built-in.
-#
-# BDB185_DEFAULT is a user-settable variable whose value represents the
-# package we use when a db-1.85 interface is required. It defaults
-# to "db1" if it's built-in, or to ${BDB_DEFAULT} otherwise.
-#
-# BDB_ACCEPTED is a package-settable list of Berkeley DB implementations
-# that may be used by the package.
-#
-# Note for when databases/db1 is imported:
-# (1) Remove the section that conditionally sets the default
-# value for BDB185_DEFAULT and always set it to be "db1".
-# (2) Remove the special case for ${BDB_TYPE} == "db1" at the end.
-# (3) Move mk/db1.builtin.mk to databases/db1/builtin.mk.
-
-BDB_BUILDLINK3_MK:= ${BDB_BUILDLINK3_MK}+
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(BDB_BUILDLINK3_MK:M+)
-
-# If we've specified a list of acceptable Berkeley DB packages and it
-# doesn't include db1, then don't set USE_DB185 to yes. The package's
-# configure process should know how to probe for the libraries and
-# headers on its own.
-#
-. if defined(BDB_ACCEPTED) && empty(BDB_ACCEPTED:Mdb1)
-USE_DB185?= no
-. else
-USE_DB185?= yes
-. endif
-
-# _BDB_PKGS is an exhaustive list of all of the Berkeley DB
-# implementations that may be used with bdb.buildlink3.mk.
-#
-_BDB_PKGS?= db1 db2 db3 db4
-
-BDB_DEFAULT?= db4
-BDB_ACCEPTED?= ${_BDB_PKGS}
-
-CHECK_BUILTIN.db1:= yes
-. include "../../mk/db1.builtin.mk"
-CHECK_BUILTIN.db1:= no
-. if defined(IS_BUILTIN.db1) && !empty(IS_BUILTIN.db1:M[yY][eE][sS])
-BDB185_DEFAULT?= db1
-. else
-BDB185_DEFAULT?= ${BDB_DEFAULT}
-. endif
-
-_BDB_PKGSRCDIR.db2= ../../databases/db
-. for _bdb_ in ${_BDB_PKGS}
-_BDB_PKGSRCDIR.${_bdb_}?= ../../databases/${_bdb_}
-. endfor
-
-_BDB_DEFAULT= ${BDB_DEFAULT}
-_BDB185_DEFAULT= ${BDB185_DEFAULT}
-_BDB_ACCEPTED= ${BDB_ACCEPTED}
-
-. if !defined(_BDB_TYPE)
-. if !empty(USE_DB185:M[yY][eE][sS])
-_BDB_TYPE= ${_BDB185_DEFAULT}
-. else
-_BDB_TYPE= ${_BDB_DEFAULT}
-. endif
-. endif
-
-. if !empty(_BDB_ACCEPTED:M${_BDB_TYPE})
-BDB_TYPE= ${_BDB_TYPE}
-. else
-BDB_TYPE= none
-. endif
-
-# Define some public variables to refer to package-specific variables.
-BDBBASE= ${BUILDLINK_PREFIX.${BDB_TYPE}}
-BDB_LIBS= ${BUILDLINK_LDADD.${BDB_TYPE}}
-
-BUILD_DEFS+= BDB_TYPE
-BUILD_DEFS+= BDBBASE
-
-.endif # BDB_BUILDLINK3_MK
-
-.if ${BDB_TYPE} == "none"
-PKG_FAIL_REASON= \
- "${_BDB_TYPE} is not an acceptable Berkeley DB type for ${PKGNAME}."
-.elif ${BDB_TYPE} == "db1"
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndb1}
-BUILDLINK_PACKAGES+= db1
-BUILDLINK_BUILTIN_MK.db1= ../../mk/db1.builtin.mk
-.else
-. include "${_BDB_PKGSRCDIR.${BDB_TYPE}}/buildlink3.mk"
-.endif
diff --git a/mk/bsd.hacks.mk b/mk/bsd.hacks.mk
deleted file mode 100644
index 36c00cd5033..00000000000
--- a/mk/bsd.hacks.mk
+++ /dev/null
@@ -1,69 +0,0 @@
-# $NetBSD: bsd.hacks.mk,v 1.2 2004/11/30 15:09:45 tv Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# This Makefile fragment automatically includes the necessary hacks to
-# make the package build correctly by including the package's hacks.mk
-# file if it exists.
-#
-# An example package hacks.mk:
-#
-# -------------8<-------------8<-------------8<-------------8<-------------
-# .if !defined(FOO_HACKS_MK)
-# FOO_HACKS_MK= defined
-#
-# ### [Sun Nov 14 02:08:31 EST 2004 : jlam]
-# ### arm GCC 2.95.x optimisation bug tickled when compiling
-# ### lib/funkyfile.c. Require a more recent version of GCC as a
-# ### workaround and patch lib/funkyfile.c (patch-ae).
-# ###
-# .if !empty(MACHINE_ARCH:Marm*)
-# PKG_HACKS+= optimisation
-# GCC_REQD+= 3.0
-# .endif
-#
-# .endif # FOO_HACKS_MK
-# -------------8<-------------8<-------------8<-------------8<-------------
-
-PKG_HACKS?= # empty
-
-.if exists(${PKGDIR}/hacks.mk)
-. include "${PKGDIR}/hacks.mk"
-.endif
-
-# Record any package hacks that we use in the installed package.
-.if !empty(PKG_HACKS)
-BUILD_DEFS+= PKG_HACKS
-.endif
diff --git a/mk/bsd.makevars.mk b/mk/bsd.makevars.mk
deleted file mode 100644
index 4d92635bdb3..00000000000
--- a/mk/bsd.makevars.mk
+++ /dev/null
@@ -1,43 +0,0 @@
-# $NetBSD: bsd.makevars.mk,v 1.3 2005/06/05 04:35:45 rillig Exp $
-#
-# This Makefile fragment is included by bsd.prefs.mk to set all of
-# the variables saved through MAKEVARS. Typical usage is:
-#
-# .include "../../mk/bsd.prefs.mk"
-#
-# .if !defined(EXPENSIVE_VAR)
-# EXPENSIVE_VAR!= ( ... an expensive computation ... )
-# .endif
-# MAKEVARS+= EXPENSIVE_VAR
-#
-# This causes EXPENSIVE_VAR to be computed, then subsequently stored in
-# the variable cache file. The next time through, EXPENSIVE_VAR is
-# set by bsd.makevars.mk, which avoids running the expensive computation
-# again.
-#
-# The cache files are created as we pass through each phase of the build,
-# and we only include the latest cache file that was created.
-#
-
-.if !defined(_REV_ALL_PHASES)
-_REV_ALL_PHASES= # empty
-. for _phase_ in ${ALL_PHASES}
-_REV_ALL_PHASES:= ${_phase_} ${_REV_ALL_PHASES}
-. endfor
-.endif
-MAKEVARS+= _REV_ALL_PHASES
-
-# Try including the *.makevars.mk files in reverse order so that the
-# latest file is included and no more. We check for _MAKEVARS_MK since
-# all of the *.makevars.mk files define this symbol at the top of the
-# file.
-#
-.for _phase_ in ${_REV_ALL_PHASES}
-_MAKEVARS_MK.${_phase_}= ${WRKDIR}/.${_phase_}_makevars.mk
-. if !target(${_phase_}-vars)
-${_phase_}-vars: ${_MAKEVARS_MK.${_phase_}}
-. endif
-. if !defined(_MAKEVARS_MK)
-. sinclude "${_MAKEVARS_MK.${_phase_}}"
-. endif
-.endfor
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk
deleted file mode 100644
index 699facbd5b4..00000000000
--- a/mk/bsd.options.mk
+++ /dev/null
@@ -1,417 +0,0 @@
-# $NetBSD: bsd.options.mk,v 1.49 2005/09/05 15:24:08 dillo Exp $
-#
-# This Makefile fragment provides boilerplate code for standard naming
-# conventions for handling per-package build options.
-#
-# Before including this file, the following variables can be defined:
-#
-# PKG_SUPPORTED_OPTIONS
-# This is a list of build options supported by the package.
-# This variable should be set in a package Makefile. E.g.,
-#
-# PKG_SUPPORTED_OPTIONS= kerberos ldap ssl
-#
-# PKG_OPTIONS_VAR (must be defined)
-# The variable the user can set to enable or disable
-# options specifically for this package.
-#
-# PKG_OPTIONS_OPTIONAL_GROUPS
-# This is a list of names of groups of mutually exclusive
-# options. The options in each group are listed in
-# PKG_OPTIONS_GROUP.<groupname>. The most specific
-# setting of any option from the group takes precedence
-# over all other options in the group. Options from
-# the groups will be automatically added to
-# PKG_SUPPORTED_OPTIONS.
-#
-# PKG_OPTIONS_REQUIRED_GROUPS
-# Like PKG_OPTIONS_OPTIONAL_GROUPS, but building
-# the packages will fail if no option from the group
-# is selected.
-#
-# PKG_OPTIONS_NONEMPTY_SETS
-# This is a list of names of sets of options. At
-# least one option from each set must be selected.
-# The options in each set are listed in
-# PKG_OPTIONS_SET.<setname>. Options from the sets
-# will be automatically added to PKG_SUPPORTED_OPTIONS.
-#
-# PKG_SUGGESTED_OPTIONS (defaults to empty)
-# This is a list of build options which are enabled by default.
-#
-# PKG_OPTIONS_LEGACY_VARS
-# This is a list of USE_VARIABLE:option pairs that
-# map legacy /etc/mk.conf variables to their option
-# counterparts.
-#
-# PKG_OPTIONS_LEGACY_OPTS
-# This is a list of old-option:new-option pairs that
-# map options that have been renamed to their new
-# counterparts.
-#
-# PKG_LEGACY_OPTIONS
-# A list of options implied by deprecated variables
-# used. This can be used for cases that neither
-# PKG_OPTIONS_LEGACY_VARS nor PKG_OPTIONS_LEGACY_OPTS
-# can handle, e. g. when PKG_OPTIONS_VAR is renamed.
-#
-# PKG_OPTIONS_DEPRECATED_WARNINGS
-# A list of warnings about deprecated variables or
-# options used, and what to use instead.
-#
-# If none of PKG_SUPPORTED_OPTIONS, PKG_OPTIONS_OPTIONAL_GROUPS,
-# PKG_OPTIONS_REQUIRED_GROUPS, and PKG_OPTIONS_NONEMPTY_SETS are
-# defined, PKG_OPTIONS is set to the empty list and the package
-# is otherwise treated as not using the options framework.
-#
-#
-# Optionally, the user may define the following variables in /etc/mk.conf:
-#
-# PKG_DEFAULT_OPTIONS
-# This variable can be used to override default
-# options for every package. Options listed in this
-# variable will be enabled in every package that
-# supports them. If you prefix an option with `-',
-# it will be disabled in every package.
-#
-# ${PKG_OPTIONS_VAR}
-# This variable can be used to override default
-# options and options listed in PKG_DEFAULT_OPTIONS.
-# The syntax is the same as PKG_DEFAULT_OPTIONS.
-#
-# After including this file, the following variables are defined:
-#
-# PKG_OPTIONS
-# This is the list of the selected build options, properly
-# filtered to remove unsupported and duplicate options.
-#
-# Example usage:
-#
-# -------------8<-------------8<-------------8<-------------8<-------------
-# PKG_OPTIONS_VAR= PKG_OPTIONS.wibble
-# PKG_SUPPORTED_OPTIONS= wibble-foo ldap sasl
-# PKG_OPTIONS_OPTIONAL_GROUPS= database
-# PKG_OPTIONS_GROUP.database= mysql pgsql
-# PKG_SUGGESTED_OPTIONS= wibble-foo
-# PKG_OPTIONS_LEGACY_VARS+= WIBBLE_USE_OPENLDAP:ldap
-# PKG_OPTIONS_LEGACY_VARS+= WIBBLE_USE_SASL2:sasl
-# PKG_OPTIONS_LEGACY_OPTS+= foo:wibble-foo
-#
-# # this package was previously named wibble2
-# .include "../../mk/bsd.prefs.mk"
-#
-# .if defined(PKG_OPTIONS.wibble2)
-# PKG_LEGACY_OPTIONS+= ${PKG_OPTIONS.wibble2}
-# PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable PKG_OPTIONS.wibble2 used, use "${PKG_OPTIONS_VAR:Q}" instead."
-# .endif
-#
-# .include "../../mk/bsd.options.mk"
-#
-# # Package-specific option-handling
-#
-# ###
-# ### FOO support
-# ###
-# .if !empty(PKG_OPTIONS:Mwibble-foo)
-# CONFIGURE_ARGS+= --enable-foo
-# .endif
-
-# ###
-# ### LDAP support
-# ###
-# .if !empty(PKG_OPTIONS:Mldap)
-# . include "../../databases/openldap/buildlink3.mk"
-# CONFIGURE_ARGS+= --enable-ldap=${BUILDLINK_PREFIX.openldap}
-# .endif
-#
-# ###
-# ### SASL authentication
-# ###
-# .if !empty(PKG_OPTIONS:Msasl)
-# . include "../../security/cyrus-sasl2/buildlink3.mk"
-# CONFIGURE_ARGS+= --enable-sasl=${BUILDLINK_PREFIX.sasl}
-# .endif
-#
-# ###
-# ### database support
-# ###
-# .if !empty(PKG_OPTIONS:Mmysql)
-# . include "../../mk/mysql.buildlink3.mk"
-# .endif
-# .if !empty(PKG_OPTIONS:Mpgsql)
-# . include "../../mk/pgsql.buildlink3.mk"
-# .endif
-# -------------8<-------------8<-------------8<-------------8<-------------
-
-.include "../../mk/bsd.prefs.mk"
-
-# Define PKG_OPTIONS, no matter if we have an error or not, to suppress
-# further make(1) warnings.
-PKG_OPTIONS= # empty
-
-# Check for variable definitions required before including this file.
-.if !defined(PKG_OPTIONS_VAR)
-PKG_FAIL_REASON+= "bsd.options.mk: PKG_OPTIONS_VAR is not defined."
-.elif !defined(PKG_SUPPORTED_OPTIONS) && !defined(PKG_OPTIONS_OPTIONAL_GROUPS) && !defined(PKG_OPTIONS_REQUIRED_GROUPS) && !defined(PKG_OPTIONS_NONEMPTY_SETS)
-# no supported options: set PKG_OPTIONS to empty and skip rest of file
-PKG_OPTIONS= #empty
-.else # process the rest of the file
-
-#
-# create map of option to group and add group options to PKG_SUPPORTED_OPTIONS
-#
-.for _grp_ in ${PKG_OPTIONS_OPTIONAL_GROUPS} ${PKG_OPTIONS_REQUIRED_GROUPS}
-_PKG_OPTIONS_GROUP_STACK.${_grp_}:=#empty
-.if !defined(PKG_OPTIONS_GROUP.${_grp_}) || empty(PKG_OPTIONS_GROUP.${_grp_})
-PKG_FAIL_REASON:="bsd.options.mk: PKG_OPTIONS_GROUP."${_grp_:Q}" must be non-empty."
-.endif
-. for _opt_ in ${PKG_OPTIONS_GROUP.${_grp_}}
-PKG_SUPPORTED_OPTIONS+= ${_opt_}
-_PKG_OPTIONS_GROUP_MAP.${_opt_}=${_grp_}
-. endfor
-.endfor
-
-#
-# add options from sets to PKG_SUPPORTED_OPTIONS
-#
-_PKG_OPTIONS_ALL_SETS:=#empty
-.for _set_ in ${PKG_OPTIONS_NONEMPTY_SETS}
-. if !defined(PKG_OPTIONS_SET.${_set_}) || empty(PKG_OPTIONS_SET.${_set_})
-PKG_FAIL_REASON:="bsd.options.mk: PKG_OPTIONS_SET."${_set_:Q}" must be non-empty."
-. endif
-. for _opt_ in ${PKG_OPTIONS_SET.${_set_}}
-PKG_SUPPORTED_OPTIONS+= ${_opt_}
-_PKG_OPTIONS_ALL_SETS+= ${_opt_}
-. endfor
-.endfor
-
-#
-# include deprecated variable to options mapping
-#
-.include "${.CURDIR}/../../mk/defaults/obsolete.mk"
-
-#
-# place options implied by legacy variables in PKG_LEGACY_OPTIONS
-#
-.for _m_ in ${PKG_OPTIONS_LEGACY_VARS}
-_var_:= ${_m_:C/:.*//}
-_opt_:= ${_m_:C/.*://}
-_popt_:=${_opt_:C/^-//}
-. if !empty(PKG_SUPPORTED_OPTIONS:M${_popt_})
-. if defined(${_var_})
-. if empty(${_var_}:M[nN][oO])
-PKG_LEGACY_OPTIONS:=${PKG_LEGACY_OPTIONS} ${_opt_}
-PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated variable "${_var_:Q}" set to "${${_var_}:Q}", use PKG_DEFAULT_OPTIONS+="${_opt_:Q}" instead."
-. elif empty(_opt_:M-*)
-PKG_LEGACY_OPTIONS:=${PKG_LEGACY_OPTIONS} -${_popt_}
-PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated variable "${_var_:Q}" set to "${${_var_}:Q}", use PKG_DEFAULT_OPTIONS+=-"${_popt_:Q}" instead."
-. else
-PKG_LEGACY_OPTIONS:=${PKG_LEGACY_OPTIONS} ${_popt_}
-PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated variable "${_var_:Q}" set to "${${_var_}:Q}", use PKG_DEFAULT_OPTIONS+="${_popt_:Q}" instead."
-. endif
-. endif
-. endif
-.endfor
-.undef _var_
-.undef _opt_
-.undef _popt_
-
-#
-# create map of old option name to new option name for legacy options
-#
-.for _m_ in ${PKG_OPTIONS_LEGACY_OPTS}
-_old_:= ${_m_:C/:.*//}
-_new_:= ${_m_:C/.*://}
-. if !empty(PKG_SUPPORTED_OPTIONS:M${_new_})
-_PKG_LEGACY_OPTMAP.${_old_}:=${_new_}
-. endif
-.endfor
-.undef _old_
-.undef _new_
-
-#
-# filter unsupported options from PKG_DEFAULT_OPTIONS
-#
-_OPTIONS_DEFAULT_SUPPORTED:= #empty
-.for _o_ in ${PKG_DEFAULT_OPTIONS}
-_opt_:= ${_o_}
-_popt_:= ${_opt_:C/^-//}
-.if !empty(PKG_SUPPORTED_OPTIONS:M${_popt_}) \
- || defined(_PKG_LEGACY_OPTMAP.${_popt_})
-_OPTIONS_DEFAULT_SUPPORTED:=${_OPTIONS_DEFAULT_SUPPORTED} ${_opt_}
-.endif
-.endfor
-.undef _opt_
-.undef _popt_
-
-#
-# process options from generic to specific
-#
-PKG_OPTIONS:= # empty
-_OPTIONS_UNSUPPORTED:= #empty
-.for _o_ in ${PKG_SUGGESTED_OPTIONS} ${PKG_LEGACY_OPTIONS} \
- ${_OPTIONS_DEFAULT_SUPPORTED} ${${PKG_OPTIONS_VAR}}
-_opt_:= ${_o_}
-_popt_:= ${_o_:C/^-//} # positive option
-. if defined(_PKG_LEGACY_OPTMAP.${_popt_})
-PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated option "${_popt_:Q}" used, use option "${_PKG_LEGACY_OPTMAP.${_popt_}:Q}" instead."
-_popt_:= ${_PKG_LEGACY_OPTMAP.${_popt_}}
-. if empty(_opt_:M-*)
-_opt_:= ${_popt_}
-. else
-_opt_:= -${_popt_}
-. endif
-. endif
-. if empty(PKG_SUPPORTED_OPTIONS:M${_popt_})
-_OPTIONS_UNSUPPORTED:=${_OPTIONS_UNSUPPORTED} ${_opt_}
-. else
-. if defined(_PKG_OPTIONS_GROUP_MAP.${_popt_})
-_grp_:= ${_PKG_OPTIONS_GROUP_MAP.${_popt_}}
-_stk_:= _PKG_OPTIONS_GROUP_STACK.${_grp_}
-_cnt_:= ${${_stk_}}
-. if !empty(_opt_:M-*)
-${_stk_}:= ${_cnt_:N${_popt_}}
-. else
-${_stk_}:= ${_cnt_} ${_popt_}
-. endif
-. else
-. if !empty(_opt_:M-*)
-PKG_OPTIONS:= ${PKG_OPTIONS:N${_popt_}}
-. else
-PKG_OPTIONS:= ${PKG_OPTIONS} ${_popt_}
-. endif
-. endif
-. endif
-.endfor
-.undef _opt_
-.undef _popt_
-.undef _stk_
-
-.for _grp_ in ${PKG_OPTIONS_REQUIRED_GROUPS}
-. if empty(_PKG_OPTIONS_GROUP_STACK.${_grp_})
-PKG_FAIL_REASON:="One of the following options must be selected: "${PKG_OPTIONS_GROUP.${_grp_}:O:u:Q}
-. endif
-.endfor
-
-.for _grp_ in ${PKG_OPTIONS_REQUIRED_GROUPS} ${PKG_OPTIONS_OPTIONAL_GROUPS}
-.undef _opt_
-. for _o_ in ${_PKG_OPTIONS_GROUP_STACK.${_grp_}}
-_opt_:= ${_o_}
-. endfor
-. if defined(_opt_)
-PKG_OPTIONS:= ${PKG_OPTIONS} ${_opt_}
-. endif
-.endfor
-.undef _opt_
-
-.for _set_ in ${PKG_OPTIONS_NONEMPTY_SETS}
-_ISEMPTY:=true
-. for _opt_ in ${PKG_OPTIONS_SET.${_set_}}
-. if !empty(PKG_OPTIONS:M${_opt_})
-_ISEMPTY:=false
-. endif
-. endfor
-. if ${_ISEMPTY} == "true"
-PKG_FAIL_REASON:="At least one of the following options must be selected: "${PKG_OPTIONS_SET.${_set_}:O:u:Q}
-. endif
-.endfor
-.undef _ISEMPTY
-
-.if !empty(_OPTIONS_UNSUPPORTED)
-PKG_FAIL_REASON:= "The following selected options are not supported: "${_OPTIONS_UNSUPPORTED:O:u:Q}"."
-.endif
-
-.undef _OPTIONS_UNSUPPORTED
-.undef _OPTIONS_DEFAULT_SUPPORTED
-PKG_OPTIONS:= ${PKG_OPTIONS:O:u}
-
-_PKG_OPTIONS_WORDWRAP_FILTER= \
- ${AWK} ' \
- BEGIN { printwidth = 40; line = "" } \
- { \
- if (length(line) > 0) \
- line = line" "$$0; \
- else \
- line = $$0; \
- if (length(line) > 40) { \
- print " "line; \
- line = ""; \
- } \
- } \
- END { if (length(line) > 0) print " "line } \
- '
-
-.PHONY: show-options
-show-options:
- @${ECHO} Any of the following general options may be selected:
-.for _opt_ in ${PKG_SUPPORTED_OPTIONS:O}
-. if !defined(_PKG_OPTIONS_GROUP_MAP.${_opt_}) && empty(_PKG_OPTIONS_ALL_SETS:M${_opt_})
- @${ECHO} " "${_opt_:Q}" "`${SED} -n "s/^"${_opt_:Q}" //p" ../../mk/defaults/options.description`
-. endif
-.endfor
-.for _grp_ in ${PKG_OPTIONS_REQUIRED_GROUPS}
- @${ECHO} "Exactly one of the following "${_grp_:Q}" options is required:"
-. for _opt_ in ${PKG_OPTIONS_GROUP.${_grp_}:O}
- @${ECHO} " "${_opt_:Q}" "`${SED} -n "s/^"${_opt_:Q}" //p" ../../mk/defaults/options.description`
-. endfor
-.endfor
-.for _grp_ in ${PKG_OPTIONS_OPTIONAL_GROUPS}
- @${ECHO} "At most one of the following "${_grp_:Q}" options may be selected:"
-. for _opt_ in ${PKG_OPTIONS_GROUP.${_grp_}:O}
- @${ECHO} " "${_opt_:Q}" "`${SED} -n "s/^"${_opt_:Q}" //p" ../../mk/defaults/options.description`
-. endfor
-.endfor
-.for _set_ in ${PKG_OPTIONS_NONEMPTY_SETS}
- @${ECHO} "At least one of the following "${_set_:Q}" options must be selected:"
-. for _opt_ in ${PKG_OPTIONS_SET.${_set_}:O}
- @${ECHO} " "${_opt_:Q}" "`${SED} -n "s/^"${_opt_:Q}" //p" ../../mk/defaults/options.description`
-. endfor
-.endfor
- @${ECHO}
- @${ECHO} "These options are enabled by default: "${PKG_SUGGESTED_OPTIONS:O:Q}
- @${ECHO} "These options are currently enabled: "${PKG_OPTIONS:O:Q}
-. if defined(PKG_OPTIONS_DEPRECATED_WARNINGS)
- @${ECHO}
- @for l in ${PKG_OPTIONS_DEPRECATED_WARNINGS}; \
- do \
- ${ECHO} "$$l"; \
- done
-. endif
-
-.if defined(PKG_SUPPORTED_OPTIONS)
-.PHONY: supported-options-message
-pre-install-depends: supported-options-message
-supported-options-message:
-. if !empty(PKG_SUPPORTED_OPTIONS)
- @${ECHO} "=========================================================================="
- @${ECHO} "The supported build options for this package are:"
- @${ECHO} ""
- @${ECHO} ${PKG_SUPPORTED_OPTIONS:O:Q} | ${XARGS} -n 1 | ${_PKG_OPTIONS_WORDWRAP_FILTER}
-. if !empty(PKG_OPTIONS)
- @${ECHO} ""
- @${ECHO} "The currently selected options are:"
- @${ECHO} ""
- @${ECHO} ${PKG_OPTIONS:O:Q} | ${XARGS} -n 1 | ${_PKG_OPTIONS_WORDWRAP_FILTER}
-. endif
- @${ECHO} ""
- @${ECHO} "You can select which build options to use by setting PKG_DEFAULT_OPTIONS"
- @${ECHO} "or the following variable. Its current value is shown:"
- @${ECHO} ""
-. if !defined(${PKG_OPTIONS_VAR})
- @${ECHO} " ${PKG_OPTIONS_VAR} (not defined)"
-. else
- @${ECHO} " ${PKG_OPTIONS_VAR} = ${${PKG_OPTIONS_VAR}}"
-. endif
-. if defined(PKG_OPTIONS_DEPRECATED_WARNINGS)
- @${ECHO}
- @for l in ${PKG_OPTIONS_DEPRECATED_WARNINGS}; \
- do \
- ${ECHO} "$$l"; \
- done
-. endif
- @${ECHO} ""
- @${ECHO} "=========================================================================="
-. endif
-.endif
-
-.endif # defined(PKG_OPTIONS_VAR) && defined(PKG_SUPPORTED_OPTIONS)
diff --git a/mk/bsd.pkg.check.mk b/mk/bsd.pkg.check.mk
deleted file mode 100644
index 2e28f08062d..00000000000
--- a/mk/bsd.pkg.check.mk
+++ /dev/null
@@ -1,379 +0,0 @@
-# $NetBSD: bsd.pkg.check.mk,v 1.18 2005/09/30 21:36:45 kristerw Exp $
-#
-# This Makefile fragment is included by bsd.pkg.mk and defines the
-# relevant variables and targets for the various install-time "check"
-# targets.
-#
-# The following variables may be set by the user and control which
-# checks are run:
-#
-# CHECK_FILES causes the extra or missing file checks to be run if
-# it is any value other than "no". Defaults to "no".
-#
-# CHECK_FILES_STRICT makes the file checks very strict on errors if
-# it is any value other than "no". Defaults to "no".
-#
-# CHECK_WRKREF is a list of options that trigger the checks for
-# ${WRKDIR} or ${TOOLS_DIR} in the package's installed files.
-# Valid values are "work", which checks for ${WRKDIR}, and
-# "tools", which checks for ${TOOLS_DIR}. Defaults to "no".
-#
-# The following targets are defined by bsd.pkg.check.mk:
-#
-# check-files-pre & check-files-post generate the list of files on the
-# filesystem just before and just after the package's files are
-# installed.
-#
-# check-files compares the "pre" and "post" file lists to determine
-# if there are any extra or missing files installed by the
-# package.
-#
-# check-wrkref checks whether a package's installed files contain
-# references to ${WRKDIR}.
-#
-
-# For PKG_DEVELOPERs, cause some checks to be run automatically by default.
-.if defined(PKG_DEVELOPER)
-CHECK_WRKREF?= tools
-.endif
-
-CHECK_FILES?= no
-CHECK_FILES_STRICT?= no
-CHECK_WRKREF?= no
-
-USE_TOOLS+= awk cat cmp diff echo find grep rm sed test \
- touch true
-
-###########################################################################
-### check-files ###########################################################
-###########################################################################
-
-###########################################################################
-# CHECK_FILES_SKIP is a list of file names that will be skipped when
-# analyzing file lists in the check-files target. This is useful to
-# avoid getting errors triggered by changes in directories not really
-# handled by pkgsrc.
-#
-.if defined(INFO_DIR)
-CHECK_FILES_SKIP+= ${PREFIX}/${INFO_DIR}/dir
-.endif
-CHECK_FILES_SKIP+= ${PERL5_INSTALLARCHLIB}/perllocal.pod
-CHECK_FILES_SKIP+= ${PREFIX}/emul/linux/proc.*
-CHECK_FILES_SKIP+= ${PKG_DBDIR}.refcount.*
-.for d in ${MAKE_DIRS} ${OWN_DIRS}
-CHECK_FILES_SKIP+= ${d:C/^([^\/])/${PREFIX}\/\1/}.*
-.endfor
-.for d o g m in ${MAKE_DIRS_PERMS} ${OWN_DIRS_PERMS}
-CHECK_FILES_SKIP+= ${d:C/^([^\/])/${PREFIX}\/\1/}.*
-.endfor
-_CHECK_FILES_SKIP_FILTER= ${GREP} -vx ${CHECK_FILES_SKIP:@f@-e ${f:Q}@}
-
-###########################################################################
-# These are the files generated and used by the check-files implementation
-# used across several check-files targets.
-#
-# _CHECK_FILES_COOKIE.* are the cookie files that contain the error
-# messages discovered during each stage of file-checking.
-#
-# _CHECK_FILES_PRE.* are the file lists generated before any files
-# from the package are installed.
-#
-# _CHECK_FILES_POST.* are the file lists generated after all files
-# from the package are installed.
-#
-# The "pre" and "post" file lists are compared against each other to
-# determine if the package is installing files where it shouldn't be.
-#
-_CHECK_FILES_COOKIE.prefix= ${WRKDIR}/.check_files_prefix_cookie
-_CHECK_FILES_PRE.prefix= ${WRKDIR}/.prefix.pre
-_CHECK_FILES_POST.prefix= ${WRKDIR}/.prefix.post
-
-_CHECK_FILES_COOKIE.sysconfdir= ${WRKDIR}/.check_files_sysconfdir_cookie
-_CHECK_FILES_PRE.sysconfdir= ${WRKDIR}/.sysconfdir.pre
-_CHECK_FILES_POST.sysconfdir= ${WRKDIR}/.sysconfdir.post
-
-_CHECK_FILES_COOKIE.varbase= ${WRKDIR}/.check_files_varbase_cookie
-_CHECK_FILES_PRE.varbase= ${WRKDIR}/.varbase.pre
-_CHECK_FILES_POST.varbase= ${WRKDIR}/.varbase.post
-
-_CHECK_FILES_COOKIES= # empty
-_CHECK_FILES_COOKIES+= ${_CHECK_FILES_COOKIE.prefix}
-.if empty(CHECK_FILES_STRICT:M[nN][oO])
-_CHECK_FILES_COOKIES+= ${_CHECK_FILES_COOKIE.sysconfdir}
-_CHECK_FILES_COOKIES+= ${_CHECK_FILES_COOKIE.varbase}
-.endif
-
-###########################################################################
-# _CHECK_FILES_PRE holds the list of targets that are built as part of
-# building the check-files-pre target. These targets should cause the
-# "pre" file lists to be generated.
-#
-_CHECK_FILES_PRE= check-files-pre-message
-_CHECK_FILES_PRE+= ${_CHECK_FILES_PRE.prefix}
-.if empty(CHECK_FILES_STRICT:M[nN][oO])
-_CHECK_FILES_PRE+= ${_CHECK_FILES_PRE.sysconfdir}
-_CHECK_FILES_PRE+= ${_CHECK_FILES_PRE.varbase}
-.endif
-
-###########################################################################
-# _CHECK_FILES_POST holds the list of targets that are built as part of
-# building the check-files-post target. These targets should cause the
-# "post" file lists to be generated.
-#
-_CHECK_FILES_POST= check-files-post-message
-_CHECK_FILES_POST+= ${_CHECK_FILES_POST.prefix}
-.if empty(CHECK_FILES_STRICT:M[nN][oO])
-_CHECK_FILES_POST+= ${_CHECK_FILES_POST.sysconfdir}
-_CHECK_FILES_POST+= ${_CHECK_FILES_POST.varbase}
-.endif
-
-###########################################################################
-# check-files-pre and check-files-post targets and subtargets
-#
-.ORDER: ${_CHECK_FILES_PRE}
-.ORDER: ${_CHECK_FILES_POST}
-
-.PHONY: check-files-pre check-files-post
-check-files-pre: ${_CHECK_FILES_PRE}
-check-files-post: ${_CHECK_FILES_POST}
-
-.PHONY: check-files-pre-message check-files-post-message
-check-files-pre-message:
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} "${_PKGSRC_IN}>" \
- "Generating pre-install file lists"
-
-check-files-post-message:
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} "${_PKGSRC_IN}>" \
- "Generating post-install file lists"
-
-${_CHECK_FILES_PRE.prefix} ${_CHECK_FILES_POST.prefix}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${FIND} ${PREFIX} \( -type f -or -type l \) -print 2>/dev/null \
- | ${_CHECK_FILES_SKIP_FILTER} > ${.TARGET} \
- || ${TRUE}
-
-${_CHECK_FILES_PRE.sysconfdir} ${_CHECK_FILES_POST.sysconfdir}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${FIND} ${PKG_SYSCONFDIR} -print 2>/dev/null \
- | ${_CHECK_FILES_SKIP_FILTER} > ${.TARGET} \
- || ${TRUE}
-
-${_CHECK_FILES_PRE.varbase} ${_CHECK_FILES_POST.varbase}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${FIND} ${VARBASE} -print 2>/dev/null \
- | ${_CHECK_FILES_SKIP_FILTER} > ${.TARGET} \
- || ${TRUE}
-
-###########################################################################
-# check-files targets and subtargets
-#
-.PHONY: check-files-prefix check-files-sysconfdir check-files-varbase
-check-files-prefix: ${_CHECK_FILES_COOKIE.prefix}
-check-files-sysconfdir: ${_CHECK_FILES_COOKIE.sysconfdir}
-check-files-varbase: ${_CHECK_FILES_COOKIE.varbase}
-
-.ORDER: ${_CHECK_FILES_COOKIES}
-
-# The check-files target looks at the cookie files generated by the
-# check-files-* subtargets, and if they are non-empty, then they
-# contain the error messages collected during the build of each
-# subtarget.
-#
-.PHONY: check-files
-check-files: ${_CHECK_FILES_COOKIES}
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} \
- "${_PKGSRC_IN}> Checking file-check results for ${PKGNAME}"
-.for _cookie_ in ${_CHECK_FILES_COOKIES}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${_cookie_}
-.endfor
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${CAT} ${_CHECK_FILES_COOKIES} | ${AWK} 'END { if (NR > 0) exit 1; }'
-
-# Check ${PREFIX} for files which are not listed in the generated ${PLIST}
-# and vice-versa.
-#
-${_CHECK_FILES_COOKIE.prefix}:
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${TEST} ! -f ${_CHECK_FILES_PRE.prefix} -o \
- ! -f ${_CHECK_FILES_POST.prefix}; \
- then \
- { exit 0; }; \
- fi; \
- f_added=${WRKDIR:Q}/.files.added; \
- f_deleted=${WRKDIR:Q}/.files.deleted; \
- f_expected=${WRKDIR:Q}/.files.expected; \
- f_missing=${WRKDIR:Q}/.files.missing; \
- f_missing_real=${WRKDIR:Q}/.files.missing.real; \
- f_missing_skip=${WRKDIR:Q}/.files.missing.skip; \
- f_extra=${WRKDIR:Q}/.files.extra; \
- ${DIFF} -u ${_CHECK_FILES_PRE.prefix} ${_CHECK_FILES_POST.prefix} \
- > ${WRKDIR}/.files.diff || ${TRUE}; \
- ${GREP} '^+/' ${WRKDIR}/.files.diff | ${SED} "s|^+||" | ${SORT} \
- > $$f_added; \
- ${GREP} '^-/' ${WRKDIR}/.files.diff | ${SED} "s|^-||" | ${SORT} \
- > $$f_deleted; \
- ${GREP} '^[A-Za-z]' ${PLIST} | ${SED} "s|^|${PREFIX}/|" | ${SORT} \
- > $$f_expected; \
- ${DIFF} -u ${WRKDIR}/.files.expected ${WRKDIR}/.files.added \
- | ${GREP} '^-[^-]' | ${SED} "s|^-||" \
- > $$f_missing; \
- ${DIFF} -u ${WRKDIR}/.files.expected ${WRKDIR}/.files.added \
- | ${GREP} '^+[^+]' | ${SED} "s|^+||" \
- > $$f_extra; \
- if ${AWK} 'END { if (NR == 0) exit 1; }' $$f_deleted; then \
- { ${ECHO} "*** The following files have been deleted" \
- "from ${PREFIX}!"; \
- ${SED} "s|^| |" $$f_deleted; \
- } > ${.TARGET}; \
- fi; \
- if ${AWK} 'END { if (NR == 0) exit 1; }' $$f_missing $$f_extra; \
- then \
- { ${ECHO} "*** The PLIST does not match installed files!"; \
- ${CAT} $$f_missing | ${_CHECK_FILES_SKIP_FILTER} \
- > $$f_missing_real; \
- ${DIFF} -u $$f_missing $$f_missing_real \
- | ${GREP} '^-[^-]' | ${SED} "s|^-||" \
- > $$f_missing_skip; \
- if ${AWK} 'END { if (NR == 0) exit 1; }' $$f_missing_real; \
- then \
- ${ECHO} "*** The following files are in the" \
- "PLIST but not in ${PREFIX}:"; \
- ${SED} "s|^| |" $$f_missing_real; \
- fi; \
- if ${AWK} 'END { if (NR == 0) exit 1; }' $$f_extra; then \
- ${ECHO} "*** The following files are in" \
- "${PREFIX} but not in the PLIST:"; \
- ${SED} "s|^| |" $$f_extra; \
- fi; \
- if ${AWK} 'END { if (NR == 0) exit 1; }' $$f_missing_skip; \
- then \
- ${ECHO} "*** The following files are in both" \
- "the PLIST and CHECK_FILES_SKIP:"; \
- ${SED} "s|^| |" $$f_missing_skip; \
- fi; \
- } >> ${.TARGET}; \
- fi; \
- ${RM} -f ${WRKDIR}/.files.diff $$f_added $$f_deleted \
- $$f_expected $$f_missing $$f_extra \
- $$f_missing_real $$f_missing_skip
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-
-# Check ${SYSCONFDIR} for files which are not in the PLIST and are also
-# not copied into place by the INSTALL scripts.
-#
-${_CHECK_FILES_COOKIE.sysconfdir}:
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${TEST} ! -f ${_CHECK_FILES_PRE.sysconfdir} -o \
- ! -f ${_CHECK_FILES_POST.sysconfdir}; \
- then \
- { exit 0; }; \
- fi; \
- if ! ${CMP} -s ${_CHECK_FILES_PRE.sysconfdir} \
- ${_CHECK_FILES_POST.sysconfdir}; \
- then \
- { ${ECHO} "*** The package has modified ${PKG_SYSCONFDIR}" \
- "contents directly!"; \
- ${ECHO} " The offending files/directories are:"; \
- ${DIFF} -u ${_CHECK_FILES_PRE.sysconfdir} \
- ${_CHECK_FILES_POST.sysconfdir} \
- | ${GREP} '^+[^+]' | ${SED} "s|^+| |"; \
- } > ${.TARGET}; \
- fi
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-
-# Check ${VARBASE} for files which are not in the PLIST and are also
-# not created by the INSTALL scripts.
-#
-${_CHECK_FILES_COOKIE.varbase}:
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${TEST} ! -f ${_CHECK_FILES_PRE.varbase} -o \
- ! -f ${_CHECK_FILES_POST.varbase}; \
- then \
- { exit 0; }; \
- fi; \
- if ! ${CMP} -s ${_CHECK_FILES_PRE.varbase} \
- ${_CHECK_FILES_POST.varbase}; \
- then
- { ${ECHO} "*** The package has modified ${VARBASE}" \
- "contents directly!"; \
- ${ECHO} " The offending files/directories are:"; \
- ${DIFF} -u ${_CHECK_FILES_PRE.varbase} \
- ${_CHECK_FILES_POST.varbase} \
- | ${GREP} '^+[^+]' | ${SED} "s|^+| |"; \
- } > ${.TARGET}; \
- fi
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-
-###########################################################################
-### check-wrkref ##########################################################
-###########################################################################
-
-###########################################################################
-# CHECK_WRKREF_SKIP is a list of shell globs. Installed files that
-# match these globs are skipped when running the check-wrkref target.
-#
-.if make(check-wrkref)
-. if !defined(_CHECK_WRKREF_SKIP_FILTER)
-_CHECK_WRKREF_SKIP_FILTER= ${TRUE}
-. if defined(CHECK_WRKREF_SKIP) && !empty(CHECK_WRKREF_SKIP)
-_CHECK_WRKREF_SKIP_FILTER= case "$$file" in
-. for _pattern_ in ${CHECK_WRKREF_SKIP}
-_CHECK_WRKREF_SKIP_FILTER+= ${_pattern_}) continue ;;
-. endfor
-_CHECK_WRKREF_SKIP_FILTER+= *) ;;
-_CHECK_WRKREF_SKIP_FILTER+= esac
-. endif
-. endif
-MAKEVARS+= _CHECK_WRKREF_SKIP_FILTER
-.else
-_CHECK_WRKREF_SKIP_FILTER= ${TRUE}
-.endif
-
-_CHECK_WRKREF:= ${CHECK_WRKREF}
-.if !empty(_CHECK_WRKREF:Mwork)
-_CHECK_WRKREF:= work # "work" is the "max" option
-.endif
-
-###########################################################################
-# check-wrkref target
-#
-.PHONY: check-wrkref
-check-wrkref:
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} \
- "${_PKGSRC_IN}> Checking for work-directory references in ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${PKG_INFO} -qL ${PKGNAME:Q} | ${SORT} | \
- { while read file; do \
- ${_CHECK_WRKREF_SKIP_FILTER}; \
- ${SHCOMMENT} [$$file]; \
- case ${_CHECK_WRKREF:Mwork:Q}"" in \
- work) \
- if ${GREP} -H ${WRKDIR:Q} "$$file" 2>/dev/null; then \
- found=1; \
- fi; \
- ;; \
- esac; \
- case ${_CHECK_WRKREF:Mtools:Q}"" in \
- tools) \
- if ${GREP} -H ${TOOLS_DIR:Q} "$$file" 2>/dev/null; then \
- found=1; \
- fi; \
- ;; \
- esac; \
- done; \
- if ${TEST} "$$found" = 1; then \
- ${ECHO} "***"; \
- ${ECHO} "*** The above files still have references to the build directory."; \
- ${ECHO} "*** This is possibly an error that should be fixed by unwrapping"; \
- ${ECHO} "*** the files or adding missing tools to the package makefile!"; \
- ${ECHO} "***"; \
- exit 1; \
- fi; }
-.endif
diff --git a/mk/bsd.pkg.extract.mk b/mk/bsd.pkg.extract.mk
deleted file mode 100644
index 8854f124ff7..00000000000
--- a/mk/bsd.pkg.extract.mk
+++ /dev/null
@@ -1,184 +0,0 @@
-# $NetBSD: bsd.pkg.extract.mk,v 1.13 2005/10/12 15:18:59 rillig Exp $
-#
-# This Makefile fragment is included to bsd.pkg.mk and defines the
-# relevant variables and targets for the "extract" phase.
-#
-# The following variables may be set by the package Makefile and
-# specify how extraction happens:
-#
-# EXTRACT_ONLY is a list of distfiles relative to ${_DISTDIR} to
-# extract and defaults to ${DISTFILES}.
-#
-# EXTRACT_SUFX is the suffix for the default distfile to be
-# extracted. The default suffix is ".tar.gz".
-#
-# EXTRACT_CMD is a shell command list that extracts the contents of
-# an archive named by the shell variable "extract_file" based on
-# the extension of the archive. The extensions understood by
-# EXTRACT_CMD are listed in _EXTRACT_SUFFIXES.
-#
-# EXTRACT_CMD.<sufx> is a shell command list that extracts the
-# contents of an archive named by the shell variable "extract_file"
-# that ends in <sufx>.
-#
-# EXTRACT_USING specifies the tool used to extract tar/ustar-format
-# archives. The possible values are "gtar", "nbtar", and "pax".
-# By default, we use the "nbtar" tool (NetBSD's pax-as-tar).
-#
-# EXTRACT_ELEMENTS is a list of files within the distfile to extract.
-# This variable only takes effect for distfiles that are tarballs.
-# By default, this is empty, which causes all files within the
-# tarball to be extracted.
-#
-# The following targets are defined by bsd.pkg.extract.mk:
-#
-# do-extract is the target that causes the actual extraction of
-# the distfiles to occur during the "extract" phase.
-#
-
-EXTRACT_ONLY?= ${DISTFILES}
-EXTRACT_SUFX?= .tar.gz
-EXTRACT_USING?= nbtar
-
-_EXTRACT_SUFFIXES= .tar.gz .tgz .tar.bz2 .tbz .tbz2 .tar.Z .tar _tar.gz
-_EXTRACT_SUFFIXES+= .shar.gz .shar.bz2 .shar.Z .shar
-_EXTRACT_SUFFIXES+= .zip
-_EXTRACT_SUFFIXES+= .lha .lzh
-_EXTRACT_SUFFIXES+= .Z .bz2 .gz
-_EXTRACT_SUFFIXES+= .zoo
-_EXTRACT_SUFFIXES+= .bin
-_EXTRACT_SUFFIXES+= .rar
-
-_EXTRACT_PATTERNS= ${EXTRACT_ONLY} ${EXTRACT_SUFX}
-
-.if !empty(_EXTRACT_PATTERNS:M*.tar) || \
- !empty(_EXTRACT_PATTERNS:M*.tar.*) || \
- !empty(_EXTRACT_PATTERNS:M*.tbz) || \
- !empty(_EXTRACT_PATTERNS:M*.tbz2) || \
- !empty(_EXTRACT_PATTERNS:M*.tgz) || \
- !empty(_EXTRACT_PATTERNS:M*_tar.gz)
-
-. if !empty(EXTRACT_USING:Mgtar)
-USE_TOOLS+= gtar
-. elif !empty(EXTRACT_USING:Mnbtar)
-USE_TOOLS+= tar
-. else
-USE_TOOLS+= pax
-. endif
-.endif
-.if !empty(_EXTRACT_PATTERNS:M*.bz2) || \
- !empty(_EXTRACT_PATTERNS:M*.tbz) || \
- !empty(_EXTRACT_PATTERNS:M*.tbz2)
-USE_TOOLS+= bzcat
-.endif
-.if !empty(_EXTRACT_PATTERNS:M*.zip)
-USE_TOOLS+= unzip
-.endif
-.if !empty(_EXTRACT_PATTERNS:M*.lzh) || \
- !empty(_EXTRACT_PATTERNS:M*.lha)
-USE_TOOLS+= lha
-.endif
-.if !empty(_EXTRACT_PATTERNS:M*.gz) || \
- !empty(_EXTRACT_PATTERNS:M*.tgz) || \
- !empty(_EXTRACT_PATTERNS:M*.Z)
-USE_TOOLS+= gzcat
-.endif
-.if !empty(_EXTRACT_PATTERNS:M*.zoo)
-USE_TOOLS+= unzoo
-.endif
-.if !empty(_EXTRACT_PATTERNS:M*.rar)
-USE_TOOLS+= unrar
-.endif
-
-DECOMPRESS_CMD.tar.gz?= ${GZCAT}
-DECOMPRESS_CMD.tgz?= ${DECOMPRESS_CMD.tar.gz}
-DECOMPRESS_CMD.tar.bz2?= ${BZCAT}
-DECOMPRESS_CMD.tbz?= ${DECOMPRESS_CMD.tar.bz2}
-DECOMPRESS_CMD.tbz2?= ${DECOMPRESS_CMD.tar.bz2}
-DECOMPRESS_CMD.tar.Z?= ${GZCAT}
-DECOMPRESS_CMD.tar?= ${CAT}
-
-DECOMPRESS_CMD.shar.gz?= ${GZCAT}
-DECOMPRESS_CMD.shar.bz2?= ${BZCAT}
-DECOMPRESS_CMD.shar.Z?= ${GZCAT}
-DECOMPRESS_CMD.shar?= ${CAT}
-
-DECOMPRESS_CMD.Z?= ${GZCAT}
-DECOMPRESS_CMD.bz2?= ${BZCAT}
-DECOMPRESS_CMD.gz?= ${GZCAT}
-
-DECOMPRESS_CMD?= ${GZCAT}
-.for __suffix__ in ${_EXTRACT_SUFFIXES}
-. if !defined(DECOMPRESS_CMD${__suffix__})
-DECOMPRESS_CMD${__suffix__}?= ${DECOMPRESS_CMD}
-. endif
-.endfor
-
-# If this is empty, then everything gets extracted.
-EXTRACT_ELEMENTS?= # empty
-
-DOWNLOADED_DISTFILE= $${extract_file}
-
-EXTRACT_CMD.zip?= ${UNZIP} ${EXTRACT_CMD_OPTS.zip} $${extract_file}
-EXTRACT_CMD_OPTS.zip?= -Laqo
-EXTRACT_CMD.lha?= ${LHA} ${EXTRACT_CMD_OPTS.lha} $${extract_file}
-EXTRACT_CMD_OPTS.lha?= xq
-EXTRACT_CMD.lzh?= ${EXTRACT_CMD.lha}
-EXTRACT_CMD_OPTS.lzh?= ${EXTRACT_CMD_OPTS.lha}
-EXTRACT_CMD.zoo?= ${UNZOO} ${EXTRACT_CMD_OPTS.zoo} $${extract_file}
-EXTRACT_CMD_OPTS.zoo?= -x
-EXTRACT_CMD.rar?= ${UNRAR} ${EXTRACT_CMD_OPTS.rar} $${extract_file}
-EXTRACT_CMD_OPTS.rar?= x -inul
-EXTRACT_ENV.bin?= # empty
-EXTRACT_CMD.bin?= ${ECHO} yes | ${SETENV} ${EXTRACT_ENV.bin} $${extract_file} ${EXTRACT_CMD_OPTS.bin} >/dev/null
-
-.for __suffix__ in .gz .bz2 .Z
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} > `${BASENAME} $${extract_file} ${__suffix__}`
-.endfor
-
-.for __suffix__ in .shar.gz .shar.bz2 .shar.Z .shar
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${SH}
-.endfor
-
-.if !empty(EXTRACT_USING:Mgtar)
-_DFLT_EXTRACT_CMD?= ${DECOMPRESS_CMD} $${extract_file} | ${GTAR} -xf - ${EXTRACT_ELEMENTS}
-.elif !empty(EXTRACT_USING:Mnbtar)
-_DFLT_EXTRACT_CMD?= ${DECOMPRESS_CMD} $${extract_file} | ${TAR} -xf - ${EXTRACT_ELEMENTS}
-.else
-_DFLT_EXTRACT_CMD?= ${DECOMPRESS_CMD} $${extract_file} | ${PAX} -O -r ${EXTRACT_ELEMENTS}
-.endif
-
-.for __suffix__ in ${_EXTRACT_SUFFIXES}
-. if !defined(EXTRACT_CMD${__suffix__})
-. if !empty(EXTRACT_USING:Mgtar)
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${GTAR} ${EXTRACT_CMD_OPTS${__suffix__}} -xf - ${EXTRACT_ELEMENTS}
-. elif !empty(EXTRACT_USING:Mnbtar)
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${TAR} ${EXTRACT_CMD_OPTS${__suffix__}} -xf - ${EXTRACT_ELEMENTS}
-. else
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${PAX} ${EXTRACT_CMD_OPTS${__suffix__}} -O -r ${EXTRACT_ELEMENTS}
-. endif
-. endif
-.endfor
-
-# _SHELL_EXTRACT is a "subroutine" for extracting an archive. It extracts
-# the contents of archive named by the shell variable "extract_file" based
-# on the file extension of the archive.
-#
-_SHELL_EXTRACT= case $${extract_file} in
-.for __suffix__ in ${_EXTRACT_SUFFIXES}
-_SHELL_EXTRACT+= *${__suffix__}) ${EXTRACT_CMD${__suffix__}} ;;
-.endfor
-_SHELL_EXTRACT+= *) ${_DFLT_EXTRACT_CMD} ;;
-_SHELL_EXTRACT+= esac
-
-EXTRACT_CMD?= ${_SHELL_EXTRACT}
-
-.PHONY: do-extract
-.if !target(do-extract)
-do-extract: ${WRKDIR}
-. for __file__ in ${EXTRACT_ONLY}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- extract_file="${_DISTDIR}/${__file__}"; export extract_file; \
- cd ${WRKDIR}; ${EXTRACT_CMD}
-. endfor
-.endif
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
deleted file mode 100644
index b37b7df9f3b..00000000000
--- a/mk/bsd.pkg.mk
+++ /dev/null
@@ -1,4839 +0,0 @@
-# $NetBSD: bsd.pkg.mk,v 1.1746 2005/11/05 13:31:43 wiz Exp $
-#
-# This file is in the public domain.
-#
-# This file is derived from bsd.port.mk - 940820 Jordan K. Hubbard.
-#
-# Please see the pkgsrc/doc/guide manual for details on the
-# variables used in this make file template.
-#
-# Default sequence for "all" is: fetch checksum extract patch configure build
-#
-# Please read the comments in the targets section below, you
-# should be able to use the pre-* or post-* targets/scripts
-# (which are available for every stage except checksum) or
-# override the do-* targets to do pretty much anything you want.
-
-############################################################################
-# Include any preferences, if not already included, and common definitions
-############################################################################
-
-.include "../../mk/bsd.prefs.mk"
-.include "../../mk/bsd.hacks.mk"
-
-# This has to come first to avoid showing all BUILD_DEFS added by this
-# Makefile, which are usually not customizable.
-.PHONY: pre-install-depends build-defs-message
-pre-install-depends: build-defs-message
-.if empty(PKGSRC_SHOW_BUILD_DEFS:M[yY][eE][sS])
-build-defs-message:
-.elif !target(build-defs-message)
-build-defs-message: ${WRKDIR}
-. if defined(BUILD_DEFS) && !empty(BUILD_DEFS)
-. if !exists(${WRKDIR}/.bdm_done)
- @${ECHO} "=========================================================================="
- @${ECHO} "The following variables will affect the build process of this package,"
- @${ECHO} "${PKGNAME}. Their current value is shown below:"
- @${ECHO} ""
-. for var in ${BUILD_DEFS:O}
-. if !defined(${var})
- @${ECHO} " * ${var} (not defined)"
-. elif defined(${var}) && empty(${var})
- @${ECHO} " * ${var} (defined)"
-. else
- @${ECHO} " * ${var} = ${${var}}"
-. endif
-. endfor
- @${ECHO} ""
- @${ECHO} "You may want to abort the process now with CTRL-C and change their value"
- @${ECHO} "before continuing. Be sure to run \`${MAKE} clean' after"
- @${ECHO} "the changes."
- @${ECHO} "=========================================================================="
- @${TOUCH} ${WRKDIR}/.bdm_done
-. endif
-. endif
-.endif
-
-############################################################################
-# Transform package Makefile variables and set defaults
-############################################################################
-
-CHECK_SHLIBS?= YES # run check-shlibs after install
-CLEANDEPENDS?= NO
-DEINSTALLDEPENDS?= NO # add -R to pkg_delete
-MKCRYPTO?= YES # build crypto packages by default
-NOCLEAN?= NO # don't clean up after update
-REINSTALL?= NO # reinstall upon update
-SHLIB_HANDLING?= YES # do automatic shared lib handling
-CREATE_WRKDIR_SYMLINK?= yes # create a symlink to WRKOBJDIR
-
-##### Variant spellings
-
-.if defined(LICENCE) && !defined(LICENSE)
-LICENSE= ${LICENCE}
-.endif
-.if defined(ACCEPTABLE_LICENCES) && !defined(ACCEPTABLE_LICENSES)
-ACCEPTABLE_LICENSES= ${ACCEPTABLE_LICENCES}
-.endif
-
-##### PKGBASE, PKGNAME[_NOREV], PKGVERSION
-
-PKGBASE?= ${PKGNAME:C/-[^-]*$//}
-PKGVERSION?= ${PKGNAME:C/^.*-//}
-.if defined(PKGREVISION) && !empty(PKGREVISION) && (${PKGREVISION} != "0")
-. if defined(PKGNAME)
-PKGNAME_NOREV:= ${PKGNAME}
-PKGNAME:= ${PKGNAME}nb${PKGREVISION}
-. else
-PKGNAME?= ${DISTNAME}nb${PKGREVISION}
-PKGNAME_NOREV= ${DISTNAME}
-. endif
-.else
-PKGNAME?= ${DISTNAME}
-PKGNAME_NOREV= ${PKGNAME}
-.endif
-
-##### PLIST
-
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-PLIST_TYPE?= dynamic
-.endif
-PLIST_TYPE?= static
-
-.if !defined(PLIST_SRC)
-. if exists(${PKGDIR}/PLIST.common)
-PLIST_SRC+= ${PKGDIR}/PLIST.common
-. endif
-. if exists(${PKGDIR}/PLIST.${OPSYS})
-PLIST_SRC+= ${PKGDIR}/PLIST.${OPSYS}
-. endif
-. if exists(${PKGDIR}/PLIST.${MACHINE_ARCH:C/i[3-6]86/i386/g})
-PLIST_SRC+= ${PKGDIR}/PLIST.${MACHINE_ARCH:C/i[3-6]86/i386/g}
-. endif
-. if exists(${PKGDIR}/PLIST.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g})
-PLIST_SRC+= ${PKGDIR}/PLIST.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g}
-. endif
-. if exists(${PKGDIR}/PLIST)
-PLIST_SRC+= ${PKGDIR}/PLIST
-. endif
-. if exists(${PKGDIR}/PLIST.common_end)
-PLIST_SRC+= ${PKGDIR}/PLIST.common_end
-. endif
-.endif # !PLIST_SRC
-
-##### Others
-
-_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
-BUILD_DEPENDS?= # empty
-BUILD_TARGET?= all
-COMMENT?= (no description)
-CONFIGURE_DIRS?= ${WRKSRC}
-CONFIGURE_SCRIPT?= ./configure
-DEPENDS?= # empty
-DESCR_SRC?= ${PKGDIR}/DESCR
-DIGEST_ALGORITHMS?= SHA1 RMD160
-DISTFILES?= ${DISTNAME}${EXTRACT_SUFX}
-DISTINFO_FILE?= ${PKGDIR}/distinfo
-INSTALL_DIRS?= ${BUILD_DIRS}
-INSTALL_MAKE_FLAGS?= ${MAKE_FLAGS}
-INSTALL_TARGET?= install
-INTERACTIVE_STAGE?= none
-MAINTAINER?= tech-pkg@NetBSD.org
-MAKE_FLAGS?= # empty
-MAKEFILE?= Makefile
-PATCH_DIGEST_ALGORITHM?=SHA1
-PKG_SUFX?= .tgz
-PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX}
-PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR}
-PKGREPOSITORYSUBDIR?= All
-PKGWILDCARD?= ${PKGBASE}-[0-9]*
-SVR4_PKGNAME?= ${PKGNAME}
-USE_DIGEST?= YES
-WRKSRC?= ${WRKDIR}/${DISTNAME}
-
-# If a package sets INSTALLATION_DIRS, then it's known to pre-create all
-# of the directories that it needs at install-time, so we don't need
-# mtree to do it for us.
-#
-.if defined(INSTALLATION_DIRS) && !empty(INSTALLATION_DIRS)
-NO_MTREE= yes
-.endif
-
-.if (defined(INSTALL_UNSTRIPPED) && !empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) || defined(DEBUG_FLAGS)
-_INSTALL_UNSTRIPPED= # set (flag used by platform/*.mk)
-.endif
-
-##### Non-overridable constants
-
-# Latest versions of tools required for correct pkgsrc operation.
-DIGEST_REQD= 20010302
-PKGTOOLS_REQD= ${_OPSYS_PKGTOOLS_REQD:U20051103}
-
-PKG_DB_TMPDIR= ${WRKDIR}/.pkgdb
-DDIR= ${WRKDIR}/.DDIR
-DESCR= ${PKG_DB_TMPDIR}/+DESC
-DLIST= ${WRKDIR}/.DLIST
-PLIST= ${WRKDIR}/.PLIST
-
-# Files to create for versioning and build information
-BUILD_VERSION_FILE= ${PKG_DB_TMPDIR}/+BUILD_VERSION
-BUILD_INFO_FILE= ${PKG_DB_TMPDIR}/+BUILD_INFO
-
-# Files containing size of pkg w/o and w/ all required pkgs
-SIZE_PKG_FILE= ${PKG_DB_TMPDIR}/+SIZE_PKG
-SIZE_ALL_FILE= ${PKG_DB_TMPDIR}/+SIZE_ALL
-
-# File to denote "no deletion of a package"
-PRESERVE_FILE= ${PKG_DB_TMPDIR}/+PRESERVE
-
-##### Transform USE_* into dependencies
-
-.include "../../mk/bsd.pkg.use.mk"
-
-############################################################################
-# Sanity checks
-############################################################################
-
-# Fail-safe in the case of circular dependencies
-.if defined(_PKGSRC_DEPS) && defined(PKGNAME) && !empty(_PKGSRC_DEPS:M${PKGNAME})
-PKG_FAIL_REASON+= "Circular dependency detected"
-.endif
-
-# PKG_INSTALLATION_TYPE can only be one of two values: "pkgviews" or
-# "overwrite".
-.if (${PKG_INSTALLATION_TYPE} != "pkgviews") && \
- (${PKG_INSTALLATION_TYPE} != "overwrite")
-PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite''."
-.endif
-
-.if empty(PKG_INSTALLATION_TYPES:M${PKG_INSTALLATION_TYPE})
-PKG_FAIL_REASON+= "This package doesn't support PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}."
-.endif
-
-.if (${PLIST_TYPE} != "dynamic") && (${PLIST_TYPE} != "static")
-PKG_FAIL_REASON+= "PLIST_TYPE must be \`\`dynamic'' or \`\`static''."
-.endif
-
-.if (${PKG_INSTALLATION_TYPE} == "overwrite") && (${PLIST_TYPE} != "static")
-PKG_FAIL_REASON+= "PLIST_TYPE must be \`\`static'' for \`\`overwrite'' packages."
-.endif
-
-# Check that we are using up-to-date pkg_* tools with this file.
-.if !defined(NO_PKGTOOLS_REQD_CHECK)
-. if ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD}
-PKG_FAIL_REASON+='Error: The package tools installed on this system are out of date.'
-PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must update'
-PKG_FAIL_REASON+='them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
-PKG_FAIL_REASON+=''
-PKG_FAIL_REASON+=' cd ${PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} install'
-. endif
-.endif # !NO_PKGTOOLS_REQD_CHECK
-
-.if defined(ALL_TARGET)
-PKG_FAIL_REASON+='ALL_TARGET is deprecated and must be replaced with BUILD_TARGET.'
-.endif
-
-.if defined(NO_WRKSUBDIR)
-PKG_FAIL_REASON+='NO_WRKSUBDIR has been deprecated - please replace it with an explicit'
-PKG_FAIL_REASON+='assignment of WRKSRC= $${WRKDIR}'
-.endif # NO_WRKSUBDIR
-
-# We need to make sure the buildlink-x11 package is not installed since it
-# breaks builds that use imake.
-.if defined(USE_IMAKE)
-. if exists(${LOCALBASE}/lib/X11/config/buildlinkX11.def) || \
- exists(${X11BASE}/lib/X11/config/buildlinkX11.def)
-PKG_FAIL_REASON+= "${PKGNAME} uses imake, but the buildlink-x11 package was found." \
- " Please deinstall it (pkg_delete buildlink-x11)."
-. endif
-.endif # USE_IMAKE
-
-.if !defined(CATEGORIES) || !defined(DISTNAME)
-PKG_FAIL_REASON+='CATEGORIES and DISTNAME are mandatory.'
-.endif
-
-.if defined(LIB_DEPENDS)
-PKG_FAIL_REASON+='LIB_DEPENDS is deprecated and must be replaced with DEPENDS.'
-.endif
-
-.if defined(PKG_PATH)
-PKG_FAIL_REASON+='Please unset PKG_PATH before doing pkgsrc work!'
-.endif
-
-.if defined(MASTER_SITE_SUBDIR)
-PKG_FAIL_REASON+='MASTER_SITE_SUBDIR is deprecated and must be replaced with MASTER_SITES.'
-.endif
-
-.if defined(PATCH_SITE_SUBDIR)
-PKG_FAIL_REASON+='PATCH_SITE_SUBDIR is deprecated and must be replaced with PATCH_SITES.'
-.endif
-
-.if defined(ONLY_FOR_ARCHS) || defined(NOT_FOR_ARCHS) \
- || defined(ONLY_FOR_OPSYS) || defined(NOT_FOR_OPSYS)
-PKG_FAIL_REASON+='ONLY/NOT_FOR_ARCHS/OPSYS are deprecated and must be replaced with ONLY/NOT_FOR_PLATFORM.'
-.endif
-
-# Allow variables to be set on a per-OS basis
-OPSYSVARS+= CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS
-.for _var_ in ${OPSYSVARS:O}
-. if defined(${_var_}.${OPSYS})
-${_var_}+= ${${_var_}.${OPSYS}}
-. elif defined(${_var_}.*)
-${_var_}+= ${${_var_}.*}
-. endif
-.endfor
-
-CPPFLAGS+= ${CPP_PRECOMP_FLAGS}
-
-ALL_ENV+= CC=${CC:Q}
-ALL_ENV+= CFLAGS=${CFLAGS:M*:Q}
-ALL_ENV+= CPPFLAGS=${CPPFLAGS:M*:Q}
-ALL_ENV+= CXX=${CXX:M*:Q}
-ALL_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
-ALL_ENV+= COMPILER_RPATH_FLAG=${COMPILER_RPATH_FLAG:Q}
-ALL_ENV+= F77=${FC:Q}
-ALL_ENV+= FC=${FC:Q}
-ALL_ENV+= FFLAGS=${FFLAGS:M*:Q}
-ALL_ENV+= LANG=C
-ALL_ENV+= LC_COLLATE=C
-ALL_ENV+= LC_CTYPE=C
-ALL_ENV+= LC_MESSAGES=C
-ALL_ENV+= LC_MONETARY=C
-ALL_ENV+= LC_NUMERIC=C
-ALL_ENV+= LC_TIME=C
-ALL_ENV+= LDFLAGS=${LDFLAGS:M*:Q}
-ALL_ENV+= LINKER_RPATH_FLAG=${LINKER_RPATH_FLAG:Q}
-ALL_ENV+= PATH=${PATH:Q}:${LOCALBASE}/bin:${X11BASE}/bin
-ALL_ENV+= PREFIX=${PREFIX}
-
-MAKE_ENV+= ${ALL_ENV}
-MAKE_ENV+= ${NO_EXPORT_CPP:D:UCPP=${CPP:Q}}
-MAKE_ENV+= LINK_ALL_LIBGCC_HACK=${LINK_ALL_LIBGCC_HACK:Q}
-MAKE_ENV+= LOCALBASE=${LOCALBASE}
-MAKE_ENV+= NO_WHOLE_ARCHIVE_FLAG=${NO_WHOLE_ARCHIVE_FLAG:Q}
-MAKE_ENV+= WHOLE_ARCHIVE_FLAG=${WHOLE_ARCHIVE_FLAG:Q}
-MAKE_ENV+= X11BASE=${X11BASE}
-MAKE_ENV+= X11PREFIX=${X11PREFIX}
-MAKE_ENV+= PKGMANDIR=${PKGMANDIR}
-
-# Constants to provide a consistent environment for packages using
-# BSD-style Makefiles.
-MAKE_ENV+= MAKECONF=${PKGMAKECONF:U/dev/null}
-MAKE_ENV+= OBJECT_FMT=${OBJECT_FMT:Q}
-MAKE_ENV+= ${USETOOLS:DUSETOOLS=${USETOOLS:Q}}
-
-SCRIPTS_ENV+= ${ALL_ENV}
-SCRIPTS_ENV+= _PKGSRCDIR=${_PKGSRCDIR}
-SCRIPTS_ENV+= ${BATCH:DBATCH=yes}
-SCRIPTS_ENV+= CURDIR=${.CURDIR}
-SCRIPTS_ENV+= DEPENDS=${DEPENDS:Q}
-SCRIPTS_ENV+= DISTDIR=${DISTDIR}
-SCRIPTS_ENV+= FILESDIR=${FILESDIR}
-SCRIPTS_ENV+= LOCALBASE=${LOCALBASE}
-SCRIPTS_ENV+= PATCHDIR=${PATCHDIR}
-SCRIPTS_ENV+= PKGSRCDIR=${PKGSRCDIR}
-SCRIPTS_ENV+= SCRIPTDIR=${SCRIPTDIR}
-SCRIPTS_ENV+= VIEWBASE=${VIEWBASE}
-SCRIPTS_ENV+= WRKDIR=${WRKDIR}
-SCRIPTS_ENV+= WRKSRC=${WRKSRC}
-SCRIPTS_ENV+= X11BASE=${X11BASE}
-
-CONFIGURE_ENV+= ${ALL_ENV}
-
-# Store the result in the +BUILD_INFO file so we can query for the build
-# options using "pkg_info -Q PKG_OPTIONS <pkg>".
-#
-.if defined(PKG_SUPPORTED_OPTIONS) && defined(PKG_OPTIONS)
-BUILD_DEFS+= PKG_OPTIONS
-.endif
-
-.if empty(DEPOT_SUBDIR)
-PKG_FAIL_REASON+= "DEPOT_SUBDIR may not be empty."
-.endif
-
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-#
-# _PLIST_IGNORE_FILES basically mirrors the list of ignored files found
-# in pkg_views(1). It's used by the dynamic PLIST generator to skip
-# adding the named files to the PLIST.
-#
-_PLIST_IGNORE_FILES= +* # package metadata files
-_PLIST_IGNORE_FILES+= info/dir
-.if defined(INFO_DIR) && empty(INFO_DIR:Minfo)
-_PLIST_IGNORE_FILES+= ${INFO_DIR}/dir
-.endif
-_PLIST_IGNORE_FILES+= *[~\#] *.OLD *.orig *,v # scratch config files
-_PLIST_IGNORE_FILES+= ${PLIST_IGNORE_FILES}
-.endif
-BUILD_DEFS+= _PLIST_IGNORE_FILES
-
-# Automatically increase process limit where necessary for building.
-_ULIMIT_CMD=
-.if defined(UNLIMIT_RESOURCES)
-. for __tmp__ in ${UNLIMIT_RESOURCES}
-. if defined(ULIMIT_CMD_${__tmp__})
-_ULIMIT_CMD+= ${ULIMIT_CMD_${__tmp__}} ;
-. endif
-. endfor
-.endif
-
-# If GNU_CONFIGURE is defined, then pass LIBS to the GNU configure script.
-# also pass in a CONFIG_SHELL to avoid picking up bash
-.if defined(GNU_CONFIGURE)
-CONFIG_SHELL?= ${SH}
-CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
-CONFIGURE_ENV+= LIBS=${LIBS:M*:Q}
-CONFIGURE_ENV+= install_sh=${INSTALL:Q}
-. if defined(USE_LIBTOOL) && defined(_OPSYS_MAX_CMDLEN_CMD)
-CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${_OPSYS_MAX_CMDLEN_CMD:sh}
-. endif
-.endif
-
-_EXTRACT_COOKIE= ${WRKDIR}/.extract_done
-_TOOLS_COOKIE= ${WRKDIR}/.tools_done
-_WRAPPER_COOKIE= ${WRKDIR}/.wrapper_done
-_PATCH_COOKIE= ${WRKDIR}/.patch_done
-_CONFIGURE_COOKIE= ${WRKDIR}/.configure_done
-_BUILD_COOKIE= ${WRKDIR}/.build_done
-_TEST_COOKIE= ${WRKDIR}/.test_done
-_INSTALL_COOKIE= ${WRKDIR}/.install_done
-_PACKAGE_COOKIE= ${WRKDIR}/.package_done
-_INTERACTIVE_COOKIE= .interactive_stage
-_NULL_COOKIE= ${WRKDIR}/.null
-
-# Miscellaneous overridable commands:
-SHCOMMENT?= ${ECHO_MSG} >/dev/null '***'
-
-LIBABISUFFIX?=
-
-TOUCH_FLAGS?= -f
-
-# Figure out where the local mtree file is
-MTREE_FILE?= ${PKGSRCDIR}/mk/platform/${OPSYS}.pkg.dist
-MTREE_ARGS?= -U -f ${MTREE_FILE} -d -e -p
-
-# Debugging levels for this file, dependent on PKG_DEBUG_LEVEL definition
-# 0 == normal, default, quiet operation
-# 1 == all shell commands echoed before invocation
-# 2 == shell "set -x" operation
-PKG_DEBUG_LEVEL?= 0
-_PKG_SILENT= @
-_PKG_DEBUG= # empty
-_PKG_DEBUG_SCRIPT= # empty
-
-.if ${PKG_DEBUG_LEVEL} > 0
-_PKG_SILENT= # empty
-.endif
-
-.if ${PKG_DEBUG_LEVEL} > 1
-_PKG_DEBUG= set -x;
-_PKG_DEBUG_SCRIPT= ${SH} -x
-.endif
-
-# A few aliases for *-install targets
-INSTALL= ${TOOLS_INSTALL} # XXX override sys.mk
-INSTALL_PROGRAM?= \
- ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_GAME?= \
- ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}
-INSTALL_SCRIPT?= \
- ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_LIB?= \
- ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_DATA?= \
- ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
-INSTALL_GAME_DATA?= \
- ${INSTALL} ${COPY} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEDATAMODE}
-INSTALL_MAN?= \
- ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
-INSTALL_PROGRAM_DIR?= \
- ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${PKGDIRMODE}
-INSTALL_SCRIPT_DIR?= \
- ${INSTALL_PROGRAM_DIR}
-INSTALL_LIB_DIR?= \
- ${INSTALL_PROGRAM_DIR}
-INSTALL_DATA_DIR?= \
- ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${PKGDIRMODE}
-INSTALL_MAN_DIR?= \
- ${INSTALL} -d -o ${MANOWN} -g ${MANGRP} -m ${PKGDIRMODE}
-
-INSTALL_MACROS= BSD_INSTALL_PROGRAM=${INSTALL_PROGRAM:Q} \
- BSD_INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} \
- BSD_INSTALL_LIB=${INSTALL_LIB:Q} \
- BSD_INSTALL_DATA=${INSTALL_DATA:Q} \
- BSD_INSTALL_MAN=${INSTALL_MAN:Q} \
- BSD_INSTALL=${INSTALL:Q} \
- BSD_INSTALL_PROGRAM_DIR=${INSTALL_PROGRAM_DIR:Q} \
- BSD_INSTALL_SCRIPT_DIR=${INSTALL_SCRIPT_DIR:Q} \
- BSD_INSTALL_LIB_DIR=${INSTALL_LIB_DIR:Q} \
- BSD_INSTALL_DATA_DIR=${INSTALL_DATA_DIR:Q} \
- BSD_INSTALL_MAN_DIR=${INSTALL_MAN_DIR:Q} \
- BSD_INSTALL_GAME=${INSTALL_GAME:Q} \
- BSD_INSTALL_GAME_DATA=${INSTALL_GAME_DATA:Q}
-MAKE_ENV+= ${INSTALL_MACROS}
-SCRIPTS_ENV+= ${INSTALL_MACROS}
-
-# The user can override the NO_PACKAGE by specifying this from
-# the make command line
-.if defined(FORCE_PACKAGE)
-. undef NO_PACKAGE
-.endif
-
-# Set PLIST_SUBST to substitute "${variable}" to "value" in PLIST
-PLIST_SUBST+= OPSYS=${OPSYS} \
- OS_VERSION=${OS_VERSION} \
- MACHINE_ARCH=${MACHINE_ARCH} \
- MACHINE_GNU_ARCH=${MACHINE_GNU_ARCH} \
- MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM} \
- LN=${LN:Q} \
- LOWER_VENDOR=${LOWER_VENDOR} \
- LOWER_OPSYS=${LOWER_OPSYS} \
- LOWER_OS_VERSION=${LOWER_OS_VERSION} \
- PKGBASE=${PKGBASE} \
- PKGNAME=${PKGNAME_NOREV} \
- PKGLOCALEDIR=${PKGLOCALEDIR} \
- PKGVERSION=${PKGVERSION:C/nb[0-9]*$//} \
- LOCALBASE=${LOCALBASE} \
- VIEWBASE=${VIEWBASE} \
- X11BASE=${X11BASE} \
- X11PREFIX=${X11PREFIX} \
- SVR4_PKGNAME=${SVR4_PKGNAME} \
- CHGRP=${CHGRP:Q} \
- CHMOD=${CHMOD:Q} \
- CHOWN=${CHOWN:Q} \
- MKDIR=${MKDIR:Q} \
- RMDIR=${RMDIR:Q} \
- RM=${RM:Q} \
- TRUE=${TRUE:Q} \
- QMAILDIR=${QMAILDIR} \
- PKGMANDIR=${PKGMANDIR}
-
-# Handle alternatives
-#
-.include "../../mk/alternatives.mk"
-
-# CONF_DEPENDS notes a dependency where the config directory for the
-# package matches the dependency's config directory. CONF_DEPENDS is
-# only meaningful if ${PKG_INSTALLATION_TYPE} == "pkgviews".
-#
-CONF_DEPENDS?= # empty
-.if !empty(CONF_DEPENDS)
-USE_PKGINSTALL= yes
-.endif
-
-.if defined(USE_PKGINSTALL) && !empty(USE_PKGINSTALL:M[yY][eE][sS])
-. include "../../mk/install/bsd.pkginstall.mk"
-.endif
-
-# Set INSTALL_FILE to be the name of any INSTALL file
-.if !defined(INSTALL_FILE) && exists(${PKGDIR}/INSTALL)
-INSTALL_FILE= ${PKGDIR}/INSTALL
-.endif
-
-# Set DEINSTALL_FILE to be the name of any DEINSTALL file
-.if !defined(DEINSTALL_FILE) && exists(${PKGDIR}/DEINSTALL)
-DEINSTALL_FILE= ${PKGDIR}/DEINSTALL
-.endif
-
-# If MESSAGE hasn't been defined, then set MESSAGE_SRC to be a space-separated
-# list of files to be concatenated together to generate the MESSAGE file.
-#
-.if !defined(MESSAGE_SRC) && !defined(MESSAGE)
-. if exists(${PKGDIR}/MESSAGE)
-MESSAGE_SRC= ${PKGDIR}/MESSAGE
-. else
-. if exists(${PKGDIR}/MESSAGE.common)
-MESSAGE_SRC= ${PKGDIR}/MESSAGE.common
-. endif
-. if exists(${PKGDIR}/MESSAGE.${OPSYS})
-MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS}
-. endif
-. if exists(${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g})
-MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g}
-. endif
-. if exists(${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g})
-MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g}
-. endif
-. endif
-.endif
-
-.if defined(MESSAGE_SRC)
-MESSAGE= ${PKG_DB_TMPDIR}/+DISPLAY
-
-# Set MESSAGE_SUBST to substitute "${variable}" to "value" in MESSAGE
-MESSAGE_SUBST+= PKGNAME=${PKGNAME} \
- PKGBASE=${PKGBASE} \
- PREFIX=${PREFIX} \
- LOCALBASE=${LOCALBASE} \
- VIEWBASE=${VIEWBASE} \
- X11PREFIX=${X11PREFIX} \
- X11BASE=${X11BASE} \
- PKG_SYSCONFDIR=${PKG_SYSCONFDIR} \
- ROOT_GROUP=${ROOT_GROUP} \
- ROOT_USER=${ROOT_USER} \
- QMAILDIR=${QMAILDIR}
-
-MESSAGE_SUBST_SED= ${MESSAGE_SUBST:S/=/}!/:S/$/!g/:S/^/ -e s!\\\${/}
-.endif
-
-# If pkgsrc is supposed to ensure that tests are run before installation
-# of the package, then the build targets should be "build test", otherwise
-# just "build" suffices. _PKGSRC_BUILD_TARGETS is used in the "all",
-# "install", and "uptodate-digest" targets.
-#
-.if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
-_PKGSRC_BUILD_TARGETS= build test
-.else
-_PKGSRC_BUILD_TARGETS= build
-.endif
-
-.PHONY: uptodate-digest
-uptodate-digest:
-.if !empty(USE_DIGEST:M[yY][eE][sS])
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -f ${DISTINFO_FILE} -a \( ! -f ${DIGEST} -o ${DIGEST_VERSION} -lt ${DIGEST_REQD} \) ]; then \
- { cd ${PKGSRCDIR}/pkgtools/digest; \
- ${MAKE} clean; \
- if [ -f ${DIGEST} ]; then \
- ${MAKE} ${MAKEFLAGS} deinstall; \
- fi; \
- ${MAKE} ${MAKEFLAGS} ${_PKGSRC_BUILD_TARGETS}; \
- if [ -f ${DIGEST} ]; then \
- ${MAKE} ${MAKEFLAGS} deinstall; \
- fi; \
- ${MAKE} ${MAKEFLAGS} ${DEPENDS_TARGET}; \
- ${MAKE} ${MAKEFLAGS} clean; } \
- fi
-.else
- @${DO_NADA}
-.endif
-
-.if !defined(PKG_ARGS_COMMON)
-PKG_ARGS_COMMON= -v -c -${COMMENT:Q}" " -d ${DESCR} -f ${PLIST}
-PKG_ARGS_COMMON+= -l -b ${BUILD_VERSION_FILE} -B ${BUILD_INFO_FILE}
-PKG_ARGS_COMMON+= -s ${SIZE_PKG_FILE} -S ${SIZE_ALL_FILE}
-PKG_ARGS_COMMON+= -P "`${MAKE} ${MAKEFLAGS} run-depends-list | ${SORT} -u`"
-. if defined(CONFLICTS) && (${PKG_INSTALLATION_TYPE} == "overwrite")
-PKG_ARGS_COMMON+= -C "${CONFLICTS}"
-. endif
-. if defined(INSTALL_FILE)
-PKG_ARGS_COMMON+= -i ${INSTALL_FILE}
-. endif
-. if defined(DEINSTALL_FILE)
-PKG_ARGS_COMMON+= -k ${DEINSTALL_FILE}
-. endif
-. if defined(MESSAGE)
-PKG_ARGS_COMMON+= -D ${MESSAGE}
-. endif
-. if !defined(NO_MTREE)
-PKG_ARGS_COMMON+= -m ${MTREE_FILE}
-. endif
-. if defined(PKG_PRESERVE)
-PKG_ARGS_COMMON+= -n ${PRESERVE_FILE}
-. endif
-
-PKG_ARGS_INSTALL= -p ${PREFIX} ${PKG_ARGS_COMMON}
-PKG_ARGS_BINPKG= -p ${PREFIX:S/^${DESTDIR}//} -L ${PREFIX} ${PKG_ARGS_COMMON}
-.endif # !PKG_ARGS_COMMON
-
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-PKG_ARGS_INSTALL+= -U # don't update the pkgdb.byfile.db
-PKG_ARGS_BINPKG+= -E # create an empty views file in the binpkg
-.endif
-
-# Define SMART_MESSAGES in /etc/mk.conf for messages giving the tree
-# of dependencies for building, and the current target.
-.if defined(SMART_MESSAGES)
-_PKGSRC_IN?= ===> ${.TARGET} [${PKGNAME}${_PKGSRC_DEPS}] ===
-.else
-_PKGSRC_IN?= ===
-.endif
-
-# Used to print all the '===>' style prompts - override this to turn them off.
-ECHO_MSG?= ${ECHO}
-
-# How to do nothing. Override if you, for some strange reason, would rather
-# do something.
-DO_NADA?= ${TRUE}
-
-# If this host is behind a filtering firewall, use passive ftp(1)
-.if defined(PASSIVE_FETCH)
-FETCH_BEFORE_ARGS += -p
-.endif
-
-# Include popular master sites
-.include "../../mk/bsd.sites.mk"
-
-.if defined(DIST_SUBDIR)
-_MASTER_SITE_BACKUP:= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}/}
-. if defined(MASTER_SITE_OVERRIDE)
-_MASTER_SITE_OVERRIDE:= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}/}
-. endif # MASTER_SITE_OVERRIDE
-.else # !DIST_SUBDIR
-_MASTER_SITE_BACKUP:= ${MASTER_SITE_BACKUP}
-. if defined(MASTER_SITE_OVERRIDE)
-_MASTER_SITE_OVERRIDE:= ${MASTER_SITE_OVERRIDE}
-. endif # MASTER_SITE_OVERRIDE
-.endif # DIST_SUBDIR
-
-# Where to put distfiles that don't have any other master site
-MASTER_SITE_LOCAL?= \
- ${MASTER_SITE_BACKUP:=LOCAL_PORTS/} \
-
-ALLFILES?= ${DISTFILES} ${PATCHFILES}
-CKSUMFILES?= ${ALLFILES}
-.for __tmp__ in ${IGNOREFILES}
-CKSUMFILES:= ${CKSUMFILES:N${__tmp__}}
-.endfor
-
-# List of all files, with ${DIST_SUBDIR} in front. Used for fetch and checksum.
-.if defined(DIST_SUBDIR)
-. if ${CKSUMFILES} != ""
-_CKSUMFILES?= ${CKSUMFILES:S/^/${DIST_SUBDIR}\//}
-. endif
-. if !empty(DISTFILES)
-_DISTFILES?= ${DISTFILES:S/^/${DIST_SUBDIR}\//}
-. else
-_DISTFILES?= # empty
-. endif
-. if defined(IGNOREFILES) && !empty(IGNOREFILES)
-_IGNOREFILES?= ${IGNOREFILES:S/^/${DIST_SUBDIR}\//}
-. endif
-. if defined(PATCHFILES) && !empty(PATCHFILES)
-_PATCHFILES?= ${PATCHFILES:S/^/${DIST_SUBDIR}\//}
-. else
-_PATCHFILES?= # empty
-. endif
-.else
-_CKSUMFILES?= ${CKSUMFILES}
-_DISTFILES?= ${DISTFILES}
-_IGNOREFILES?= ${IGNOREFILES}
-_PATCHFILES?= ${PATCHFILES}
-.endif
-_ALLFILES?= ${_DISTFILES} ${_PATCHFILES}
-
-BUILD_DEFS+= _DISTFILES _PATCHFILES
-
-.if defined(GNU_CONFIGURE)
-HAS_CONFIGURE= yes
-
-GNU_CONFIGURE_PREFIX?= ${PREFIX}
-CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX}
-
-USE_GNU_CONFIGURE_HOST?= yes
-. if !empty(USE_GNU_CONFIGURE_HOST:M[yY][eE][sS])
-CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
-. endif
-
-CONFIGURE_HAS_INFODIR?= yes
-. if !empty(INFO_FILES) && !empty(CONFIGURE_HAS_INFODIR:M[yY][eE][sS])
-CONFIGURE_ARGS+= --infodir=${PREFIX}/${INFO_DIR}
-. endif
-
-CONFIGURE_HAS_MANDIR?= yes
-GNU_CONFIGURE_MANDIR?= ${PREFIX}/${PKGMANDIR}
-. if !empty(CONFIGURE_HAS_MANDIR:M[yY][eE][sS])
-CONFIGURE_ARGS+= --mandir=${GNU_CONFIGURE_MANDIR:Q}
-. endif
-#
-# By default, override config.guess and config.sub for GNU configure
-# packages. pkgsrc's updated versions of these scripts allows GNU
-# configure to recognise NetBSD ports such as shark.
-#
-CONFIG_GUESS_OVERRIDE?= \
- config.guess */config.guess */*/config.guess
-CONFIG_SUB_OVERRIDE?= \
- config.sub */config.sub */*/config.sub
-CONFIG_RPATH_OVERRIDE?= # set by platform file as needed
-#
-# By default, override config.status for GNU configure packages. We
-# never want it to execute after the configure phase has ended as it
-# might overwrite any post-configure changes we might have made to the
-# generated files.
-#
-CONFIG_STATUS_OVERRIDE?= \
- config.status */config.status */*/config.status
-.endif
-
-#
-# Config file related settings - see doc/pkgsrc.txt
-#
-PKG_SYSCONFVAR?= ${PKGBASE}
-PKG_SYSCONFSUBDIR?= # empty
-.if ${PKG_INSTALLATION_TYPE} == "overwrite"
-PKG_SYSCONFDEPOTBASE= # empty
-PKG_SYSCONFBASEDIR= ${PKG_SYSCONFBASE}
-.else
-. if !empty(PKG_SYSCONFBASE:M${PREFIX}) || \
- !empty(PKG_SYSCONFBASE:M${PREFIX}/*)
-PKG_SYSCONFDEPOTBASE= # empty
-PKG_SYSCONFBASEDIR= ${PKG_SYSCONFBASE}
-. if !empty(CONF_DEPENDS)
-_PLIST_IGNORE_FILES+= ${PKG_SYSCONFDIR:S,^${PREFIX}/,,}
-. endif
-. else
-PKG_SYSCONFDEPOTBASE= ${PKG_SYSCONFBASE}/${DEPOT_SUBDIR}
-PKG_SYSCONFBASEDIR= ${PKG_SYSCONFDEPOTBASE}/${PKGNAME}
-. endif
-.endif
-.if empty(PKG_SYSCONFSUBDIR)
-DFLT_PKG_SYSCONFDIR:= ${PKG_SYSCONFBASEDIR}
-.else
-DFLT_PKG_SYSCONFDIR:= ${PKG_SYSCONFBASEDIR}/${PKG_SYSCONFSUBDIR}
-.endif
-PKG_SYSCONFDIR= ${DFLT_PKG_SYSCONFDIR}
-.if defined(PKG_SYSCONFDIR.${PKG_SYSCONFVAR})
-PKG_SYSCONFDIR= ${PKG_SYSCONFDIR.${PKG_SYSCONFVAR}}
-PKG_SYSCONFBASEDIR= ${PKG_SYSCONFDIR.${PKG_SYSCONFVAR}}
-PKG_SYSCONFDEPOTBASE= # empty
-.endif
-
-ALL_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
-BUILD_DEFS+= PKG_SYSCONFBASEDIR PKG_SYSCONFDIR
-
-# These are all of the tools use by pkgsrc Makefiles. This should
-# eventually be split up into lists of tools required by different
-# phases of a pkgsrc build.
-#
-USE_TOOLS+= \
- [ awk basename cat chgrp chmod chown cmp cp cut dirname echo \
- egrep env false file find grep head hostname id install ln ls \
- mkdir mv pax pwd rm rmdir sed sh sort tail test touch tr true \
- wc xargs
-
-# bsd.wrapper.mk
-USE_TOOLS+= expr
-
-# bsd.bulk-pkg.mk uses certain tools
-.if defined(BATCH)
-USE_TOOLS+= tee tsort
-.endif
-
-.if !defined(NO_MTREE)
-USE_TOOLS+= mtree
-.endif
-
-.if defined(PKG_PRESERVE)
-USE_TOOLS+= date
-.endif
-
-# We need a mail command to send mail to ${PKGSRC_MESSAGE_RECIPIENTS}.
-.if !empty(PKGSRC_MESSAGE_RECIPIENTS)
-USE_TOOLS+= mail
-.endif
-
-# We need shlock and sleep if we're using locking to synchronize multiple
-# builds over the same pkgsrc tree.
-#
-.if ${PKGSRC_LOCKTYPE} != "none"
-USE_TOOLS+= shlock sleep
-.endif
-
-# If MANZ is defined, then we want the final man pages to be compressed.
-# If MANZ is not defined, then we want the final man pages to be
-# uncompressed.
-#
-# We need to figure out if during installation, we need either gunzip or
-# gzip to decompress or compress the installed man pages. If a package
-# sets MANCOMPRESSED to "yes" or "no", then it's an indication to the
-# install code that the package itself installed the man pages either
-# compressed or uncompressed. If a package sets MANCOMPRESSED_IF_MANZ,
-# then the package uses BSD-style makefiles, so we need to determine if
-# the BSD-style makefile causes the man pages to be compressed or not.
-#
-.if !defined(_MANCOMPRESSED)
-. if defined(MANCOMPRESSED) && !empty(MANCOMPRESSED:M[yY][eE][sS])
-_MANCOMPRESSED= yes
-. else
-_MANCOMPRESSED= no
-. endif
-. if defined(MANCOMPRESSED_IF_MANZ) && defined(PKGMAKECONF)
-_MANCOMPRESSED!= \
- { ${ECHO} ".include \""${PKGMAKECONF:Q}"\""; \
- ${ECHO} "all:"; \
- ${ECHO} ".if defined(MANZ)"; \
- ${ECHO} " @${ECHO} yes"; \
- ${ECHO} ".else"; \
- ${ECHO} " @${ECHO} no"; \
- ${ECHO} ".endif"; \
- } | ${MAKE} -f - all
-. endif
-.endif
-_MANZ= ${MANZ:Dyes:Uno}
-MAKEVARS+= _MANCOMPRESSED _MANZ
-
-.if !empty(_MANCOMPRESSED:M[yY][eE][sS]) && empty(_MANZ:M[yY][eE][sS])
-USE_TOOLS+= gunzip
-.endif
-.if empty(_MANCOMPRESSED:M[yY][eE][sS]) && !empty(_MANZ:M[yY][eE][sS])
-USE_TOOLS+= gzip
-.endif
-
-# Extract
-.include "../../mk/bsd.pkg.extract.mk"
-
-# Patch
-.include "../../mk/bsd.pkg.patch.mk"
-
-# Check
-.include "../../mk/bsd.pkg.check.mk"
-
-# Tools
-.include "../../mk/tools/bsd.tools.mk"
-
-# Unprivileged builds
-.include "../../mk/unprivileged.mk"
-
-# If NO_BUILD is defined, default to not needing a compiler.
-.if defined(NO_BUILD)
-USE_LANGUAGES?= # empty
-.endif
-
-# Get the proper dependencies and set the PATH to use the compiler
-# named in PKGSRC_COMPILER.
-#
-.include "../../mk/compiler.mk"
-
-.include "../../mk/wrapper/bsd.wrapper.mk"
-
-.if defined(RECOMMENDED)
-. if !empty(IGNORE_RECOMMENDED:M[nN][oO])
-DEPENDS+= ${RECOMMENDED}
-. else
-BUILD_DEFS+= IGNORE_RECOMMENDED
-. endif
-.endif
-
-# Remove some redundant dependencies from the DEPENDS list.
-.include "../../mk/reduce-depends.mk"
-DEPENDS:= ${REDUCED_DEPENDS}
-
-# Find out the PREFIX of dependencies where the PREFIX is needed at build time.
-.if defined(EVAL_PREFIX)
-FIND_PREFIX:= ${EVAL_PREFIX}
-. include "../../mk/find-prefix.mk"
-.endif
-
-.if !defined(_PATH_ORIG)
-_PATH_ORIG:= ${PATH}
-MAKEFLAGS+= _PATH_ORIG=${_PATH_ORIG:Q}
-.endif
-
-.if !empty(PREPEND_PATH)
-# This is very Special. Because PREPEND_PATH is set with += in reverse order,
-# the awk expression reverses the order again (since bootstrap bmake doesn't
-# yet support the :[-1..1] construct).
-_PATH_CMD= ${ECHO} `${ECHO} ${PREPEND_PATH:Q} | ${AWK} '{ORS=":";for (i=NF;i>0;i--) print $$i}'`${_PATH_ORIG}
-PATH= ${_PATH_CMD:sh} # DOES NOT use :=, to defer evaluation
-.endif
-
-# Add these bits to the environment use when invoking the sub-make
-# processes for build-related phases.
-#
-BUILD_ENV+= PATH=${PATH:Q}
-
-.MAIN: all
-
-################################################################
-# Many ways to disable a package.
-#
-# Ignore packages that can't be resold if building for a CDROM.
-#
-# Don't build a package if it's restricted and we don't want to
-# get into that.
-#
-# Don't build any package that utilizes strong cryptography, for
-# when the law of the land forbids it.
-#
-# Don't attempt to build packages against X if we don't have X.
-#
-# Don't build a package if it's broken.
-################################################################
-
-.if !defined(NO_SKIP)
-. if (defined(NO_BIN_ON_CDROM) && defined(FOR_CDROM))
-PKG_FAIL_REASON+= "${PKGNAME} may not be placed in binary form on a CDROM:" \
- " "${NO_BIN_ON_CDROM:Q}
-. endif
-. if (defined(NO_SRC_ON_CDROM) && defined(FOR_CDROM))
-PKG_FAIL_REASON+= "${PKGNAME} may not be placed in source form on a CDROM:" \
- " "${NO_SRC_ON_CDROM:Q}
-. endif
-. if (defined(RESTRICTED) && defined(NO_RESTRICTED))
-PKG_FAIL_REASON+= "${PKGNAME} is restricted:" \
- " "${RESTRICTED:Q}
-. endif
-. if !(${MKCRYPTO} == "YES" || ${MKCRYPTO} == yes)
-. if defined(CRYPTO)
-PKG_FAIL_REASON+= "${PKGNAME} may not be built, because it utilizes strong cryptography"
-. endif
-. endif
-. if defined(USE_X11) && !exists(${X11BASE})
-. if ${X11_TYPE} == "native"
-PKG_FAIL_REASON+= "${PKGNAME} uses X11, but ${X11BASE} not found"
-. else
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${X11BASE}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${X11BASE}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} ${PKGDIRMODE} ${X11BASE}
-. endif
-. endif
-. if defined(BROKEN)
-PKG_FAIL_REASON+= "${PKGNAME} is marked as broken:" ${BROKEN:Q}
-. endif
-
-. if defined(LICENSE)
-. if defined(ACCEPTABLE_LICENSES)
-. for _lic in ${ACCEPTABLE_LICENSES}
-. if ${LICENSE} == "${_lic}"
-_ACCEPTABLE= yes
-. endif # LICENSE == _lic
-. endfor # _lic
-. endif # ACCEPTABLE_LICENSES
-. if !defined(_ACCEPTABLE)
-PKG_FAIL_REASON+= "${PKGNAME} has an unacceptable license: ${LICENSE}." \
- " To view the license, enter \"${MAKE} show-license\"." \
- " To indicate acceptance, add this line to your /etc/mk.conf:" \
- " ACCEPTABLE_LICENSES+=${LICENSE}"
-. endif # _ACCEPTABLE
-. endif # LICENSE
-
-# Define __PLATFORM_OK only if the OS matches the pkg's allowed list.
-. if defined(ONLY_FOR_PLATFORM) && !empty(ONLY_FOR_PLATFORM)
-. for __tmp__ in ${ONLY_FOR_PLATFORM}
-. if ${MACHINE_PLATFORM:M${__tmp__}} != ""
-__PLATFORM_OK?= yes
-. endif # MACHINE_PLATFORM
-. endfor # __tmp__
-. else # !ONLY_FOR_PLATFORM
-__PLATFORM_OK?= yes
-. endif # ONLY_FOR_PLATFORM
-. for __tmp__ in ${NOT_FOR_PLATFORM}
-. if ${MACHINE_PLATFORM:M${__tmp__}} != ""
-. undef __PLATFORM_OK
-. endif # MACHINE_PLATFORM
-. endfor # __tmp__
-. if !defined(__PLATFORM_OK)
-PKG_SKIP_REASON+= "${PKGNAME} is not available for ${MACHINE_PLATFORM}"
-. endif # !__PLATFORM_OK
-
-#
-# Now print some error messages that we know we should ignore the pkg
-#
-. if defined(PKG_FAIL_REASON) || defined(PKG_SKIP_REASON)
-fetch checksum extract patch configure all build install package \
-update install-depends:
-. if defined(SKIP_SILENT)
- @${DO_NADA}
-. else
- @for str in ${PKG_FAIL_REASON} ${PKG_SKIP_REASON}; do \
- ${ECHO} "${_PKGSRC_IN}> $$str"; \
- done
-. endif
-. if defined(PKG_FAIL_REASON)
- @${FALSE}
-. endif
-. endif # SKIP
-.endif # !NO_SKIP
-
-# Add these defs to the ones dumped into +BUILD_DEFS
-BUILD_DEFS+= PKGPATH
-BUILD_DEFS+= OPSYS OS_VERSION MACHINE_ARCH MACHINE_GNU_ARCH
-BUILD_DEFS+= CPPFLAGS CFLAGS FFLAGS LDFLAGS
-BUILD_DEFS+= CONFIGURE_ENV CONFIGURE_ARGS
-BUILD_DEFS+= OBJECT_FMT LICENSE RESTRICTED
-BUILD_DEFS+= NO_SRC_ON_FTP NO_SRC_ON_CDROM
-BUILD_DEFS+= NO_BIN_ON_FTP NO_BIN_ON_CDROM
-
-.if defined(OSVERSION_SPECIFIC)
-BUILD_DEFS+= OSVERSION_SPECIFIC
-.endif # OSVERSION_SPECIFIC
-
-.PHONY: all
-.if !target(all)
-all: ${_PKGSRC_BUILD_TARGETS}
-.endif
-
-.if !defined(DEPENDS_TARGET)
-. if make(package)
-DEPENDS_TARGET= package
-. elif make(update)
-. if defined(UPDATE_TARGET) && ${UPDATE_TARGET} == "replace"
-DEPENDS_TARGET= ${UPDATE_TARGET}
-. else
-DEPENDS_TARGET= update
-. endif
-. elif make(bin-install)
-DEPENDS_TARGET= bin-install
-. else
-DEPENDS_TARGET= reinstall
-. endif
-.endif
-
-.if !defined(UPDATE_TARGET)
-. if ${DEPENDS_TARGET} == "update"
-. if make(package)
-UPDATE_TARGET= package
-. else
-UPDATE_TARGET= install
-. endif
-. else
-UPDATE_TARGET= ${DEPENDS_TARGET}
-. endif
-.endif
-
-UPDATE_RUNNING?= NO
-
-################################################################
-# The following are used to create easy dummy targets for
-# disabling some bit of default target behavior you don't want.
-# They still check to see if the target exists, and if so don't
-# do anything, since you might want to set this globally for a
-# group of packages in a Makefile.inc, but still be able to
-# override from an individual Makefile.
-################################################################
-
-# Disable checksum
-.PHONY: checksum
-.if (defined(NO_CHECKSUM) || exists(${_EXTRACT_COOKIE})) && !target(checksum)
-checksum: fetch
- @${DO_NADA}
-.endif
-
-# Disable wrapper
-.PHONY: wrapper
-.if defined(NO_BUILD) && !target(wrapper)
-wrapper: tools
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${_WRAPPER_COOKIE}
-.endif
-
-# Disable configure
-.PHONY: configure
-.if defined(NO_CONFIGURE) && !target(configure)
-configure: wrapper
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${_CONFIGURE_COOKIE}
-.endif
-
-# Disable build
-.PHONY: build
-.if defined(NO_BUILD) && !target(build)
-build: configure
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${_BUILD_COOKIE}
-.endif
-
-# Disable install
-.PHONY: install
-.if defined(NO_INSTALL) && !target(install)
-install: build
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${_INSTALL_COOKIE}
-.endif
-
-# Disable package
-.PHONY: package
-.if defined(NO_PACKAGE) && !target(package)
-package:
-. if defined(SKIP_SILENT)
- @${DO_NADA}
-. else
- @${ECHO_MSG} "${_PKGSRC_IN}> ${PKGNAME} may not be packaged: ${NO_PACKAGE}."
-. endif
-.endif
-
-################################################################
-# More standard targets start here.
-#
-# These are the body of the build/install framework. If you are
-# not happy with the default actions, and you can't solve it by
-# adding pre-* or post-* targets/scripts, override these.
-################################################################
-
-###
-### _RESUME_TRANSFER:
-###
-### Macro to resume a previous transfer, needs to have defined
-### the following options in mk.conf:
-###
-### PKG_RESUME_TRANSFERS
-### FETCH_RESUME_ARGS (if FETCH_CMD != default)
-### FETCH_OUTPUT_ARGS (if FETCH_CMD != default)
-###
-### For example if you want to use wget (pkgsrc/net/wget):
-###
-### FETCH_CMD=wget
-### FETCH_RESUME_ARGS=-c
-### FETCH_OUTPUT_ARGS=-O
-###
-### How does it work?
-###
-### FETCH_CMD downloads the file and saves it temporally into $$bfile.temp
-### if the checksum match the correct one, $$bfile.temp is renamed to
-### the original name.
-###
-
-_RESUME_TRANSFER= \
- ofile="${DISTDIR}/${DIST_SUBDIR}/$$bfile"; \
- tfile="${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp"; \
- tsize=`${AWK} '/^Size/ && $$2 == '"\"($$file)\""' { print $$4 }' ${DISTINFO_FILE}` || ${TRUE}; \
- osize=`${WC} -c < $$ofile`; \
- \
- case "$$tsize" in \
- "") ${ECHO_MSG} "No size in distinfo file (${DISTINFO_FILE})"; \
- break;; \
- esac; \
- \
- if [ "$$osize" -eq "$$tsize" ]; then \
- if [ -f "$$tfile" ]; then \
- ${RM} $$tfile; \
- fi; \
- need_fetch=no; \
- elif [ "$$osize" -lt "$$tsize" -a ! -f "$$tfile" ]; then \
- ${CP} $$ofile $$tfile; \
- dsize=`${WC} -c < $$tfile`; \
- need_fetch=yes; \
- elif [ -f "$$tfile" -a "$$dsize" -gt "$$ossize" ]; then \
- dsize=`${WC} -c < $$tfile`; \
- need_fetch=yes; \
- else \
- if [ -f "$$tfile" ]; then \
- dsize=`${WC} -c < $$tfile`; \
- fi; \
- need_fetch=yes; \
- fi; \
- if [ "$$need_fetch" = "no" ]; then \
- break; \
- elif [ -f "$$tfile" -a "$$dsize" -eq "$$tsize" ]; then \
- ${MV} $$tfile $$ofile; \
- break; \
- elif [ -n "$$ftp_proxy" -o -n "$$http_proxy" ]; then \
- ${ECHO_MSG} "===> Resume is not supported by ftp(1) using http/ftp proxies."; \
- break; \
- elif [ "$$need_fetch" = "yes" -a "$$dsize" -lt "$$tsize" ]; then \
- if [ "${FETCH_CMD:T}" != "ftp" -a -z "${FETCH_RESUME_ARGS}" ]; then \
- ${ECHO_MSG} "=> Resume transfers are not supported, FETCH_RESUME_ARGS is empty."; \
- break; \
- else \
- for res_site in $$sites; do \
- if [ -z "${FETCH_OUTPUT_ARGS}" ]; then \
- ${ECHO_MSG} "=> FETCH_OUTPUT_ARGS has to be defined."; \
- break; \
- fi; \
- ${ECHO_MSG} "=> $$bfile not completed, resuming:"; \
- ${ECHO_MSG} "=> Downloaded: $$dsize Total: $$tsize."; \
- ${ECHO_MSG}; \
- cd ${DISTDIR}; \
- ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${FETCH_RESUME_ARGS} \
- ${FETCH_OUTPUT_ARGS} $${bfile}.temp $${res_site}$${bfile}; \
- if [ $$? -eq 0 ]; then \
- ndsize=`${WC} -c < $$tfile`; \
- if [ "$$tsize" -eq "$$ndsize" ]; then \
- ${MV} $$tfile $$ofile; \
- fi; \
- break; \
- fi; \
- done; \
- fi; \
- elif [ "$$dsize" -gt "$$tsize" ]; then \
- ${ECHO_MSG} "==> Downloaded file larger than the recorded size."; \
- break; \
- fi
-
-#
-# Define the elementary fetch macros.
-#
-_FETCH_FILE= \
- if [ ! -f $$file -a ! -f $$bfile -a ! -h $$bfile ]; then \
- ${ECHO_MSG} "=> $$bfile doesn't seem to exist on this system."; \
- if [ ! -w ${_DISTDIR}/. ]; then \
- ${ECHO_MSG} "=> Can't download to ${_DISTDIR} (permission denied?)."; \
- exit 1; \
- fi; \
- for site in $$sites; do \
- ${ECHO_MSG} "=> Attempting to fetch $$bfile from $${site}."; \
- if [ -f ${DISTINFO_FILE} ]; then \
- ${AWK} 'NF == 5 && $$1 == "Size" && $$2 == "('$$bfile')" { printf("=> [%s %s]\n", $$4, $$5) }' ${DISTINFO_FILE}; \
- fi; \
- if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${bfile} ${FETCH_AFTER_ARGS}; then \
- if [ -n "${FAILOVER_FETCH}" -a -f ${DISTINFO_FILE} -a -f ${_DISTDIR}/$$bfile ]; then \
- alg=`${AWK} 'NF == 4 && $$2 == "('$$file')" && $$3 == "=" {print $$1; exit}' ${DISTINFO_FILE}`; \
- if [ -z "$$alg" ]; then \
- alg=${PATCH_DIGEST_ALGORITHM};\
- fi; \
- CKSUM=`${DIGEST} $$alg < ${_DISTDIR}/$$bfile`; \
- CKSUM2=`${AWK} '$$1 == "'$$alg'" && $$2 == "('$$file')" {print $$4; exit}' <${DISTINFO_FILE}`; \
- if [ "$$CKSUM" = "$$CKSUM2" -o "$$CKSUM2" = "IGNORE" ]; then \
- break; \
- else \
- ${ECHO_MSG} "=> Checksum failure - trying next site."; \
- fi; \
- elif [ ! -f ${_DISTDIR}/$$bfile ]; then \
- ${ECHO_MSG} "=> FTP didn't fetch expected file, trying next site." ; \
- else \
- break; \
- fi; \
- fi \
- done; \
- if [ ! -f ${_DISTDIR}/$$bfile ]; then \
- ${ECHO_MSG} "=> Couldn't fetch $$bfile - please try to retrieve this";\
- ${ECHO_MSG} "=> file manually into ${_DISTDIR} and try again."; \
- exit 1; \
- fi; \
- fi
-
-_CHECK_DIST_PATH= \
- if [ "X${DIST_PATH}" != "X" ]; then \
- for d in "" ${DIST_PATH:S/:/ /g}; do \
- case $$d in "" | ${DISTDIR}) continue;; esac; \
- if [ -f $$d/${DIST_SUBDIR}/$$bfile ]; then \
- ${ECHO} "Using $$d/${DIST_SUBDIR}/$$bfile"; \
- ${RM} -f $$bfile; \
- ${LN} -s $$d/${DIST_SUBDIR}/$$bfile $$bfile; \
- break; \
- fi; \
- done; \
- fi
-
-#
-# Set up ORDERED_SITES to work out the exact list of sites for every file,
-# using the dynamic sites script, or sorting according to the master site
-# list or the patterns in MASTER_SORT or MASTER_SORT_REGEX as appropriate.
-# No actual sorting is done until ORDERED_SITES is expanded.
-#
-.if defined(MASTER_SORT) || defined(MASTER_SORT_REGEX)
-MASTER_SORT?=
-MASTER_SORT_REGEX?=
-MASTER_SORT_REGEX+= ${MASTER_SORT:S/./\\./g:C/.*/:\/\/[^\/]*&\//}
-
-MASTER_SORT_AWK= BEGIN { RS = " "; ORS = " "; IGNORECASE = 1 ; gl = "${MASTER_SORT_REGEX:S/\\/\\\\/g}"; }
-. for srt in ${MASTER_SORT_REGEX}
-MASTER_SORT_AWK+= /${srt:C/\//\\\//g}/ { good["${srt:S/\\/\\\\/g}"] = good["${srt:S/\\/\\\\/g}"] " " $$0 ; next; }
-. endfor
-MASTER_SORT_AWK+= { rest = rest " " $$0; } END { n=split(gl, gla); for(i=1;i<=n;i++) { print good[gla[i]]; } print rest; }
-
-SORT_SITES_CMD= ${ECHO} $$unsorted_sites | ${AWK} '${MASTER_SORT_AWK}'
-ORDERED_SITES= ${_MASTER_SITE_OVERRIDE} `${SORT_SITES_CMD:S/\\/\\\\/g:C/"/\"/g}`
-.else
-ORDERED_SITES= ${_MASTER_SITE_OVERRIDE} $$unsorted_sites
-.endif
-
-#
-# Associate each file to fetch with the correct site(s).
-#
-.if defined(DYNAMIC_MASTER_SITES)
-. for fetchfile in ${_ALLFILES}
-SITES_${fetchfile:T:S/=/--/}?= `${SH} ${FILESDIR}/getsite.sh ${fetchfile:T}`
-. endfor
-.endif
-.if !empty(_DISTFILES)
-. for fetchfile in ${_DISTFILES}
-SITES_${fetchfile:T:S/=/--/}?= ${MASTER_SITES}
-. endfor
-.endif
-.if !empty(_PATCHFILES)
-. for fetchfile in ${_PATCHFILES}
-SITES_${fetchfile:T:S/=/--/}?= ${PATCH_SITES}
-. endfor
-.endif
-
-# This code is only called in a batch case, to check for the presence of
-# the distfiles
-.PHONY: batch-check-distfiles
-batch-check-distfiles:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- gotfiles=yes; \
- for file in "" ${_ALLFILES}; do \
- case "$$file" in \
- "") continue ;; \
- *) if [ ! -f ${DISTDIR}/$$file ]; then \
- gotfiles=no; \
- fi ;; \
- esac; \
- done; \
- case "$$gotfiles" in \
- no) ${ECHO} "*** This package requires user intervention to download the distfiles"; \
- ${ECHO} "*** Please fetch the distfiles manually and place them in"; \
- ${ECHO} "*** ${DISTDIR}"; \
- [ ! -z "${MASTER_SITES}" ] && \
- ${ECHO} "*** The distfiles are available from ${MASTER_SITES}"; \
- [ ! -z "${HOMEPAGE}" ] && \
- ${ECHO} "*** See ${HOMEPAGE} for more details"; \
- ${ECHO}; \
- ${TOUCH} ${_INTERACTIVE_COOKIE}; \
- ${FALSE} ;; \
- esac
-
-# check for any vulnerabilities in the package
-# Please do not modify the leading "@" here
-.PHONY: check-vulnerable
-check-vulnerable:
- @if [ ! -z "${PKG_SYSCONFDIR.audit-packages}" -a -f ${PKG_SYSCONFDIR.audit-packages}/audit-packages.conf ]; then \
- . ${PKG_SYSCONFDIR.audit-packages}/audit-packages.conf; \
- elif [ ! -z "${PKG_SYSCONFDIR}" -a -f ${PKG_SYSCONFDIR}/audit-packages.conf ]; then \
- . ${PKG_SYSCONFDIR}/audit-packages.conf; \
- fi; \
- if [ -f ${PKGVULNDIR}/pkg-vulnerabilities ]; then \
- ${SETENV} PKGNAME=${PKGNAME:Q} \
- PKGBASE=${PKGBASE:Q} \
- ${AWK} '/^$$/ { next } \
- /^#.*/ { next } \
- $$1 !~ ENVIRON["PKGBASE"] && $$1 !~ /\{/ { next } \
- { s = sprintf("${PKG_ADMIN} pmatch \"%s\" %s && ${ECHO} \"*** WARNING - %s vulnerability in %s - see %s for more information ***\"", $$1, ENVIRON["PKGNAME"], $$2, ENVIRON["PKGNAME"], $$3); system(s); }' < ${PKGVULNDIR}/pkg-vulnerabilities || ${FALSE}; \
- fi
-
-.PHONY: do-fetch
-.if !target(do-fetch)
-do-fetch:
-. if !defined(ALLOW_VULNERABLE_PACKAGES)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -f ${PKGVULNDIR}/pkg-vulnerabilities ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Checking for vulnerabilities in ${PKGNAME}"; \
- vul=`${MAKE} ${MAKEFLAGS} check-vulnerable`; \
- case "$$vul" in \
- "") ;; \
- *) ${ECHO} "$$vul"; \
- ${ECHO} "or define ALLOW_VULNERABLE_PACKAGES if this package is absolutely essential"; \
- ${FALSE} ;; \
- esac; \
- else \
- ${ECHO_MSG} "${_PKGSRC_IN}> *** No ${PKGVULNDIR}/pkg-vulnerabilities file found,"; \
- ${ECHO_MSG} "${_PKGSRC_IN}> *** skipping vulnerability checks. To fix, install"; \
- ${ECHO_MSG} "${_PKGSRC_IN}> *** the pkgsrc/security/audit-packages package and run"; \
- ${ECHO_MSG} "${_PKGSRC_IN}> *** '${LOCALBASE}/sbin/download-vulnerability-list'."; \
- fi
-. endif
-. if !empty(_ALLFILES)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${TEST} -d ${_DISTDIR} || ${MKDIR} ${_DISTDIR}
-. if ${INTERACTIVE_STAGE:Mfetch} == "fetch" && defined(BATCH)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MAKE} ${MAKEFLAGS} batch-check-distfiles
-. else
-. for fetchfile in ${_ALLFILES}
-. if defined(_FETCH_MESSAGE)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- file="${fetchfile}"; \
- if [ ! -f ${DISTDIR}/$$file ]; then \
- ${_FETCH_MESSAGE}; \
- fi
-. else
- ${_PKG_SILENT}${_PKG_DEBUG} \
- cd ${_DISTDIR}; \
- file="${fetchfile}"; \
- bfile="${fetchfile:T}"; \
- unsorted_sites="${SITES_${fetchfile:T:S/=/--/}} ${_MASTER_SITE_BACKUP}"; \
- sites="${ORDERED_SITES}"; \
- ${_CHECK_DIST_PATH}; \
- if ${TEST} "${PKG_RESUME_TRANSFERS:M[Yy][Ee][Ss]}" ; then \
- ${_FETCH_FILE}; ${_RESUME_TRANSFER}; \
- else \
- ${_FETCH_FILE}; \
- fi
-. endif # defined(_FETCH_MESSAGE)
-. endfor
-. endif # INTERACTIVE_STAGE == fetch
-. endif # !empty(_ALLFILES)
-.endif
-
-# show both build and run depends directories (non-recursively)
-.PHONY: show-depends-dirs
-.if !target(show-depends-dirs)
-_ALL_DEPENDS= ${DEPENDS} ${BUILD_DEPENDS}
-show-depends-dirs:
- @dlist=""; \
- depends=${_ALL_DEPENDS:C/^[^:]*://:O:u:Q}; \
- for reldir in $$depends; do \
- case $$reldir in \
- ../../*/*) ;; \
- *) ${ECHO} "[show-depends-dirs] warning: invalid dependency \"$$reldir\". Check DEPENDS and BUILD_DEPENDS." 1>&2; \
- continue;; \
- esac; \
- WD=`cd "$$reldir" && ${PWD_CMD}`; \
- d=`dirname $$WD`; \
- absdir=`basename $$d`/`basename $$WD`; \
- dlist="$$dlist $$absdir"; \
- done; \
- ${ECHO} $$dlist
-.endif
-
-# Show all build and run depends, reverse-breadth first, with options.
-.if make(show-all-depends-dirs) || make(show-all-depends-dirs-excl) || make (show-root-dirs)
-
-# "awk" macro to recurse over the dependencies efficiently, never running in
-# the same same directory twice. You may set the following options via "-v":
-#
-# NonSelf = 1 to not print own directory;
-# RootsOnly = 1 to print only root directories (i.e. directories
-# of packages with no dependencies), including possibly
-# own directory
-#
-_RECURSE_DEPENDS_DIRS= \
- function append_dirs(dir) { \
- command = "cd ../../" dir " && ${MAKE} show-depends-dirs"; \
- command | getline tmp_dirs; \
- close(command); \
- if (tmp_dirs ~ /^$$/) \
- root_dirs[p++] = dir; \
- for (i = 1; i <= split(tmp_dirs, tmp_r); i++) \
- if (!(tmp_r[i] in hash_all_dirs)) { \
- all_dirs[n++] = tmp_r[i]; \
- hash_all_dirs[tmp_r[i]] = 1 \
- } \
- } \
- BEGIN { \
- command = "${PWD_CMD}"; \
- command | getline start_dir; \
- close(command); \
- i = split(start_dir, tmp_r, /\//); \
- all_dirs[n++] = tmp_r[i-1] "/" tmp_r[i]; \
- for (; m < n; ) \
- append_dirs(all_dirs[m++]); \
- if (RootsOnly) { \
- printf("%s", root_dirs[--p]); \
- for (; p > 0; ) \
- printf(" %s", root_dirs[--p]) \
- } \
- else { \
- if (m > NonSelf) \
- printf("%s", all_dirs[--m]); \
- for (; m > NonSelf; ) \
- printf(" %s", all_dirs[--m]) \
- } \
- print \
- }
-
-.PHONY: show-all-depends-dirs
-.if make(show-all-depends-dirs)
-show-all-depends-dirs:
- @${AWK} '${_RECURSE_DEPENDS_DIRS}'
-.endif
-
-.PHONY: show-all-depends-dirs-excl
-.if make(show-all-depends-dirs-excl)
-show-all-depends-dirs-excl:
- @${AWK} -v NonSelf=1 '${_RECURSE_DEPENDS_DIRS}'
-.endif
-
-.PHONY: show-root-dirs
-.if make(show-root-dirs)
-show-root-dirs:
- ${_PKG_SILENT}${_PKG_DEBUG}${AWK} -v RootsOnly=1 '${_RECURSE_DEPENDS_DIRS}'
-.endif
-
-.endif # make(show-{all-depends-dirs{,-excl},root-dirs})
-
-.PHONY: show-distfiles
-.if !target(show-distfiles)
-show-distfiles:
-. if defined(PKG_FAIL_REASON)
- ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
-. else
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for file in "" ${_CKSUMFILES}; do \
- if [ "X$$file" = "X" ]; then continue; fi; \
- ${ECHO} $$file; \
- done
-. endif
-.endif
-
-.PHONY: show-downlevel
-.if !target(show-downlevel)
-show-downlevel:
-. if defined(PKG_FAIL_REASON)
- ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
-. else
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`"; \
- if [ "X$$found" != "X" -a "X$$found" != "X${PKGNAME}" ]; then \
- ${ECHO} "${PKGBASE} package: $$found installed, pkgsrc version ${PKGNAME}"; \
- if [ "X$$STOP_DOWNLEVEL_AFTER_FIRST" != "X" ]; then \
- ${ECHO} "stopping after first downlevel pkg found"; \
- exit 1; \
- fi; \
- fi
-. endif
-.endif
-
-.PHONY: show-installed-depends
-.if !target(show-installed-depends)
-show-installed-depends:
-. if !empty(DEPENDS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for i in ${DEPENDS:C/:.*$//:Q:S/\ / /g} ; do \
- echo "$$i =>" `${PKG_BEST_EXISTS} "$$i"` ; \
- done
-. endif
-.endif
-
-.PHONY: show-needs-update
-.if !target(show-needs-update)
-show-needs-update:
-. if !empty(DEPENDS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for i in `${MAKE} show-all-depends-dirs`; do \
- cd ${PKGSRCDIR}/$$i; \
- eval `${MAKE} show-vars-eval VARS='PKGNAME:want PKGWILDCARD:wild'`; \
- have=`${PKG_BEST_EXISTS} "$$wild" || ${TRUE}`; \
- if [ -z "$$have" ]; then \
- ${ECHO} "$$i => (none) => needs install of $$want"; \
- elif [ "$$have" != "$$want" ]; then \
- ${ECHO} "$$i => $$have => needs update to $$want"; \
- fi; \
- done
-. endif
-.endif
-
-.PHONY: show-pkgsrc-dir
-.if !target(show-pkgsrc-dir)
-show-pkgsrc-dir:
-. if defined(PKG_FAIL_REASON)
- ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
-. else
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`"; \
- if [ "X$$found" != "X" ]; then \
- ${ECHO} ${PKGPATH}; \
- fi
-. endif
-.endif
-
-# Extract
-
-# pkgsrc coarse-grained locking definitions and targets
-.if ${PKGSRC_LOCKTYPE} == "none"
-_ACQUIRE_LOCK= ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
-_RELEASE_LOCK= ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
-.else
-LOCKFILE= ${WRKDIR}/.lockfile
-
-_ACQUIRE_LOCK= \
- ${_PKG_SILENT}${_PKG_DEBUG} \
- SHLOCK=${SHLOCK:Q}; \
- if ${TEST} ! -f "$$SHLOCK" || ${TEST} ! -x "$$SHLOCK"; then \
- { ${ECHO} "The \"$$SHLOCK\" utility does not exist, and is necessary for locking."; \
- ${ECHO} "Please \""${MAKE:Q}" install\" in ../../pkgtools/shlock."; \
- } 1>&2; \
- ${FALSE}; \
- fi; \
- if ${TEST} x${OBJHOSTNAME:Ddefined} != x"defined"; then \
- ${ECHO} "PKGSRC_LOCKTYPE needs OBJHOSTNAME defined." 1>&2; \
- ${FALSE}; \
- fi; \
- ppid=`${PS} -p $$$$ -o ppid | ${AWK} 'NR == 2 { print $$1 }'`; \
- if ${TEST} "$$ppid" = ""; then \
- ${ECHO} "No parent process ID found."; \
- ${FALSE}; \
- fi; \
- while true; do \
- : "Remove lock files older than the last reboot"; \
- if ${TEST} -f /var/run/dmesg.boot -a -f ${LOCKFILE}; then \
- rebooted=`${FIND} /var/run/dmesg.boot -newer ${LOCKFILE} -print`; \
- if ${TEST} x"$$rebooted" != x; then \
- ${ECHO} "=> Removing stale ${LOCKFILE}"; \
- ${RM} ${LOCKFILE}; \
- fi; \
- fi; \
- ${SHLOCK} -f ${LOCKFILE} -p $$ppid && break; \
- ${ECHO} "=> Lock is held by pid `cat ${LOCKFILE}`"; \
- case "${PKGSRC_LOCKTYPE}" in \
- once) exit 1 ;; \
- sleep) ${SLEEP} ${PKGSRC_SLEEPSECS} ;; \
- esac \
- done; \
- if [ "${PKG_VERBOSE}" != "" ]; then \
- ${ECHO_MSG} "=> Lock acquired on behalf of process $$ppid"; \
- fi
-
-_RELEASE_LOCK= \
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ "${PKG_VERBOSE}" != "" ]; then \
- ${ECHO_MSG} "=> Lock released on behalf of process `${CAT} ${LOCKFILE}`"; \
- fi; \
- ${RM} ${LOCKFILE}
-.endif # PKGSRC_LOCKTYPE
-
-${WRKDIR}:
-.if !defined(KEEP_WRKDIR)
-. if ${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once"
-. if !exists(${LOCKFILE})
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -rf ${WRKDIR}
-. endif
-. endif
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${WRKDIR}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${PKG_DB_TMPDIR}
-.if defined(WRKOBJDIR)
-. if ${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once"
-. if !exists(${LOCKFILE})
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${RM} -f ${WRKDIR_BASENAME} || ${TRUE}
-. endif
-. endif
-. if !empty(CREATE_WRKDIR_SYMLINK:M[Yy][Ee][Ss])
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${LN} -s ${WRKDIR} ${WRKDIR_BASENAME} 2>/dev/null; then \
- ${ECHO} "${WRKDIR_BASENAME} -> ${WRKDIR}"; \
- fi
-. endif
-.endif # WRKOBJDIR
-
-
-# Configure
-
-# _CONFIGURE_PREREQ is a list of targets to run after pre-configure but before
-# do-configure. These targets typically edit the files used by the
-# do-configure target. The targets are run as dependencies of
-# pre-configure-override.
-#
-# _CONFIGURE_POSTREQ is a list of targets to run after do-configure but before
-# post-configure. These targets typically edit the files generated by
-# the do-configure target that are used during the build phase.
-
-.if defined(USE_PKGLOCALEDIR)
-_PKGLOCALEDIR= ${PREFIX}/${PKGLOCALEDIR}/locale
-REPLACE_LOCALEDIR_PATTERNS?= # empty
-_REPLACE_LOCALEDIR_PATTERNS= ${REPLACE_LOCALEDIR_PATTERNS}
-. if defined(HAS_CONFIGURE) || defined(GNU_CONFIGURE)
-_REPLACE_LOCALEDIR_PATTERNS+= [Mm]akefile.in*
-. else
-_REPLACE_LOCALEDIR_PATTERNS+= [Mm]akefile*
-. endif
-_REPLACE_LOCALEDIR_PATTERNS_FIND_cmd= \
- cd ${WRKSRC} && \
- ${ECHO} "__dummy-entry__" && \
- ${FIND} . \( ${_REPLACE_LOCALEDIR_PATTERNS:C/.*/-o -name "&"/g:S/-o//1} \) -print \
- | ${SED} -e 's|^\./||' \
- | ${SORT} -u
-REPLACE_LOCALEDIR?= # empty
-_REPLACE_LOCALEDIR= \
- ${REPLACE_LOCALEDIR} \
- ${_REPLACE_LOCALEDIR_PATTERNS_FIND_cmd:sh:N__dummy-entry__:N*.orig}
-
-_CONFIGURE_PREREQ+= subst-pkglocaledir
-. if empty(USE_PKGLOCALEDIR:M[nN][oO])
-SUBST_CLASSES+= pkglocaledir
-. endif
-SUBST_MESSAGE.pkglocaledir= "Fixing locale directory references."
-SUBST_FILES.pkglocaledir= ${_REPLACE_LOCALEDIR}
-SUBST_SED.pkglocaledir= \
- -e 's|^\(localedir[ :]*=\).*|\1 ${_PKGLOCALEDIR}|' \
- -e 's|^\(gnulocaledir[ :]*=\).*|\1 ${_PKGLOCALEDIR}|' \
- -e 's|\(-DLOCALEDIR[ ]*=\)[^ ]*\(\.\*\)|\1"\\"${_PKGLOCALEDIR}\\""\2|'
-.endif
-
-.if defined(REPLACE_PERL)
-REPLACE_INTERPRETER+= perl
-_REPLACE.perl.old= .*/bin/perl
-_REPLACE.perl.new= ${PERL5}
-_REPLACE_FILES.perl= ${REPLACE_PERL}
-.endif
-
-.if defined(REPLACE_INTERPRETER)
-_CONFIGURE_PREREQ+= replace-interpreter
-.PHONY: replace-interpreter
-replace-interpreter:
-. for lang in ${REPLACE_INTERPRETER}
-. for pattern in ${_REPLACE_FILES.${lang}}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- cd ${WRKSRC}; \
- for f in ${pattern}; do \
- if [ -f $${f} ]; then \
- ${SED} -e '1s|^#!${_REPLACE.${lang}.old}|#!${_REPLACE.${lang}.new}|' \
- $${f} > $${f}.new; \
- if [ -x $${f} ]; then \
- ${CHMOD} a+x $${f}.new; \
- fi; \
- ${MV} -f $${f}.new $${f}; \
- fi; \
- done
-. endfor
-. endfor
-.endif
-
-.if defined(USE_LIBTOOL) && defined(LTCONFIG_OVERRIDE)
-_CONFIGURE_PREREQ+= do-ltconfig-override
-.PHONY: do-ltconfig-override
-do-ltconfig-override:
-. for ltconfig in ${LTCONFIG_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -f ${ltconfig} ]; then \
- ${RM} -f ${ltconfig}; \
- ${ECHO} "${RM} -f libtool; ${LN} -s ${_LIBTOOL} libtool" \
- > ${ltconfig}; \
- ${CHMOD} +x ${ltconfig}; \
- fi
-. endfor
-.endif
-
-_CONFIGURE_PREREQ+= do-config-star-override
-.PHONY: do-config-star-override
-do-config-star-override:
-.if defined(GNU_CONFIGURE)
-. if !empty(CONFIG_GUESS_OVERRIDE)
-. for _pattern_ in ${CONFIG_GUESS_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- for file in ${_pattern_}; do \
- if [ -f "$$file" ]; then \
- ${RM} -f $$file; \
- ${LN} -s ${PKGSRCDIR}/mk/gnu-config/config.guess \
- $$file; \
- fi; \
- done
-. endfor
-. endif
-. if !empty(CONFIG_SUB_OVERRIDE)
-. for _pattern_ in ${CONFIG_SUB_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- for file in ${_pattern_}; do \
- if [ -f "$$file" ]; then \
- ${RM} -f $$file; \
- ${LN} -s ${PKGSRCDIR}/mk/gnu-config/config.sub \
- $$file; \
- fi; \
- done
-. endfor
-. endif
-. if !empty(CONFIG_RPATH_OVERRIDE)
-. for _pattern_ in ${CONFIG_RPATH_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- for file in ${_pattern_}; do \
- if [ -f "$$file" ]; then \
- ${RM} -f $$file; \
- ${LN} -s ${PKGSRCDIR}/mk/gnu-config/config.rpath \
- $$file; \
- fi; \
- done
-. endfor
-. endif
-.endif
-
-PKGCONFIG_OVERRIDE_SED= \
- '/^Libs:.*[ ]/s|-L\([ ]*[^ ]*\)|${COMPILER_RPATH_FLAG}\1 -L\1|g'
-PKGCONFIG_OVERRIDE_STAGE?= pre-configure
-
-.if defined(PKGCONFIG_OVERRIDE) && !empty(PKGCONFIG_OVERRIDE)
-. if ${PKGCONFIG_OVERRIDE_STAGE} == "pre-configure"
-_CONFIGURE_PREREQ+= subst-pkgconfig
-. elif ${PKGCONFIG_OVERRIDE_STAGE} == "post-configure"
-_CONFIGURE_POSTREQ+= subst-pkgconfig
-. else
-SUBST_STAGE.pkgconfig= ${PKGCONFIG_OVERRIDE_STAGE}
-. endif
-SUBST_CLASSES+= pkgconfig
-SUBST_MESSAGE.pkgconfig= "Adding rpaths to pkgconfig files."
-SUBST_FILES.pkgconfig= ${PKGCONFIG_OVERRIDE:S/^${WRKSRC}\///}
-SUBST_SED.pkgconfig= ${PKGCONFIG_OVERRIDE_SED}
-.endif
-
-# By adding this target, it makes sure the above PREREQ's work.
-.PHONY: pre-configure-override
-pre-configure-override: ${_CONFIGURE_PREREQ}
- @${DO_NADA}
-
-.PHONY: do-configure
-.if !target(do-configure)
-do-configure:
-. if defined(HAS_CONFIGURE)
-. for _dir_ in ${CONFIGURE_DIRS}
- ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
- cd ${WRKSRC}; cd ${_dir_}; \
- ${SETENV} \
- AWK="${TOOLS_AWK}" \
- INSTALL="${INSTALL} -c -o ${BINOWN} -g ${BINGRP}" \
- ac_given_INSTALL="${INSTALL} -c -o ${BINOWN} -g ${BINGRP}" \
- INSTALL_DATA="${INSTALL_DATA}" \
- INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
- INSTALL_GAME="${INSTALL_GAME}" \
- INSTALL_GAME_DATA="${INSTALL_GAME_DATA}" \
- INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
- ${CONFIGURE_ENV} ${CONFIG_SHELL} \
- ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
-. endfor
-. endif
-. if defined(USE_IMAKE)
-. for _dir_ in ${CONFIGURE_DIRS}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- cd ${WRKSRC}; cd ${_dir_}; \
- ${SETENV} ${SCRIPTS_ENV} XPROJECTROOT=${X11BASE} ${XMKMF}
-. endfor
-. endif
-.endif
-
-.if defined(USE_LIBTOOL) && \
- (defined(LIBTOOL_OVERRIDE) || defined(SHLIBTOOL_OVERRIDE))
-_CONFIGURE_POSTREQ+= do-libtool-override
-.PHONY: do-libtool-override
-do-libtool-override:
-. if defined(LIBTOOL_OVERRIDE)
-. for _pattern_ in ${LIBTOOL_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- for file in ${_pattern_}; do \
- if [ -f "$$file" ]; then \
- ${RM} -f $$file; \
- (${ECHO} '#!${CONFIG_SHELL}'; \
- ${ECHO} 'exec ${_LIBTOOL} "$$@"'; \
- ) > $$file; \
- ${CHMOD} +x $$file; \
- fi; \
- done
-. endfor
-. endif
-. if defined(SHLIBTOOL_OVERRIDE)
-. for _pattern_ in ${SHLIBTOOL_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- for file in ${_pattern_}; do \
- if [ -f "$$file" ]; then \
- ${RM} -f $$file; \
- (${ECHO} '#!${CONFIG_SHELL}'; \
- ${ECHO} 'exec ${_SHLIBTOOL} "$$@"'; \
- ) > $$file; \
- ${CHMOD} +x $$file; \
- fi; \
- done
-. endfor
-. endif
-.endif
-
-.if defined(CONFIG_STATUS_OVERRIDE)
-_CONFIGURE_POSTREQ+= do-config-status-override
-.PHONY: do-config-status-override
-do-config-status-override:
-. for _pattern_ in ${CONFIG_STATUS_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- for file in ${_pattern_}; do \
- if [ -f "$$file" ]; then \
- ${MV} -f $$file $$file.overridden; \
- ${AWK} '/ *-recheck *\| *--recheck.*\)/ { \
- print; \
- print " exit 0"; \
- next; \
- } \
- { print } \
- ' $$file.overridden > $$file; \
- ${CHMOD} +x $$file; \
- fi; \
- done
-. endfor
-.endif
-
-.PHONY: post-configure
-post-configure: ${_CONFIGURE_POSTREQ}
-
-# Build
-
-BUILD_DIRS?= ${CONFIGURE_DIRS}
-BUILD_MAKE_FLAGS?= ${MAKE_FLAGS}
-
-.PHONY: do-build
-.if !target(do-build)
-do-build:
-. for _dir_ in ${BUILD_DIRS}
- ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
- cd ${WRKSRC}; cd ${_dir_}; \
- ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
- -f ${MAKEFILE} ${BUILD_TARGET}
-. endfor
-.endif
-
-#Test
-
-TEST_DIRS?= ${BUILD_DIRS}
-TEST_ENV+= ${MAKE_ENV}
-TEST_MAKE_FLAGS?= ${MAKE_FLAGS}
-
-.PHONY: do-test
-.if !target(do-test)
-do-test:
-. if defined(TEST_TARGET) && !empty(TEST_TARGET)
-. for _dir_ in ${TEST_DIRS}
- ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
- cd ${WRKSRC}; cd ${_dir_}; \
- ${SETENV} ${TEST_ENV} ${MAKE_PROGRAM} ${TEST_MAKE_FLAGS} \
- -f ${MAKEFILE} ${TEST_TARGET}
-. endfor
-. else
- @${DO_NADA}
-. endif
-.endif
-
-# Install
-
-.PHONY: do-install
-.if !target(do-install)
-do-install:
-. for _dir_ in ${INSTALL_DIRS}
- ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
- cd ${WRKSRC}; cd ${_dir_}; \
- ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} \
- -f ${MAKEFILE} ${INSTALL_TARGET}
-. endfor
-.endif
-
-# Package
-
-.PHONY: real-su-package
-.if !target(real-su-package)
-real-su-package: ${PLIST} ${DESCR}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO_MSG} "${_PKGSRC_IN}> Building binary package for ${PKGNAME}"; \
- if ${PKG_INFO} -qe ${PKGNAME}; then \
- : The package is installed. ; \
- else \
- ${ECHO_MSG} "=> ${PKGNAME} is not installed."; \
- exit 1; \
- fi; \
- if [ ! -d ${PKGREPOSITORY} ]; then \
- ${MKDIR} ${PKGREPOSITORY}; \
- if [ $$? -ne 0 ]; then \
- ${ECHO_MSG} "=> Can't create directory ${PKGREPOSITORY}."; \
- exit 1; \
- fi; \
- fi; \
- if ${PKG_CREATE} ${PKG_ARGS_BINPKG} ${PKGFILE}; then \
- ${MAKE} ${MAKEFLAGS} package-links; \
- else \
- ${ECHO} "(pkg_create: exitcode $$?)"; \
- ${MAKE} ${MAKEFLAGS} delete-package; \
- exit 1; \
- fi
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${_PACKAGE_COOKIE}
-. if defined(NO_BIN_ON_CDROM)
- @${ECHO_MSG} "${_PKGSRC_IN}> Warning: ${PKGNAME} may not be put on a CD-ROM:"
- @${ECHO_MSG} "${_PKGSRC_IN}> " ${NO_BIN_ON_CDROM:Q}
-. endif
-. if defined(NO_BIN_ON_FTP)
- @${ECHO_MSG} "${_PKGSRC_IN}> Warning: ${PKGNAME} may not be made available through FTP:"
- @${ECHO_MSG} "${_PKGSRC_IN}> " ${NO_BIN_ON_FTP:Q}
-. endif
-. if defined(RECOMMENDED) && !empty(IGNORE_RECOMMENDED:M[yY][eE][sS])
- @${ECHO_MSG} "${_PKGSRC_IN}> Warning: dependency recommendations are being ignored!"
- @${ECHO_MSG} "${_PKGSRC_IN}> ${PKGNAME} should not be uploaded nor"
- @${ECHO_MSG} "${_PKGSRC_IN}> otherwise be used as a binary package!"
-. endif
-.endif
-
-# Some support rules for real-su-package
-
-.PHONY: package-links
-.if !target(package-links)
-package-links:
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} delete-package-links
- ${_PKG_SILENT}${_PKG_DEBUG}for cat in ${CATEGORIES}; do \
- if [ ! -d ${PACKAGES}/$$cat ]; then \
- ${MKDIR} ${PACKAGES}/$$cat; \
- if [ $$? -ne 0 ]; then \
- ${ECHO_MSG} "=> Can't create directory ${PACKAGES}/$$cat."; \
- exit 1; \
- fi; \
- fi; \
- ${RM} -f ${PACKAGES}/$$cat/${PKGNAME}${PKG_SUFX}; \
- ${LN} -s ../${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ${PACKAGES}/$$cat; \
- done;
-.endif
-
-.PHONY: delete-package-links
-.if !target(delete-package-links)
-delete-package-links:
- ${_PKG_SILENT}${_PKG_DEBUG}\
- ${FIND} ${PACKAGES} -type l -name ${PKGNAME}${PKG_SUFX} -print | ${XARGS} ${RM} -f
-.endif
-
-.PHONY: delete-package
-.if !target(delete-package)
-delete-package:
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} delete-package-links
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${PKGFILE}
-.endif
-
-.PHONY: real-su-install
-real-su-install: ${MESSAGE}
-.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER) && \
- (${PKG_INSTALLATION_TYPE} == "overwrite")
-. if defined(CONFLICTS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${RM} -f ${WRKDIR}/.CONFLICTS
-. for conflict in ${CONFLICTS}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_BEST_EXISTS} \"${conflict}\" || ${TRUE}`"; \
- if [ X"$$found" != X"" ]; then \
- ${ECHO} "$$found" >> ${WRKDIR}/.CONFLICTS; \
- fi
-. endfor
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -s ${WRKDIR}/.CONFLICTS ]; then \
- found=`${SED} -e s'|${_PKG_DBDIR}/||g' ${WRKDIR}/.CONFLICTS | tr '\012' ' '`; \
- ${ECHO_MSG} "${_PKGSRC_IN}> ${PKGNAME} conflicts with installed package(s): $$found found."; \
- ${ECHO_MSG} "*** They install the same files into the same place."; \
- ${ECHO_MSG} "*** Please remove $$found first with pkg_delete(1)."; \
- ${RM} -f ${WRKDIR}/.CONFLICTS; \
- exit 1; \
- fi
-. endif # CONFLICTS
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`"; \
- if [ "$$found" != "" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> $$found is already installed - perhaps an older version?"; \
- ${ECHO_MSG} "*** If so, you may use either of:"; \
- ${ECHO_MSG} "*** - \"pkg_delete $$found\" and \"${MAKE} reinstall\" to upgrade properly"; \
- ${ECHO_MSG} "*** - \"${MAKE} update\" to rebuild the package and all of its dependencies"; \
- ${ECHO_MSG} "*** - \"${MAKE} replace\" to replace only the package without re-linking"; \
- ${ECHO_MSG} "*** dependencies, risking various problems."; \
- exit 1; \
- fi
-.endif # !NO_PKG_REGISTER && !NO_FORCE_REGISTER && overwrite
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_INFO} -e ${PKGNAME} || ${TRUE}`"; \
- if [ "$$found" != "" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> $$found is already installed."; \
- exit 1; \
- fi
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG}if [ `${SH} -c umask` -ne ${DEF_UMASK} ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Warning: your umask is \"`${SH} -c umask`"\".; \
- ${ECHO_MSG} "If this is not desired, set it to an appropriate value (${DEF_UMASK})"; \
- ${ECHO_MSG} "and install this package again by \`\`${MAKE} deinstall reinstall''."; \
- fi
-.if empty(CHECK_FILES:M[nN][oO])
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} check-files-pre
-.endif
-.if defined(INSTALLATION_DIRS) && !empty(INSTALLATION_DIRS)
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} "${_PKGSRC_IN}> Creating installation directories"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for dir in ${INSTALLATION_DIRS}; do \
- case $$dir in \
- /*) ;; \
- *bin|*bin/*|*libexec|*libexec/*) \
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/$$dir ;; \
- ${PKGMANDIR}/*) \
- ${INSTALL_MAN_DIR} ${PREFIX}/$$dir ;; \
- *) \
- ${INSTALL_DATA_DIR} ${PREFIX}/$$dir ;; \
- esac; \
- done
-.endif # INSTALLATION_DIRS
-.if !defined(NO_MTREE)
- ${_PKG_SILENT}${_PKG_DEBUG}if [ `${ID} -u` = `${ID} -u ${ROOT_USER}` ]; then \
- if [ ! -f ${MTREE_FILE} ]; then \
- ${ECHO_MSG} "Error: mtree file \"${MTREE_FILE}\" is missing."; \
- exit 1; \
- else \
- if [ ! -d ${PREFIX} ]; then \
- ${MKDIR} ${PREFIX}; \
- fi; \
- ${MTREE} ${MTREE_ARGS} ${PREFIX}/; \
- fi; \
- else \
- ${ECHO_MSG} "Warning: not superuser, can't run mtree."; \
- ${ECHO_MSG} "Become ${ROOT_USER} and try again to ensure correct permissions."; \
- fi
-.else
- ${_PKG_SILENT}${_PKG_DEBUG}[ -d ${PREFIX} ] || ${MKDIR} ${PREFIX}
-.endif # !NO_MTREE
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} pre-install-fake-pkg
-.endif # !NO_PKG_REGISTER
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} pre-install-script
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} pre-install
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} do-install
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} post-install
- ${_PKG_SILENT}${DO_NADA} \
- # \
- # PLIST must be generated at this late point (instead of \
- # depending on it somewhere earlier), because it needs \
- # to be created _after_ the {pre,do,post}-install \
- # targets are run. \
- # \
- # We generate _before_ post-install-script is run so \
- # that the real config files and rc.d scripts aren't \
- # listed in the PLIST. \
- #
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} ${PLIST}
- ${_PKG_SILENT}${_PKG_DEBUG}newmanpages=`${EGREP} -h \
- '^([^@/]*/)*man/([^/]*/)?(man[1-9ln]/.*\.[1-9ln]|cat[1-9ln]/.*\.[0-9])(\.gz)?$$' \
- ${PLIST} 2>/dev/null || ${TRUE}`; \
- if [ "${_MANCOMPRESSED}" = "yes" -a "${_MANZ}" != "yes" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> [Automatic manual page handling]"; \
- ${ECHO_MSG} "${_PKGSRC_IN}> Decompressing manual pages for ${PKGNAME}"; \
- for manpage in $$newmanpages; do \
- manpage=`${ECHO} $$manpage | ${SED} -e 's|^man/|${PKGMANDIR}/|' -e 's|\.gz$$||'`; \
- if [ -h ${PREFIX}/$$manpage.gz ]; then \
- set - `${LS} -l ${PREFIX}/$$manpage.gz | ${SED} -e 's|\.gz$$||'`; \
- shift `expr $$# - 1`; \
- ${RM} -f ${PREFIX}/$$manpage; \
- ${LN} -s $${1} ${PREFIX}/$$manpage; \
- ${RM} ${PREFIX}/$$manpage.gz; \
- else \
- ${GUNZIP_CMD} ${PREFIX}/$$manpage.gz; \
- fi; \
- if [ X"${PKG_VERBOSE}" != X"" ]; then \
- ${ECHO_MSG} "$$manpage"; \
- fi; \
- done; \
- fi; \
- if [ "${_MANCOMPRESSED}" != "yes" -a "${_MANZ}" = "yes" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> [Automatic manual page handling]"; \
- ${ECHO_MSG} "${_PKGSRC_IN}> Compressing manual pages for ${PKGNAME}"; \
- for manpage in $$newmanpages; do \
- manpage=`${ECHO} $$manpage | ${SED} -e 's|\.gz$$||'`; \
- if [ -h ${PREFIX}/$$manpage ]; then \
- set - `${LS} -l ${PREFIX}/$$manpage`; \
- shift `expr $$# - 1`; \
- ${RM} -f ${PREFIX}/$$manpage.gz; \
- ${LN} -s $${1}.gz ${PREFIX}/$$manpage.gz; \
- ${RM} ${PREFIX}/$$manpage; \
- else \
- ${GZIP_CMD} ${PREFIX}/$$manpage; \
- fi; \
- if [ X"${PKG_VERBOSE}" != X"" ]; then \
- ${ECHO_MSG} "$$manpage"; \
- fi; \
- done; \
- fi
-.if empty(CHECK_FILES:M[nN][oO])
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} check-files-post
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} post-install-script
-.if ${_DO_SHLIB_CHECKS} == "yes"
-. if ${PKG_INSTALLATION_TYPE} == "overwrite"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MAKE} ${MAKEFLAGS} do-shlib-handling SHLIB_PLIST_MODE=0
-. endif
-.endif
-.if defined(MESSAGE)
- @${ECHO_MSG} "${_PKGSRC_IN}> Please note the following:"
- @${ECHO_MSG} ""
- @${CAT} ${MESSAGE}
- @${ECHO_MSG} ""
-. if !empty(PKGSRC_MESSAGE_RECIPIENTS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} "The ${PKGNAME} package was installed on `${HOSTNAME_CMD}` at `date`"; \
- ${ECHO} ""; \
- ${ECHO} "Please note the following:"; \
- ${ECHO} ""; \
- ${CAT} ${MESSAGE}; \
- ${ECHO} "") | \
- ${MAIL_CMD} -s"Package ${PKGNAME} installed on `${HOSTNAME_CMD}`" ${PKGSRC_MESSAGE_RECIPIENTS}
-. endif
-.endif
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} register-pkg
-.endif # !NO_PKG_REGISTER
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${_INSTALL_COOKIE}
-.if defined(PKG_DEVELOPER) && (${CHECK_SHLIBS} == "YES")
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} check-shlibs
-.endif
-.if empty(CHECK_WRKREF:M[nN][oO])
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} check-wrkref
-.endif
-.if empty(CHECK_FILES:M[nN][oO])
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} check-files
-.endif
-
-
-
-# Do handling of shared libs for two cases:
-#
-# SHLIB_PLIST_MODE=1: when first called via the ${PLIST} target,
-# update the PLIST to contain ELF symlink, run
-# ldconfig on a.out, etc. (used when called via
-# the ${PLIST} target). Will update ${PLIST}.
-# SHLIB_PLIST_MODE=0: when called via the real-su-install target,
-# actually generate symlinks for ELF, run ldconfig
-# for a.out, etc. Will not modify ${PLIST}.
-#
-# XXX This target could need some cleanup after it was ripped out of
-# real-su-install
-#
-_AOUT_AWK = \
- BEGIN { linkc = 1 } \
- /^@/ { lines[NR] = $$0; next } \
- function libtool_release(lib) { \
- if (gsub("-[^-]+\\.so\\.", ".so.", lib)) { \
- if (system("${TEST} -h ${PREFIX}/" lib) == 0) { \
- rels[NR] = lib; \
- } \
- } \
- } \
- /.*\/lib[^\/]+\.so\.[0-9]+\.[0-9]+\.[0-9]+$$/ { \
- libtool_release($$0); \
- lines[NR] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- if (sub("-[^-]+\\.so$$", ".so")) { \
- links[linkc++] = $$0; \
- } \
- next \
- } \
- /.*\/lib[^\/]+\.so\.[0-9]+\.[0-9]+$$/ { \
- libtool_release($$0); \
- lines[NR] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- if (sub("-[^-]+\\.so$$", ".so")) { \
- links[linkc++] = $$0; \
- } \
- next \
- } \
- { lines[NR] = $$0 } \
- END { \
- for (i = 0 ; i <= linkc ; i++) \
- for (j = 1 ; j < NR ; j++) \
- if (lines[j] == links[i]) \
- lines[j] = "@comment " lines[j]; \
- if (${SHLIB_PLIST_MODE}) \
- for (i = 1 ; i <= NR ; i++) { \
- print lines[i]; \
- if (rels[i] != "") \
- print rels[i]; \
- } \
- }
-
-_DYLIB_AWK= \
- /^@/ { lines[NR] = $$0; next } \
- function libtool_release(lib) { \
- if (gsub("\\.so\\.", ".", lib) || gsub("\\.so$$", "", lib)) { \
- lib = lib ".dylib"; \
- if (system("${TEST} -h ${PREFIX}/" lib) == 0) { \
- rels[NR] = lib; \
- } \
- } \
- } \
- /.*\/lib[^\/]+\.so\.[0-9]+\.[0-9]+\.[0-9]+$$/ { \
- libtool_release($$0); \
- lines[NR] = $$0; \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- if (sub("-[^-]+\\.so$$", ".so")) { \
- links[linkc++] = $$0; \
- } \
- next \
- } \
- /.*\/lib[^\/]+\.so\.[0-9]+\.[0-9]+$$/ { \
- libtool_release($$0); \
- lines[NR] = $$0; \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- if (sub("-[^-]+\\.so$$", ".so")) { \
- links[linkc++] = $$0; \
- } \
- next \
- } \
- /.*\/lib[^\/]+\.so\.[0-9]+$$/ { \
- libtool_release($$0); \
- lines[NR] = $$0; \
- links[linkc++] = $$0; \
- sub("\\.[0-9]+$$", ""); \
- links[linkc++] = $$0; \
- if (sub("-[^-]+\\.so$$", ".so")) { \
- links[linkc++] = $$0; \
- } \
- next \
- } \
- /.*\/lib[^\/]+\.so$$/ { \
- lines[NR] = $$0; \
- if (system("${TEST} -f ${PREFIX}/" $$0) == 0) { \
- next; \
- } \
- libtool_release($$0); \
- links[linkc++] = $$0; \
- if (sub("-[^-]+\\.so$$", ".so")) { \
- links[linkc++] = $$0; \
- } \
- next \
- } \
- { lines[NR] = $$0 } \
- END { \
- for (i = 0 ; i <= linkc ; i++) \
- for (j = 1 ; j <= NR ; j++) \
- if (lines[j] == links[i]) \
- lines[j] = "@comment " lines[j]; \
- if (${SHLIB_PLIST_MODE}) \
- for (i = 1 ; i <= NR ; i++) { \
- print lines[i]; \
- if (rels[i] != "") { \
- print rels[i]; \
- cmd = "${LS} -l ${PREFIX}/" rels[i]; \
- cmd | getline tgt; \
- close(cmd); \
- gsub(".* ", "", tgt); \
- if (tgts[tgt] == "") { \
- tgts[tgt] = tgt; \
- if (index(tgt, "/") == 1) \
- print tgt; \
- else { \
- prefix=""; \
- if (match(rels[i], ".*/") != 0) \
- prefix=substr(rels[i],1,RLENGTH); \
- print prefix tgt; \
- } \
- } \
- } \
- } \
- }
-
-# Turn lib*.so.*, lib*.so into lib*.so. Drop duplicates.
-_AIXLIB_AWK= \
- /^@/ { lines[NR] = $$0; next } \
- /.*\/lib[^\/]+\.so(\.[0-9]+)*$$/ { \
- sub("(\\.[0-9]+)*$$", ""); \
- sub("\\.so$$", ".so"); \
- lines[NR] = $$0; \
- next \
- } \
- { lines[NR] = $$0 } \
- END { \
- nlibs = 0; \
- for (i = 1; i <= NR; i++) { \
- for (j = 0; j < nlibs; j++) { \
- if (libs[j] == lines[i]) \
- break; \
- } \
- if (j >= nlibs) \
- print lines[i]; \
- if (match(lines[i], ".*/lib[^/]+\\.a$$")) { \
- libs[nlibs] = lines[i]; \
- nlibs++; \
- } \
- } \
- }
-
-.PHONY: do-shlib-handling
-do-shlib-handling:
-.if ${SHLIB_HANDLING} == "YES"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- sos=`${EGREP} -h '^.*/lib[^/]+\.so$$' ${PLIST} || ${TRUE}`; \
- if [ "$$sos" != "" ]; then \
- shlib_type=`${MAKE} ${MAKEFLAGS} show-shlib-type`; \
- if [ "${SHLIB_PLIST_MODE}" = "0" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> [Automatic $$shlib_type shared object handling]"; \
- fi; \
- case "$$shlib_type" in \
- ELF) ;; \
- aixlib) ;; \
- "a.out") \
- ${AWK} '${_AOUT_AWK}' <${PLIST} >${PLIST}.tmp ; \
- if [ "${SHLIB_PLIST_MODE}" = "1" ]; then \
- ${MV} ${PLIST}.tmp ${PLIST}; \
- else \
- ${RM} ${PLIST}.tmp ; \
- fi ; \
- cnt=`${EGREP} -c '^@exec[ ]*${LDCONFIG}$$' ${PLIST} || ${TRUE}`; \
- if [ "${SHLIB_PLIST_MODE}" = "1" ]; then \
- if [ $$cnt -eq 0 ]; then \
- ${ECHO} "@exec ${LDCONFIG}" >> ${PLIST}; \
- ${ECHO} "@unexec ${LDCONFIG}" >> ${PLIST}; \
- fi \
- fi; \
- if [ "${SHLIB_PLIST_MODE}" = "0" ]; then \
- if [ "${PKG_VERBOSE}" != "" ]; then \
- ${ECHO_MSG} "$$sos"; \
- ${ECHO_MSG} "Running ${LDCONFIG}"; \
- fi; \
- ${LDCONFIG} || ${TRUE}; \
- fi \
- ;; \
- "dylib") \
- ${AWK} '${_DYLIB_AWK}' <${PLIST} >${PLIST}.tmp && \
- if [ "${SHLIB_PLIST_MODE}" = "1" ]; then \
- ${MV} ${PLIST}.tmp ${PLIST}; \
- else \
- ${RM} ${PLIST}.tmp ; \
- fi ; \
- ;; \
- "*") \
- if [ "${SHLIB_PLIST_MODE}" = "0" ]; then \
- ${ECHO_MSG} "No shared libraries for ${MACHINE_ARCH}"; \
- fi ; \
- if [ "${SHLIB_PLIST_MODE}" = "1" ]; then \
- for so in $$sos; do \
- if [ X"${PKG_VERBOSE}" != X"" ]; then \
- ${ECHO_MSG} >&2 "Ignoring $$so"; \
- fi; \
- ${SED} -e "s;^$$so$$;@comment No shared objects - &;" \
- ${PLIST} >${PLIST}.tmp && ${MV} ${PLIST}.tmp ${PLIST}; \
- done; \
- fi ; \
- ;; \
- esac; \
- fi
-.endif # SHLIB_HANDLING == "YES"
-
-
-# Check if all binaries and shlibs find their needed libs
-# Must be run after "make install", so that files are installed, and
-# ${PLIST} exists.
-#
-.PHONY: check-shlibs
-check-shlibs:
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- bins=`${PKG_INFO} -qL ${PKGNAME} | { ${EGREP} -h '/(bin|sbin|libexec)/' || ${TRUE}; }`; \
- if [ "${OBJECT_FMT}" = "ELF" ]; then \
- shlibs=`${PKG_INFO} -qL ${PKGNAME} | { ${EGREP} -h '/lib/lib.*.so' || ${TRUE}; }`; \
- elif [ "${OBJECT_FMT}" = "Mach-O" ]; then \
- shlibs=`${PKG_INFO} -qL ${PKGNAME} | { ${EGREP} -h '/lib/lib.*.dylib' || ${TRUE}; }`; \
- else \
- shlibs=""; \
- fi; \
- if [ "X${LDD}" = X ]; then \
- ldd=`${TYPE} ldd 2>/dev/null | ${AWK} '{ print $$NF }'`;\
- else \
- ldd="${LDD}"; \
- fi; \
- if [ -x "$$ldd" ]; then \
- for i in $${bins} $${shlibs}; do \
- err=`{ $$ldd $$i 2>&1 || ${TRUE}; } | { ${GREP} "not found" || ${TRUE}; }`; \
- if [ "${PKG_VERBOSE}" != "" ]; then \
- ${ECHO} "$$ldd $$i"; \
- fi; \
- if [ "$$err" != "" ]; then \
- ${ECHO} "$${i}: $$err"; \
- error=1; \
- fi; \
- done; \
- fi; \
- if [ "$$error" = 1 ]; then \
- ${ECHO} "*** The above programs/libs will not find the listed shared libraries"; \
- ${ECHO} " at runtime. Please fix the package (add -Wl,-R.../lib in the right places)!"; \
- ${SHCOMMENT} Might not error-out for non-pkg-developers; \
- exit 1; \
- fi
-.endif # NO_PKG_REGISTER
-
-
-.if !target(show-shlib-type)
-# Show the shared lib type being built: one of ELF, a.out, dylib, or none
-.PHONY: show-shlib-type
-show-shlib-type:
-. if empty(USE_LANGUAGES)
- @${ECHO} "none"
-. elif ${_OPSYS_SHLIB_TYPE} == "ELF/a.out"
- @cd ${WRKDIR} && \
- sotype=none; \
- if [ "X${MKPIC}" != "Xno" -a "X${NOPIC}" = "X" ]; then \
- ${ECHO} "int main() { return(0); }" > a.$$$$.c; \
- ${SETENV} PATH=${PATH} \
- ${CC} ${CFLAGS} a.$$$$.c -o a.$$$$.out; \
- case `${FILE_CMD} a.$$$$.out` in \
- *ELF*dynamically*) \
- sotype=ELF ;; \
- *shared*library*) \
- sotype="a.out" ;; \
- *dynamically*) \
- sotype="a.out" ;; \
- esac; \
- fi; \
- ${ECHO} "$$sotype"; \
- ${RM} -f a.$$$$.c a.$$$$.out
-. else
- @${ECHO} ${_OPSYS_SHLIB_TYPE}
-. endif # USE_LANGUAGES
-.endif
-
-
-.PHONY: acquire-extract-lock acquire-patch-lock acquire-tools-lock
-.PHONY: acquire-wrapper-lock acquire-configure-lock acquire-build-lock
-.PHONY: acquire-install-lock acquire-package-lock
-acquire-extract-lock:
- ${_ACQUIRE_LOCK}
-acquire-patch-lock:
- ${_ACQUIRE_LOCK}
-acquire-tools-lock:
- ${_ACQUIRE_LOCK}
-acquire-wrapper-lock:
- ${_ACQUIRE_LOCK}
-acquire-configure-lock:
- ${_ACQUIRE_LOCK}
-acquire-build-lock:
- ${_ACQUIRE_LOCK}
-acquire-install-lock:
- ${_ACQUIRE_LOCK}
-acquire-package-lock:
- ${_ACQUIRE_LOCK}
-
-.PHONY: release-extract-lock release-patch-lock release-tools-lock
-.PHONY: release-wrapper-lock release-configure-lock release-build-lock
-.PHONY: release-install-lock release-package-lock
-release-extract-lock:
- ${_RELEASE_LOCK}
-release-patch-lock:
- ${_RELEASE_LOCK}
-release-tools-lock:
- ${_RELEASE_LOCK}
-release-wrapper-lock:
- ${_RELEASE_LOCK}
-release-configure-lock:
- ${_RELEASE_LOCK}
-release-build-lock:
- ${_RELEASE_LOCK}
-release-install-lock:
- ${_RELEASE_LOCK}
-release-package-lock:
- ${_RELEASE_LOCK}
-
-################################################################
-# Skeleton targets start here
-#
-# You shouldn't have to change these. Either add the pre-* or
-# post-* targets/scripts or redefine the do-* targets. These
-# targets don't do anything other than checking for cookies and
-# call the necessary targets/scripts.
-################################################################
-
-.PHONY: fetch
-.if !target(fetch)
-fetch:
- @cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-fetch PKG_PHASE=fetch
-.endif
-
-.PHONY: extract
-.if !target(extract)
-extract: checksum ${WRKDIR} acquire-extract-lock ${_EXTRACT_COOKIE} release-extract-lock
-.endif
-
-.PHONY: patch
-.if !target(patch)
-patch: extract acquire-patch-lock ${_PATCH_COOKIE} release-patch-lock
-.endif
-
-.PHONY: tools
-.if !target(tools)
-tools: patch acquire-tools-lock ${_TOOLS_COOKIE} release-tools-lock
-.endif
-
-.PHONY: wrapper
-.if !target(wrapper)
-wrapper: tools acquire-wrapper-lock ${_WRAPPER_COOKIE} release-wrapper-lock
-.endif
-
-.PHONY: configure
-.if !target(configure)
-configure: wrapper acquire-configure-lock ${_CONFIGURE_COOKIE} release-configure-lock
-.endif
-
-.PHONY: build
-.if !target(build)
-build: configure acquire-build-lock ${_BUILD_COOKIE} release-build-lock
-.endif
-
-.PHONY: test
-.if !target(test)
-test: build ${_TEST_COOKIE}
-.endif
-
-.PHONY: install
-.if !target(install)
-install: ${_PKGSRC_BUILD_TARGETS} acquire-install-lock ${_INSTALL_COOKIE} release-install-lock
-.endif
-
-.PHONY: package
-.if !target(package)
-package: install acquire-package-lock ${_PACKAGE_COOKIE} release-package-lock
-.endif
-
-.PHONY: replace
-.if !target(replace)
-replace: ${_PKGSRC_BUILD_TARGETS} real-replace
-.endif
-
-.PHONY: undo-replace
-.if !target(undo-replace)
-undo-replace: real-undo-replace
-.endif
-
-${_EXTRACT_COOKIE}:
-.if ${INTERACTIVE_STAGE:Mextract} == "extract" && defined(BATCH)
- @${ECHO} "*** The extract stage of this package requires user interaction"
- @${ECHO} "*** Please extract manually with \"cd ${PKGDIR} && ${MAKE} extract\""
- @${TOUCH} ${_INTERACTIVE_COOKIE}
- @${FALSE}
-.else
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-extract DEPENDS_TARGET=${DEPENDS_TARGET:Q} PKG_PHASE=extract
-.endif
-
-${_PATCH_COOKIE}:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-patch PKG_PHASE=patch
-
-${_TOOLS_COOKIE}:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} real-tools PKG_PHASE=tools
-
-${_WRAPPER_COOKIE}:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${SETENV} ${BUILD_ENV} ${MAKE} ${MAKEFLAGS} real-wrapper PKG_PHASE=wrapper
-
-PKG_ERROR_CLASSES+= configure
-PKG_ERROR_MSG.configure= \
- "" \
- "There was an error during the \`\`configure'' phase." \
- "Please investigate the following for more information:"
-.if defined(GNU_CONFIGURE)
-PKG_ERROR_MSG.configure+= \
- " * config.log" \
- " * ${WRKLOG}" \
- ""
-.else
-PKG_ERROR_MSG.configure+= \
- " * log of the build" \
- " * ${WRKLOG}" \
- ""
-.endif
-${_CONFIGURE_COOKIE}:
-.if ${INTERACTIVE_STAGE:Mconfigure} == "configure" && defined(BATCH)
- @${ECHO} "*** The configuration stage of this package requires user interaction"
- @${ECHO} "*** Please configure manually with \"cd ${PKGDIR} && ${MAKE} configure\""
- @${TOUCH} ${_INTERACTIVE_COOKIE}
- @${FALSE}
-.else
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${SETENV} ${BUILD_ENV} ${MAKE} ${MAKEFLAGS} real-configure PKG_PHASE=configure || ${PKG_ERROR_HANDLER.configure}
-.endif
-
-PKG_ERROR_CLASSES+= build
-PKG_ERROR_MSG.build= \
- "" \
- "There was an error during the \`\`build'' phase." \
- "Please investigate the following for more information:" \
- " * log of the build" \
- " * ${WRKLOG}" \
- ""
-${_BUILD_COOKIE}:
-.if ${INTERACTIVE_STAGE:Mbuild} == "build" && defined(BATCH)
- @${ECHO} "*** The build stage of this package requires user interaction"
- @${ECHO} "*** Please build manually with \"cd ${PKGDIR} && ${MAKE} build\""
- @${TOUCH} ${_INTERACTIVE_COOKIE}
- @${FALSE}
-.else
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${SETENV} ${BUILD_ENV} ${MAKE} ${MAKEFLAGS} real-build PKG_PHASE=build || ${PKG_ERROR_HANDLER.build}
-.endif
-
-${_TEST_COOKIE}:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${SETENV} ${BUILD_ENV} ${MAKE} ${MAKEFLAGS} real-test PKG_PHASE=test
-
-${_INSTALL_COOKIE}:
-.if ${INTERACTIVE_STAGE:Minstall} == "install" && defined(BATCH)
- @${ECHO} "*** The installation stage of this package requires user interaction"
- @${ECHO} "*** Please install manually with \"cd ${PKGDIR} && ${MAKE} install\""
- @${TOUCH} ${_INTERACTIVE_COOKIE}
- @${FALSE}
-.else
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${SETENV} ${BUILD_ENV} ${MAKE} ${MAKEFLAGS} real-install PKG_PHASE=install
-.endif
-
-${_PACKAGE_COOKIE}:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${SETENV} ${BUILD_ENV} ${MAKE} ${MAKEFLAGS} real-package PKG_PHASE=package
-
-.PHONY: extract-message patch-message tools-message wrapper-message
-.PHONY: configure-message build-message test-message
-extract-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Extracting for ${PKGNAME}"
-patch-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Patching for ${PKGNAME}"
-tools-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Overriding tools for ${PKGNAME}"
-wrapper-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Creating toolchain wrappers for ${PKGNAME}"
-configure-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Configuring for ${PKGNAME}"
-build-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Building for ${PKGNAME}"
-test-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Testing for ${PKGNAME}"
-
-.PHONY: extract-cookie patch-cookie tools-cookie wrapper-cookie
-.PHONY: configure-cookie build-cookie test-cookie
-extract-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} >> ${_EXTRACT_COOKIE}
-patch-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG}${_GENERATE_PATCH_COOKIE}
-tools-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG} ${TOUCH} ${TOUCH_FLAGS} ${_TOOLS_COOKIE}
-wrapper-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG} ${TOUCH} ${TOUCH_FLAGS} ${_WRAPPER_COOKIE}
-configure-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG} ${TOUCH} ${TOUCH_FLAGS} ${_CONFIGURE_COOKIE}
-build-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG} ${TOUCH} ${TOUCH_FLAGS} ${_BUILD_COOKIE}
-test-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG} ${TOUCH} ${TOUCH_FLAGS} ${_TEST_COOKIE}
-
-.ORDER: pre-fetch do-fetch post-fetch
-.ORDER: extract-message extract-vars install-depends pre-extract do-extract post-extract extract-cookie
-.ORDER: patch-message patch-vars pre-patch do-patch post-patch patch-cookie
-.ORDER: tools-message tools-vars pre-tools do-tools post-tools tools-cookie
-.ORDER: wrapper-message wrapper-vars pre-wrapper do-wrapper post-wrapper wrapper-cookie
-.ORDER: configure-message configure-vars pre-configure pre-configure-override do-configure post-configure configure-cookie
-.ORDER: build-message build-vars pre-build do-build post-build build-cookie
-.ORDER: test-message pre-test do-test post-test test-cookie
-
-# Please note that the order of the following targets is important, and
-# should not be modified (.ORDER is not recognised by make(1) in a serial
-# make i.e. without -j n)
-.PHONY: real-fetch real-extract real-patch
-.PHONY: real-tools real-wrapper
-.PHONY: real-configure real-build real-test real-install real-package
-.PHONY: real-replace real-undo-replace
-real-fetch: pre-fetch do-fetch post-fetch
-real-extract: extract-message extract-vars install-depends pre-extract do-extract post-extract extract-cookie
-real-patch: patch-message patch-vars pre-patch do-patch post-patch patch-cookie
-real-tools: tools-message tools-vars pre-tools do-tools post-tools tools-cookie
-real-wrapper: wrapper-message wrapper-vars pre-wrapper do-wrapper post-wrapper wrapper-cookie
-real-configure: configure-message configure-vars pre-configure pre-configure-override do-configure post-configure configure-cookie
-real-build: build-message build-vars pre-build do-build post-build build-cookie
-real-test: test-message pre-test do-test post-test test-cookie
-real-install: install-vars do-su-install
-real-package: package-vars do-su-package
-real-replace: do-su-replace
-real-undo-replace: do-su-undo-replace
-
-_SU_TARGET= \
- if [ `${ID} -u` = `${ID} -u ${ROOT_USER}` ]; then \
- ${MAKE} ${MAKEFLAGS} $$realtarget; \
- elif [ "X${BATCH}" != X"" ]; then \
- ${ECHO_MSG} "Warning: Batch mode, not superuser, can't run $$action for ${PKGNAME}."; \
- ${ECHO_MSG} "Become ${ROOT_USER} and try again to ensure correct permissions."; \
- else \
- args=""; \
- if [ "X${FORCE_PKG_REGISTER}" != X"" ]; then \
- args="FORCE_PKG_REGISTER=1"; \
- fi; \
- if [ "X${PKG_DEBUG_LEVEL}" != X"" ]; then \
- args="$$args PKG_DEBUG_LEVEL=${PKG_DEBUG_LEVEL}"; \
- fi; \
- if [ "X${PRE_ROOT_CMD}" != "X${TRUE}" ]; then \
- ${ECHO} "*** WARNING *** Running: ${PRE_ROOT_CMD}"; \
- ${PRE_ROOT_CMD}; \
- fi; \
- ${ECHO_MSG} "${_PKGSRC_IN}> Becoming ${ROOT_USER}@`${HOSTNAME_CMD}` to $$action ${PKGBASE}."; \
- ${ECHO_N} "`${ECHO} ${SU_CMD} | ${AWK} '{ print $$1 }'` ";\
- ${SU_CMD} "cd ${.CURDIR}; ${SETENV} PATH=$${PATH}:${SU_CMD_PATH_APPEND} ${MAKE} $$args ${MAKEFLAGS} $$realtarget $$realflags"; \
- fi
-
-.PHONY: do-su-install
-do-su-install:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- extractname=`${CAT} ${_EXTRACT_COOKIE}`; \
- case "$$extractname" in \
- "") ${ECHO_MSG} "*** Warning: ${WRKDIR} may contain an older version of ${PKGBASE}" ;; \
- "${PKGNAME}") ;; \
- *) ${ECHO_MSG} "*** Warning: Package version $$extractname in ${WRKDIR}"; \
- ${ECHO_MSG} "*** Current version ${PKGNAME} in pkgsrc directory"; \
- ${ECHO_MSG} "*** Cleaning and rebuilding the newer version of the package..."; \
- ${MAKE} clean && ${MAKE} build ;; \
- esac
- @${ECHO_MSG} "${_PKGSRC_IN}> Installing for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-install"; \
- action="install"; \
- ${_SU_TARGET}
-
-.PHONY: do-su-package
-do-su-package:
- @${ECHO_MSG} "${_PKGSRC_IN}> Packaging ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-package"; \
- action="package"; \
- ${_SU_TARGET}
-
-.PHONY: do-su-replace
-do-su-replace:
- @${ECHO_MSG} "${_PKGSRC_IN}> Replacing ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-replace"; \
- action="replace"; \
- ${_SU_TARGET}
-
-.PHONY: do-su-undo-replace
-do-su-undo-replace:
- @${ECHO_MSG} "${_PKGSRC_IN}> Undoing Replacement of ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-undo-replace"; \
- action="undo-replace"; \
- ${_SU_TARGET}
-
-# Empty pre-* and post-* targets
-
-.for name in fetch extract patch tools wrapper configure build test install-script install package
-
-. if !target(pre-${name})
-pre-${name}:
- @${DO_NADA}
-. endif
-
-. if !target(post-${name})
-post-${name}:
- @${DO_NADA}
-. endif
-
-.endfor
-
-# Reinstall
-#
-# Special target to re-run install
-
-.PHONY: reinstall
-.if !target(reinstall)
-reinstall:
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${_INSTALL_COOKIE} ${_PACKAGE_COOKIE} ${PLIST}
- ${_PKG_SILENT}${_PKG_DEBUG}DEPENDS_TARGET=${DEPENDS_TARGET:Q} ${MAKE} ${MAKEFLAGS} install
-.endif
-
-# Deinstall
-#
-# Special target to remove installation
-
-.PHONY: deinstall do-su-deinstall
-.if !target(deinstall)
-deinstall: do-su-deinstall
-
-.if !target(do-su-deinstall)
-do-su-deinstall:
- @${ECHO_MSG} "${_PKGSRC_IN}> Deinstalling for ${PKGBASE}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-deinstall"; \
- realflags="DEINSTALLDEPENDS=${DEINSTALLDEPENDS}"; \
- action="deinstall"; \
- ${_SU_TARGET}
-.endif
-
-. if (${DEINSTALLDEPENDS} != "NO")
-. if (${DEINSTALLDEPENDS} != "ALL")
-# used for removing stuff in bulk builds
-real-su-deinstall-flags+= -r -R
-# used for "update" target
-. else
-real-su-deinstall-flags+= -r
-. endif
-. endif
-. if defined(PKG_VERBOSE)
-real-su-deinstall-flags+= -v
-. endif
-. if defined(PKG_PRESERVE)
-. if (${UPDATE_RUNNING} == "YES")
-# used to update w/o removing any files
-real-su-deinstall-flags+= -N -f
-. endif
-. endif
-
-.PHONY: real-su-deinstall
-real-su-deinstall:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_INFO} -e \"${PKGNAME}\" || ${TRUE}`"; \
- case "$$found" in \
- "") found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`" ;; \
- esac; \
- if [ "$$found" != "" ]; then \
- ${ECHO} Running ${PKG_DELETE} ${real-su-deinstall-flags} $$found ; \
- ${PKG_DELETE} ${real-su-deinstall-flags} $$found || ${TRUE} ; \
- fi
-. if (${DEINSTALLDEPENDS} != "NO") && (${DEINSTALLDEPENDS} != "ALL")
- @${SHCOMMENT} Also remove BUILD_DEPENDS:
-. for pkg in ${BUILD_DEPENDS:C/:.*$//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_BEST_EXISTS} \"${pkg}\" || ${TRUE}`"; \
- if [ "$$found" != "" ]; then \
- ${ECHO} Running ${PKG_DELETE} $$found; \
- ${PKG_DELETE} ${real-su-deinstall-flags} $$found || ${TRUE}; \
- fi
-. endfor
-. endif # DEINSTALLDEPENDS
- @${RM} -f ${_INSTALL_COOKIE} ${_PACKAGE_COOKIE} \
- ${_CHECK_FILES_COOKIES} \
- ${_CHECK_FILES_PRE} ${_CHECK_FILES_POST}
-.endif # target(deinstall)
-
-
-################################################################
-# Some more targets supplied for users' convenience
-################################################################
-
-# The 'update' target can be used to update a package and all
-# currently installed packages that depend upon this package.
-
-.PHONY: update
-.if !target(update)
-.if exists(${DDIR})
-RESUMEUPDATE?= YES
-CLEAR_DIRLIST?= NO
-
-update:
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} \
- "${_PKGSRC_IN}> Resuming update for ${PKGNAME}"
-. if ${REINSTALL} != "NO" && ${UPDATE_TARGET} != "replace"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MAKE} ${MAKEFLAGS} deinstall UPDATE_RUNNING=YES DEINSTALLDEPENDS=ALL
-. endif
-.else
-RESUMEUPDATE?= NO
-CLEAR_DIRLIST?= YES
-
-update:
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} ${DDIR}
-. if ${UPDATE_TARGET} != "replace"
- ${_PKG_SILENT}${_PKG_DEBUG}if ${PKG_INFO} -qe ${PKGBASE}; then \
- ${MAKE} ${MAKEFLAGS} deinstall UPDATE_RUNNING=YES DEINSTALLDEPENDS=ALL \
- || (${RM} ${DDIR} && ${FALSE}); \
- fi
-. endif
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MAKE} ${MAKEFLAGS} ${UPDATE_TARGET} KEEP_WRKDIR=YES \
- DEPENDS_TARGET=${DEPENDS_TARGET:Q}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- [ ! -s ${DDIR} ] || for dep in `${CAT} ${DDIR}` ; do \
- (if cd ../.. && cd "$${dep}" ; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Installing in $${dep}" && \
- if [ "(" "${RESUMEUPDATE}" = "NO" -o \
- "${REINSTALL}" != "NO" ")" -a \
- "${UPDATE_TARGET}" != "replace" ] ; then \
- ${MAKE} ${MAKEFLAGS} deinstall UPDATE_RUNNING=YES; \
- fi && \
- ${MAKE} ${MAKEFLAGS} ${UPDATE_TARGET} \
- DEPENDS_TARGET=${DEPENDS_TARGET:Q} ; \
- else \
- ${ECHO_MSG} "${_PKGSRC_IN}> Skipping removed directory $${dep}"; \
- fi) ; \
- done
-.if ${NOCLEAN} == "NO"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MAKE} ${MAKEFLAGS} clean-update CLEAR_DIRLIST=YES
-.endif
-
-
-.PHONY: clean-update
-clean-update:
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} ${DDIR}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -s ${DDIR} ] ; then \
- for dep in `${CAT} ${DDIR}` ; do \
- (if cd ../.. && cd "$${dep}" ; then \
- ${MAKE} ${MAKEFLAGS} clean ; \
- else \
- ${ECHO_MSG} "${_PKGSRC_IN}> Skipping removed directory $${dep}";\
- fi) ; \
- done ; \
- fi
-.if ${CLEAR_DIRLIST} != "NO"
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} clean
-.else
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MAKE} ${MAKEFLAGS} clean update-dirlist \
- DIRLIST="`${CAT} ${DDIR}`" PKGLIST="`${CAT} ${DLIST}`"
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} \
- "${_PKGSRC_IN}> Warning: preserved leftover directory list. Your next";\
- ${ECHO_MSG} "${_PKGSRC_IN}> \`\`${MAKE} update'' may fail. It is advised to use";\
- ${ECHO_MSG} "${_PKGSRC_IN}> \`\`${MAKE} update REINSTALL=YES'' instead!"
-.endif
-
-.endif # !target(update)
-
-
-.PHONY: update-dirlist
-update-dirlist:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} -p ${WRKDIR}
-.if defined(PKGLIST)
-. for __tmp__ in ${PKGLIST}
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} >>${DLIST} "${__tmp__}"
-. endfor
-.endif
-.if defined(DIRLIST)
-. for __tmp__ in ${DIRLIST}
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} >>${DDIR} "${__tmp__}"
-. endfor
-.endif
-
-
-${DDIR}: ${DLIST}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ddir=`${SED} 's:-[^-]*$$::' ${DLIST}`; \
- ${ECHO} >${DDIR}; \
- for pkg in $${ddir} ; do \
- if ${PKG_INFO} -b "$${pkg}" >/dev/null 2>&1 ; then \
- ${PKG_INFO} -b "$${pkg}" | ${SED} -ne \
- 's,\([^/]*/[^/]*\)/Makefile:.*,\1,p' | \
- ${HEAD} -1 >>${DDIR}; \
- fi ; \
- done
-
-${DLIST}: ${WRKDIR}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- { ${PKG_DELETE} -n "${PKGWILDCARD}" 2>&1 | \
- ${GREP} '^ ' | \
- ${AWK} '{ l[NR]=$$0 } END { for (i=NR;i>0;--i) print l[i] }' \
- || ${TRUE}; } > ${DLIST}
-
-# The 'info' target can be used to display information about a package.
-.PHONY: info
-info:
- ${_PKG_SILENT}${_PKG_DEBUG}${PKG_INFO} "${PKGWILDCARD}"
-
-# The 'check' target can be used to check an installed package.
-.PHONY: check
-check:
- ${_PKG_SILENT}${_PKG_DEBUG}${PKG_ADMIN} check "${PKGWILDCARD}"
-
-# The 'list' target can be used to list the files installed by a package.
-.PHONY: list
-list:
- ${_PKG_SILENT}${_PKG_DEBUG}${PKG_INFO} -L "${PKGWILDCARD}"
-
-# Run pkglint:
-.PHONY: lint
-lint:
- ${_PKG_SILENT}${_PKG_DEBUG}${LOCALBASE}/bin/pkglint
-
-# Create a binary package from an install package using "pkg_tarup"
-.PHONY: tarup
-tarup:
-.if ${PKG_INSTALLATION_TYPE} == "overwrite"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${RM} -f ${PACKAGES}/All/${PKGNAME}${PKG_SUFX}; \
- ${SETENV} PKG_DBDIR=${_PKG_DBDIR} PKG_SUFX=${PKG_SUFX} \
- PKGREPOSITORY=${PACKAGES}/All \
- ${LOCALBASE}/bin/pkg_tarup ${PKGNAME}; \
- for CATEGORY in ${CATEGORIES}; do \
- ${MKDIR} ${PACKAGES}/$$CATEGORY; \
- cd ${PACKAGES}/$$CATEGORY; \
- ${RM} -f ${PKGNAME}${PKG_SUFX}; \
- ${LN} -s ../All/${PKGNAME}${PKG_SUFX}; \
- done
-.endif
-
-# shared code for replace and undo-replace
-_REPLACE= \
- if [ -f ${_PKG_DBDIR}/$$oldpkgname/+REQUIRED_BY ]; then \
- ${MV} ${_PKG_DBDIR}/$$oldpkgname/+REQUIRED_BY ${WRKDIR}/.req; \
- fi; \
- ${MAKE} deinstall UPDATE_RUNNING=YES; \
- $$replace_action; \
- if [ -f ${WRKDIR}/.req ]; then \
- ${MV} ${WRKDIR}/.req ${_PKG_DBDIR}/$$newpkgname/+REQUIRED_BY; \
- for pkg in `${CAT} ${_PKG_DBDIR}/$$newpkgname/+REQUIRED_BY`; do \
- ${SETENV} NEWPKGNAME=$$newpkgname \
- ${AWK} '/^@pkgdep '$$oldpkgname'/ { print "@pkgdep " ENVIRON["NEWPKGNAME"]; next } { print }' \
- < ${_PKG_DBDIR}/$$pkg/+CONTENTS > ${_PKG_DBDIR}/$$pkg/+CONTENTS.$$$$ && \
- ${MV} ${_PKG_DBDIR}/$$pkg/+CONTENTS.$$$$ ${_PKG_DBDIR}/$$pkg/+CONTENTS; \
- done; \
- fi
-
-# replace a package in place - not for the faint-hearted
-.PHONY: real-su-replace
-real-su-replace:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO_MSG} "*** WARNING - experimental target - data loss may occur ***"; \
- if [ -x ${LOCALBASE}/bin/pkg_tarup ]; then \
- ${SETENV} PKGREPOSITORY=${WRKDIR} ${LOCALBASE}/bin/pkg_tarup ${PKGBASE}; \
- else \
- ${ECHO} "No ${LOCALBASE}/bin/pkg_tarup binary - can't pkg_tarup ${PKGBASE}"; \
- exit 1; \
- fi
- ${_PKG_SILENT}${_PKG_DEBUG} \
- oldpkgname=`${PKG_BEST_EXISTS} "${PKGWILDCARD}"`; \
- newpkgname=${PKGNAME}; \
- ${ECHO} "$$oldpkgname" > ${WRKDIR}/.replace; \
- replace_action="${MAKE} install"; \
- ${_REPLACE}
-
-# undo the replacement of a package - not for the faint-hearted either
-.PHONY: real-su-undo-replace
-real-su-undo-replace:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -f ${WRKDIR}/.replace ]; then \
- ${ECHO_MSG} "No replacement to undo"; \
- exit 1; \
- fi
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO_MSG} "*** WARNING - experimental target - data loss may occur ***"; \
- oldpkgname=${PKGNAME}; \
- newpkgname=`${CAT} ${WRKDIR}/.replace`; \
- replace_action="${SETENV} ${PKG_ADD} ${WRKDIR}/$$newpkgname${PKG_SUFX}"; \
- ${_REPLACE}; \
- ${RM} ${WRKDIR}/.replace
-
-# This is for the use of sites which store distfiles which others may
-# fetch - only fetch the distfile if it is allowed to be
-# re-distributed freely
-.PHONY: mirror-distfiles
-mirror-distfiles:
-.if !defined(NO_SRC_ON_FTP)
- @${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} fetch NO_SKIP=yes
-.endif
-
-
-# Cleaning up
-
-.PHONY: pre-clean
-.if !target(pre-clean)
-pre-clean:
- @${DO_NADA}
-.endif
-
-.PHONY: clean
-.if !target(clean)
-clean: pre-clean
-. if (${CLEANDEPENDS} != "NO") && (!empty(BUILD_DEPENDS) || !empty(DEPENDS))
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} clean-depends
-. endif
- @${ECHO_MSG} "${_PKGSRC_IN}> Cleaning for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -d ${WRKDIR} ]; then \
- if [ -w ${WRKDIR} ]; then \
- ${RM} -rf ${WRKDIR}; \
- else \
- ${ECHO_MSG} "${_PKGSRC_IN}> ${WRKDIR} not writable, skipping"; \
- fi; \
- fi
-. if defined(WRKOBJDIR)
- -${_PKG_SILENT}${_PKG_DEBUG} \
- ${RMDIR} ${BUILD_DIR} 2>/dev/null; \
- ${RM} -f ${WRKDIR_BASENAME}
-. endif
-.endif
-
-
-.PHONY: clean-depends
-.if !target(clean-depends)
-clean-depends:
-. if !empty(BUILD_DEPENDS) || !empty(DEPENDS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for i in `${MAKE} ${MAKEFLAGS} show-all-depends-dirs-excl`; do \
- cd ${.CURDIR}/../../$$i && \
- ${MAKE} ${MAKEFLAGS} CLEANDEPENDS=NO clean; \
- done
-. endif
-.endif
-
-.PHONY: pre-distclean
-.if !target(pre-distclean)
-pre-distclean:
- @${DO_NADA}
-.endif
-
-
-.PHONY: cleandir
-.if !target(cleandir)
-cleandir: clean
-.endif
-
-
-.PHONY: distclean
-.if !target(distclean)
-distclean: pre-distclean clean
- ${_PKG_SILENT}${ECHO_MSG} "${_PKGSRC_IN}> Dist cleaning for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG}if [ -d ${_DISTDIR} ]; then \
- cd ${_DISTDIR} && \
- ${TEST} -z "${DISTFILES}" || ${RM} -f ${DISTFILES}; \
- if [ "${PKG_RESUME_TRANSFERS:M[Yy][Ee][Ss]}" ]; then \
- ${TEST} -z "${DISTFILES}.temp" || ${RM} -f ${DISTFILES}.temp; \
- fi; \
- ${TEST} -z "${PATCHFILES}" || ${RM} -f ${PATCHFILES}; \
- fi
-. if defined(DIST_SUBDIR) && exists(DIST_SUBDIR)
- -${_PKG_SILENT}${_PKG_DEBUG}${RMDIR} ${_DISTDIR}
-. endif
- -${_PKG_SILENT}${_PKG_DEBUG}${RM} -f README.html
-.endif
-
-# Prints out a script to fetch all needed files (no checksumming).
-.PHONY: fetch-list
-.if !target(fetch-list)
-
-fetch-list:
- @${ECHO} '#!/bin/sh'
- @${ECHO} '#'
- @${ECHO} '# This is an auto-generated script, the result of running'
- @${ECHO} '# `${MAKE} fetch-list'"'"' in directory "'"`${PWD_CMD}`"'"'
- @${ECHO} '# on host "'"`${UNAME} -n`"'" on "'"`date`"'".'
- @${ECHO} '#'
- @${MAKE} ${MAKEFLAGS} fetch-list-recursive
-.endif # !target(fetch-list)
-
-.PHONY: fetch-list-recursive
-.if !target(fetch-list-recursive)
-
-fetch-list-recursive:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for dir in `${MAKE} ${MAKEFLAGS} show-all-depends-dirs`; do \
- (cd ../../$$dir && \
- ${MAKE} ${MAKEFLAGS} fetch-list-one-pkg \
- | ${AWK} ' \
- /^[^#]/ { FoundSomething = 1 } \
- /^unsorted/ { gsub(/[[:space:]]+/, " \\\n\t") } \
- /^echo/ { gsub(/;[[:space:]]+/, "\n") } \
- { block[line_c++] = $$0 } \
- END { if (FoundSomething) \
- for (line = 0; line < line_c; line++) \
- print block[line] } \
- ') \
- done
-.endif # !target(fetch-list-recursive)
-
-.PHONY: fetch-list-one-pkg
-.if !target(fetch-list-one-pkg)
-
-fetch-list-one-pkg:
-. if !empty(_ALLFILES)
- @${ECHO}
- @${ECHO} '#'
- @location=`${PWD_CMD} | ${AWK} -F / '{ print $$(NF-1) "/" $$NF }'`; \
- ${ECHO} '# Need additional files for ${PKGNAME} ('$$location')...'
-. for fetchfile in ${_ALLFILES}
-. if defined(_FETCH_MESSAGE)
- @(if [ ! -f ${_DISTDIR}/${fetchfile:T} ]; then \
- ${ECHO}; \
- filesize=`${AWK} ' \
- /^Size/ && $$2 == "(${fetchfile})" { print $$4 } \
- ' ${DISTINFO_FILE}` || true; \
- ${ECHO} '# Prompt user to get ${fetchfile} ('$${filesize-???}' bytes) manually:'; \
- ${ECHO} '#'; \
- ${ECHO} ${_FETCH_MESSAGE:Q}; \
- fi)
-. elif defined(DYNAMIC_MASTER_SITES)
- @(if [ ! -f ${_DISTDIR}/${fetchfile:T} ]; then \
- ${ECHO}; \
- filesize=`${AWK} ' \
- /^Size/ && $$2 == "(${fetchfile})" { print $$4 } \
- ' ${DISTINFO_FILE}` || true; \
- ${ECHO} '# Fetch ${fetchfile} ('$${filesize-???}' bytes):'; \
- ${ECHO} '#'; \
- ${ECHO} '${SH} -s ${fetchfile:T} <<"EOF" |('; \
- ${CAT} ${FILESDIR}/getsite.sh; \
- ${ECHO} EOF; \
- ${ECHO} read unsorted_sites; \
- ${ECHO} 'unsorted_sites="$${unsorted_sites} ${_MASTER_SITE_BACKUP}"'; \
- ${ECHO} sites='"'${ORDERED_SITES:Q}'"'; \
- ${ECHO} "${MKDIR} ${_DISTDIR}"; \
- ${ECHO} 'cd ${_DISTDIR} && [ -f ${fetchfile} -o -f ${fetchfile:T} ] ||'; \
- ${ECHO} 'for site in $$sites; do'; \
- ${ECHO} ' ${FETCH_CMD} ${FETCH_BEFORE_ARGS} "$${site}${fetchfile:T}" ${FETCH_AFTER_ARGS} && break ||'; \
- ${ECHO} ' ${ECHO} ${fetchfile:T} not fetched'; \
- ${ECHO} done; \
- ${ECHO} ')'; \
- fi)
-. else
- @(if [ ! -f ${_DISTDIR}/${fetchfile:T} ]; then \
- ${ECHO}; \
- filesize=`${AWK} ' \
- /^Size/ && $$2 == "(${fetchfile})" { print $$4 } \
- ' ${DISTINFO_FILE}` || true; \
- ${ECHO} '# Fetch ${fetchfile} ('$${filesize-???}' bytes):'; \
- ${ECHO} '#'; \
- ${ECHO} 'unsorted_sites="${SITES_${fetchfile:T:S/=/--/}} ${_MASTER_SITE_BACKUP}"'; \
- ${ECHO} sites='"'${ORDERED_SITES:Q}'"'; \
- ${ECHO} "${MKDIR} ${_DISTDIR}"; \
- ${ECHO} 'cd ${_DISTDIR} && [ -f ${fetchfile} -o -f ${fetchfile:T} ] ||'; \
- ${ECHO} 'for site in $$sites; do'; \
- ${ECHO} ' ${FETCH_CMD} ${FETCH_BEFORE_ARGS} "$${site}${fetchfile:T}" ${FETCH_AFTER_ARGS} && break ||'; \
- ${ECHO} ' ${ECHO} ${fetchfile:T} not fetched'; \
- ${ECHO} done; \
- fi)
-. endif # defined(_FETCH_MESSAGE) || defined(DYNAMIC_MASTER_SITES)
-. endfor
-. endif # !empty(_ALLFILES)
-.endif # !target(fetch-list-one-pkg)
-
-# Checksumming utilities
-
-.PHONY: makesum
-.if !target(makesum)
-makesum: fetch uptodate-digest
- ${_PKG_SILENT}${_PKG_DEBUG} \
- newfile=${DISTINFO_FILE}.$$$$; \
- if [ -f ${DISTINFO_FILE} ]; then \
- ${GREP} '^.NetBSD' ${DISTINFO_FILE} > $$newfile || \
- (${ECHO_N} "$$" > $$newfile && \
- ${ECHO_N} "NetBSD" >> $$newfile && \
- ${ECHO} "$$" >> $$newfile) \
- else \
- ${ECHO_N} "$$" > $$newfile; \
- ${ECHO_N} "NetBSD" >> $$newfile; \
- ${ECHO} "$$" >> $$newfile; \
- fi; \
- ${ECHO} "" >> $$newfile; \
- cd ${DISTDIR}; \
- for sumfile in "" ${_CKSUMFILES}; do \
- if [ "X$$sumfile" = "X" ]; then continue; fi; \
- for a in "" ${DIGEST_ALGORITHMS}; do \
- if [ "X$$a" = "X" ]; then continue; fi; \
- ${DIGEST} $$a $$sumfile >> $$newfile; \
- done; \
- ${WC} -c $$sumfile | ${AWK} '{ print "Size (" $$2 ") = " $$1 " bytes" }' >> $$newfile; \
- done; \
- for ignore in "" ${_IGNOREFILES}; do \
- if [ "X$$ignore" = "X" ]; then continue; fi; \
- for a in "" ${DIGEST_ALGORITHMS}; do \
- if [ "X$$a" = "X" ]; then continue; fi; \
- ${ECHO} "$$a ($$ignore) = IGNORE" >> $$newfile; \
- done; \
- done; \
- if [ -f ${DISTINFO_FILE} ]; then \
- ${AWK} '$$2 ~ /\(patch-[a-z0-9]+\)/ { print $$0 }' < ${DISTINFO_FILE} >> $$newfile; \
- fi; \
- if ${CMP} -s $$newfile ${DISTINFO_FILE}; then \
- ${RM} -f $$newfile; \
- ${ECHO_MSG} "=> distinfo: distfiles part unchanged."; \
- else \
- ${MV} $$newfile ${DISTINFO_FILE}; \
- fi
-.endif
-
-.if !target(makepatchsum)
-makepatchsum mps: uptodate-digest
- ${_PKG_SILENT}${_PKG_DEBUG} \
- newfile=${DISTINFO_FILE}.$$$$; \
- if [ -f ${DISTINFO_FILE} ]; then \
- ${AWK} '$$2 !~ /\(patch-[a-z0-9]+\)/ { print $$0 }' < ${DISTINFO_FILE} >> $$newfile; \
- else \
- ${ECHO} "\$$""NetBSD""\$$" > $$newfile; \
- ${ECHO} "" >> $$newfile; \
- fi; \
- if [ -d ${PATCHDIR} ]; then \
- (cd ${PATCHDIR}; \
- for sumfile in "" patch-*; do \
- case $$sumfile in \
- "" | "patch-*") ;; \
- patch-local-* | *.orig | *.rej | *~) ;; \
- *) ${ECHO} "${PATCH_DIGEST_ALGORITHM} ($$sumfile) = `${SED} -e '/\$$NetBSD.*/d' $$sumfile | ${DIGEST} ${PATCH_DIGEST_ALGORITHM}`" >> $$newfile;; \
- esac; \
- done); \
- fi; \
- if ${CMP} -s $$newfile ${DISTINFO_FILE}; then \
- ${RM} -f $$newfile; \
- ${ECHO_MSG} "=> distinfo: patches part unchanged."; \
- else \
- ${MV} $$newfile ${DISTINFO_FILE}; \
- fi
-.endif
-
-# This target is done by invoking a sub-make so that DISTINFO_FILE gets
-# re-evaluated after the "makepatchsum" target is made. This can be
-# made into:
-#makedistinfo mdi: makepatchsum makesum
-# once a combined distinfo file exists for all packages
-.if !target(makedistinfo)
-makedistinfo mdi distinfo: makepatchsum
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} makesum
-.endif
-
-.PHONY: checksum
-.if !target(checksum)
-checksum: fetch uptodate-digest
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -f ${DISTINFO_FILE} ]; then \
- ${ECHO_MSG} "=> No checksum file."; \
- else \
- (cd ${DISTDIR}; OK="true"; missing=""; \
- for file in "" ${_CKSUMFILES}; do \
- if [ "X$$file" = X"" ]; then continue; fi; \
- filesummed=false; \
- for a in ${DIGEST_ALGORITHMS}; do \
- CKSUM2=`${AWK} 'NF == 4 && $$1 == "'$$a'" && $$2 == "('$$file')" && $$3 == "=" {print $$4; exit}' ${DISTINFO_FILE}`; \
- case "$${CKSUM2}" in \
- "") ${ECHO_MSG} "=> No $$a checksum recorded for $$file."; \
- ;; \
- *) filesummed=true; \
- CKSUM=`${DIGEST} $$a < $$file`; \
- if [ "$$CKSUM2" = "IGNORE" ]; then \
- ${ECHO_MSG} "=> Checksum for $$file is set to IGNORE in checksum file even though"; \
- ${ECHO_MSG} " the file is not in the "'$$'"{IGNOREFILES} list."; \
- OK="false"; \
- elif [ "$$CKSUM" = "$$CKSUM2" ]; then \
- ${ECHO_MSG} "=> Checksum $$a OK for $$file."; \
- else \
- ${ECHO_MSG} "=> Checksum $$a mismatch for $$file."; \
- OK="false"; \
- fi ;; \
- esac; \
- done; \
- case "$$filesummed" in \
- false) missing="$$missing $$file"; \
- OK=false ;; \
- esac; \
- done; \
- for file in "" ${_IGNOREFILES}; do \
- if [ "X$$file" = X"" ]; then continue; fi; \
- CKSUM2=`${AWK} 'NF == 4 && $$3 == "=" && $$2 == "('$$file')"{print $$4; exit}' ${DISTINFO_FILE}`; \
- if [ "$$CKSUM2" = "" ]; then \
- ${ECHO_MSG} "=> No checksum recorded for $$file, file is in "'$$'"{IGNOREFILES} list."; \
- OK="false"; \
- elif [ "$$CKSUM2" != "IGNORE" ]; then \
- ${ECHO_MSG} "=> Checksum for $$file is not set to IGNORE in checksum file even though"; \
- ${ECHO_MSG} " the file is in the "'$$'"{IGNOREFILES} list."; \
- OK="false"; \
- fi; \
- done; \
- if [ "$$OK" != "true" ]; then \
- case "$$missing" in \
- "") ;; \
- *) ${ECHO_MSG} "Missing checksums for $$missing";; \
- esac; \
- ${ECHO_MSG} "Make sure the Makefile and checksum file (${DISTINFO_FILE})"; \
- ${ECHO_MSG} "are up to date. If you want to override this check, type"; \
- ${ECHO_MSG} "\"${MAKE} NO_CHECKSUM=yes [other args]\"."; \
- exit 1; \
- fi) ; \
- fi
-.endif
-
-
-
-# List of sites carrying binary pkgs. Variables "rel" and "arch" are
-# replaced with OS release ("1.5", ...) and architecture ("mipsel", ...)
-BINPKG_SITES?= \
- ftp://ftp.NetBSD.org/pub/NetBSD/packages/$${rel}/$${arch}
-
-# List of flags to pass to pkg_add(1) for bin-install:
-
-BIN_INSTALL_FLAGS?= # -v
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-PKG_ARGS_ADD= -W ${LOCALBASE} -w ${DEFAULT_VIEW}
-.endif
-_BIN_INSTALL_FLAGS= ${BIN_INSTALL_FLAGS}
-.if defined(_AUTOMATIC) && !empty(_AUTOMATIC:Myes)
-_BIN_INSTALL_FLAGS+= -a
-.endif
-_BIN_INSTALL_FLAGS+= ${PKG_ARGS_ADD}
-
-# Install binary pkg, without strict uptodate-check first
-.PHONY: real-su-bin-install
-real-su-bin-install:
- @found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`"; \
- if [ "$$found" != "" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> $$found is already installed - perhaps an older version?"; \
- ${ECHO_MSG} "*** If so, you may wish to \`\`pkg_delete $$found'' and install"; \
- ${ECHO_MSG} "*** this package again by \`\`${MAKE} bin-install'' to upgrade it properly."; \
- ${SHCOMMENT} ${ECHO_MSG} "*** or use \`\`${MAKE} bin-update'' to upgrade it and all of its dependencies."; \
- exit 1; \
- fi
- @if [ -f ${PKGFILE} ] ; then \
- ${ECHO_MSG} "Installing from binary pkg ${PKGFILE}" ; \
- ${PKG_ADD} ${_BIN_INSTALL_FLAGS} ${PKGFILE} ; \
- else \
- rel=`${UNAME} -r | ${SED} 's@\.\([0-9]*\)[\._].*@\.\1@'`; \
- arch=${MACHINE_ARCH}; \
- for site in ${BINPKG_SITES} ; do \
- ${ECHO} Trying `eval ${ECHO} $$site`/All ; \
- ${SHCOMMENT} ${ECHO} ${SETENV} PKG_PATH="`eval ${ECHO} $$site`/All" ${PKG_ADD} ${_BIN_INSTALL_FLAGS} ${PKGNAME}${PKG_SUFX} ; \
- if ${SETENV} PKG_PATH="`eval ${ECHO} $$site`/All" ${PKG_ADD} ${_BIN_INSTALL_FLAGS} ${PKGNAME}${PKG_SUFX} ; then \
- ${ECHO} "${PKGNAME} successfully installed."; \
- break ; \
- fi ; \
- done ; \
- if ! ${PKG_INFO} -qe "${PKGNAME}" ; then \
- ${SHCOMMENT} Cycle through some FTP server here ;\
- ${ECHO_MSG} "Installing from source" ; \
- ${MAKE} ${MAKEFLAGS} package \
- DEPENDS_TARGET=${DEPENDS_TARGET:Q} && \
- ${MAKE} ${MAKEFLAGS} clean ; \
- fi ; \
- fi
-
-.PHONY: bin-install
-bin-install:
- @${ECHO_MSG} "${_PKGSRC_IN}> Binary install for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-bin-install"; \
- action="binary install"; \
- ${_SU_TARGET}
-
-
-
-################################################################
-# The special package-building targets
-# You probably won't need to touch these
-################################################################
-
-# Set to "html" by the README.html target to generate HTML code,
-# or to "svr4" to print SVR4 (Solaris, ...) short package names, from
-# SVR4_PKGNAME variable.
-# This variable is passed down via build-depends-list and run-depends-list
-PACKAGE_NAME_TYPE?= name
-
-_HTML_PKGNAME= ${PKGNAME:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g}
-_HTML_PKGPATH= ${PKGPATH:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g}
-_HTML_PKGLINK= <a href="../../${_HTML_PKGPATH}/README.html">${_HTML_PKGNAME}</a>
-
-.PHONY: package-name
-.if !target(package-name)
-package-name:
-. if (${PACKAGE_NAME_TYPE} == "html")
- @${ECHO} ${_HTML_PKGLINK:Q}
-. elif (${PACKAGE_NAME_TYPE} == "svr4")
- @${ECHO} ${SVR4_PKGNAME}
-. else
- @${ECHO} ${PKGNAME}
-. endif # PACKAGE_NAME_TYPE
-.endif # !target(package-name)
-
-.PHONY: make-readme-html-help
-.if !target(make-readme-html-help)
-make-readme-html-help:
- @${ECHO} '${PKGNAME:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g}</a>: <TD>'${COMMENT:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g:Q}
-.endif # !target(make-readme-html-help)
-
-# Show (recursively) all the packages this package depends on.
-# If PACKAGE_DEPENDS_WITH_PATTERNS is set, print as pattern (if possible)
-PACKAGE_DEPENDS_WITH_PATTERNS?=true
-.PHONY: run-depends-list
-.if !target(run-depends-list)
-run-depends-list:
-. for dep in ${DEPENDS}
- @pkg="${dep:C/:.*//}"; \
- dir="${dep:C/[^:]*://}"; \
- cd ${.CURDIR}; \
- if ${PACKAGE_DEPENDS_WITH_PATTERNS}; then \
- ${ECHO} "$$pkg"; \
- else \
- if cd $$dir 2>/dev/null; then \
- ${MAKE} ${MAKEFLAGS} package-name PACKAGE_NAME_TYPE=${PACKAGE_NAME_TYPE}; \
- else \
- ${ECHO_MSG} "Warning: \"$$dir\" non-existent -- @pkgdep registration incomplete" >&2; \
- fi; \
- fi
-. endfor
-.endif # target(run-depends-list)
-
-# Build a package but don't check the package cookie
-
-.PHONY: repackage
-.if !target(repackage)
-repackage: pre-repackage package
-
-.PHONY: pre-repackage
-pre-repackage:
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${_PACKAGE_COOKIE}
-.endif
-
-# Build a package but don't check the cookie for installation, also don't
-# install package cookie
-
-.PHONY: package-noinstall
-.if !target(package-noinstall)
-package-noinstall:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} PACKAGE_NOINSTALL=yes real-package
-.endif
-
-################################################################
-# Dependency checking
-################################################################
-
-.PHONY: install-depends pre-install-depends
-pre-install-depends:
-.if !target(install-depends)
-# Tells whether to halt execution if the object formats differ
-FATAL_OBJECT_FMT_SKEW?= yes
-WARN_NO_OBJECT_FMT?= yes
-
-install-depends: pre-install-depends
-. if !empty(DEPENDS) || !empty(BUILD_DEPENDS)
-. if defined(NO_DEPENDS)
- @${DO_NADA}
-. else # !DEPENDS
-. for dep in ${DEPENDS} ${BUILD_DEPENDS}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- pkg="${dep:C/:.*//}"; \
- dir="${dep:C/[^:]*://:C/:.*$//}"; \
- found=`${PKG_BEST_EXISTS} "$$pkg" || ${TRUE}`; \
- if [ "X$$REBUILD_DOWNLEVEL_DEPENDS" != "X" ]; then \
- pkgname=`cd $$dir ; ${MAKE} ${MAKEFLAGS} show-var VARNAME=PKGNAME`; \
- if [ "X$$found" != "X" -a "X$$found" != "X$${pkgname}" ]; then \
- ${ECHO_MSG} "ignoring old installed package \"$$found\""; \
- found=""; \
- fi; \
- fi; \
- if [ "$$found" != "" ]; then \
- instobjfmt=`${PKG_INFO} -B "$$found" | ${AWK} -F'=[ \t]*' '/^OBJECT_FMT/ {print $$2; exit}'`; \
- if [ "$$instobjfmt" = "" ]; then \
- if [ "X${WARN_NO_OBJECT_FMT}" != "Xno" ]; then \
- ${ECHO} "WARNING: Unknown object format for installed package $$found - continuing"; \
- fi; \
- elif [ "$$instobjfmt" != "${OBJECT_FMT}" ]; then \
- ${ECHO} "Installed package $$found is an $$instobjfmt package."; \
- ${ECHO} "You are building an ${OBJECT_FMT} package, which will not inter-operate."; \
- ${ECHO} "Please update the $$found package to ${OBJECT_FMT}"; \
- if [ "X${FATAL_OBJECT_FMT_SKEW}" != "Xno" ]; then \
- exit 1; \
- fi; \
- fi; \
- ${ECHO_MSG} "${_PKGSRC_IN}> Required installed package $${pkg}: $${found} found"; \
- else \
- ${ECHO_MSG} "${_PKGSRC_IN}> Required package $${pkg}: NOT found"; \
- target=${DEPENDS_TARGET:Q}; \
- ${ECHO_MSG} "${_PKGSRC_IN}> Verifying $$target for $$dir"; \
- if [ ! -d $$dir ]; then \
- ${ECHO_MSG} "=> No directory for $$dir. Skipping.."; \
- else \
- cd $$dir ; \
- ${SETENV} _PKGSRC_DEPS=", ${PKGNAME}${_PKGSRC_DEPS}" PKGNAME_REQD=\'$$pkg\' ${MAKE} ${MAKEFLAGS} _AUTOMATIC=YES $$target || exit 1; \
- ${ECHO_MSG} "${_PKGSRC_IN}> Returning to build of ${PKGNAME}"; \
- fi; \
- fi
-. endfor # DEPENDS
-. endif # !NO_DEPENDS
-. endif # DEPENDS
-
-.endif
-
-.PHONY: build-depends-list
-.if !target(build-depends-list)
-build-depends-list:
- @for dir in `${MAKE} ${MAKEFLAGS} show-all-depends-dirs-excl`; \
- do \
- (cd ../../$$dir && \
- ${MAKE} ${MAKEFLAGS} package-name) \
- done
-.endif
-
-# If PACKAGES is set to the default (../../pkgsrc/packages), the current
-# ${MACHINE_ARCH} and "release" (uname -r) will be used. Otherwise a directory
-# structure of ...pkgsrc/packages/`uname -r`/${MACHINE_ARCH} is assumed.
-# The PKG_URL is set from FTP_PKG_URL_* or CDROM_PKG_URL_*, depending on
-# the target used to generate the README.html file.
-.PHONY: binpkg-list
-.if !target(binpkg-list)
-binpkg-list:
- @if ${TEST} -d ${PACKAGES}; then \
- cd ${PACKAGES}; \
- case ${.CURDIR} in \
- */pkgsrc/packages) \
- for pkg in ${PKGREPOSITORYSUBDIR}/${PKGWILDCARD}${PKG_SUFX} ; \
- do \
- if [ -f "$$pkg" ] ; then \
- pkgname=`${ECHO} $$pkg | ${SED} 's@.*/@@'`; \
- ${ECHO} "<TR><TD>${MACHINE_ARCH}:<TD><a href=\"${PKG_URL}/$$pkg\">$$pkgname</a><TD>(${OPSYS} ${OS_VERSION})"; \
- fi ; \
- done ; \
- ;; \
- *) \
- cd ${PACKAGES}/../..; \
- for i in [1-9].*/*; do \
- if cd ${PACKAGES}/../../$$i/${PKGREPOSITORYSUBDIR} 2>/dev/null; then \
- for j in ${PKGWILDCARD}${PKG_SUFX}; \
- do \
- if [ -f "$$j" ]; then \
- ${ECHO} $$i/$$j;\
- fi; \
- done; \
- fi; \
- done | ${AWK} -F/ ' \
- { \
- release = $$1; \
- arch = $$2; \
- pkg = $$3; \
- gsub("\\.tgz","", pkg); \
- if (arch != "m68k" && arch != "mipsel") { \
- if (arch in urls) \
- urls[arch "/" pkg "/" release] = "<a href=\"${PKG_URL}/" release "/" arch "/${PKGREPOSITORYSUBDIR}/" pkg "${PKG_SUFX}\">" pkg "</a>, " urls[arch]; \
- else \
- urls[arch "/" pkg "/" release] = "<a href=\"${PKG_URL}/" release "/" arch "/${PKGREPOSITORYSUBDIR}/" pkg "${PKG_SUFX}\">" pkg "</a> "; \
- } \
- } \
- END { \
- for (av in urls) { \
- split(av, ava, "/"); \
- arch=ava[1]; \
- pkg=ava[2]; \
- release=ava[3]; \
- print "<TR><TD>" arch ":<TD>" urls[av] "<TD>(${OPSYS} " release ")"; \
- } \
- }' | ${SORT} \
- ;; \
- esac; \
- fi
-.endif
-
-################################################################
-# Everything after here are internal targets and really
-# shouldn't be touched by anybody but the release engineers.
-################################################################
-
-# This target generates an index entry suitable for aggregation into
-# a large index. Format is:
-#
-# distribution-name|package-path|installation-prefix|comment| \
-# description-file|maintainer|categories|build deps|run deps|for arch| \
-# not for opsys
-#
-.PHONY: describe
-.if !target(describe)
-describe:
- @${ECHO_N} "${PKGNAME}|${.CURDIR}|"; \
- ${ECHO_N} "${PREFIX}|"; \
- ${ECHO_N} ${COMMENT:Q}; \
- if [ -f ${DESCR_SRC} ]; then \
- ${ECHO_N} "|${DESCR_SRC}"; \
- else \
- ${ECHO_N} "|/dev/null"; \
- fi; \
- ${ECHO_N} "|${MAINTAINER}|${CATEGORIES}|"; \
- case "A${BUILD_DEPENDS}B${DEPENDS}C" in \
- ABC) ;; \
- *) cd ${.CURDIR} && ${ECHO_N} `${MAKE} ${MAKEFLAGS} build-depends-list | ${SORT} -u`;; \
- esac; \
- ${ECHO_N} "|"; \
- if [ "${DEPENDS}" != "" ]; then \
- cd ${.CURDIR} && ${ECHO_N} `${MAKE} ${MAKEFLAGS} run-depends-list | ${SORT} -u`; \
- fi; \
- ${ECHO_N} "|"; \
- if [ "${ONLY_FOR_ARCHS}" = "" ]; then \
- ${ECHO_N} "any"; \
- else \
- ${ECHO_N} "${ONLY_FOR_ARCHS}"; \
- fi; \
- ${ECHO_N} "|"; \
- if [ "${NOT_FOR_OPSYS}" = "" ]; then \
- ${ECHO_N} "any"; \
- else \
- ${ECHO_N} "not ${NOT_FOR_OPSYS}"; \
- fi; \
- ${ECHO} ""
-.endif
-
-.PHONY: readmes
-.if !target(readmes)
-readmes: readme
-.endif
-
-# This target is used to generate README.html files
-.PHONY: readme
-.if !target(readme)
-FTP_PKG_URL_HOST?= ftp://ftp.NetBSD.org
-FTP_PKG_URL_DIR?= /pub/NetBSD/packages
-
-readme:
- @cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} README.html PKG_URL=${FTP_PKG_URL_HOST}${FTP_PKG_URL_DIR}
-.endif
-
-# This target is used to generate README.html files, very like "readme"
-# However, a different target was used for ease of use.
-.PHONY: cdrom-readme
-.if !target(cdrom-readme)
-CDROM_PKG_URL_HOST?= file://localhost
-CDROM_PKG_URL_DIR?= /usr/pkgsrc/packages
-
-cdrom-readme:
- @cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} README.html PKG_URL=${CDROM_PKG_URL_HOST}${CDROM_PKG_URL_DIR}
-.endif
-
-README_NAME= ${TEMPLATES}/README.pkg
-
-# set up the correct license information as a sed expression
-.if defined(LICENSE)
-SED_LICENSE_EXPR= -e 's|%%LICENSE%%|<p>Please note that this package has a ${LICENSE} license.</p>|'
-.else
-SED_LICENSE_EXPR= -e 's|%%LICENSE%%||'
-.endif
-
-# set up the "more info URL" information as a sed expression
-.if defined(HOMEPAGE)
-SED_HOMEPAGE_EXPR= -e 's|%%HOMEPAGE%%|<p>This package has a home page at <a HREF="${HOMEPAGE}">${HOMEPAGE}</a>.</p>|'
-.else
-SED_HOMEPAGE_EXPR= -e 's|%%HOMEPAGE%%||'
-.endif
-
-.PHONY: show-vulnerabilities-html
-show-vulnerabilities-html:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -f ${PKGVULNDIR}/pkg-vulnerabilities ]; then \
- ${AWK} '/^${PKGBASE}[-<>=]+[0-9]/ { gsub("\<", "\\&lt;", $$1); \
- gsub("\>", "\\&gt;", $$1); \
- printf("<LI><STRONG>%s has a %s exploit (see <a href=\"%s\">%s</a> for more details)</STRONG></LI>\n", $$1, $$2, $$3, $$3) }' \
- ${PKGVULNDIR}/pkg-vulnerabilities; \
- fi
-
-
-# If PACKAGES is set to the default (../../packages), the current
-# ${MACHINE_ARCH} and "release" (uname -r) will be used. Otherwise a directory
-# structure of ...pkgsrc/packages/`uname -r`/${MACHINE_ARCH} is assumed.
-# The PKG_URL is set from FTP_PKG_URL_* or CDROM_PKG_URL_*, depending on
-# the target used to generate the README.html file.
-.PHONY: README.html
-README.html: .PRECIOUS
- @${SETENV} AWK=${AWK} BMAKE=${MAKE} ../../mk/scripts/mkdatabase -f $@.tmp1
- @if ${TEST} -d ${PACKAGES}; then \
- cd ${PACKAGES}; \
- case `${PWD_CMD}` in \
- ${PKGSRCDIR}/packages) \
- MULTIARCH=no; \
- ;; \
- *) \
- MULTIARCH=yes; \
- ;; \
- esac; \
- cd ${.CURDIR} ; \
- fi; \
- ${AWK} -f ../../mk/scripts/genreadme.awk \
- builddependsfile=/dev/null \
- dependsfile=/dev/null \
- AWK=${AWK:Q} \
- CMP=${CMP:Q} \
- DISTDIR=${DISTDIR:Q} \
- GREP=${GREP:Q} \
- PACKAGES=${PACKAGES:Q} \
- PKG_INFO=${PKG_INFO:Q} \
- PKG_SUFX=${PKG_SUFX:Q} \
- PKG_URL=${PKG_URL:Q} \
- PKGSRCDIR=${.CURDIR:C|/[^/]*/[^/]*$||:Q} \
- SED=${SED:Q} \
- SETENV=${SETENV:Q} \
- SORT=${SORT:Q} \
- TMPDIR=${TMPDIR:U/tmp:Q} \
- SINGLEPKG=${PKGPATH:Q} \
- $@.tmp1
- @${RM} $@.tmp1
-
-.PHONY: show-pkgtools-version
-.if !target(show-pkgtools-version)
-show-pkgtools-version:
- @${ECHO} ${PKGTOOLS_VERSION}
-.endif
-
-# convenience target, to display make variables from command line
-# i.e. "make show-var VARNAME=var", will print var's value
-.PHONY: show-var
-show-var:
- @${ECHO} ${${VARNAME}:Q}
-
-# enhanced version of target above, to display multiple variables
-.PHONY: show-vars
-show-vars:
-.for VARNAME in ${VARNAMES}
- @${ECHO} ${${VARNAME}:Q}
-.endfor
-
-# displays multiple variables as shell expressions
-# VARS is space separated list of VARNAME:shellvarname
-.PHONY: show-vars-eval
-show-vars-eval:
-.for var in ${VARS}
- @${ECHO} ${var:C/^.*://}="${${var:C/:.*$//}:Q}"
-.endfor
-
-.PHONY: print-build-depends-list
-.if !target(print-build-depends-list)
-print-build-depends-list:
-. if !empty(BUILD_DEPENDS) || !empty(DEPENDS)
- @${ECHO_N} 'This package requires package(s) "'
- @${ECHO_N} `${MAKE} ${MAKEFLAGS} build-depends-list | ${SORT} -u`
- @${ECHO} '" to build.'
-. endif
-.endif
-
-.PHONY: print-run-depends-list
-.if !target(print-run-depends-list)
-print-run-depends-list:
-. if !empty(DEPENDS)
- @${ECHO_N} 'This package requires package(s) "'
- @${ECHO_N} `${MAKE} ${MAKEFLAGS} run-depends-list | ${SORT} -u`
- @${ECHO} '" to run.'
-. endif
-.endif
-
-# This target is used by the mk/scripts/mkreadme script to generate
-# README.html files
-.PHONY: print-summary-data
-.if !target(print-summary-data)
-print-summary-data:
- @${ECHO} depends ${PKGPATH} ${DEPENDS:Q}
- @${ECHO} build_depends ${PKGPATH} ${BUILD_DEPENDS:Q}
- @${ECHO} conflicts ${PKGPATH} ${CONFLICTS:Q}
- @${ECHO} index ${PKGPATH} ${PKGNAME:Q}
- @${ECHO} htmlname ${PKGPATH} ${_HTML_PKGLINK:Q}
- @${ECHO} homepage ${PKGPATH} ${HOMEPAGE:Q}
- @${ECHO} wildcard ${PKGPATH} ${PKGWILDCARD:Q}
- @${ECHO} comment ${PKGPATH} ${COMMENT:Q}
- @${ECHO} license ${PKGPATH} ${LICENSE:Q}
- @if [ "${ONLY_FOR_ARCHS}" = "" ]; then \
- ${ECHO} "onlyfor ${PKGPATH} any"; \
- else \
- ${ECHO} "onlyfor ${PKGPATH} ${ONLY_FOR_ARCHS}"; \
- fi;
- @if [ "${NOT_FOR_OPSYS}" = "" ]; then \
- ${ECHO} "notfor ${PKGPATH} any"; \
- else \
- ${ECHO} "notfor ${PKGPATH} not ${NOT_FOR_OPSYS}"; \
- fi;
- @${ECHO} "maintainer ${PKGPATH} ${MAINTAINER}"
- @${ECHO} "categories ${PKGPATH} ${CATEGORIES}"
- @if [ -f ${DESCR_SRC} ]; then \
- ${ECHO} "descr ${PKGPATH} ${DESCR_SRC:S;${PKGSRCDIR}/;;g}"; \
- else \
- ${ECHO} "descr ${PKGPATH} /dev/null"; \
- fi
- @${ECHO} "prefix ${PKGPATH} ${PREFIX}"
-.endif
-
-LICENSE_FILE?= ${PKGSRCDIR}/licenses/${LICENSE}
-
-.if !target(show-license)
-show-license show-licence:
- @license=${LICENSE:Q}; \
- license_file=${LICENSE_FILE:Q}; \
- pager=${PAGER:Q}; \
- case "$$pager" in "") pager=${CAT:Q};; esac; \
- case "$$license" in "") exit 0;; esac; \
- if ${TEST} -f "$$license_file"; then \
- $$pager "$$license_file"; \
- else \
- ${ECHO} "Generic $$license information not available"; \
- ${ECHO} "See the package description (pkg_info -d ${PKGNAME}) for more information."; \
- fi
-.endif
-
-# This target is defined in bsd.options.mk for packages that use
-# the options framework.
-.if !target(show-options)
-.PHONY: show-options
-show-options:
- @${ECHO} This package does not use the options framework.
-.endif
-
-# Stat all the files of one pkg and sum the sizes up.
-#
-# XXX This is intended to be run before pkg_create is called, so the
-# existence of ${PLIST} can be assumed.
-.PHONY: print-pkg-size-this
-print-pkg-size-this:
- @${SHCOMMENT} "This pkg's files" ; \
- ${AWK} 'BEGIN { base = "${PREFIX}/" } \
- /^@cwd/ { base = $$2 "/" } \
- /^@/ { next } \
- { print base $$0 }' \
- <${PLIST} \
- | ${SORT} -u \
- | ${SED} -e "s/'/'\\\\''/g" -e "s/.*/'&'/" \
- | ${XARGS} -n 256 ${LS} -ld \
- | ${AWK} 'BEGIN { s = 0; } { s += $$5; } END { print s; }'
-
-# Sizes of required pkgs (only)
-#
-# XXX This is intended to be run before pkg_create is called, so the
-# dependencies are all installed.
-.PHONY: print-pkg-size-depends
-print-pkg-size-depends:
- @pkglist=`${MAKE} ${MAKEFLAGS} run-depends-list`; \
- if [ "X$${pkglist}" != "X" ]; then \
- ${ECHO} $${pkglist} \
- | ${XARGS} -n 1 ${SETENV} ${PKG_BEST_EXISTS} \
- | ${SORT} -u \
- | ${XARGS} -n 256 ${SETENV} ${PKG_INFO} -qs \
- | ${AWK} '/^[0-9]+$$/ { s += $$1; } END { print s; }'; \
- else \
- ${ECHO} "0"; \
- fi
-
-
-###
-### Automatic PLIST generation
-### - files & symlinks first
-### - @dirrm statements last
-### - empty directories are handled properly
-### - dirs from mtree files are excluded
-### - substitute for platform or package specifics substrings
-###
-### Usage:
-### - make install
-### - make print-PLIST | brain >PLIST
-###
-
-_PRINT_PLIST_AWK_SUBST={ \
- gsub(/${OPSYS}/, "$${OPSYS}"); \
- gsub(/${OS_VERSION:S/./\./g}/, "$${OS_VERSION}"); \
- gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); \
- gsub(/${MACHINE_ARCH}/, "$${MACHINE_ARCH}"); \
- gsub(/${MACHINE_GNU_ARCH}/, "$${MACHINE_GNU_ARCH}");
-.if !empty(LOWER_VENDOR)
-_PRINT_PLIST_AWK_SUBST+= gsub(/${LOWER_VENDOR}/, "$${LOWER_VENDOR}");
-.endif
-_PRINT_PLIST_AWK_SUBST+= \
- gsub(/${LOWER_OS_VERSION:S/./\./g}/, "$${LOWER_OS_VERSION}"); \
- gsub(/${LOWER_OPSYS}/, "$${LOWER_OPSYS}"); \
- gsub(/${PKGNAME_NOREV}/, "$${PKGNAME}"); \
- gsub(/${PKGVERSION:S/./\./g:C/nb[0-9]*$$//}/, "$${PKGVERSION}");\
- gsub(/${PKGLOCALEDIR}\/locale/, "$${PKGLOCALEDIR}/locale"); \
- gsub("^${PKGMANDIR}\/", "man/"); \
-}
-
-_PRINT_PLIST_AWK_IGNORE= ($$0 ~ /emul\/linux\/proc/)
-_PRINT_PLIST_AWK_IGNORE+= || ($$0 ~ /^info\/dir$$/)
-.if defined(INFO_DIR) && empty(INFO_DIR:Minfo)
-_PRINT_PLIST_AWK_IGNORE+= || ($$0 ~ /^${INFO_DIR:S|/|\\/|g}\/dir$$/)
-.endif
-.if !empty(INFO_FILES)
-. for _f_ in ${INFO_FILES}
-_PRINT_PLIST_AWK_IGNORE+= || ($$0 ~ /^${INFO_DIR:S|/|\\/|g}\/${_f_:S|+|\+|g}(-[0-9]+)?(\.gz)?$$/)
-. endfor
-.endif
-
-# Common (system) directories not to generate @dirrm statements for
-# Reads MTREE_FILE and generate awk statements that will
-# sort out which directories NOT to include into the PLIST @dirrm list
-.if make(print-PLIST)
-_PRINT_PLIST_COMMON_DIRS!= ${AWK} 'BEGIN { \
- i=0; \
- stack[i]="${PREFIX}" ; \
- cwd=""; \
- } \
- ! ( /^\// || /^\#/ || /^$$/ ) { \
- if ( $$1 == ".." ){ \
- i=i-1; \
- cwd = stack[i]; \
- } else if ( $$1 == "." ){ \
- } else { \
- stack[i] = cwd ; \
- if ( i == 0 ){ \
- cwd = $$1 ; \
- } else { \
- cwd = cwd "\\/" $$1 ; \
- } \
- print "/^" cwd "$$$$/ { next; }"; \
- i=i+1 ; \
- } \
- } \
- END { print "{ print $$$$0; }"; } \
- ' <${MTREE_FILE}
-.endif
-
-
-# scan $PREFIX for any files/dirs modified since the package was extracted
-# will emit "@exec mkdir"-statements for empty directories
-# XXX will fail for data files that were copied using tar (e.g. emacs)!
-# XXX should check $LOCALBASE and $X11BASE, and add @cwd statements
-
-_PRINT_PLIST_FILES_CMD= \
- ${FIND} ${PREFIX}/. -xdev -newer ${_EXTRACT_COOKIE} \! -type d -print
-_PRINT_PLIST_DIRS_CMD= \
- ${FIND} ${PREFIX}/. -xdev -newer ${_EXTRACT_COOKIE} -type d -print
-_PRINT_LA_LIBNAMES= ${SETENV} ECHO=${ECHO:Q} GREP=${GREP:Q} SORT=${SORT:Q} \
- ${SH} ${.CURDIR}/../../mk/scripts/print-la-libnames
-
-.if !empty(LIBTOOLIZE_PLIST:M[yY][eE][sS])
-_PRINT_PLIST_LIBTOOLIZE_FILTER?= \
- ( \
- if ${TEST} -d ${WRKDIR}; then \
- tmpdir="${WRKDIR}"; \
- else \
- tmpdir="$${TMPDIR-/tmp}"; \
- fi; \
- fileslist="$$tmpdir/print.plist.files.$$$$"; \
- libslist="$$tmpdir/print.plist.libs.$$$$"; \
- while read file; do \
- case $$file in \
- *.la) \
- ${_PRINT_LA_LIBNAMES} $$file >> $$libslist; \
- ;; \
- esac; \
- ${ECHO} "$$file"; \
- done > $$fileslist; \
- if ${TEST} -f "$$libslist"; then \
- ${GREP} -hvxF "`${SORT} -u $$libslist`" "$$fileslist"; \
- else \
- ${CAT} "$$fileslist"; \
- fi; \
- ${RM} -f "$$fileslist" "$$libslist"; \
- )
-.else
-_PRINT_PLIST_LIBTOOLIZE_FILTER?= ${CAT}
-.endif
-
-.PHONY: print-PLIST
-.if !target(print-PLIST)
-print-PLIST:
- ${_PKG_SILENT}${_PKG_DEBUG}\
- ${ECHO} '@comment $$'NetBSD'$$'
- ${_PKG_SILENT}${_PKG_DEBUG}\
- shlib_type=`${MAKE} ${MAKEFLAGS} show-shlib-type`; \
- case $$shlib_type in \
- "a.out") genlinks=1 ;; \
- *) genlinks=0 ;; \
- esac; \
- ${_PRINT_PLIST_FILES_CMD} \
- | ${_PRINT_PLIST_LIBTOOLIZE_FILTER} \
- | ${SORT} \
- | ${AWK} ' \
- { sub("${PREFIX}/\\./", ""); } \
- ${_PRINT_PLIST_AWK_IGNORE} { next; } \
- ${_PRINT_PLIST_AWK_SUBST} \
- /^@/ { print $$0; next } \
- /.*\/lib[^\/]+\.so\.[0-9]+\.[0-9]+\.[0-9]+$$/ { \
- print $$0; \
- sub("\\.[0-9]+$$", ""); \
- if ('$$genlinks') print $$0; \
- sub("\\.[0-9]+$$", ""); \
- if ('$$genlinks') print $$0; \
- sub("\\.[0-9]+$$", ""); \
- if ('$$genlinks') print $$0; \
- next; \
- } \
- /.*\/lib[^\/]+\.so\.[0-9]+\.[0-9]+$$/ { \
- print $$0; \
- sub("\\.[0-9]+$$", ""); \
- if ('$$genlinks') print $$0; \
- sub("\\.[0-9]+$$", ""); \
- if ('$$genlinks') print $$0; \
- next; \
- } \
- ${PRINT_PLIST_AWK} \
- { print $$0; }'
- ${_PKG_SILENT}${_PKG_DEBUG}\
- for i in `${_PRINT_PLIST_DIRS_CMD} \
- | ${SORT} -r \
- | ${AWK} ' \
- /emul\/linux\/proc/ { next; } \
- /${PREFIX:S|/|\\/|g}\/\.$$/ { next; } \
- { sub("${PREFIX}/\\\\./", ""); } \
- { sub("^${PKGMANDIR}/", "man/"); } \
- ${_PRINT_PLIST_COMMON_DIRS}'` ; \
- do \
- if [ `${LS} -la ${PREFIX}/$$i | ${WC} -l` = 3 ]; then \
- ${ECHO} @exec \$${MKDIR} %D/$$i | ${AWK} ' \
- ${PRINT_PLIST_AWK} \
- { print $$0; }' ; \
- fi ; \
- ${ECHO} @dirrm $$i | ${AWK} ' \
- ${PRINT_PLIST_AWK} \
- { print $$0; }' ; \
- done \
- | ${AWK} '${_PRINT_PLIST_AWK_SUBST} { print $$0; }'
-.endif # target(print-PLIST)
-
-# By default, all packages attempt to link into the views.
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-BUILD_VIEWS?= yes
-.endif
-
-# DEFAULT_VIEW.${PKGBASE} default view for ${PKGBASE}
-# VIEWBASE base location of files at run-time
-#
-DEFAULT_VIEW.${PKGBASE}?= ${DEFAULT_VIEW}
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-. if empty(DEFAULT_VIEW.${PKGBASE}:M"")
-VIEWBASE= ${LOCALBASE}/${DEFAULT_VIEW.${PKGBASE}}
-. else
-VIEWBASE= ${LOCALBASE}
-. endif
-.elif ${PKG_INSTALLATION_TYPE} == "overwrite"
-VIEWBASE= ${PREFIX}
-.endif
-MAKE_ENV+= VIEWBASE=${VIEWBASE}
-
-PKGVIEWS+= ${DEFAULT_VIEW.${PKGBASE}}
-
-.PHONY: pre-install-fake-pkg
-.if !target(pre-install-fake-pkg)
-pre-install-fake-pkg:
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${PRESERVE_FILE}
-. if defined(PKG_PRESERVE)
- ${_PKG_SILENT}${_PKG_DEBUG}${DATE} > ${PRESERVE_FILE}
-. endif
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${BUILD_VERSION_FILE}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- files=""; \
- for f in ${.CURDIR}/Makefile ${FILESDIR}/* ${PKGDIR}/*; do \
- if [ -f "$$f" ]; then \
- files="$$files \"$$f\""; \
- fi; \
- done; \
- if [ -f ${DISTINFO_FILE} ]; then \
- for f in `${AWK} 'NF == 4 && $$3 == "=" { gsub("[()]", "", $$2); print $$2 }' < ${DISTINFO_FILE}`; do \
- if [ -f ${PATCHDIR}/$$f ]; then \
- files="$$files \"${PATCHDIR}/$$f\""; \
- fi; \
- done; \
- fi; \
- if [ -d ${PATCHDIR} ]; then \
- for f in ${PATCHDIR}/patch-*; do \
- case $$f in \
- *.orig|*.rej|*~) ;; \
- ${PATCHDIR}/patch-local-*) \
- files="$$files \"$$f\"" ;; \
- esac; \
- done; \
- fi; \
- eval ${GREP} '\$$NetBSD' $$files | ${SED} -e 's|^${PKGSRCDIR}/||' > ${BUILD_VERSION_FILE}
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${BUILD_INFO_FILE}
-. for def in ${BUILD_DEFS}
- @${ECHO} ${def}=${${def}:Q} | ${SED} -e 's|^PATH=[^ ]*|PATH=...|' >> ${BUILD_INFO_FILE}
-. endfor
-. if !empty(USE_LANGUAGES)
- @${ECHO} "CC_VERSION=${CC_VERSION}" >> ${BUILD_INFO_FILE}
-. endif
-. if !empty(USE_TOOLS:Mperl\:run)
- @${ECHO} "PERL=`${PERL5} --version 2>/dev/null | ${GREP} 'This is perl'`" >> ${BUILD_INFO_FILE}
-. endif
-. if defined(_USE_GMAKE) || !empty(USE_TOOLS:Mgmake)
- @${ECHO} "GMAKE=`${GMAKE} --version | ${GREP} Make`" >> ${BUILD_INFO_FILE}
-. endif
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO} "_PKGTOOLS_VER=${PKGTOOLS_VERSION}" >> ${BUILD_INFO_FILE}
-.endif
-
-.PHONY: post-install-fake-pkg
-.if !target(post-install-fake-pkg)
-post-install-fake-pkg: ${PLIST} ${DESCR} ${MESSAGE}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -f ${PLIST} -o ! -f ${DESCR} ]; then \
- ${ECHO} "** Missing package files for ${PKGNAME} - installation not recorded."; \
- exit 1; \
- fi
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -d ${_PKG_DBDIR} ]; then \
- ${RM} -f ${_PKG_DBDIR}; \
- ${MKDIR} ${_PKG_DBDIR}; \
- fi
-. if defined(FORCE_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG}${PKG_ADMIN} delete ${PKGNAME}
-. endif
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO} ${COMMENT:Q} > ${PKG_DB_TMPDIR}/+COMMENT
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case "${DESCR}" in \
- ${PKG_DB_TMPDIR}/*|"") ;; \
- *) if ${TEST} -f ${DESCR}; then \
- ${CP} ${DESCR} ${PKG_DB_TMPDIR}/+DESC; \
- fi ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case "${MESSAGE}" in \
- ${PKG_DB_TMPDIR}/*|"") ;; \
- *) if ${TEST} -f ${MESSAGE}; then \
- ${CP} ${MESSAGE} ${PKG_DB_TMPDIR}/+DISPLAY; \
- fi ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case ${PKG_INSTALLATION_TYPE} in \
- pkgview) ${TOUCH} ${PKG_DB_TMPDIR}/+VIEWS ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case "${INSTALL_FILE}" in \
- ${PKG_DB_TMPDIR}/*|"") ;; \
- *) if ${TEST} -f ${INSTALL_FILE}; then \
- ${CP} ${INSTALL_FILE} ${PKG_DB_TMPDIR}/+INSTALL; \
- fi ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case "${DEINSTALL_FILE}" in \
- ${PKG_DB_TMPDIR}/*|"") ;; \
- *) if ${TEST} -f ${DEINSTALL_FILE}; then \
- ${CP} ${DEINSTALL_FILE} ${PKG_DB_TMPDIR}/+DEINSTALL; \
- fi ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${SIZE_PKG_FILE} ${SIZE_ALL_FILE}
-. if ${SHLIB_HANDLING} == "YES" && ${CHECK_SHLIBS} == "YES"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case "${LDD}" in \
- "") ldd=`${TYPE} ldd 2>/dev/null | ${AWK} '{ print $$NF }'`;; \
- *) ldd="${LDD}"; \
- esac; \
- case "${OBJECT_FMT}" in \
- ELF) bins=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^(bin|sbin|libexec)\// { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
- libs=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^lib\/lib.*\.so\.[0-9]+$$/ { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
- if ${TEST} "$$bins" != "" -o "$$libs" != ""; then \
- requires=`($$ldd $$bins $$libs 2>/dev/null || ${TRUE}) | ${AWK} 'NF == 3 { print $$3 }' | ${SORT} -u`; \
- fi; \
- linklibs=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^[^@].*\.so\.[0-9\.]+$$/ { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
- for i in $${linklibs}; do \
- if ${TEST} -r $$i -a ! -x $$i -a ! -h $$i; then \
- ${TEST} "${PKG_DEVELOPER:Uno}" = "no" || \
- ${ECHO} "$$i: installed without execute permission; fixing (should use [BSD_]INSTALL_LIB)"; \
- ${CHMOD} +x $$i; \
- fi; \
- done; \
- ;; \
- Mach-O) bins=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^(bin|sbin|libexec)\// { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
- libs=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^lib\/lib.*\.dylib/ { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
- if ${TEST} "$$bins" != "" -o "$$libs" != ""; then \
- requires=`($$ldd $$bins $$libs 2>/dev/null || ${TRUE}) | ${AWK} '/compatibility version/ { print $$1 }' | ${SORT} -u`; \
- fi; \
- ;; \
- esac; \
- for i in "" $$libs; do \
- ${TEST} "$$i" = "" && continue; \
- ${ECHO} "PROVIDES=$$i" >> ${BUILD_INFO_FILE}; \
- done; \
- for req in "" $$requires; do \
- ${TEST} "$$req" = "" && continue; \
- ${ECHO} "REQUIRES=$$req" >> ${BUILD_INFO_FILE}; \
- done
-. endif
- ${_PKG_SILENT}${_PKG_DEBUG} \
- size_this=`${MAKE} ${MAKEFLAGS} print-pkg-size-this`; \
- size_depends=`${MAKE} ${MAKEFLAGS} print-pkg-size-depends`; \
- ${ECHO} $$size_this >${SIZE_PKG_FILE}; \
- ${ECHO} $$size_this $$size_depends \
- | ${AWK} '{ print $$1 + $$2; }' >${SIZE_ALL_FILE}
-.endif
-
-# Fake installation of package so that user can pkg_delete it later.
-# Also, make sure that an installed package is recognized correctly in
-# accordance to the @pkgdep directive in the packing lists.
-#
-.PHONY: register-pkg
-.if !target(register-pkg)
-register-pkg: post-install-fake-pkg
- ${_PKG_SILENT}${_PKG_DEBUG} \
- doit=yes; \
- case ${PKG_INSTALLATION_TYPE} in \
- overwrite) if [ -d ${_PKG_DBDIR}/${PKGNAME} ]; then \
- doit=no; \
- fi ;; \
- esac; \
- case $$doit in \
- yes) \
- ${ECHO_MSG} "${_PKGSRC_IN}> Registering installation for ${PKGNAME}"; \
- ${PKG_CREATE} ${PKG_ARGS_INSTALL} -O ${PKGFILE} > ${PKG_DB_TMPDIR}/+CONTENTS; \
- list="`${MAKE} ${MAKEFLAGS} run-depends-list ECHO_MSG=${TRUE} | ${SORT} -u`" ; \
- for realdep in `${ECHO} $$list | ${XARGS} -n 1 ${SETENV} ${PKG_BEST_EXISTS} | ${SORT} -u`; do \
- if ${TEST} -z "$$realdep"; then \
- ${ECHO} "$$dep not installed - dependency NOT registered" ; \
- elif [ -d ${_PKG_DBDIR}/$$realdep ]; then \
- if ${TEST} ! -f ${_PKG_DBDIR}/$$realdep/+REQUIRED_BY; then \
- ${TOUCH} ${_PKG_DBDIR}/$$realdep/+REQUIRED_BY; \
- fi; \
- ${AWK} 'BEGIN { found = 0; } \
- $$0 == "${PKGNAME}" { found = 1; } \
- { print $$0; } \
- END { if (!found) { printf("%s\n", "${PKGNAME}"); }}' \
- < ${_PKG_DBDIR}/$$realdep/+REQUIRED_BY > ${_PKG_DBDIR}/$$realdep/reqby.$$$$; \
- ${MV} ${_PKG_DBDIR}/$$realdep/reqby.$$$$ ${_PKG_DBDIR}/$$realdep/+REQUIRED_BY; \
- ${ECHO} "${PKGNAME} requires installed package $$realdep"; \
- fi; \
- done; \
- case ${PKG_INSTALLATION_TYPE} in \
- overwrite) ${RM} -rf ${_PKG_DBDIR}/${PKGNAME} ;; \
- esac; \
- ${MKDIR} ${_PKG_DBDIR}/${PKGNAME}; \
- ${CP} ${PKG_DB_TMPDIR}/+* ${_PKG_DBDIR}/${PKGNAME}; \
- if [ "${_AUTOMATIC}" = "YES" ]; then \
- ${PKG_ADMIN} set automatic=yes ${PKGNAME}; \
- fi; \
- ;; \
- esac
-. if (${PKG_INSTALLATION_TYPE} == "pkgviews") && \
- !empty(BUILD_VIEWS:M[yY][eE][sS])
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} build-views
-. endif # pkgviews
-.endif
-
-.PHONY: build-views
-build-views: do-su-build-views
-
-.PHONY: do-su-build-views
-do-su-build-views:
- @${ECHO_MSG} "${_PKGSRC_IN}> Building views for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-build-views"; \
- action="build-views"; \
- ${_SU_TARGET}
-
-.PHONY: real-su-build-views
-.if !target(real-su-build-views)
-real-su-build-views:
-. if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(PKGVIEWS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MKDIR} ${LOCALBASE}; \
- for v in ${PKGVIEWS}; do \
- case "$$v" in \
- "") dbdir=${PKG_DBDIR}; viewname=standard ;; \
- *) dbdir=${LOCALBASE}/$$v/.dbdir; viewname=$$v ;; \
- esac; \
- ${ECHO} "=> Performing package view clash check for ${PKGNAME} in $$viewname view"; \
- pkg=`${PKG_INFO_CMD} -K $$dbdir -e ${PKGBASE} || ${TRUE}`; \
- case "$$pkg" in \
- "") ;; \
- *) ${ECHO} "*** ${PKGBASE} exists in $$viewname view - package $$pkg ***"; \
- ${ECHO} "*** Not hoisting ${PKGNAME} into $$viewname view"; \
- continue ;; \
- esac; \
- ${ECHO} "=> Performing package view overwrite check for ${PKGNAME} in $$viewname view"; \
- dups=`${SETENV} PLIST_IGNORE_FILES=${_PLIST_IGNORE_FILES:Q} ${PKG_VIEW} --view=$$v check ${PKGNAME} || ${TRUE}`; \
- case "$$dups" in \
- "") ;; \
- *) ${ECHO} "***********************************************************"; \
- ${ECHO} "**** The following symbolic links will be overwritten *****"; \
- for f in $$dups; do \
- ${LS} -l ${LOCALBASE}/$$v/$$f; \
- done; \
- ${ECHO} "***********************************************************"; \
- ;; \
- esac; \
- ${ECHO} "=> Linking package into $$viewname view"; \
- ${SETENV} PLIST_IGNORE_FILES=${_PLIST_IGNORE_FILES:Q} ${PKG_VIEW} --view=$$v add ${PKGNAME}; \
- done
-. else
- ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
-. endif
-.endif
-
-.PHONY: remove-views
-remove-views: do-su-remove-views
-
-.PHONY: do-su-remove-views
-do-su-remove-views:
- @${ECHO_MSG} "${_PKGSRC_IN}> Removing ${PKGNAME} from views"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- realtarget="real-su-remove-views"; \
- action="remove-views"; \
- ${_SU_TARGET}
-
-.PHONY: real-su-remove-views
-.if !target(real-su-remove-views)
-real-su-remove-views:
-. if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(PKGVIEWS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for v in ${PKGVIEWS}; do \
- case "$$v" in \
- "") dbdir=${PKG_DBDIR}; viewname=standard ;; \
- *) dbdir=${LOCALBASE}/$$v/.dbdir; viewname=$$v ;; \
- esac; \
- ${ECHO} "=> Removing package from $$viewname view"; \
- ${SETENV} PLIST_IGNORE_FILES=${_PLIST_IGNORE_FILES:Q} ${PKG_VIEW} --view=$$v delete ${PKGNAME}; \
- done
-.else
- ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
-. endif
-.endif
-
-# Depend is generally meaningless for arbitrary packages, but if someone wants
-# one they can override this. This is just to catch people who've gotten into
-# the habit of typing `${MAKE} depend all install' as a matter of course.
-#
-.PHONY: depend
-.if !target(depend)
-depend:
-.endif
-
-# Same goes for tags
-.PHONY: tags
-.if !target(tags)
-tags:
-.endif
-
-# generate ${PLIST} from ${PLIST_SRC} by:
-# - substituting for PLIST_SUBST entries
-# - fixing list of man-pages according to PKGMANDIR, MANZ, MANINSTALL.
-# - adding symlinks for shared libs (ELF) or ldconfig calls (a.out).
-
-# plist awk pattern-action statement to convert man/ to ${PKGMANDIR}/
-_PLIST_AWK_PKGMANDIR= \
-/^([^\/]*\/)*man\/([^\/]*\/)?(man[1-9ln]\/.*[1-9ln]|cat[1-9ln]\/.*[0-9])$$/ { \
- sub("^man/", "${PKGMANDIR}/"); \
-} \
-/^@dirrm man\// { \
- sub(" man/", " ${PKGMANDIR}/"); \
-}
-
-# plist awk pattern-action statement to handle MANINSTALL
-_PLIST_AWK_MANINSTALL= \
-{ \
- if (!"${MANINSTALL:Mmaninstall}" && \
- match($$0, "^([^/]*/)*man/([^/]*/)?man[1-9ln]") ) { \
- next; \
- } \
- if (!"${MANINSTALL:Mcatinstall}" && \
- match($$0, "^([^/]*/)*man/([^/]*/)?cat[1-9ln]") ) { \
- next; \
- } \
-}
-
-# plist awk pattern-action statement to strip '.gz' from man
-# entries
-_PLIST_AWK_STRIP_MANZ= \
-/^([^\/]*\/)*man\/([^\/]*\/)?(man[1-9ln]\/.*[1-9ln]|cat[1-9ln]\/.*[0-9])\.gz$$/ { \
- $$0 = substr($$0, 1, length($$0) - 3); \
-}
-
-# plist awk pattern-action statement to add '.gz' to man entries
-_PLIST_AWK_ADD_MANZ= \
-/^([^\/]*\/)*man\/([^\/]*\/)?(man[1-9ln]\/.*[1-9ln]|cat[1-9ln]\/.*[0-9])$$/ { \
- $$0 = $$0 ".gz"; \
-}
-
-# plist awk pattern-action statement to handle PLIST_SUBST substitutions
-# BEWARE: the awk script quote is closed and reopened around the
-# string argument of gsub() calls so historic quoting semantic of
-# PLIST_SUBST is preserved.
-# XXX `_str_quote_{start,end}_' is a gross hack to work around weird word
-# splitting.
-_PLIST_AWK_SUBST= { ${PLIST_SUBST:S|=|\\}/,_str_quote_start_|:S|$|_str_quote_end_);|:S|^|gsub(/\\\$\\{|:S|_str_quote_start_|"'|g:S|_str_quote_end_|'"|g} }
-
-# plist awk pattern-action statement to rewrite "imake installed" catman pages
-# as plain manpages.
-_PLIST_AWK_IMAKE_MAN= \
-/^([^\/]*\/)*man\/([^\/]*\/)?cat[1-9ln]\/.*0$$/ { \
- n = match($$0, "/cat[1-9ln]"); \
- sect = sprintf(".%s", substr($$0, n + 4, 1)); \
- sub("/cat", "/man"); \
- sub("\\.0$$", sect); \
-}
-
-# plist awk pattern-action statement to handle info files:
-# generate list of files matching
-# ${PREFIX}/${INFO_DIR}/filename(-[0-9]+)?(.gz)?
-# for `filename' being each word of INFO_FILES in turn.
-# Notes:
-# - first the filenames matching ${PREFIX}/${INFO_DIR}/filename*
-# are generated with ls then they are filtered by the exact pattern.
-# - ${PREFIX}/${INFO_DIR}/filename is single quoted and single quote
-# escaped
-# XXX When all info file entries will be removed from PLIST files
-# the non-BEGIN pattern-action statements generated below will be retired.
-_PLIST_AWK_INFO=
-.if ${PLIST_TYPE} == "static"
-. if !empty(INFO_FILES)
-. for _f_ in ${INFO_FILES}
-_PLIST_AWK_INFO+= \
-BEGIN { \
- cmd="${_f_}"; gsub("'\''", "\\'\''", cmd); \
- sub("^", "${LS} '\''${PREFIX}/${INFO_DIR}/", cmd); \
- sub("$$", "'\''*", cmd); \
- while ((cmd | getline l) > 0) { \
- if (match(l, ".*/${_f_:S|+|\\\+|g}(-[0-9]+)?(\\.gz)?$$")) { \
- sub("^${PREFIX}/", "", l); \
- print l; \
- } \
- } \
- close(cmd); \
-} \
-/^${INFO_DIR:S|/|\\/|g}\/${_f_}(-[0-9]+)?$$/ { next; }
-. endfor
-. endif
-.endif
-
-# plist awk pattern-action statement to expand libtool archives into
-# shared and/or static libraries.
-#
-.if ${PLIST_TYPE} == "dynamic"
-_PLIST_AWK_LIBTOOL?= # empty
-.elif empty(LIBTOOLIZE_PLIST:M[yY][eE][sS])
-BROKEN+= "USE_LIBTOOL requires LIBTOOLIZE_PLIST=yes for proper PLIST generation"
-.else
-_PLIST_AWK_LIBTOOL?= \
-/^[^@].*\.la$$/ { \
- system("cd ${PREFIX} && ${_PRINT_LA_LIBNAMES} " $$0) \
-}
-.endif
-
-# _PLIST_AWK_SCRIPT hold the complete awk script for plist target.
-#
-_PLIST_AWK_SCRIPT= '
-# Do the substitutions
-# See comments above about _PLIST_AWK_SUBST: it contains single quotes!
-# So _PLIST_AWK_SCRIPT is intended to be single quoted.
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_SUBST}
-# Generated entries for info files
-.if !empty(INFO_FILES)
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_INFO}
-.endif
-# Change path to man directory if using custom PKGMANDIR
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_PKGMANDIR}
-# Expand libtool archives
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_LIBTOOL}
-# Strip the '.gz' suffixes on man entries
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_STRIP_MANZ}
-# Deal with MANINSTALL and man entries
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_MANINSTALL}
-# Deal with "imake installed" catman pages
-.if (defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake)) && ${_PREFORMATTED_MAN_DIR} == "man"
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_IMAKE_MAN}
-.endif
-# Add '.gz' suffixes on man entries if needed
-.if !empty(_MANZ:M[yY][eE][sS])
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_ADD_MANZ}
-.endif
-# Print the entry
-_PLIST_AWK_SCRIPT+= { print $$0; }
-#
-_PLIST_AWK_SCRIPT+= '
-
-# GENERATE_PLIST is a sequence of commands, terminating in a semicolon,
-# that outputs contents for a PLIST to stdout and is appended to
-# the contents of ${PLIST_SRC}.
-#
-GENERATE_PLIST?= ${TRUE};
-.if ${PLIST_TYPE} == "dynamic"
-_PLIST_IGNORE_CMD= \
- ( while read i; do \
- ignore=no; \
- for p in ${_PLIST_IGNORE_FILES}; do \
- case "$$i" in \
- $$p) ignore=yes; break ;; \
- esac; \
- done; \
- [ "$$ignore" = "yes" ] || ${ECHO} "$$i"; \
- done )
-_GENERATE_PLIST= \
- ${FIND} ${PREFIX} \! -type d -print | ${SORT} | \
- ${SED} -e "s|^${PREFIX}/||" | \
- ${_PLIST_IGNORE_CMD}; \
- ${FIND} ${PREFIX} -type d -print | ${SORT} -r | \
- ${GREP} -v "^${PREFIX}$$" | \
- ${_PLIST_IGNORE_CMD} | \
- ${SED} -e "s|^${PREFIX}/|@unexec ${RMDIR} -p %D/|" \
- -e "s,$$, 2>/dev/null || ${TRUE},";
-.else
-_GENERATE_PLIST= ${CAT} ${PLIST_SRC}; ${GENERATE_PLIST}
-.endif
-
-.PHONY: plist
-plist: ${PLIST}
-.if ${PLIST_TYPE} == "static"
-${PLIST}: ${PLIST_SRC}
-.endif
-${PLIST}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- { ${_GENERATE_PLIST} } | ${AWK} ${_PLIST_AWK_SCRIPT} \
- > ${PLIST}; \
- ${MAKE} ${MAKEFLAGS} do-shlib-handling \
- SHLIB_PLIST_MODE=1
-
-# generate ${MESSAGE} from ${MESSAGE_SRC} by substituting
-# for MESSAGE_SUBST entries
-
-.PHONY: message
-message: ${MESSAGE}
-.if defined(MESSAGE)
-${MESSAGE}: ${MESSAGE_SRC}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -z "${MESSAGE_SRC}" ]; then \
- ${ECHO} "${MESSAGE_SRC} not found."; \
- ${ECHO} "Please set MESSAGE_SRC correctly."; \
- else \
- ${CAT} ${MESSAGE_SRC} | \
- ${SED} ${MESSAGE_SUBST_SED} \
- > ${MESSAGE}; \
- fi
-.endif
-
-# generate ${DESCR} from ${DESCR_SRC} by:
-# - Appending the homepage URL, if any
-
-.PHONY: descr
-descr: ${DESCR}
-${DESCR}: ${DESCR_SRC}
- @${CAT} ${DESCR_SRC} >${DESCR}
-.if defined(HOMEPAGE)
- @\
- ${ECHO} >>${DESCR} ; \
- ${ECHO} "Homepage:" >>${DESCR} ; \
- ${ECHO} '${HOMEPAGE}' >>${DESCR}
-.endif
-
-.include "../../mk/subst.mk"
-
-#
-# For bulk build targets (bulk-install, bulk-package), the
-# BATCH variable must be set in /etc/mk.conf:
-#
-.if defined(BATCH)
-. include "../../mk/bulk/bsd.bulk-pkg.mk"
-.endif
-
-# Create a PKG_ERROR_HANDLER shell command for each class listed in
-# PKG_ERROR_CLASSES. The error handler is meant to be invoked within
-# a make target.
-#
-.for _class_ in ${PKG_ERROR_CLASSES}
-PKG_ERROR_HANDLER.${_class_}?= { \
- ec=$$?; \
- for str in ${PKG_ERROR_MSG.${_class_}}; do \
- ${ECHO} "${_PKGSRC_IN}> $$str"; \
- done; \
- exit $$ec; \
- }
-.endfor
-
-# Cache variables listed in MAKEVARS in a phase-specific "makevars.mk"
-# file. These variables are effectively passed to sub-make processes
-# that are invoked on the same Makefile.
-#
-.for _phase_ in ${ALL_PHASES}
-${_MAKEVARS_MK.${_phase_}}: ${WRKDIR}
-. if !empty(PKG_PHASE:M${_phase_})
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET}.tmp
-. for _var_ in ${MAKEVARS:O:u}
-. if defined(${_var_})
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO} ${_var_}"= "${${_var_}:Q} >> ${.TARGET}.tmp
-. endif
-. endfor
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${TEST} -f ${.TARGET}.tmp; then \
- ( ${ECHO} ".if !defined(_MAKEVARS_MK)"; \
- ${ECHO} "_MAKEVARS_MK= defined"; \
- ${ECHO} ""; \
- ${CAT} ${.TARGET}.tmp; \
- ${ECHO} ""; \
- ${ECHO} ".endif # _MAKEVARS_MK"; \
- ) > ${.TARGET}; \
- ${RM} -f ${.TARGET}.tmp; \
- fi
-. endif
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-.endfor
-.undef _phase_
-
-# show-tools emits a /bin/sh shell script that defines all known tools
-# to the values they have in the pkgsrc infrastructure.
-#
-# Don't move this code away from here unless you know what you're doing.
-#
-.PHONY: show-tools
-show-tools:
-.for _t_ in ${_USE_TOOLS}
-. if defined(_TOOLS_VARNAME.${_t_})
- @${ECHO} ${_TOOLS_VARNAME.${_t_}:Q}=${${_TOOLS_VARNAME.${_t_}}:Q:Q}
-. endif
-.endfor
-
-# changes-entry appends a correctly-formatted entry to the pkgsrc
-# CHANGES file.
-#
-# The following variables may be set:
-#
-# CTYPE is the type of entry to add and is one of "Added", "Updated",
-# "Renamed", "Moved", of "Removed". The default CTYPE is "Updated".
-#
-# NETBSD_LOGIN_NAME is the login name assigned by the NetBSD Project.
-# It defaults to the local login name.
-#
-# PKGSRC_CHANGES is the path to the CHANGES file to which the entry
-# is appended. It defaults to ${PKGSRCDIR}/doc/CHANGES.
-#
-# Example usage:
-#
-# % cd /usr/pkgsrc/category/package
-# % make changes-entry CTYPE=Added
-#
-CTYPE?= Updated
-NETBSD_LOGIN_NAME?= ${_NETBSD_LOGIN_NAME_cmd:sh}
-PKGSRC_CHANGES?= ${PKGSRCDIR}/doc/CHANGES
-
-_CDATE_cmd= ${DATE} -u +%Y-%m-%d
-_NETBSD_LOGIN_NAME_cmd= ${ID} -nu
-
-_CTYPE1= " "${CTYPE:Q}" "${PKGPATH:Q}
-.if !empty(CTYPE:MUpdated)
-_CTYPE2= " to "${PKGVERSION:Q}
-.elif !empty(CTYPE:MAdded)
-_CTYPE2= " version "${PKGVERSION:Q}
-.elif !empty(CTYPE:MRenamed) || !empty(CTYPE:MMoved)
-_CTYPE2= " to XXX"
-.else
-_CTYPE2=
-.endif
-_CTYPE3= " ["${NETBSD_LOGIN_NAME:Q}" "${_CDATE_cmd:sh:Q}"]"
-
-.PHONY: changes-entry
-changes-entry:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO} ${_CTYPE1}${_CTYPE2}${_CTYPE3} >> ${PKGSRC_CHANGES:Q}
diff --git a/mk/bsd.pkg.patch.mk b/mk/bsd.pkg.patch.mk
deleted file mode 100644
index 3b8bf08aad7..00000000000
--- a/mk/bsd.pkg.patch.mk
+++ /dev/null
@@ -1,273 +0,0 @@
-# $NetBSD: bsd.pkg.patch.mk,v 1.20 2005/09/28 10:09:33 rillig Exp $
-#
-# This Makefile fragment is included by bsd.pkg.mk and defines the
-# relevant variables and targets for the "patch" phase.
-#
-# The following variables may be set in a package Makefile and control
-# how pkgsrc patches are applied.
-#
-# PATCH_STRIP is a patch(1) argument that sets the pathname strip
-# count to help find the correct files to patch. See the patch(1)
-# man page for more details. Defaults to "-p0".
-#
-# PATCH_ARGS is the base set of arguments passed to patch(1).
-# The default set of arguments will apply the patches to the
-# files in ${WRKSRC} with any ${PATCH_STRIP} arguments set.
-#
-# The following variables may be set in a package Makefile and control
-# how "distribution" patches are applied.
-#
-# PATCHFILES is a list of distribution patches relative to
-# ${_DISTDIR} that are applied first to the package.
-#
-# PATCH_DIST_STRIP is a patch(1) argument that sets the pathname
-# strip count to help find the correct files to patch. See the
-# patch(1) man page for more details. Defaults to "-p0".
-#
-# PATCH_DIST_ARGS is the base set of arguments passed to patch(1).
-# The default set of arguments will apply the patches to the
-# files in ${WRKSRC} with any ${PATCH_DIST_STRIP} arguments set.
-#
-# PATCH_DIST_CAT is the command that outputs the contents of the
-# "$patchfile" to stdout. The default value is a command that
-# can output gzipped, bzipped, or plain patches to stdout.
-#
-# PATCH_DIST_STRIP.<patchfile>
-# PATCH_DIST_ARGS.<patchfile>
-# PATCH_DIST_CAT.<patchfile>
-# These are versions of the previous three variables which allow
-# for customization of their values for specific patchfiles.
-#
-# The following variables may be set by the user and affect how patching
-# occurs:
-#
-# PATCH_DEBUG, if defined, causes the the patch process to be more
-# verbose.
-#
-# PATCH_FUZZ_FACTOR is a patch(1) argument that specifies how much
-# fuzz to accept when applying pkgsrc patches. See the patch(1)
-# man page for more details. Defaults to "-F0" for zero fuzz.
-#
-# LOCALPATCHES is the location of local patches that are maintained
-# in a directory tree reflecting the same hierarchy as the pkgsrc
-# tree, e.g., local patches for www/apache would be found in
-# ${LOCALPATCHES}/www/apache. These patches are applied after
-# the patches in ${PATCHDIR}.
-#
-# The following targets are defined by bsd.pkg.patch.mk:
-#
-# do-patch is the target that causes the actual patching of the
-# extracted sources to occur during the "patch" phase.
-#
-
-.if (defined(PATCHFILES) && !empty(PATCHFILES)) || \
- (defined(PATCHDIR) && exists(${PATCHDIR})) || \
- (defined(LOCALPATCHES) && exists(${LOCALPATCHES}/${PKGPATH}))
-USE_TOOLS+= patch
-.endif
-
-# These tools are used to output the contents of the distribution patches
-# to stdout.
-#
-.if defined(PATCHFILES)
-USE_TOOLS+= cat
-. if !empty(PATCHFILES:M*.Z) || !empty(PATCHFILES:M*.gz)
-USE_TOOLS+= gzcat
-. endif
-. if !empty(PATCHFILES:M*.bz2)
-USE_TOOLS+= bzcat
-. endif
-.endif
-
-.if defined(PATCH_DEBUG) || defined(PKG_VERBOSE)
-_PATCH_DEBUG= yes
-ECHO_PATCH_MSG?= ${ECHO_MSG}
-.else
-_PATCH_DEBUG= no
-ECHO_PATCH_MSG?= ${TRUE}
-.endif
-
-PATCH_STRIP?= -p0
-.if !empty(_PATCH_DEBUG:M[yY][eE][sS])
-PATCH_ARGS?= -d ${WRKSRC} -E ${PATCH_STRIP}
-.else
-PATCH_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_STRIP}
-.endif
-.if defined(BATCH)
-PATCH_ARGS+= --batch
-.endif
-.if defined(_PATCH_CAN_BACKUP) && (${_PATCH_CAN_BACKUP} == "yes")
-PATCH_ARGS+= ${_PATCH_BACKUP_ARG} .orig
-.endif
-PATCH_FUZZ_FACTOR?= -F0 # Default to zero fuzz
-
-# The following variables control how "distribution" patches are extracted
-# and applied to the package sources.
-#
-# PATCH_DIST_STRIP is a patch option that sets the pathname strip count.
-# PATCH_DIST_ARGS is the list of arguments to pass to the patch command.
-# PATCH_DIST_CAT is the command that outputs the patch to stdout.
-#
-# For each of these variables, there is a patch-specific variant that
-# may be set, i.e. PATCH_DIST_STRIP.<patch>, PATCH_DIST_ARGS.<patch>,
-# PATCH_DIST_CAT.<patch>.
-#
-PATCH_DIST_STRIP?= -p0
-.for i in ${PATCHFILES}
-PATCH_DIST_STRIP.${i:S/=/--/}?= ${PATCH_DIST_STRIP}
-. if defined(PATCH_DIST_ARGS)
-PATCH_DIST_ARGS.${i:S/=/--/}?= ${PATCH_DIST_ARGS}
-. elif !empty(_PATCH_DEBUG:M[yY][eE][sS])
-PATCH_DIST_ARGS.${i:S/=/--/}?= -d ${WRKSRC} -E ${PATCH_DIST_STRIP.${i:S/=/--/}}
-. else
-PATCH_DIST_ARGS.${i:S/=/--/}?= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP.${i:S/=/--/}}
-. endif
-.endfor
-.if defined(BATCH)
-PATCH_DIST_ARGS+= --batch
-. for i in ${PATCHFILES}
-PATCH_DIST_ARGS.${i:S/=/--/}+= --batch
-. endfor
-.endif
-.if defined(_PATCH_CAN_BACKUP) && (${_PATCH_CAN_BACKUP} == "yes")
-PATCH_DIST_ARGS+= ${_PATCH_BACKUP_ARG} .orig_dist
-. for i in ${PATCHFILES}
-PATCH_DIST_ARGS.${i:S/=/--/}+= ${_PATCH_BACKUP_ARG} .orig_dist
-. endfor
-.endif
-PATCH_DIST_CAT?= { case $$patchfile in \
- *.Z|*.gz) ${GZCAT} $$patchfile ;; \
- *.bz2) ${BZCAT} $$patchfile ;; \
- *) ${CAT} $$patchfile ;; \
- esac; }
-.for i in ${PATCHFILES}
-PATCH_DIST_CAT.${i:S/=/--/}?= { patchfile=${i}; ${PATCH_DIST_CAT}; }
-.endfor
-
-_PKGSRC_PATCH_TARGETS= uptodate-digest
-.if defined(PATCHFILES)
-_PKGSRC_PATCH_TARGETS+= distribution-patch-message do-distribution-patch
-.endif
-.if (defined(PATCHDIR) && exists(${PATCHDIR})) || \
- (defined(LOCALPATCHES) && exists(${LOCALPATCHES}/${PKGPATH}))
-_PKGSRC_PATCH_TARGETS+= pkgsrc-patch-message do-pkgsrc-patch
-.endif
-
-.PHONY: do-patch
-.if !target(do-patch)
-.ORDER: ${_PKGSRC_PATCH_TARGETS}
-do-patch: ${_PKGSRC_PATCH_TARGETS}
-.endif
-
-_PKGSRC_PATCH_FAIL= \
-if ${TEST} -n ${PKG_OPTIONS:Q}"" || \
- ${TEST} -n ${LOCALPATCHES:Q}"" -a -d ${LOCALPATCHES:Q}/${PKGPATH:Q}; then \
- ${ECHO} "=========================================================================="; \
- ${ECHO}; \
- ${ECHO} "Some of the selected build options and/or local patches may be incompatible."; \
- ${ECHO} "Please try building with fewer options or patches."; \
- ${ECHO}; \
- ${ECHO} "=========================================================================="; \
-fi; exit 1
-
-_PATCH_COOKIE_TMP= ${_PATCH_COOKIE}.tmp
-_GENERATE_PATCH_COOKIE= \
- if ${TEST} -f ${_PATCH_COOKIE_TMP:Q}; then \
- ${CAT} ${_PATCH_COOKIE_TMP:Q} >> ${_PATCH_COOKIE:Q}; \
- ${RM} -f ${_PATCH_COOKIE_TMP:Q}; \
- else \
- ${TOUCH} ${TOUCH_FLAGS} ${_PATCH_COOKIE:Q}; \
- fi
-
-.PHONY: distribution-patch-message do-distribution-patch
-
-distribution-patch-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Applying distribution patches for ${PKGNAME}"
-
-.if !target(do-distribution-patch)
-do-distribution-patch:
-. for i in ${PATCHFILES}
- @${ECHO_PATCH_MSG} "${_PKGSRC_IN}> Applying distribution patch ${i}"
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${_DISTDIR}; \
- ${PATCH_DIST_CAT.${i:S/=/--/}} | \
- ${PATCH} ${PATCH_DIST_ARGS.${i:S/=/--/}} \
- || { ${ECHO} "Patch ${i} failed"; ${_PKGSRC_PATCH_FAIL}; }
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${i:Q} >> ${_PATCH_COOKIE_TMP:Q}
-. endfor
-.endif
-
-_PKGSRC_PATCHES= # empty
-.if defined(PATCHDIR) && exists(${PATCHDIR})
-_PKGSRC_PATCHES+= ${PATCHDIR}/patch-*
-.endif
-.if defined(LOCALPATCHES) && exists(${LOCALPATCHES}/${PKGPATH})
-_PKGSRC_PATCHES+= ${LOCALPATCHES}/${PKGPATH}/*
-.endif
-
-.PHONY: pkgsrc-patch-message do-pkgsrc-patch
-
-pkgsrc-patch-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> Applying pkgsrc patches for ${PKGNAME}"
-
-.if !target(do-pkgsrc-patch)
-do-pkgsrc-patch:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- fail=; \
- patches=${_PKGSRC_PATCHES:Q}; \
- patch_warning() { \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "$$1"; \
- ${ECHO_MSG} "**************************************"; \
- }; \
- for i in $$patches; do \
- ${TEST} -f "$$i" || continue; \
- case "$$i" in \
- *.orig|*.rej|*~) \
- ${ECHO_MSG} "${_PKGSRC_IN}> Ignoring patchfile $$i"; \
- continue; \
- ;; \
- ${PATCHDIR}/patch-local-*) \
- ;; \
- ${PATCHDIR}/patch-*) \
- if ${TEST} ! -f ${DISTINFO_FILE:Q}; then \
- patch_warning "Ignoring patch file $$i: distinfo not found"; \
- continue; \
- fi; \
- filename=`${BASENAME} $$i`; \
- algsum=`${AWK} '(NF == 4) && ($$2 == "('$$filename')") && ($$3 == "=") {print $$1 " " $$4}' ${DISTINFO_FILE} || ${TRUE}`; \
- if ${TEST} -z "$$algsum"; then \
- patch_warning "Ignoring patch file $$i: no checksum found"; \
- continue; \
- fi; \
- set -- $$algsum; \
- alg="$$1"; \
- recorded="$$2"; \
- calcsum=`${SED} -e '/\$$NetBSD.*/d' $$i | ${DIGEST} $$alg`; \
- ${ECHO_PATCH_MSG} "=> Verifying $$filename (using digest algorithm $$alg)"; \
- if ${TEST} "$$calcsum" != "$$recorded"; then \
- patch_warning "Ignoring patch file $$i: invalid checksum"; \
- fail="$$fail $$i"; \
- continue; \
- fi; \
- ;; \
- esac; \
- ${ECHO_PATCH_MSG} "${_PKGSRC_IN}> Applying pkgsrc patch $$i"; \
- fuzz_flags=; \
- if ${PATCH} -v >/dev/null 2>&1; then \
- fuzz_flags=${PATCH_FUZZ_FACTOR:Q}; \
- fi; \
- if ${PATCH} $$fuzz_flags ${PATCH_ARGS} < $$i; then \
- ${ECHO} "$$i" >> ${_PATCH_COOKIE_TMP:Q}; \
- else \
- ${ECHO_MSG} "Patch $$i failed"; \
- fail="$$fail $$i"; \
- fi; \
- done; \
- if ${TEST} -n "$$fail"; then \
- ${ECHO_MSG} "Patching failed due to modified or broken patch file(s):"; \
- for i in $$fail; do \
- ${ECHO_MSG} " $$i"; \
- done; \
- ${_PKGSRC_PATCH_FAIL}; \
- fi
-.endif
diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk
deleted file mode 100644
index 3962d808d62..00000000000
--- a/mk/bsd.pkg.subdir.mk
+++ /dev/null
@@ -1,240 +0,0 @@
-# $NetBSD: bsd.pkg.subdir.mk,v 1.58 2005/05/23 10:24:35 rillig Exp $
-# Derived from: FreeBSD Id: bsd.port.subdir.mk,v 1.19 1997/03/09 23:10:56 wosch Exp
-# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
-#
-# The include file <bsd.pkg.subdir.mk> contains the default targets
-# for building ports subdirectories.
-#
-#
-# +++ variables +++
-#
-# OPSYS Get the operating system type [`uname -s`]
-#
-# SUBDIR A list of subdirectories that should be built as well.
-# Each of the targets will execute the same target in the
-# subdirectories.
-#
-#
-# +++ targets +++
-#
-# README.html:
-# Creating README.html for package.
-#
-# afterinstall, all, beforeinstall, build, checksum, clean,
-# configure, deinstall, depend, describe, extract, fetch, fetch-list,
-# install, package, readmes, realinstall, reinstall, tags,
-# mirror-distfiles, bulk-install, bulk-package, ${PKG_MISC_TARGETS}
-#
-
-# Pull in stuff from mk.conf - need to check two places as this may be
-# called from pkgsrc or from pkgsrc/category.
-.if exists(${.CURDIR}/mk/bsd.prefs.mk)
-.include "${.CURDIR}/mk/bsd.prefs.mk"
-.else
-.if exists(${.CURDIR}/../mk/bsd.prefs.mk)
-.include "${.CURDIR}/../mk/bsd.prefs.mk"
-.endif # exists(${.CURDIR}/../mk/bsd.prefs.mk)
-.endif # exists(${.CURDIR}/mk/bsd.prefs.mk)
-
-
-.MAIN: all
-
-AWK?= /usr/bin/awk
-CAT?= /bin/cat
-BASENAME?= /usr/bin/basename
-ECHO?= echo
-ECHO_MSG?= ${ECHO}
-MV?= /bin/mv
-RM?= /bin/rm
-SED?= /usr/bin/sed
-SORT?= /usr/bin/sort
-
-_SUBDIRUSE: .USE
- @for entry in "" ${SUBDIR}; do \
- if [ "X$$entry" = "X" ]; then continue; fi; \
- OK=""; \
- for dud in "" ${DUDS}; do \
- if [ "X$$dud" = "X" ]; then continue; fi; \
- if [ $${dud} = $${entry} ]; then \
- OK="false"; \
- ${ECHO_MSG} "===> ${_THISDIR_}$${entry} skipped"; \
- fi; \
- done; \
- if [ -d ${.CURDIR}/$${entry}.${MACHINE} ]; then \
- edir=$${entry}.${MACHINE}; \
- elif [ -d ${.CURDIR}/$${entry} ]; then \
- edir=$${entry}; \
- else \
- OK="false"; \
- ${ECHO_MSG} "===> ${_THISDIR_}$${entry} non-existent"; \
- fi; \
- if [ "$$OK" = "" ]; then \
- cd ${.CURDIR}/$${edir}; \
- ${ECHO_MSG} "===> ${_THISDIR_}$${edir}"; \
- ${MAKE} ${MAKEFLAGS} "_THISDIR_=${_THISDIR_}$${edir}/" \
- ${.TARGET:realinstall=install} || true; \
- fi; \
- done
-
-${SUBDIR}::
- @if [ -d ${.TARGET}.${MACHINE} ]; then \
- cd ${.CURDIR}/${.TARGET}.${MACHINE}; \
- else \
- cd ${.CURDIR}/${.TARGET}; \
- fi; \
- ${MAKE} ${MAKEFLAGS} all
-
-.for __target in all fetch package extract configure build clean \
- cleandir distclean depend describe reinstall tags checksum \
- makedistinfo makepatchsum makesum mirror-distfiles deinstall \
- show-downlevel show-pkgsrc-dir show-var show-vars \
- bulk-install bulk-package fetch-list-one-pkg \
- fetch-list-recursive update clean-update lint \
- ${PKG_MISC_TARGETS}
-.if !target(__target)
-${__target}: _SUBDIRUSE
-.endif
-.endfor
-
-.if !target(install)
-.if !target(beforeinstall)
-beforeinstall:
-.endif
-.if !target(afterinstall)
-afterinstall:
-.endif
-install: afterinstall
-afterinstall: realinstall
-realinstall: beforeinstall _SUBDIRUSE
-.endif
-
-.if !target(readmes)
-readmes: readme _SUBDIRUSE
-.endif
-
-.if !target(readme)
-readme:
- @${MAKE} ${MAKEFLAGS} README.html _README_TYPE_FLAG=--ftp _README_TYPE=$@
-.endif
-
-.if !target(cdrom-readme)
-cdrom-readme:
- @${MAKE} ${MAKEFLAGS} README.html _README_TYPE_FLAG=--cdrom README_TYPE=$@
-.endif
-
-.if defined(PKGSRCTOP)
-README= templates/README.top
-.else
-README= ../templates/README.category
-.endif
-
-HTMLIFY= ${SED} -e 's/&/\&amp;/g' -e 's/>/\&gt;/g' -e 's/</\&lt;/g'
-
-.if !target(README.html)
-.PHONY: README.html
-README.html: .PRECIOUS
- @> $@.tmp
-.for entry in ${SUBDIR}
-.if defined(PKGSRCTOP)
- @${ECHO} '<TR><TD VALIGN=TOP><a href="'${entry}/README.html'">'"`${ECHO} ${entry} | ${HTMLIFY}`"'</a>: <TD>' >> $@.tmp
- @${ECHO} `cd ${entry} && ${MAKE} ${MAKEFLAGS} show-comment | ${HTMLIFY}` >> $@.tmp
-.else
- @${ECHO} '<TR><TD VALIGN=TOP><a href="'${entry}/README.html'">'"`cd ${entry}; ${MAKE} ${MAKEFLAGS} make-readme-html-help`" >> $@.tmp
-.endif
-.endfor
- @${SORT} -t '>' +3 -4 $@.tmp > $@.tmp2
- @${AWK} '{ ++n } END { print n }' < $@.tmp2 > $@.tmp4
-.if exists(${.CURDIR}/DESCR)
- @${HTMLIFY} ${.CURDIR}/DESCR > $@.tmp3
-.else
- @> $@.tmp3
-.endif
- @${CAT} ${README} | \
- ${SED} -e 's/%%CATEGORY%%/'"`${BASENAME} ${.CURDIR}`"'/g' \
- -e '/%%NUMITEMS%%/r$@.tmp4' \
- -e '/%%NUMITEMS%%/d' \
- -e '/%%DESCR%%/r$@.tmp3' \
- -e '/%%DESCR%%/d' \
- -e '/%%SUBDIR%%/r$@.tmp2' \
- -e '/%%SUBDIR%%/d' \
- > $@.tmp5
- @if [ ! -f $@ ]; then ${TOUCH} $@ ; fi
- @if ${CMP} -s $@.tmp5 $@ ; then \
- ${RM} $@.tmp5 ; \
- else \
- ${ECHO_MSG} "===> Creating README.html for ${_THISDIR_}${.CURDIR:T}" ; \
- ${MV} $@.tmp5 $@ ; \
- fi
- @${RM} -f $@.tmp $@.tmp2 $@.tmp3 $@.tmp4
-.for subdir in ${SUBDIR}
- @cd ${subdir} && ${MAKE} ${MAKEFLAGS} "_THISDIR_=${_THISDIR_}${.CURDIR:T}/" ${_README_TYPE}
-.endfor
-.endif
-
-show-comment:
- @if [ ${COMMENT:Q}"" ]; then \
- ${ECHO} ${COMMENT:Q}; \
- elif [ -f COMMENT ] ; then \
- ${CAT} COMMENT; \
- else \
- ${ECHO} '(no description)'; \
- fi
-
-.if !target(show-distfiles)
-show-distfiles:
- @for entry in ${SUBDIR}; do \
- if [ -d ${.CURDIR}/$${entry}.${MACHINE} ]; then \
- edir=$${entry}.${MACHINE}; \
- elif [ -d ${.CURDIR}/$${entry} ]; then \
- edir=$${entry}; \
- else \
- OK="false"; \
- ${ECHO_MSG} "===> ${_THISDIR_}$${entry} non-existent"; \
- fi; \
- if [ "$$OK" = "" ]; then \
- cd ${.CURDIR}/$${edir} && ${MAKE} ${MAKEFLAGS} show-distfiles; \
- fi; \
- done
-.endif
-
-
-# Print out a script to fetch all needed files (no checksumming).
-#
-# When invoked at the top or category level, this target needs to be
-# handled specially, to elide the "===>" messages that would otherwise
-# ruin the script.
-#
-.if !target(fetch-list)
-.PHONY: fetch-list
-
-fetch-list:
- @${ECHO} '#!/bin/sh'
- @${ECHO} '#'
- @${ECHO} '# This is an auto-generated script, the result of running'
- @${ECHO} '# `make fetch-list'"'"' in directory "'"`${PWD_CMD}`"'"'
- @${ECHO} '# on host "'"`${UNAME} -n`"'" on "'"`date`"'".'
- @${ECHO} '#'
-.if defined(PKGSRCTOP) && !defined(SPECIFIC_PKGS)
-# Recursing over dependencies would be pointless, in this case.
- @${MAKE} ${MAKEFLAGS} fetch-list-one-pkg \
- | ${AWK} ' \
- function do_block () { \
- if (FoundSomething) { \
- for (line = 0; line < c; line++) \
- print block[line]; \
- FoundSomething = 0 \
- } \
- c = 0 \
- } \
- /^[^#=]/ { FoundSomething = 1 } \
- /^unsorted/ { gsub(/[[:space:]]+/, " \\\n\t") } \
- /^echo/ { gsub(/;[[:space:]]+/, "\n") } \
- !/^=/ { block[c++] = $$0 } \
- /^=/ { do_block() } \
- END { do_block() } \
- '
-.else
- @${MAKE} ${MAKEFLAGS} fetch-list-recursive \
- | ${SED} '/^=/d'
-.endif
-.endif # !target(fetch-list)
diff --git a/mk/bsd.pkg.use.mk b/mk/bsd.pkg.use.mk
deleted file mode 100644
index ffabbe8e3d7..00000000000
--- a/mk/bsd.pkg.use.mk
+++ /dev/null
@@ -1,132 +0,0 @@
-# $NetBSD: bsd.pkg.use.mk,v 1.23 2005/09/21 20:37:01 tv Exp $
-#
-# Turn USE_* macros into proper depedency logic. Included near the top of
-# bsd.pkg.mk, after bsd.prefs.mk.
-
-############################################################################
-# ${PREFIX} selection
-############################################################################
-
-.if defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake)
-PLIST_SUBST+= IMAKE_MAN_SOURCE_PATH=${IMAKE_MAN_SOURCE_PATH}
-PLIST_SUBST+= IMAKE_MAN_DIR=${IMAKE_MAN_DIR}
-PLIST_SUBST+= IMAKE_LIBMAN_DIR=${IMAKE_LIBMAN_DIR}
-PLIST_SUBST+= IMAKE_KERNMAN_DIR=${IMAKE_KERNMAN_DIR}
-PLIST_SUBST+= IMAKE_FILEMAN_DIR=${IMAKE_FILEMAN_DIR}
-PLIST_SUBST+= IMAKE_MISCMAN_DIR=${IMAKE_MISCMAN_DIR}
-PLIST_SUBST+= IMAKE_MAN_SUFFIX=${IMAKE_MAN_SUFFIX}
-PLIST_SUBST+= IMAKE_LIBMAN_SUFFIX=${IMAKE_LIBMAN_SUFFIX}
-PLIST_SUBST+= IMAKE_KERNMAN_SUFFIX=${IMAKE_KERNMAN_SUFFIX}
-PLIST_SUBST+= IMAKE_FILEMAN_SUFFIX=${IMAKE_FILEMAN_SUFFIX}
-PLIST_SUBST+= IMAKE_MISCMAN_SUFFIX=${IMAKE_MISCMAN_SUFFIX}
-PLIST_SUBST+= IMAKE_MANNEWSUFFIX=${IMAKE_MANNEWSUFFIX}
-.endif
-
-.if defined(USE_IMAKE)
-USE_X11BASE?= implied
-INSTALL_TARGET+= ${NO_INSTALL_MANPAGES:D:Uinstall.man}
-MAKE_FLAGS+= CC=${CC:Q} CXX=${CXX:Q}
-.endif
-
-.if defined(USE_X11BASE)
-MTREE_FILE?= ${PKGSRCDIR}/mk/platform/${OPSYS}.x11.dist
-. include "../../mk/x11.buildlink3.mk"
-.endif
-
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-PREFIX= ${DEPOTBASE}/${PKGNAME}
-NO_MTREE= yes
-.elif ${PKG_INSTALLATION_TYPE} == "overwrite"
-. if defined(INSTALLATION_PREFIX)
-PREFIX= ${INSTALLATION_PREFIX}
-. elif defined(USE_X11BASE)
-PREFIX= ${X11PREFIX}
-. elif defined(USE_CROSSBASE)
-PREFIX= ${CROSSBASE}
-NO_MTREE= yes
-. else
-PREFIX= ${LOCALBASE}
-. endif
-.endif
-
-.if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(INSTALLATION_PREFIX)
-PKG_SKIP_REASON= "INSTALLATION_PREFIX can't be used in a pkgviews package"
-.endif
-
-############################################################################
-# General settings
-############################################################################
-
-### BUILD_USES_MSGFMT
-
-.if defined(BUILD_USES_MSGFMT) && \
- (!exists(/usr/bin/msgfmt) || ${_USE_GNU_GETTEXT} == "yes")
-BUILD_DEPENDS+= gettext>=0.10.35nb1:../../devel/gettext
-.endif
-
-### PKG_USE_KERBEROS
-
-.if defined(PKG_USE_KERBEROS)
-CRYPTO?= uses Kerberos encryption code
-BUILD_DEFS+= KERBEROS
-.endif
-
-### USE_DIRS
-
-USE_DIRS?= # empty
-.if !empty(USE_DIRS) && ${PKG_INSTALLATION_TYPE} == "overwrite"
-. include "../../mk/dirs.mk"
-.endif
-
-### USE_LIBTOOL, PKG_[SH]LIBTOOL
-
-#
-# PKG_LIBTOOL is the path to the libtool script installed by libtool-base.
-# _LIBTOOL is the path the libtool used by the build, which could be the
-# path to a libtool wrapper script.
-# LIBTOOL is the publicly-readable variable that should be used by
-# Makefiles to invoke the proper libtool.
-#
-PKG_LIBTOOL?= ${LOCALBASE}/bin/libtool
-PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibtool
-_LIBTOOL?= ${PKG_LIBTOOL}
-_SHLIBTOOL?= ${PKG_SHLIBTOOL}
-LIBTOOL?= ${PKG_LIBTOOL}
-SHLIBTOOL?= ${PKG_SHLIBTOOL}
-.if defined(USE_LIBTOOL)
-LIBTOOL_REQD?= 1.5.18nb5
-BUILD_DEPENDS+= libtool-base>=${_OPSYS_LIBTOOL_REQD:U${LIBTOOL_REQD}}:../../devel/libtool-base
-CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
-MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
-LIBTOOL_OVERRIDE?= libtool */libtool */*/libtool
-.endif
-
-### USE_MAKEINFO, INFO_FILES
-
-INFO_FILES?= # empty
-USE_MAKEINFO?= no
-
-.if !empty(INFO_FILES) || empty(USE_MAKEINFO:M[nN][oO])
-. include "../../mk/texinfo.mk"
-.endif
-
-### USE_RMAN
-
-# Check if we got "rman" with XFree86, for packages that need "rman".
-.if defined(USE_RMAN)
-. if !exists(${X11BASE}/bin/rman)
-DEPENDS+= rman-3.0.9:../../textproc/rman
-RMAN?= ${LOCALBASE}/bin/rman
-. else
-RMAN?= ${X11BASE}/bin/rman
-. endif
-.endif
-
-### USE_XPKGWEDGE
-
-.if (defined(USE_X11BASE) || \
- defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake) || \
- !empty(USE_TOOLS:Mimake\:*:Nimake\:pkgsrc)) && \
- !empty(USE_XPKGWEDGE:M[yY][eE][sS])
-BUILD_DEPENDS+= xpkgwedge>=${_XPKGWEDGE_REQD:U1.14}:../../pkgtools/xpkgwedge
-.endif
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
deleted file mode 100644
index 7aa101dadb1..00000000000
--- a/mk/bsd.prefs.mk
+++ /dev/null
@@ -1,599 +0,0 @@
-# $NetBSD: bsd.prefs.mk,v 1.204 2005/11/09 01:06:48 reed Exp $
-#
-# Make file, included to get the site preferences, if any. Should
-# only be included by package Makefiles before any .if defined()
-# statements or modifications to "passed" variables (CFLAGS, LDFLAGS, ...),
-# to make sure any variables defined in /etc/mk.conf, $MAKECONF, or
-# the system defaults (sys.mk and bsd.own.mk) are used.
-
-# Do not recursively include mk.conf, redefine OPSYS, include bsd.own.mk, etc.
-
-# Some variables defined here:
-# OPSYS
-# The operating system name, as returned by ``uname -s''.
-
-.if !defined(BSD_PKG_MK)
-
-# Let mk.conf know that this is pkgsrc.
-BSD_PKG_MK=1
-__PREFIX_SET__:=${PREFIX}
-
-# Expand MAKE to a full path.
-.if !defined(_MAKE)
-_MAKE:= ${MAKE}
-. for _dir_ in ${PATH:C/\:/ /g}
-. if empty(_MAKE:M/*)
-. if exists(${_dir_}/${MAKE})
-_MAKE:= ${_dir_}/${MAKE}
-. endif
-. endif
-. endfor
-. if !empty(_MAKE:M/*)
-MAKEFLAGS+= _MAKE=${_MAKE:Q}
-. endif
-.endif
-MAKE:= ${_MAKE}
-
-.if exists(/usr/bin/uname)
-UNAME=/usr/bin/uname
-.elif exists(/bin/uname)
-UNAME=/bin/uname
-.else
-UNAME=echo Unknown
-.endif
-
-.if exists(/usr/bin/cut)
-CUT=/usr/bin/cut
-.elif exists(/bin/cut)
-CUT=/bin/cut
-.else
-CUT=echo Unknown
-.endif
-
-.if !defined(OPSYS)
-OPSYS!= ${UNAME} -s | tr -d /
-MAKEFLAGS+= OPSYS=${OPSYS}
-.endif
-
-# The _CMD indirection allows code below to modify these values
-# without executing the commands at all. Later, recursed make
-# invocations will skip these blocks entirely thanks to MAKEFLAGS.
-.if !defined(OS_VERSION)
-_OS_VERSION_CMD= ${UNAME} -r
-OS_VERSION= ${_OS_VERSION_CMD:sh}
-MAKEFLAGS+= OS_VERSION=${OS_VERSION}
-.endif
-.if !defined(LOWER_OS_VERSION)
-_LOWER_OS_VERSION_CMD= echo ${OS_VERSION} | tr 'A-Z' 'a-z'
-LOWER_OS_VERSION= ${_LOWER_OS_VERSION_CMD:sh}
-MAKEFLAGS+= LOWER_OS_VERSION=${LOWER_OS_VERSION}
-.endif
-
-# Preload these for architectures not in all variations of bsd.own.mk,
-# which do not match their GNU names exactly.
-GNU_ARCH.arm26?= arm
-GNU_ARCH.arm32?= arm
-GNU_ARCH.i486?= i386
-GNU_ARCH.i586?= i386
-GNU_ARCH.i686?= i386
-GNU_ARCH.m68000?= m68010
-GNU_ARCH.mips?= mipsel
-GNU_ARCH.sh3eb?= sh
-GNU_ARCH.sh3el?= shle
-MACHINE_GNU_ARCH?= ${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}}
-
-.if ${OPSYS} == "NetBSD"
-LOWER_OPSYS?= netbsd
-
-.elif ${OPSYS} == "AIX"
-LOWER_ARCH!= _cpuid=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $$1 }'`; \
- if /usr/sbin/lsattr -El $$_cpuid | grep ' POWER' >/dev/null 2>&1; then \
- echo rs6000; \
- else \
- echo powerpc; \
- fi
-MACHINE_ARCH?= ${LOWER_ARCH}
-. if exists(/usr/bin/oslevel)
-_OS_VERSION!= /usr/bin/oslevel
-. else
-_OS_VERSION!= echo `${UNAME} -v`.`${UNAME} -r`
-. endif
-OS_VERSION!= echo ${_OS_VERSION} | sed -e 's,\([0-9]*\.[0-9]*\).*,\1,'
-LOWER_OS_VERSION= ${OS_VERSION}
-LOWER_OPSYS_VERSUFFIX= ${_OS_VERSION}
-LOWER_OPSYS?= aix
-LOWER_VENDOR?= ibm
-
-.elif ${OPSYS} == "BSDOS"
-LOWER_OPSYS?= bsdi
-
-.elif ${OPSYS} == "Darwin"
-LOWER_OPSYS?= darwin
-LOWER_ARCH!= ${UNAME} -p
-MACHINE_ARCH= ${LOWER_ARCH}
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-LOWER_VENDOR?= apple
-
-.elif ${OPSYS} == "DragonFly"
-LOWER_OPSYS?= dragonfly
-LOWER_ARCH!= ${UNAME} -p
-MACHINE_ARCH= ${LOWER_ARCH}
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-LOWER_OPSYS_VERSUFFIX!= echo ${LOWER_OS_VERSION} | ${CUT} -c -1
-LOWER_VENDOR?= pc
-
-.elif ${OPSYS} == "FreeBSD"
-LOWER_OPSYS?= freebsd
-LOWER_ARCH!= ${UNAME} -p
-MACHINE_ARCH= ${LOWER_ARCH}
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-LOWER_OPSYS_VERSUFFIX!= echo ${LOWER_OS_VERSION} | ${CUT} -c -1
-. if ${LOWER_ARCH} == "i386"
-LOWER_VENDOR?= pc
-. endif
-LOWER_VENDOR?= unknown
-
-.elif ${OPSYS} == "Interix"
-LOWER_OPSYS?= interix3
-LOWER_VENDOR?= pc
-. if exists(/usr/lib/libc.so.3.5)
-OS_VERSION= 3.5
-. elif exists(/usr/lib/libc.so.3.1)
-OS_VERSION= 3.1
-. else
-OS_VERSION= 3.0
-. endif
-LOWER_OS_VERSION= ${OS_VERSION}
-
-.elif !empty(OPSYS:MIRIX*)
-LOWER_ARCH!= ${UNAME} -p
-LOWER_OPSYS?= irix${OS_VERSION}
-LOWER_VENDOR?= sgi
-
-.elif ${OPSYS} == "Linux"
-LOWER_OPSYS?= linux
-MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/}
-MACHINE_ARCH:= ${MACHINE_ARCH:C/ppc/powerpc/}
-. if !defined(LOWER_ARCH)
-LOWER_ARCH!= ${UNAME} -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/'
-. endif # !defined(LOWER_ARCH)
-. if ${MACHINE_ARCH} == "unknown" || ${MACHINE_ARCH} == ""
-MACHINE_ARCH= ${LOWER_ARCH}
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-. endif
-. if exists(/etc/debian_version)
-LOWER_VENDOR?= debian
-. elif exists(/etc/mandrake-release)
-LOWER_VENDOR?= mandrake
-. elif exists(/etc/redhat-version)
-LOWER_VENDOR?= redhat
-. elif exists(/etc/slackware-version)
-LOWER_VENDOR?= slackware
-. elif ${LOWER_ARCH} == "i386"
-LOWER_VENDOR?= pc
-. endif
-LOWER_VENDOR?= unknown
-
-.elif ${OPSYS} == "OSF1"
-LOWER_ARCH!= ${UNAME} -p
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-MACHINE_ARCH?= ${LOWER_ARCH}
-OS_VERSION:= ${OS_VERSION:C/^V//}
-LOWER_OPSYS?= osf${OS_VERSION}
-LOWER_VENDOR?= dec
-
-.elif ${OPSYS} == "SunOS"
-. if ${MACHINE_ARCH} == "sparc"
-SPARC_TARGET_ARCH?= sparcv7
-. elif ${MACHINE_ARCH} == "sun4"
-MACHINE_ARCH= sparc
-SPARC_TARGET_ARCH?= sparcv7
-. elif ${MACHINE_ARCH} == "i86pc"
-MACHINE_ARCH= i386
-. elif ${MACHINE_ARCH} == "unknown"
-. if !defined(LOWER_ARCH)
-LOWER_ARCH!= ${UNAME} -p
-. endif # !defined(LOWER_ARCH)
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-. endif
-LOWER_VENDOR?= sun
-LOWER_OPSYS?= solaris
-LOWER_OPSYS_VERSUFFIX= 2
-
-.elif !defined(LOWER_OPSYS)
-LOWER_OPSYS!= echo ${OPSYS} | tr A-Z a-z
-.endif
-
-# Now commit the [LOWER_]OS_VERSION values computed above, eliding the :sh
-LOWER_OS_VERSION:= ${LOWER_OS_VERSION}
-OS_VERSION:= ${OS_VERSION}
-
-MAKEFLAGS+= LOWER_OPSYS=${LOWER_OPSYS}
-
-LOWER_VENDOR?= # empty ("arch--opsys")
-LOWER_ARCH?= ${MACHINE_GNU_ARCH}
-
-MACHINE_PLATFORM?= ${OPSYS}-${OS_VERSION}-${MACHINE_ARCH}
-MACHINE_GNU_PLATFORM?= ${LOWER_ARCH}-${LOWER_VENDOR}-${LOWER_OPSYS}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}
-
-# Needed to prevent an "install:" target from being created in bsd.own.mk.
-NEED_OWN_INSTALL_TARGET=no
-
-# This prevents default use of the cross-tool harness in the "src" tree,
-# in the odd possible case of someone extracting "pkgsrc" underneath "src".
-USETOOLS= no
-MAKE_ENV+= USETOOLS=no
-
-# Set this before <bsd.own.mk> does, since it doesn't know about Darwin
-.if ${OPSYS} == "Darwin"
-OBJECT_FMT?= Mach-O
-.endif
-
-.include <bsd.own.mk>
-
-# /usr/share/mk/bsd.own.mk on NetBSD 1.3 does not define OBJECT_FMT
-.if !empty(MACHINE_PLATFORM:MNetBSD-1.3*)
-. if ${MACHINE_ARCH} == "alpha" || \
- ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \
- ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
-OBJECT_FMT?= ELF
-. else
-OBJECT_FMT?= a.out
-. endif
-# override what bootstrap-pkgsrc sets, which isn't right for NetBSD
-# 1.4.
-# XXX other ELF platforms in 1.4 need to be added to here.
-.elif !empty(MACHINE_PLATFORM:MNetBSD-1.4*)
-. if ${MACHINE_ARCH} == "alpha" || \
- ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \
- ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
-OBJECT_FMT= ELF
-. else
-OBJECT_FMT= a.out
-. endif
-.endif
-
-.if ${OPSYS} == "OpenBSD"
-. if defined(ELF_TOOLCHAIN) && ${ELF_TOOLCHAIN} == "yes"
-OBJECT_FMT?= ELF
-. else
-OBJECT_FMT?= a.out
-. endif
-.elif ${OPSYS} == "DragonFly"
-OBJECT_FMT= ELF
-.elif ${OPSYS} == "AIX"
-OBJECT_FMT= XCOFF
-.endif
-
-# Calculate depth
-.if exists(${.CURDIR}/mk/bsd.pkg.mk)
-_PKGSRC_TOPDIR= ${.CURDIR}
-.elif exists(${.CURDIR}/../mk/bsd.pkg.mk)
-_PKGSRC_TOPDIR= ${.CURDIR}/..
-.elif exists(${.CURDIR}/../../mk/bsd.pkg.mk)
-_PKGSRC_TOPDIR= ${.CURDIR}/../..
-.endif
-
-# include the defaults file
-.if exists(${_PKGSRC_TOPDIR}/mk/defaults/mk.conf)
-. include "${_PKGSRC_TOPDIR}/mk/defaults/mk.conf"
-.endif
-
-USE_TOOLS?= # empty
-
-# Provide default values for TOOLs used by the top-level make.
-USE_TOOLS+= [ awk dirname echo grep pwd sed test true
-
-# These tools are used by the top-level make only in certain packages and
-# should eventually be moved into those particular package Makefiles.
-#
-USE_TOOLS+= date tr
-
-.include "${_PKGSRC_TOPDIR}/mk/tools/defaults.mk"
-
-.if ${OPSYS} == "NetBSD"
-. if ${OBJECT_FMT} == "ELF" && \
- (${MACHINE_GNU_ARCH} == "arm" || \
- ${MACHINE_ARCH} == "i386" || \
- ${MACHINE_ARCH} == "m68k" || \
- ${MACHINE_ARCH} == "m68000" || \
- ${MACHINE_GNU_ARCH} == "sh" || \
- ${MACHINE_GNU_ARCH} == "shle" || \
- ${MACHINE_ARCH} == "sparc" || \
- ${MACHINE_ARCH} == "vax")
-APPEND_ELF= elf
-. endif
-.endif
-
-SHAREOWN?= ${DOCOWN}
-SHAREGRP?= ${DOCGRP}
-SHAREMODE?= ${DOCMODE}
-
-.if defined(PREFIX) && (${PREFIX} != ${__PREFIX_SET__})
-.BEGIN:
- @${ECHO_MSG} "You can NOT set PREFIX manually or in mk.conf. Set LOCALBASE or X11BASE"
- @${ECHO_MSG} "depending on your needs. See the pkg system documentation for more info."
- @${FALSE}
-.endif
-
-# Preload all default values for CFLAGS, LDFLAGS, etc. before bsd.pkg.mk
-# or a pkg Makefile modifies them.
-.include <sys.mk>
-
-# Load the OS-specific definitions for program variables. Default to loading
-# the NetBSD ones if an OS-specific file doesn't exist.
-.if exists(${_PKGSRC_TOPDIR}/mk/platform/${OPSYS}.mk)
-. include "${_PKGSRC_TOPDIR}/mk/platform/${OPSYS}.mk"
-.else
-. include "${_PKGSRC_TOPDIR}/mk/platform/NetBSD.mk"
-PKG_FAIL_REASON+= "missing mk/platform/${OPSYS}.mk"
-.endif
-
-PKGDIRMODE?= 755
-PKG_PHASE?= none
-#
-# The PHASES_AFTER_<phase> variables list every phase "greater than or
-# equal to" <phase>.
-#
-ALL_PHASES= ${PHASES_AFTER_FETCH}
-PHASES_AFTER_FETCH= fetch ${PHASES_AFTER_EXTRACT}
-PHASES_AFTER_EXTRACT= extract ${PHASES_AFTER_PATCH}
-PHASES_AFTER_PATCH= patch ${PHASES_AFTER_TOOLS}
-PHASES_AFTER_TOOLS= tools ${PHASES_AFTER_WRAPPER}
-PHASES_AFTER_WRAPPER= wrapper ${PHASES_AFTER_CONFIGURE}
-PHASES_AFTER_CONFIGURE= configure ${PHASES_AFTER_BUILD}
-PHASES_AFTER_BUILD= build ${PHASES_AFTER_INSTALL}
-PHASES_AFTER_INSTALL= install ${PHASES_AFTER_PACKAGE}
-PHASES_AFTER_PACKAGE= package
-
-# Set the style of installation to be performed for the package. The
-# funky make variable modifiers just select the first word of the value
-# stored in the referenced variable.
-#
-.for _pref_ in ${PKG_INSTALLATION_PREFS}
-. if !empty(PKG_INSTALLATION_TYPES:M${_pref_})
-PKG_INSTALLATION_TYPE?= ${PKG_INSTALLATION_TYPES:M${_pref_}:S/^/_pkginsttype_/1:M_pkginsttype_*:S/^_pkginsttype_//}
-. endif
-.endfor
-PKG_INSTALLATION_TYPE?= none
-
-# if the system is IPv6-ready, compile with IPv6 support turned on.
-.if defined(USE_INET6)
-. if empty(USE_INET6:M[Yy][Ee][Ss]) || defined(USE_SOCKS)
-USE_INET6= NO
-. else
-USE_INET6= YES
-. endif
-.elif empty(_OPSYS_HAS_INET6:M[nN][oO]) && !defined(USE_SOCKS)
-USE_INET6= YES
-.else
-USE_INET6= NO
-.endif
-
-LOCALBASE?= ${DESTDIR}/usr/pkg
-.if ${OPSYS} == "SunOS"
-# On Solaris, we default to using OpenWindows for X11.
-X11BASE?= ${DESTDIR}/usr/openwin
-.elif !defined(X11_TYPE) || defined(X11_TYPE) && !empty(X11_TYPE:Mnative)
-X11BASE?= ${DESTDIR}/usr/X11R6
-.endif
-CROSSBASE?= ${LOCALBASE}/cross
-
-# If xpkgwedge.def is found, then clearly we're using xpkgwedge.
-.if exists(${LOCALBASE}/lib/X11/config/xpkgwedge.def) || \
- exists(${X11BASE}/lib/X11/config/xpkgwedge.def)
-USE_XPKGWEDGE= yes
-.else
-USE_XPKGWEDGE?= yes
-.endif
-
-.if defined(_OPSYS_NEEDS_XPKGWEDGE) && \
- !empty(_OPSYS_NEEDS_XPKGWEDGE:M[yY][eE][sS])
-USE_XPKGWEDGE= yes
-.endif
-
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-USE_XPKGWEDGE= yes
-.endif
-
-# Default installation prefix for meta-pkgs/XFree86 and
-# meta-pkgs/xorg.
-.if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
-X11ROOT_PREFIX?= XFree86
-.elif defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
-X11ROOT_PREFIX?= xorg
-.else
-X11ROOT_PREFIX?= # empty
-.endif
-
-.if ((defined(X11_TYPE) && !empty(X11_TYPE:MXFree86) || \
- defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)) && \
- defined(X11_TYPE) && empty(X11_TYPE:Mnative))
-X11BASE?= ${LOCALBASE}/${X11ROOT_PREFIX}
-.endif
-
-# Set X11PREFIX to reflect the install directory of X11 packages.
-# Set XMKMF_CMD properly if xpkgwedge is installed.
-#
-# The check for the existence of ${X11BASE}/lib/X11/config/xpkgwedge.def
-# is to catch users of xpkgwedge<1.0.
-#
-.if !empty(USE_XPKGWEDGE:M[Yy][Ee][Ss])
-X11PREFIX= ${LOCALBASE}
-.else
-X11PREFIX= ${X11BASE}
-.endif
-
-DEPOT_SUBDIR?= packages
-DEPOTBASE= ${LOCALBASE}/${DEPOT_SUBDIR}
-
-# LINK_RPATH_FLAG publicly exports the linker flag used to set the
-# run-time library search path.
-#
-.if defined(_OPSYS_LINKER_RPATH_FLAG)
-LINKER_RPATH_FLAG= ${_OPSYS_LINKER_RPATH_FLAG}
-.else
-LINKER_RPATH_FLAG?= ${_LINKER_RPATH_FLAG}
-.endif
-
-# COMPILER_RPATH_FLAG publicly exports the compiler flag used to pass
-# run-time library search path directives to the linker.
-#
-.if defined(_OPSYS_COMPILER_RPATH_FLAG)
-COMPILER_RPATH_FLAG= ${_OPSYS_COMPILER_RPATH_FLAG}
-.else
-COMPILER_RPATH_FLAG?= ${_COMPILER_RPATH_FLAG}
-.endif
-
-# WHOLE_ARCHIVE_FLAG and NO_WHOLE_ARCHIVE_FLAG publically export the
-# linker flags to extract all symbols from a static archive.
-WHOLE_ARCHIVE_FLAG?= ${_OPSYS_WHOLE_ARCHIVE_FLAG}
-NO_WHOLE_ARCHIVE_FLAG?= ${_OPSYS_NO_WHOLE_ARCHIVE_FLAG}
-
-.if !defined(DIGEST)
-DIGEST:= ${LOCALBASE}/bin/digest
-MAKEFLAGS+= DIGEST=${DIGEST}
-.endif
-
-# Only add the DIGEST_VERSION value to MAKEFLAGS when we know
-# we've got a valid version number, retrieved from the digest(1)
-# binary. This is different to PKGTOOLS_VERSION, since, in that
-# case, the build dies when pkg_info(1) is out of date.
-
-.if !exists(${DIGEST})
-DIGEST_VERSION= 20010301
-.elif !defined(DIGEST_VERSION)
-DIGEST_VERSION!= ${DIGEST} -V 2>/dev/null
-MAKEFLAGS+= DIGEST_VERSION=${DIGEST_VERSION}
-.endif
-
-# This is the package database directory for the default view.
-PKG_DBDIR?= ${DESTDIR}/var/db/pkg
-
-# _PKG_DBDIR is the actual packages database directory where we register
-# packages.
-#
-.if ${PKG_INSTALLATION_TYPE} == "overwrite"
-_PKG_DBDIR= ${PKG_DBDIR}
-.elif ${PKG_INSTALLATION_TYPE} == "pkgviews"
-_PKG_DBDIR= ${DEPOTBASE}
-.endif
-
-PKG_ADD_CMD?= ${PKG_TOOLS_BIN}/pkg_add
-PKG_ADMIN_CMD?= ${PKG_TOOLS_BIN}/pkg_admin
-PKG_CREATE_CMD?= ${PKG_TOOLS_BIN}/pkg_create
-PKG_DELETE_CMD?= ${PKG_TOOLS_BIN}/pkg_delete
-PKG_INFO_CMD?= ${PKG_TOOLS_BIN}/pkg_info
-PKG_VIEW_CMD?= ${PKG_TOOLS_BIN}/pkg_view
-LINKFARM_CMD?= ${PKG_TOOLS_BIN}/linkfarm
-
-.if !defined(PKGTOOLS_VERSION)
-PKGTOOLS_VERSION!= ${PKG_INFO_CMD} -V 2>/dev/null || echo 20010302
-MAKEFLAGS+= PKGTOOLS_VERSION=${PKGTOOLS_VERSION}
-.endif
-
-# The binary pkg_install tools all need to consistently to refer to the
-# correct package database directory.
-#
-.if ${PKGTOOLS_VERSION} < 20030823
-PKGTOOLS_ENV?= PKG_DBDIR=${_PKG_DBDIR}
-PKGTOOLS_ARGS?= # empty
-.else
-PKGTOOLS_ENV?= # empty
-PKGTOOLS_ARGS?= -K ${_PKG_DBDIR}
-.endif
-
-# Views are rooted in ${LOCALBASE}, all packages are depoted in
-# ${DEPOTBASE}, and the package database directory for the default view
-# is in ${PKG_DBDIR}.
-#
-PKG_VIEW_ARGS?= -W ${LOCALBASE} -d ${DEPOTBASE} -k ${PKG_DBDIR}
-
-PKG_ADD?= ${PKGTOOLS_ENV} ${PKG_ADD_CMD} ${PKGTOOLS_ARGS}
-PKG_ADMIN?= ${PKGTOOLS_ENV} ${PKG_ADMIN_CMD} ${PKGTOOLS_ARGS}
-PKG_CREATE?= ${PKGTOOLS_ENV} ${PKG_CREATE_CMD} ${PKGTOOLS_ARGS}
-PKG_DELETE?= ${PKGTOOLS_ENV} ${PKG_DELETE_CMD} ${PKGTOOLS_ARGS}
-PKG_INFO?= ${PKGTOOLS_ENV} ${PKG_INFO_CMD} ${PKGTOOLS_ARGS}
-PKG_VIEW?= ${PKGTOOLS_ENV} ${PKG_VIEW_CMD} ${PKG_VIEW_ARGS}
-LINKFARM?= ${LINKFARM_CMD}
-
-# "${PKG_BEST_EXISTS} pkgpattern" prints out the name of the installed
-# package that best matches pkgpattern. Use this instead of
-# "${PKG_INFO} -e pkgpattern" if the latter would return more than one
-# package name.
-#
-PKG_BEST_EXISTS?= ${PKG_ADMIN} -b -d ${_PKG_DBDIR} -S lsbest
-
-.if exists(${LOCALBASE}/bsd/share/mk/zoularis.mk)
-PKG_FAIL_REASON+= 'You appear to have a deprecated Zoularis installation.'
-PKG_FAIL_REASON+= 'Please update your system to bootstrap-pkgsrc and remove the'
-PKG_FAIL_REASON+= '${LOCALBASE}/bsd directory.'
-PKG_FAIL_REASON+= 'See http://mail-index.NetBSD.org/tech-pkg/2004/02/14/0004.html'
-PKG_FAIL_REASON+= 'for more details.'
-.endif
-
-PKGPATH?= ${.CURDIR:C|.*/([^/]*/[^/]*)$|\1|}
-.if !defined(_PKGSRCDIR)
-_PKGSRCDIR!= cd ${_PKGSRC_TOPDIR} && ${PWD_CMD}
-MAKEFLAGS+= _PKGSRCDIR=${_PKGSRCDIR:Q}
-.endif
-PKGSRCDIR= ${_PKGSRCDIR}
-
-DISTDIR?= ${PKGSRCDIR}/distfiles
-PACKAGES?= ${PKGSRCDIR}/packages
-TEMPLATES?= ${PKGSRCDIR}/templates
-
-PATCHDIR?= ${.CURDIR}/patches
-SCRIPTDIR?= ${.CURDIR}/scripts
-FILESDIR?= ${.CURDIR}/files
-PKGDIR?= ${.CURDIR}
-
-_PKGSRC_DEPS?= # empty
-
-# If WRKOBJDIR is set, use that tree to build
-.if defined(WRKOBJDIR)
-BUILD_DIR?= ${WRKOBJDIR}/${PKGPATH}
-.else
-BUILD_DIR!= cd ${.CURDIR} && ${PWD_CMD}
-.endif
-
-# If OBJHOSTNAME is set, use first component of hostname in directory name.
-# If OBJMACHINE is set, use ${MACHINE_ARCH} in the working directory name.
-#
-.if defined(OBJHOSTNAME)
-. if !defined(_HOSTNAME)
-_HOSTNAME!= ${UNAME} -n
-MAKEFLAGS+= _HOSTNAME=${_HOSTNAME}
-. endif
-WRKDIR_BASENAME?= work.${_HOSTNAME:C|\..*||}
-MAKEFLAGS+= OBJHOSTNAME=${OBJHOSTNAME}
-.elif defined(OBJMACHINE)
-WRKDIR_BASENAME?= work.${MACHINE_ARCH}
-MAKEFLAGS+= OBJMACHINE=${OBJMACHINE}
-.else
-WRKDIR_BASENAME?= work
-.endif
-
-WRKDIR?= ${BUILD_DIR}/${WRKDIR_BASENAME}
-
-# There are many uses for a common log file, so define one that may be
-# picked up and used by tools.mk, bsd.buildlink3.mk, etc.
-#
-WRKLOG?= ${WRKDIR}/.work.log
-
-PKG_DEFAULT_OPTIONS?= # empty
-PKG_OPTIONS?= # empty
-
-# we want this *before* compiler.mk, so that compiler.mk paths override them
-PREPEND_PATH+= ${USE_X11:D${X11BASE}/bin} ${LOCALBASE}/bin
-
-# Wrapper framework definitions
-.include "${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk"
-
-# Make variable definitions cache
-.include "${PKGSRCDIR}/mk/bsd.makevars.mk"
-
-USE_TOOLS+= awk:pkgsrc cut:pkgsrc echo:pkgsrc pwd:pkgsrc \
- sed:pkgsrc tr:pkgsrc uname:pkgsrc
-
-.endif # BSD_PKG_MK
diff --git a/mk/bsd.sites.mk b/mk/bsd.sites.mk
deleted file mode 100644
index 3b28208d457..00000000000
--- a/mk/bsd.sites.mk
+++ /dev/null
@@ -1,291 +0,0 @@
-# $NetBSD: bsd.sites.mk,v 1.44 2005/11/03 13:35:22 rillig Exp $
-#
-# Default MASTER_SITES
-
-.if !defined(BSD_SITES_MK)
-BSD_SITES_MK= 1
-
-MASTER_SITE_XCONTRIB+= \
- ftp://ftp.gwdg.de/pub/x11/x.org/contrib/ \
- ftp://sunsite.doc.ic.ac.uk/sites/ftp.x.org/contrib/ \
- ftp://sunsite.sut.ac.jp/pub/archives/X11/contrib/ \
- ftp://sunsite.icm.edu.pl/pub/X11/contrib/ \
- ftp://sunsite.cnlab-switch.ch/mirror/X11/contrib/ \
- ftp://ftp.cica.es/pub/X/contrib/ \
- ftp://ftp.unicamp.br/pub/X11/contrib/ \
- ftp://ftp.x.org/contrib/
-
-MASTER_SITE_GNU+= \
- ftp://ftp.gnu.org/pub/gnu/ \
- http://public.planetmirror.com.au/pub/gnu/ \
- ftp://ftp.funet.fi/pub/gnu/prep/ \
- ftp://ftp.wustl.edu/mirrors/gnu/ \
- ftp://ftp.kddlabs.co.jp/pub/gnu/gnu/ \
- ftp://ftp.dti.ad.jp/pub/GNU/ \
- ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/ \
- ftp://ftp.informatik.hu-berlin.de/pub/gnu/ \
- ftp://ftp.rediris.es/mirror/GNU/gnu/ \
- ftp://ftp.lip6.fr/pub/gnu/ \
- ftp://ftp.tuwien.ac.at/linux/gnu/gnusrc/ \
- ftp://ftp.chg.ru/pub/gnu/
-
-MASTER_SITE_GNUSTEP+= \
- ftp://ftp.gnustep.org/pub/gnustep/ \
- http://public.planetmirror.com.au/pub/gnustep/gnustep/ \
- http://www.peanuts.org/peanuts/Mirrors/GNUstep/gnustep/ \
- ftp://archive.progeny.com/gnustep/ \
- http://archive.progeny.com/gnustep/ \
- ftp://ftp.easynet.nl/mirror/GNUstep/ \
- http://ftp.easynet.nl/mirror/GNUstep/
-
-MASTER_SITE_PERL_CPAN+= \
- ftp://cpan.pair.com/modules/by-module/ \
- ftp://mirrors.cloud9.net/mirrors/CPAN/modules/by-module/ \
- ftp://ftp.uvsq.fr/pub/perl/CPAN/modules/by-module/ \
- ftp://ftp.gmd.de/mirrors/CPAN/modules/by-module/ \
- ftp://ftp.tuwien.ac.at/pub/CPAN/modules/by-module/ \
- ftp://cpan.perl.org/CPAN/modules/by-module/
-
-MASTER_SITE_R_CRAN+= \
- http://cran.r-project.org/src/ \
- ftp://cran.r-project.org/pub/R/src/ \
- http://cran.at.r-project.org/src/ \
- ftp://cran.at.r-project.org/pub/R/src/ \
- http://cran.dk.r-project.org/src/ \
- http://cran.ch.r-project.org/src/ \
- http://cran.uk.r-project.org/src/ \
- http://cran.us.r-project.org/src/ \
- http://lib.stat.cmu.edu/R/CRAN/src/ \
- http://www.stat.unipg.it/pub/stat/statlib/R/CRAN/src/ \
- ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/src/ \
- http://stat.ethz.ch/CRAN/src/ \
- http://www.stats.bris.ac.uk/R/src/
-
-MASTER_SITE_TEX_CTAN+= \
- ftp://ftp.funet.fi/pub/TeX/CTAN/ \
- ftp://ftp.tex.ac.uk/tex-archive/ \
- ftp://ftp.dante.de/tex-archive/
-
-MASTER_SITE_SUNSITE+= \
- ftp://sunsite.unc.edu/pub/Linux/ \
- ftp://ftp.chg.ru/pub/Linux/sunsite/ \
- ftp://ftp.kddlabs.co.jp/Linux/metalab.unc.edu/ \
- ftp://ftp.icm.edu.pl/pub/Linux/sunsite/ \
- ftp://ftp.nvg.ntnu.no/pub/mirrors/metalab.unc.edu/ \
- ftp://ftp.uvsq.fr/pub5/linux/sunsite/ \
- ftp://ftp.lip6.fr/pub/linux/sunsite/ \
- ftp://ftp.uni-stuttgart.de/pub/mirror/sunsite.unc.edu/pub/Linux/ \
- ftp://ftp.cs.tu-berlin.de/pub/linux/Mirrors/sunsite.unc.edu/ \
- ftp://sunsite.cnlab-switch.ch/mirror/linux/sunsite/ \
- ftp://ftp.tuwien.ac.at/pub/linux/ibiblio/
-
-MASTER_SITE_GNOME+= \
- ftp://ftp.gnome.org/pub/GNOME/ \
- ftp://ftp.sunet.se/pub/X11/GNOME/ \
- ftp://ftp.tuwien.ac.at/hci/GNOME/ \
- ftp://ftp.cse.buffalo.edu/pub/Gnome/ \
- ftp://ftp.dti.ad.jp/pub/X/gnome/ \
- ftp://ftp.kddlabs.co.jp/pub/GNOME/ \
- ftp://ftp.chg.ru/pub/X11/gnome/ \
- ftp://ftp.dataplus.se/pub/linux/gnome/ \
- ftp://ftp.dit.upm.es/linux/gnome/ \
- ftp://ftp.mirror.ac.uk/sites/ftp.gnome.org/pub/
-
-MASTER_SITE_SOURCEFORGE+= \
- http://easynews.dl.sourceforge.net/sourceforge/ \
- http://heanet.dl.sourceforge.net/sourceforge/ \
- http://jaist.dl.sourceforge.net/sourceforge/ \
- http://keihanna.dl.sourceforge.net/sourceforge/ \
- http://kent.dl.sourceforge.net/sourceforge/ \
- http://mesh.dl.sourceforge.net/sourceforge/ \
- http://nchc.dl.sourceforge.net/sourceforge/ \
- http://optusnet.dl.sourceforge.net/sourceforge/ \
- http://ovh.dl.sourceforge.net/sourceforge/ \
- http://peterhost.dl.sourceforge.net/sourceforge/ \
- http://puzzle.dl.sourceforge.net/sourceforge/ \
- http://surfnet.dl.sourceforge.net/sourceforge/ \
- http://switch.dl.sourceforge.net/sourceforge/ \
- http://ufpr.dl.sourceforge.net/sourceforge/ \
- http://unc.dl.sourceforge.net/sourceforge/ \
- http://voxel.dl.sourceforge.net/sourceforge/
-# http://citkit.dl.sourceforge.net/sourceforge/
-# ftp://ftp2.sourceforge.net/pub/sourceforge/
-# ftp://ftp.tuwien.ac.at/linux/sourceforge/
-# http://sf.gds.tuwien.ac.at/
-
-MASTER_SITE_SUSE+= \
- ftp://rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
- ftp://fr.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
- ftp://fr2.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
- ftp://speakeasy.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
- ftp://ftp.duth.gr/pub/suse/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
- ftp://ftp.kddlabs.co.jp/Linux/packages/SuSE/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
- ftp://sunsite.cnlab-switch.ch/mirror/SuSE/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
- ftp://ftp.mirror.ac.uk/sites/ftp.suse.com/${MACHINE_ARCH}/${SUSE_VERSION}/suse/ \
- ftp://mirror.mcs.anl.gov/pub/ftp.suse.com/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
-
-MASTER_SITE_MOZILLA+= \
- ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/ \
- ftp://ftp.fu-berlin.de/unix/network/www/mozilla/releases/ \
- ftp://ftp.informatik.uni-bonn.de/pub/www/mozilla/ \
- ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.mozilla.org/pub/ \
- ftp://sunsite.auc.dk/pub/mozilla/ \
- ftp://ftp.funet.fi/pub/mirrors/ftp.mozilla.org/ \
- ftp://ftp.sunsite.kth.se/archive/www/ftp.mozilla.org/ \
- http://public.planetmirror.com.au/pub/mozilla/releases/ \
- ftp://ftp2.sinica.edu.tw/pub3/www/mozilla/ \
- ftp://ftp.is.co.za/networking/info-service/www/clients/netscape/mozilla/ \
- ftp://ftp.rediris.es/mirror/mozilla/ \
- ftp://ftp.chg.ru/pub/WWW/mozilla/
-
-MASTER_SITE_XEMACS+= \
- ftp://ftp.xemacs.org/pub/xemacs/ \
- ftp://ftp.dti.ad.jp/pub/unix/editor/xemacs/ \
- ftp://ftp.pasteur.fr/pub/computing/xemacs/ \
- http://public.planetmirror.com.au/pub/xemacs/ \
- ftp://mirror.aarnet.edu.au/pub/xemacs/ \
- ftp://mirror.cict.fr/xemacs/ \
- ftp://ftp.t.ring.gr.jp/pub/text/xemacs/ \
- ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/ftp.xemacs.org/xemacs/emacs-w3/ \
- ftp://ftp.tu-darmstadt.de/pub/editors/xemacs/emacs-w3/
-
-MASTER_SITE_APACHE+= \
- http://www.apache.org/dist/ \
- http://mirrors.ccs.neu.edu/Apache/dist/ \
- http://apache.planetmirror.com.au/dist/ \
- http://www.ibiblio.org/pub/mirrors/apache/ \
- http://apache.towardex.com/ \
- http://apache.oregonstate.edu/ \
- http://www.tux.org/pub/net/apache/dist/ \
- http://apache.secsup.org/dist/ \
- http://apache.osuosl.org/ \
- http://sunsite.tus.ac.jp/pub/apache/ \
- http://www.mirrorservice.org/sites/ftp.apache.org/ \
- http://ftp.plusline.de/ftp.apache.org/ \
- ftp://ftp.ccs.neu.edu/net/mirrors/Apache/dist/ \
- ftp://ftp.planetmirror.com.au/pub/apache/dist/ \
- ftp://ftp.tux.org/pub/net/apache/dist/ \
- ftp://www.ibiblio.org/pub/mirrors/apache/ \
- ftp://ftp.oregonstate.edu/pub/apache/ \
- ftp://apache.secsup.org/pub/apache/dist/ \
- ftp://sunsite.tus.ac.jp/pub/archives/www/apache/ \
- ftp://ftp.mirrorservice.org/sites/ftp.apache.org/ \
- ftp://ftp.plusline.de/pub/ftp.apache.org/
-
-MASTER_SITE_DEBIAN+= \
- http://ftp.debian.org/debian/ \
- http://ftp.at.debian.org/debian/ \
- http://ftp.au.debian.org/debian/ \
- http://ftp.wa.au.debian.org/debian/ \
- http://ftp.bg.debian.org/debian/ \
- http://ftp.br.debian.org/debian/ \
- http://ftp.cl.debian.org/debian/ \
- http://ftp.cz.debian.org/debian/ \
- http://ftp.de.debian.org/debian/ \
- http://ftp2.de.debian.org/debian/ \
- http://ftp.dk.debian.org/debian/ \
- http://ftp.ee.debian.org/debian/ \
- http://ftp.es.debian.org/debian/ \
- http://ftp.fi.debian.org/debian/ \
- http://ftp.fr.debian.org/debian/ \
- http://ftp2.fr.debian.org/debian/ \
- http://ftp.uk.debian.org/debian/ \
- http://ftp.hk.debian.org/debian/ \
- http://ftp.hr.debian.org/debian/ \
- http://ftp.hu.debian.org/debian/ \
- http://ftp.ie.debian.org/debian/ \
- http://ftp.is.debian.org/debian/ \
- http://ftp.it.debian.org/debian/ \
- http://ftp2.it.debian.org/debian/ \
- http://ftp.jp.debian.org/debian/ \
- http://ftp.nl.debian.org/debian/ \
- http://ftp.no.debian.org/debian/ \
- http://ftp.nz.debian.org/debian/ \
- http://ftp.pl.debian.org/debian/ \
- http://ftp.ru.debian.org/debian/ \
- http://ftp.se.debian.org/debian/ \
- http://ftp.si.debian.org/debian/ \
- http://ftp.sk.debian.org/debian/ \
- http://ftp.tr.debian.org/debian/ \
- http://ftp.us.debian.org/debian/
-
-MASTER_SITE_OPENOFFICE+= \
- http://mirrors.isc.org/pub/openoffice/ \
- http://ftp.stardiv.de/pub/OpenOffice.org/ \
- http://openoffice.mirrors.ilisys.com.au/ \
- http://linorg.usp.br/OpenOffice.org/ \
- http://oobr.querencialivre.rs.gov.br/openoffice/ \
- ftp://ftp.pucpr.br/openoffice/ \
- http://openoffice.behrsolutions.com/ \
- http://www.ibiblio.org/pub/mirrors/openoffice/ \
- ftp://ftp.ussg.iu.edu/pub/openoffice/ \
- ftp://mirror.telentente.com/pub/OpenOffice/ \
- http://openoffice.mirrors.pair.com/ \
- http://gd.tuwien.ac.at/office/openoffice/ \
- http://ftp.belnet.be/pub/mirror/ftp.openoffice.org/ \
- ftp://ftp.kulnet.kuleuven.ac.be/pub/mirror/openoffice.org/ \
- http://ftp.sh.cvut.cz/MIRRORS/OpenOffice/ \
- http://mirrors.sunsite.dk/openoffice/ \
- ftp://ftp.funet.fi/pub/mirrors/openoffice.org/ \
- ftp://openoffice.cict.fr/openoffice/ \
- http://ftp.club-internet.fr/pub/OpenOffice/ \
- ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/OpenOffice/ \
- ftp://ftp.tu-chemnitz.de/pub/openoffice/ \
- ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.openoffice.org/ \
- ftp://ftp.join.uni-muenster.de/pub/software/OpenOffice/ \
- http://ftp.leo.org/download/pub/comp/general/office/openoffice/ \
- ftp://openoffice.tu-bs.de/OpenOffice.org/ \
- http://www.ellak.gr/pub/openoffice/ \
- http://ftp.ntua.gr/pub/OpenOffice/ \
- http://ftp.fsf.hu/OpenOffice.org/ \
- http://ftp.rhnet.is/pub/OpenOffice/ \
- http://na.mirror.garr.it/mirrors/openoffice/ \
- http://vlaai.snt.utwente.nl/pub/software/openoffice/ \
- http://niihau.student.utwente.nl/openoffice/ \
- http://borft.student.utwente.nl/openoffice/ \
- http://ftp.iasi.roedu.net/mirrors/openoffice.org/ \
- ftp://ftp.arnes.si/packages/OpenOffice.org/ \
- ftp://ftp.saix.net/pub/OpenOffice.org/ \
- ftp://ftp.cyberfenix.net/pub/openoffice/ \
- http://ftp.rediris.es/ftp/mirror/openoffice.org/ \
- http://ftp.sunet.se/pub/Office/OpenOffice.org/ \
- ftp://mirror.switch.ch/mirror/OpenOffice/ \
- ftp://ftp.ksu.edu.tr/pub/OpenOffice/ \
- ftp://ftp.mirror.ac.uk/sites/ny1.mirror.openoffice.org/ \
- http://mirror.pacific.net.au/openoffice/ \
- http://public.planetmirror.com.au/pub/openoffice/ \
- http://komo.vlsm.org/openoffice/ \
- ftp://ftp.kddlabs.co.jp/office/openoffice/ \
- ftp://ftp.t.ring.gr.jp/pub/misc/openoffice/ \
- http://mymirror.asiaosc.org/openoffice/ \
- ftp://ftp.kr.freebsd.org/pub/openoffice/ \
- http://www.fs.tum.de/~mrauch/OpenOffice/download/
-
-MASTER_SITE_CYGWIN+= \
- http://mirrors.kernel.org/sources.redhat.com/cygwin/ \
- http://mirrors.rcn.net/pub/sourceware/cygwin/ \
- http://mirrors.xmission.com/cygwin/ \
- ftp://ftp.t.ring.gr.jp/archives/pc/gnu-win32/ \
- ftp://ftp.funet.fi/pub/mirrors/cygwin.com/pub/cygwin/
-
-MASTER_SITE_IFARCHIVE+= \
- http://ifarchive.jmac.org/if-archive/ \
- http://ifarchive.flavorplex.com/if-archive/ \
- http://ifarchive.heanet.ie/if-archive/ \
- http://ifarchive.giga.or.at/if-archive/
-
-MASTER_SITE_FREEBSD+= \
- ftp://ftp.FreeBSD.org/pub/FreeBSD/distfiles/ \
- ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/distfiles/
-
-MASTER_SITE_FREEBSD_LOCAL+= \
- ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/ \
- ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/
-
-# The primary backup site.
-MASTER_SITE_BACKUP?= \
- http://ftp.fi.NetBSD.org/pub/NetBSD/packages/distfiles/ \
- ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/ \
- ftp://ftp.FreeBSD.org/pub/FreeBSD/distfiles/
-
-.endif # BSD_SITES_MK
diff --git a/mk/buildlink3/BUILDLINK3_DG b/mk/buildlink3/BUILDLINK3_DG
deleted file mode 100644
index 6f7f4d05d4d..00000000000
--- a/mk/buildlink3/BUILDLINK3_DG
+++ /dev/null
@@ -1,77 +0,0 @@
-$NetBSD: BUILDLINK3_DG,v 1.7 2005/03/24 17:46:01 tv Exp $
-
- 0 Developer's guide to buildlink3
- =================================
-
-This is a tutorial for pkgsrc developers to understand and to use the
-buildlink3 framework in pkgsrc.
-
-
- 1 Changes between buildlink2 and buildlink3
- ===========================================
-
-The buildlink3 framework is a evolutionary descendant of the
-buildlink2 framework that does a better job of adhering to the
-fundamental buildlink principle: only allow the software build
-process to see what we choose to allow it to see.
-
-
- 1.1 Better behavior with libtool
- ================================
-
-One of the biggest problems in buildlink2 is handling packages that
-install libtool archive files for libraries that are also present in
-the base system. buildlink3 is significantly better at this as it
-more tightly controls where libtool can find libtool archives. One
-side effect of this is that we no longer need to create fake libtool
-archives to work around cases where the pkgsrc libraries were being
-used instead of the system libraries if they shared the same name.
-
-
- 1.2 New buildlink3.mk file structure
- ====================================
-
-buildlink3.mk files have two major differences over buildlink2.mk
-files. The first, most noticeable difference is that buildlink3.mk
-generally don't contain a BUILDLINK_FILES definition. This is
-because buildlink3 automatically determines which files to symlink
-into ${BUILDLINK_DIR} by examining the PLIST of the installed package.
-The second difference is that buildlink3.mk files keep track of how
-"deep" we are in including buildlink3.mk files, and only creates
-dependencies on packages encountered at depth 1. This means that
-packages that want to add a dependency must directly include the
-buildlink3.mk file for that dependency.
-
-
- 1.3 Support for pkgviews
- ========================
-
-When building pkgviews packages, buildlink3 doesn't symlink files
-into ${BUILDLINK_DIR} since it can safely refer to only a specific
-package's files by passing the appropriate -I<dir> and -L<dir> flags
-to the compiler, where <dir> points to a location in the package's
-depot directory. When building "overwrite" packages, buildlink3 will
-act and feel very much like buildlink2 but with more advanced wrapper
-scripts, and there are provisions for allowing an "overwrite" package
-to build against the viewed instance of a depoted package.
-
-
- 2 Troubleshooting
- =================
-
-Q1: Where can I see the actual command executed by the wrapper
- scripts?
-
-A1: You should examine the contents of the ${WRKDIR}/.work.log file.
- The lines preceded with [*] are the commands that are intercepted
- by the wrapper scripts, and the lines preceded with <.> are the
- commands that are executed by the wrapper scripts.
-
-
-Q2: Why can't I check the values of variables set by the buildlink3
- framework using 'make show-var VARNAME=...'?
-
-A2: Some variables are only defined for a subset of the package build
- phases. Try instead:
-
- make show-var PKG_PHASE=wrapper VARNAME=...
diff --git a/mk/buildlink3/PKGVIEWS_UG b/mk/buildlink3/PKGVIEWS_UG
deleted file mode 100644
index 204a2f3fbcf..00000000000
--- a/mk/buildlink3/PKGVIEWS_UG
+++ /dev/null
@@ -1,222 +0,0 @@
-$NetBSD: PKGVIEWS_UG,v 1.2 2004/12/01 09:53:01 wiz Exp $
-
- 0 User's Guide to pkgviews
- ==========================
-
-This is a tutorial for pkgsrc users who wish to experiment with the
-new "pkgviews" implementation in pkgsrc. More information about
-pkgviews may be found in pkgsrc/mk/buildlink3/README. That document
-also explains why you might want to use pkgviews. Some reasons
-include:
-
- * fully dynamic PLISTs
- * multiple version of the same package can co-exist
- * no or non-fatal conflicting packages
-
-
- 0.1 CAVEAT (USE AT YOUR OWN RISK!)
- ==================================
-
-Pkgviews is *completely experimental* at this point in time. Bug
-reports on pkgviews will be treated with a fairly low priority by the
-general pkgsrc developers, though I may personally be more responsive.
-However, the major thrust of the next several weeks of pkgsrc
-development for me will revolve around testing and integrating the
-buildlink3 framework into pkgsrc and deprecating buildlink2. Any
-work on pkgviews during that time is strictly happenstance.
-
-
- 0.1 Preparing your system to use pkgviews
- =========================================
-
-You will need to start with a clean system to use pkgviews. Depoted
-packages, a.k.a "pkgviews" packages (packages that are built using
-pkgviews) cannot depend on non-depoted packages, a.k.a. "overwrite"
-packages, although the reverse is possible. If you have _any_
-packages installed, you will need to pkg_delete them before you can
-start building depoted packages. In fact, it's best to completely
-nuke /usr/pkg (or wherever you choose for your ${LOCALBASE}) as
-pkgviews manages all of its own directories.
-
-Next you will need to add the following line to /etc/mk.conf:
-
- PKG_INSTALLATION_PREFS= pkgviews overwrite
-
-This creates pkgviews packages instead of overwrite packages for any
-packages that support it. The packages that do support pkgviews
-can be identified by searching the package Makefile for the
-following line:
-
- PKG_INSTALLATION_TYPES= overwrite pkgviews
-
-
- 0.2 Installing your first pkgviews package
- ==========================================
-
-The first package you will need to install is pkgsrc/pkgtools/digest.
-
-===> Checking for vulnerabilities in digest-20021220
-===> Extracting for digest-20021220
-===> Checking for vulnerabilities in digest-20021220
-===> Patching for digest-20021220
-===> Overriding tools for digest-20021220
-===> Buildlinking for digest-20021220
-===> Configuring for digest-20021220
-configure: WARNING: If you wanted to set the --build type, don't use --host.
- If a cross compiler is detected then cross compile mode will be used.
-checking build system type... i386-unknown-netbsdelf1.6.2.
-checking host system type... i386--netbsdelf
-...
-configure: creating ./config.status
-config.status: creating Makefile
-config.status: creating config.h
-===> Building for digest-20021220
-cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"i386--netbsdelf\" -DVERSION=\"20021220\" -O2 -mcpu=pentiumpro -c bits.c -o bits.o
-...
-cc -O2 -mcpu=pentiumpro -o digest digest.o md5c.o rmd160.o rmd160hl.o sha2.o sha2hl.o md5hl.o sha1.o sha1hl.o
-=> Fixing buildlink references in files-to-be-installed.
-===> Installing for digest-20021220
-===> Becoming root@blossom.hq.williamlam.com to install digest.
-sudo /bin/sh ./mkinstalldirs /usr/pkg/packages/digest-20021220/bin
-mkdir /usr/pkg/packages/digest-20021220/bin
-install -c -s -o root -g wheel -m 555 digest /usr/pkg/packages/digest-20021220/bin/digest
-/bin/sh ./mkinstalldirs /usr/pkg/packages/digest-20021220/man/man1
-mkdir /usr/pkg/packages/digest-20021220/man
-mkdir /usr/pkg/packages/digest-20021220/man/man1
-install -c -o root -g wheel -m 444 digest.1 /usr/pkg/packages/digest-20021220/man/man1/digest.1
-===> Registering installation for digest-20021220
-===> Building views for digest-20021220
-=> Performing package view clash check for digest-20021220 in standard view
-=> Performing package view overwrite check for digest-20021220 in standard view
-=> Linking package into standard view
-
-Notice in the transcript that the digest package has been installed
-into /usr/pkg/packages/digest-20021220 and then subsequently linked
-into the "standard view". The standard view is simply /usr/pkg, which
-means that the digest executable is accessible as /usr/pkg/bin/digest.
-
-
- 0.3 The contents of /usr/pkg (${LOCALBASE})
- ===========================================
-
-There is a directory /usr/pkg/packages that contains all of the
-depoted packages. The contents of /usr/pkg/packages after installing
-digest are:
-
-/usr/pkg/packages/digest-20021220/+BUILD_INFO
-/usr/pkg/packages/digest-20021220/+BUILD_VERSION
-/usr/pkg/packages/digest-20021220/+COMMENT
-/usr/pkg/packages/digest-20021220/+CONTENTS
-/usr/pkg/packages/digest-20021220/+DESC
-/usr/pkg/packages/digest-20021220/+SIZE_ALL
-/usr/pkg/packages/digest-20021220/+SIZE_PKG
-/usr/pkg/packages/digest-20021220/+VIEWS
-/usr/pkg/packages/digest-20021220/bin/digest
-/usr/pkg/packages/digest-20021220/man/man1/digest.1
-
-Note that all of the files related to the package, including the
-package metadata files used by the pkg_* tools, are stored in the
-"depot directory" for digest (/usr/pkg/packages/digest-20021220).
-
-The digest package was also linked into the standard view. Looking
-inside /usr/pkg shows us the following symlinks:
-
-/usr/pkg/bin/digest -> /usr/pkg/packages/digest-20021220/bin/digest
-/usr/pkg/man/man1/digest.1 -> /usr/pkg/packages/digest-20021220/man/man1/digest.1
-
-Since digest is present in /usr/pkg/bin, it can be used as always
-without any changes needed by the typical user with /usr/pkg/bin in
-his PATH, and "man digest" will continue to work as expected.
-
-
- 0.4 Creating new views
- ======================
-
-The following commands will install both pkgsrc/www/lynx and
-pkgsrc/www/lynx-current onto the same system using pkgviews:
-
- cd /usr/pkgsrc/www/lynx; make install
- cd /usr/pkgsrc/www/lynx-current; make install PKGVIEWS=devel
-
-The stable version of lynx (2.8.4.1nb2) is linked into the standard
-view, while the -current version of lynx (2.8.5.0.7nb3) is linked into
-the "devel" view. The lynx-related files in /usr/pkg are:
-
-/usr/pkg/bin/lynx -> /usr/pkg/packages/lynx-2.8.4.1nb2/bin/lynx
-/usr/pkg/man/man1/lynx.1 -> /usr/pkg/packages/lynx-2.8.4.1nb2/man/man1/lynx.1
-/usr/pkg/share/locale/cs/LC_MESSAGES/lynx.mo -> ...
-...
-
-/usr/pkg/devel/bin/lynx -> /usr/pkg/packages/lynx-2.8.5.0.7nb3/bin/lynx
-/usr/pkg/devel/man/man1/lynx.1 -> /usr/pkg/packages/lynx-2.8.5.0.7nb3/man/man1/lynx.1
-/usr/pkg/devel/share/locale/cs/LC_MESSAGES/lynx.mo -> ...
-...
-
-Note that the files for pkgsrc/www/lynx have been symlinked into
-/usr/pkg as usual, but the files for pkgsrc/www/lynx-current have been
-symlinked into the "devel" subdirectory of /usr/pkg. The files in
-in the "devel" view can be accessed by adding /usr/pkg/devel/bin to
-the PATH and adding /usr/pkg/devel/man to MANPATH in the appropriate
-place.
-
-
- 0.5 Managing views using pkg_* tools
- ====================================
-
-Adding and removing package instances to and from views is always a
-safe operation as the true package files are left untouched. All that
-happens is that linkfarms are being added or removed, thus changes are
-always easy to reverse.
-
-Adding a depoted package into a view may be accomplished with:
-
- pkg_view -w devel add gmake-3.80nb2
-
-This adds the gmake-3.80nb2 package (already present on the system) to
-the "devel" view. The "devel" view is created if it doesn't already
-exist.
-
-Removing a package from a view may be accomplished with either of the
-following commands:
-
- pkg_view -w devel delete gmake-3.80nb2
- pkg_delete -K /usr/pkg/devel/.pkgdb gmake
-
-Either of these will remove the gmake-3.80nb2 package from the "devel"
-view if the package exists in the view.
-
-Removing a package from the standard view may be accomplished with
-either of the following commands
-
- pkg_view delete gmake-3.80nb2
- pkg_delete gmake
-
-The latter one is recommended for speed.
-
-
- 0.6 Completely removing a package
- =================================
-
-Removing a depoted package from the system (removing it from all views
-and removing the depot directory) is done with:
-
- pkg_delete -K /usr/pkg/packages gmake-3.80nb2
-
-If you know that only a single gmake is present on your system, then
-you can specify "gmake" instead of the full package name to
-pkg_delete(1). However, I recommend being explicit about the package
-you are removing to avoid any surprises.
-
-
- 0.6 Where to learn more about pkgviews
- ======================================
-
-There are several shell environment variables that may be set to
-affect the default behaviour of the pkg_* tools. Please read the
-pkg_view(1) man page for more information.
-
-For a more complete understanding of the motivations and principles
-behind pkgviews, the following paper by Alistair Crooks is highly
-recommended:
-
- http://www.NetBSD.org/Documentation/software/pkgviews.pdf
diff --git a/mk/buildlink3/README b/mk/buildlink3/README
deleted file mode 100644
index eba31172821..00000000000
--- a/mk/buildlink3/README
+++ /dev/null
@@ -1,140 +0,0 @@
-$NetBSD: README,v 1.6 2005/03/24 17:46:01 tv Exp $
-
- 0 Package Views
- ===============
-
-Package views is a pkgsrc technology that supports building and
-installing multiple versions of the same software such that they
-co-exist on a single system. Individual packages are installed into
-their own directory tree and their files are symlinked into "views".
-Users can choose amongst different software collections provided by
-different views by appropriately setting shell environment variables,
-e.g., PATH, MANPATH, etc.
-
-Package views is similar in spirit to the Encap Package Management
-System, the GNU Stow Project, and the Carnegie Mellon University Depot
-Configuration Management system:
-
- http://www.encap.org/
- http://www.gnu.org/software/stow/stow.html
- http://asg.web.cmu.edu/andrew2/depot/
-
-However, these projects have a philosophy of "install anywhere, use in
-one place", whereas package views departs from that model with a
-philosophy that can roughly be summarized as "install in one place,
-use anywhere".
-
-
- 0.1 A short history of package views
- ====================================
-
-Package views was proposed as a solution to the problem of not being
-able to install multiple versions of the same software simultaneously
-via pkgsrc. Alistair Crooks presented a paper on package views at
-EuroBSDCon in November 2002 that described the work he did on the
-"pkgviews" branch of pkgsrc where he implemented his ideas. The paper
-is highly-recommended reading for a more complete understanding of
-package views principles and is available at:
-
- http://www.NetBSD.org/Documentation/software/pkgviews.pdf
-
-Unfortunately, Alistair ran out of time to devote to integrating his
-work into the main pkgsrc branch. The code he developed languished on
-the "pkgviews" branch for over a year, and in the meantime much code
-was added to pkgsrc that increased the complexity and the capabilities
-of pkgsrc, including buildlink2, which conflicted with Alistair's
-implementation of package views. In September 2003, Johnny Lam
-integrated the functionality on the pkgviews branch into modern
-pkgsrc. As part of the integration, a new buildlink3 framework was
-created so that the ability to isolate builds from differences in
-the environment wouldn't be lost.
-
-
- 0.2 Package views terminology
- =============================
-
-The terminology for packages in the package views world is as
-follows: a "pkgviews" package is a package that has been converted to
-build and install using package views. An "overwrite" package is one
-that hasn't. A "depoted" package describes a pkgviews package
-installed into /usr/pkg/packages in its "depot" directory. A package
-"instance" in a view describes a depoted package symlinked into a
-view.
-
-
- 0.3 What's been done
- ====================
-
-The pkg_install tools have been enhanced to handle both binary depoted
-packages and binary "overwrite" packages. The pkgsrc internals have
-been modified to allow building and installing depoted packages and to
-automatically add a depoted package in the default view.
-"Overwrite" packages shouldn't be affected by the changes, and can be
-freely mixed with pkgviews packages.
-
-Packages that have been converted to use "pkgviews" should add the
-following line to their Makefiles:
-
- PKG_INSTALLATION_TYPES= overwrite pkgviews
-
-PKG_INSTALLATION_TYPES can also just be one value or the other to
-explicitly note that the package only supports that one type of
-installation style. Users may add the following line to /etc/mk.conf:
-
- PKG_INSTALLATION_PREFS= pkgviews overwrite
-
-to note that they prefer building using pkgviews if the package
-supports it, otherwise to build using the "overwrite" installation
-style. However, users should not change PKG_INSTALLATION_PREFS from
-the default value unless they're sure that they want to start
-migrating their package system over to using pkgviews. The default,
-"overwrite pkgviews", will cause all packages to build using the
-"overwrite" installation style.
-
-Some highlight of pkgviews packages include:
-
- * fully dynamic PLISTs
- * multiple versions of the same package can co-exist
-
-
- 0.4 buildlink3 pkgsrc build framework
- =====================================
-
-A new buildlink3 framework that takes advantage of depoted packages
-has been added to pkgsrc as part of the package views changes.
-Buildlink3 uses wrapper scripts much like buildlink2. However, when
-building pkgviews packages, it doesn't symlink files into
-${BUILDLINK_DIR} since it can safely refer to only a specific
-package's files by passing the appropriate -I<dir> and -L<dir> flags
-to the compiler, where <dir> points to a location in the package's
-depot directory. When building "overwrite" packages, buildlink3 will
-act and feel very much like buildlink2 but with more advanced wrapper
-scripts, and there are provisions for allowing an "overwrite" package
-to build against the viewed instance of a depoted package. The
-implementation currently allows "overwrite" to depend on either
-"overwrite" or pkgviews packages, but pkgviews packages are restricted
-to only being able to depend on other pkgviews packages.
-
-
- 0.5 Future Work
- ===============
-
-There may be some way around the problem of pkgviews packages not
-being able to depend on "overwrite" packages. That's the only thing
-standing in the way between allowing an arbitrary package to be built
-using either installation style and working seamlessly with any other
-package. The problem has to do with proper handling of metadata in
-the +REQUIRED_BY and +CONTENTS files that are split in two separate
-places. One possible route to a solution is that for each overwrite
-package, we can symlink /usr/pkg/packages/<pkg> -> /var/db/pkg/<pkg>.
-This allows depoted packages to record themselves directly in the
-+REQUIRED_BY files of "overwrite" packages. If a user happens to run
-
- pkg_delete -K /usr/pkg/packages <overwrite_pkg>
-
-then it still uses the correct +CONTENTS, +INSTALL, and +DEINSTALL
-scripts, so the package will still remove itself properly from
-/usr/pkg. However, there are some remaining issues with properly
-removing both the /var/db/pkg/<pkg> directory and the
-/usr/pkg/packages/<pkg> symlink, so the deletion won't be completely
-clean until this issue can be resolved.
diff --git a/mk/buildlink3/TODO b/mk/buildlink3/TODO
deleted file mode 100644
index 3d05c4f5b15..00000000000
--- a/mk/buildlink3/TODO
+++ /dev/null
@@ -1,51 +0,0 @@
-$NetBSD: TODO,v 1.5 2004/02/17 08:59:44 jlam Exp $
-
-TODO items
-==========
-
-* Make the error where pkgviews packages depend on overwrite packages
- less obfuscated.
-* Teach linkfarm to do tree-folding a la GNU stow.
-* Correct handling of pkgconfig *.pc files.
-
-Package views integration plan:
-==============================
-
-(1) Modify pkgsrc internals (bsd.pkg.mk & friends) to build and
- install depoted packages if PKG_INSTALLATION_TYPE is set to
- "pkgviews" in the package Makefile, and to add the depoted
- package to the default view. The depoted package will include
- all of its metadata files in the depot directory, and we rely
- on pkg_view to copy the metadata files into /var/db/pkg as
- part of adding the package to the default view. We only
- support the default view. Depoted packages will install into
- ${LOCALBASE}/packages and the default view will be through
- ${LOCALBASE} for all packages.
-
-Using this infrastructure, depoted packages that have been added to
-the default view should look and feel like a non-depoted package in
-all respects, down to what you find in /var/db/pkg/${PKGNAME}, so
-non-depoted packages can depend on depoted packages without change.
-
-(2) Migrate non-USE_X11BASE and non-USE_IMAKE packages to set
- PKG_INSTALLATION_TYPE to "pkgviews". Depoted packages can only
- depend on other depoted packages. A depoted package will have
- <deppkg_dir>/lib and ${LOCALBASE}/lib in the run-time library
- search path (-Wl,-R*) so that wildcard dependencies on library
- packages will still work (so long as the major number of the shlib
- hasn't increased).
-
-At this point, all packages in pkgsrc except for those that define
-USE_X11BASE or USE_IMAKE will be depoted.
-
-(3) Make xpkgwedge the default for pkgsrc. It would be nice to
- enhance xpkgwedge in some way so that a package could be compiled
- with the correct defaults for finding app-defaults files without
- having the user fiddle with environment variables.
-
-This is a flag day change and will require bumping the PKGREVISIONs
-for every single USE_X11BASE and USE_IMAKE package and all packages
-that depend on them.
-
-(4) Migrate the USE_X11BASE and USE_IMAKE packages to set
- PKG_INSTALLATION_TYPE to "pkgviews".
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk
deleted file mode 100644
index 3483df9212a..00000000000
--- a/mk/buildlink3/bsd.buildlink3.mk
+++ /dev/null
@@ -1,1084 +0,0 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.171 2005/06/01 18:03:06 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# An example package buildlink3.mk file:
-#
-# -------------8<-------------8<-------------8<-------------8<-------------
-# BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-# FOO_BUILDLINK3_MK:= ${FOO_BUILDLINK3_MK}+
-#
-# .if !empty(BUILDLINK_DEPTH:M+)
-# BUILDLINK_DEPENDS+= foo
-# .endif
-#
-# BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nfoo}
-# BUILDLINK_PACKAGES+= foo
-#
-# .if !empty(FOO_BUILDLINK3_MK:M+)
-# BUILDLINK_DEPENDS.foo+= foo-lib>=1.0
-# BUILDLINK_RECOMMENDED.foo?= foo-lib>=1.0nb1
-# BUILDLINK_PKGSRCDIR.foo?= ../../category/foo-lib
-#
-# # We want "-lbar" to eventually resolve to "-lfoo".
-# BUILDLINK_TRANSFORM+= l:bar:foo
-# .endif # FOO_BUILDLINK3_MK
-#
-# .include "../../category/baz/buildlink3.mk"
-#
-# BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
-# -------------8<-------------8<-------------8<-------------8<-------------
-#
-# Most of the buildlink3.mk file is protected against multiple inclusion,
-# except for the parts related to manipulating BUILDLINK_DEPTH and adding
-# to BUILDLINK_DEPENDS.
-#
-# Note that if a buildlink3.mk file is included, then the package Makefile
-# has the expectation that it can use the value of BUILDLINK_PREFIX.<pkg>.
-# If the buildlink3.mk tries to handle dependencies satisfied directly by
-# the base system, then it should provide an appropriate value for
-# BUILDLINK_PREFIX.<pkg> for that case. The case where a dependency is
-# satisfied by a pkgsrc-installed package is handled automatically by this
-# file.
-#
-# The different variables that may be set in a buildlink3.mk file are
-# described below.
-#
-# The variable name convention used in this Makefile are:
-#
-# BUILDLINK_* public buildlink-related variables usable in other Makefiles
-# _BLNK_* private buildlink-related variables to this Makefile
-
-.if ${PKG_DEBUG_LEVEL} > 0
-ECHO_BUILDLINK_MSG?= ${ECHO}
-.else
-ECHO_BUILDLINK_MSG?= ${ECHO_WRAPPER_MSG}
-.endif
-BUILDLINK_DIR= ${WRKDIR}/.buildlink
-BUILDLINK_BINDIR= ${BUILDLINK_DIR}/bin
-BUILDLINK_SRCDIR= ${.CURDIR}/../../mk/buildlink3
-BUILDLINK_X11_DIR= ${BUILDLINK_DIR:H}/.x11-buildlink
-
-.PHONY: do-buildlink
-
-# Prepend ${BUILDLINK_BINDIR} to the PATH.
-PREPEND_PATH+= ${BUILDLINK_BINDIR}
-
-# BUILDLINK_DEPENDS contains the list of packages for which we add
-# dependencies.
-#
-BUILDLINK_DEPENDS?= # empty
-
-# For each package we use, check whether we are using the built-in
-# version of the package or if we are using the pkgsrc version.
-#
-.for _pkg_ in ${BUILDLINK_PACKAGES}
-BUILDLINK_BUILTIN_MK.${_pkg_}?= ${BUILDLINK_PKGSRCDIR.${_pkg_}}/builtin.mk
-. sinclude "${BUILDLINK_BUILTIN_MK.${_pkg_}}"
-.endfor
-
-# Set IGNORE_PKG.<pkg> if <pkg> is the current package we're building.
-# We can then check for this value to avoid build loops.
-#
-.for _pkg_ in ${BUILDLINK_PACKAGES}
-. if defined(BUILDLINK_PKGSRCDIR.${_pkg_})
-. if !defined(IGNORE_PKG.${_pkg_}) && \
- (${BUILDLINK_PKGSRCDIR.${_pkg_}:C|.*/([^/]*/[^/]*)$|\1|} == ${PKGPATH})
-IGNORE_PKG.${_pkg_}= yes
-MAKEFLAGS+= IGNORE_PKG.${_pkg_}=${IGNORE_PKG.${_pkg_}}
-. endif
-. endif
-.endfor
-
-# _BLNK_PACKAGES contains all of the unique elements of BUILDLINK_PACKAGES
-# that shouldn't be skipped.
-#
-_BLNK_PACKAGES= # empty
-.for _pkg_ in ${BUILDLINK_PACKAGES}
-. if empty(_BLNK_PACKAGES:M${_pkg_}) && !defined(IGNORE_PKG.${_pkg_})
-_BLNK_PACKAGES+= ${_pkg_}
-. endif
-.endfor
-
-# _BLNK_RECURSIVE_DEPENDS lists all of the packages that this package
-# directly or indirectly depends on.
-#
-_BLNK_RECURSIVE_DEPENDS= # empty
-.for _pkg_ in ${_BLNK_PACKAGES}
-USE_BUILTIN.${_pkg_}?= no
-. if empty(_BLNK_RECURSIVE_DEPENDS:M${_pkg_}) && \
- !empty(USE_BUILTIN.${_pkg_}:M[nN][oO])
-_BLNK_RECURSIVE_DEPENDS+= ${_pkg_}
-. endif
-.endfor
-
-# _BLNK_DEPENDS contains all of the elements of BUILDLINK_DEPENDS that
-# shouldn't be skipped and that name packages for which we aren't using
-# the built-in software and hence need to add a dependency.
-#
-_BLNK_DEPENDS= # empty
-.for _pkg_ in ${BUILDLINK_DEPENDS}
-USE_BUILTIN.${_pkg_}?= no
-. if empty(_BLNK_DEPENDS:M${_pkg_}) && !defined(IGNORE_PKG.${_pkg_}) && \
- !empty(_BLNK_PACKAGES:M${_pkg_}) && \
- !empty(USE_BUILTIN.${_pkg_}:M[nN][oO])
-_BLNK_DEPENDS+= ${_pkg_}
-. endif
-.endfor
-
-# By default, every package receives a full dependency.
-.for _pkg_ in ${_BLNK_PACKAGES}
-BUILDLINK_DEPMETHOD.${_pkg_}?= full
-.endfor
-
-# We skip the dependency calculation for some phases since they never
-# use the dependency information.
-#
-_BLNK_PHASES_SKIP_DEPENDS= fetch patch tools buildlink configure \
- build test
-_BLNK_PHASES_RECURSIVE_DEPENDS= extract
-.if !empty(_BLNK_PHASES_SKIP_DEPENDS:M${PKG_PHASE})
-_BLNK_DEPENDS_LIST= # empty
-.elif !empty(_BLNK_PHASES_RECURSIVE_DEPENDS:M${PKG_PHASE})
-_BLNK_DEPENDS_LIST= ${_BLNK_RECURSIVE_DEPENDS}
-.else
-_BLNK_DEPENDS_LIST= ${_BLNK_DEPENDS}
-.endif
-
-# Add the proper dependency on each package pulled in by buildlink3.mk
-# files. BUILDLINK_DEPMETHOD.<pkg> contains a list of either "full" or
-# "build", and if any of that list is "full" then we use a full dependency
-# on <pkg>, otherwise we use a build dependency on <pkg>.
-#
-_BLNK_ADD_TO.DEPENDS= # empty
-_BLNK_ADD_TO.BUILD_DEPENDS= # empty
-_BLNK_ADD_TO.RECOMMENDED= # empty
-.for _pkg_ in ${_BLNK_DEPENDS_LIST}
-. if !empty(BUILDLINK_DEPMETHOD.${_pkg_}:Mfull)
-_BLNK_DEPMETHOD.${_pkg_}= _BLNK_ADD_TO.DEPENDS
-_BLNK_RECMETHOD.${_pkg_}= _BLNK_ADD_TO.RECOMMENDED
-. elif !empty(BUILDLINK_DEPMETHOD.${_pkg_}:Mbuild)
-_BLNK_DEPMETHOD.${_pkg_}= _BLNK_ADD_TO.BUILD_DEPENDS
-_BLNK_RECMETHOD.${_pkg_}= _BLNK_ADD_TO.BUILD_DEPENDS
-. endif
-. if defined(BUILDLINK_DEPENDS.${_pkg_}) && \
- defined(BUILDLINK_PKGSRCDIR.${_pkg_})
-. for _depend_ in ${BUILDLINK_DEPENDS.${_pkg_}}
-. if empty(${_BLNK_DEPMETHOD.${_pkg_}}:M${_depend_}\:*)
-${_BLNK_DEPMETHOD.${_pkg_}}+= ${_depend_}:${BUILDLINK_PKGSRCDIR.${_pkg_}}
-. endif
-. endfor
-. endif
-. if defined(BUILDLINK_RECOMMENDED.${_pkg_}) && \
- defined(BUILDLINK_PKGSRCDIR.${_pkg_})
-. for _rec_ in ${BUILDLINK_RECOMMENDED.${_pkg_}}
-. if empty(${_BLNK_RECMETHOD.${_pkg_}}:M${_rec_}\:*)
-${_BLNK_RECMETHOD.${_pkg_}}+= ${_rec_}:${BUILDLINK_PKGSRCDIR.${_pkg_}}
-. endif
-. endfor
-. endif
-.endfor
-.for _depmethod_ in DEPENDS BUILD_DEPENDS RECOMMENDED
-. if !empty(_BLNK_ADD_TO.${_depmethod_})
-${_depmethod_}+= ${_BLNK_ADD_TO.${_depmethod_}}
-. endif
-.endfor # _BLNK_DEPENDS_LIST
-
-###
-### BEGIN: after "wrapper" phase
-###
-.if !empty(PHASES_AFTER_WRAPPER:M${PKG_PHASE})
-
-# Generate default values for:
-#
-# _BLNK_PKG_DBDIR.<pkg> contains all of the package metadata
-# files for <pkg>
-#
-# _BLNK_PKG_INFO.<pkg> pkg_info(1) with correct dbdir to get
-# information for <pkg>
-#
-# BUILDLINK_PKGNAME.<pkg> the name of the package
-#
-# BUILDLINK_IS_DEPOT.<pkg> "yes" or "no" for whether <pkg> is a
-# depoted package.
-#
-# BUILDLINK_PREFIX.<pkg> contains all of the installed files
-# for <pkg>
-#
-# BUILDLINK_CFLAGS.<pkg>,
-# BUILDLINK_CPPFLAGS.<pkg>,
-# BUILDLINK_LDFLAGS.<pkg> contain extra compiler options, -D..., -I...
-# and -L.../-Wl,-R options to be passed to the
-# compiler/linker so that building against
-# <pkg> will work.
-#
-# BUILDLINK_LIBS.<pkg> contain -l... (library) options that can be
-# automatically appended to the LIBS
-# variable when building against <pkg>.
-#
-# BUILDLINK_AUTO_VARS.<pkg> "yes" or "no" for whether BUILDLINK_{CFLAGS,
-# CPPFLAGS,LDFLAGS,LIBS}.<pkg> should
-# automatically be appended their respective
-# variables. Defaults to "yes".
-#
-# BUILDLINK_INCDIRS.<pkg>,
-# BUILDLINK_LIBDIRS.<pkg>,
-# BUILDLINK_RPATHDIRS.<pkg> subdirectories of BUILDLINK_PREFIX.<pkg>
-# that should be added to the
-# compiler/linker search paths; these
-# directories are checked to see if they
-# exist before they're added to the search
-# paths.
-#
-.for _pkg_ in ${_BLNK_PACKAGES}
-#
-# If we're using the built-in package, then provide sensible defaults.
-#
-USE_BUILTIN.${_pkg_}?= no
-. if !empty(USE_BUILTIN.${_pkg_}:M[yY][eE][sS])
-_BLNK_PKG_DBDIR.${_pkg_}?= _BLNK_PKG_DBDIR.${_pkg_}_not_found
-_BLNK_PKG_INFO.${_pkg_}?= ${TRUE}
-BUILDLINK_PKGNAME.${_pkg_}?= ${_pkg_}
-BUILDLINK_IS_DEPOT.${_pkg_}?= no
-BUILDLINK_PREFIX.${_pkg_}?= /usr
-. endif
-#
-# Set a default for _BLNK_PKG_DBDIR.<pkg>, which is the directory
-# containing the package metadata.
-#
-. if !defined(_BLNK_PKG_DBDIR.${_pkg_})
-_BLNK_PKG_DBDIR.${_pkg_}?= # empty
-. for _depend_ in ${BUILDLINK_DEPENDS.${_pkg_}}
-. if empty(_BLNK_PKG_DBDIR.${_pkg_}:M*not_found)
-_BLNK_PKG_DBDIR.${_pkg_}!= \
- dir=""; \
- if [ -d ${_PKG_DBDIR} ]; then \
- dir=`cd ${_PKG_DBDIR}; ${PKG_ADMIN} -S lsbest "${_depend_}" || ${TRUE}`; \
- fi; \
- case "$$dir" in \
- "") dir="_BLNK_PKG_DBDIR.${_pkg_}_not_found" ;; \
- *) if [ -f $$dir/+DEPOT ]; then \
- dir=`${HEAD} -1 $$dir/+DEPOT`; \
- fi ;; \
- esac; \
- ${ECHO} $$dir
-. endif
-. endfor
-. endif
-. if empty(_BLNK_PKG_DBDIR.${_pkg_}:M*not_found)
-MAKEVARS+= _BLNK_PKG_DBDIR.${_pkg_}
-. endif
-
-. if empty(_BLNK_PKG_DBDIR.${_pkg_}:M*not_found)
-_BLNK_PKG_INFO.${_pkg_}?= ${PKG_INFO_CMD} -K ${_BLNK_PKG_DBDIR.${_pkg_}:H}
-. else
-_BLNK_PKG_INFO.${_pkg_}?= ${PKG_INFO_CMD} -K ${_PKG_DBDIR}
-. endif
-
-BUILDLINK_PKGNAME.${_pkg_}?= ${_BLNK_PKG_DBDIR.${_pkg_}:T}
-. if exists(${_BLNK_PKG_DBDIR.${_pkg_}}/+VIEWS)
-BUILDLINK_IS_DEPOT.${_pkg_}?= yes
-. else
-BUILDLINK_IS_DEPOT.${_pkg_}?= no
-. endif
-#
-# Set BUILDLINK_PREFIX.<pkg> to the "PREFIX" value for the package.
-#
-. if !defined(BUILDLINK_PREFIX.${_pkg_})
-. if !empty(BUILDLINK_IS_DEPOT.${_pkg_}:M[yY][eE][sS])
-BUILDLINK_PREFIX.${_pkg_}= ${_BLNK_PKG_DBDIR.${_pkg_}}
-. else
-. if empty(BUILDLINK_PKGNAME.${_pkg_}:M*not_found)
-BUILDLINK_PREFIX.${_pkg_}!= \
- ${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} | ${SED} -e "s,^[^/]*,,;q"
-. else
-BUILDLINK_PREFIX.${_pkg_}= BUILDLINK_PREFIX.${_pkg_}_not_found
-. endif
-. endif
-. endif
-. if empty(BUILDLINK_PREFIX.${_pkg_}:M*not_found)
-MAKEVARS+= BUILDLINK_PREFIX.${_pkg_}
-. endif
-
-BUILDLINK_AUTO_VARS.${_pkg_}?= yes
-BUILDLINK_CPPFLAGS.${_pkg_}?= # empty
-BUILDLINK_LDFLAGS.${_pkg_}?= # empty
-BUILDLINK_LIBS.${_pkg_}?= # empty
-BUILDLINK_INCDIRS.${_pkg_}?= include
-BUILDLINK_LIBDIRS.${_pkg_}?= lib${LIBABISUFFIX}
-. if !empty(BUILDLINK_DEPMETHOD.${_pkg_}:Mfull)
-BUILDLINK_RPATHDIRS.${_pkg_}?= ${BUILDLINK_LIBDIRS.${_pkg_}}
-. else
-BUILDLINK_RPATHDIRS.${_pkg_}?= # empty
-. endif
-.endfor
-
-# BUILDLINK_CPPFLAGS, BUILDLINK_LDFLAGS, and BUILDLINK_LIBS contain the
-# proper -I..., -L.../-Wl,-R..., and -l... options to be passed to the
-# compiler and linker to find the headers and libraries for the various
-# packages at configure/build time. BUILDLINK_CFLAGS contains any special
-# compiler options needed when building against the various packages.
-#
-BUILDLINK_CPPFLAGS= # empty
-BUILDLINK_LDFLAGS= # empty
-BUILDLINK_LIBS= # empty
-BUILDLINK_CFLAGS= # empty
-
-.for _pkg_ in ${_BLNK_PACKAGES}
-. if !empty(BUILDLINK_AUTO_VARS.${_pkg_}:M[yY][eE][sS])
-. for _flag_ in ${BUILDLINK_CPPFLAGS.${_pkg_}}
-. if empty(BUILDLINK_CPPFLAGS:M${_flag_})
-BUILDLINK_CPPFLAGS+= ${_flag_}
-. endif
-. endfor
-. for _flag_ in ${BUILDLINK_LDFLAGS.${_pkg_}}
-. if empty(BUILDLINK_LDFLAGS:M${_flag_})
-BUILDLINK_LDFLAGS+= ${_flag_}
-. endif
-. endfor
-. for _flag_ in ${BUILDLINK_CFLAGS.${_pkg_}}
-. if empty(BUILDLINK_CFLAGS:M${_flag_})
-BUILDLINK_CFLAGS+= ${_flag_}
-. endif
-. endfor
-. for _flag_ in ${BUILDLINK_LIBS.${_pkg_}}
-. if empty(BUILDLINK_LIBS:M${_flag_})
-BUILDLINK_LIBS+= ${_flag_}
-. endif
-. endfor
-. endif
-. if !empty(BUILDLINK_INCDIRS.${_pkg_})
-. for _dir_ in ${BUILDLINK_INCDIRS.${_pkg_}:S/^/${BUILDLINK_PREFIX.${_pkg_}}\//}
-. if exists(${_dir_})
-. if empty(BUILDLINK_CPPFLAGS:M-I${_dir_})
-BUILDLINK_CPPFLAGS+= -I${_dir_}
-. endif
-. endif
-. endfor
-. endif
-. if !empty(BUILDLINK_LIBDIRS.${_pkg_})
-. for _dir_ in ${BUILDLINK_LIBDIRS.${_pkg_}:S/^/${BUILDLINK_PREFIX.${_pkg_}}\//}
-. if exists(${_dir_})
-. if empty(BUILDLINK_LDFLAGS:M-L${_dir_})
-BUILDLINK_LDFLAGS+= -L${_dir_}
-. endif
-. endif
-. endfor
-. endif
-. if !empty(BUILDLINK_RPATHDIRS.${_pkg_})
-. for _dir_ in ${BUILDLINK_RPATHDIRS.${_pkg_}:S/^/${BUILDLINK_PREFIX.${_pkg_}}\//}
-. if exists(${_dir_})
-. if empty(BUILDLINK_LDFLAGS:M${COMPILER_RPATH_FLAG}${_dir_})
-BUILDLINK_LDFLAGS+= ${COMPILER_RPATH_FLAG}${_dir_}
-. endif
-. endif
-. endfor
-. endif
-.endfor
-#
-# Add the depot directory library directory for this package to the
-# runtime library search path.
-#
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-. if empty(BUILDLINK_LDFLAGS:M${COMPILER_RPATH_FLAG}${PREFIX}/lib)
-BUILDLINK_LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib
-. endif
-.endif
-#
-# Add the default view library directories to the runtime library search
-# path so that wildcard dependencies on library packages can always be
-# fulfilled through the default view.
-#
-.for _pkg_ in ${_BLNK_PACKAGES}
-. if !empty(BUILDLINK_RPATHDIRS.${_pkg_})
-. for _dir_ in ${BUILDLINK_RPATHDIRS.${_pkg_}:S/^/${LOCALBASE}\//}
-. if exists(${_dir_})
-. if empty(BUILDLINK_LDFLAGS:M${COMPILER_RPATH_FLAG}${_dir_})
-BUILDLINK_LDFLAGS+= ${COMPILER_RPATH_FLAG}${_dir_}
-. endif
-. endif
-. endfor
-. endif
-.endfor
-#
-# Ensure that ${LOCALBASE}/lib is in the runtime library search path.
-#
-.if empty(BUILDLINK_LDFLAGS:M${COMPILER_RPATH_FLAG}${LOCALBASE}/lib)
-BUILDLINK_LDFLAGS+= ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib
-.endif
-#
-# Add the X11 library directory to the library search paths if the package
-# uses X11.
-#
-.if defined(USE_X11)
-. if empty(BUILDLINK_LDFLAGS:M-L${X11BASE}/lib${LIBABISUFFIX})
-BUILDLINK_LDFLAGS+= -L${X11BASE}/lib${LIBABISUFFIX}
-. endif
-. if empty(BUILDLINK_LDFLAGS:M${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX})
-BUILDLINK_LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX}
-. endif
-.endif
-
-CFLAGS?= # empty
-CPPFLAGS?= # empty
-CXXFLAGS?= # empty
-LDFLAGS?= # empty
-LIBS?= # empty
-
-.for _flag_ in ${BUILDLINK_CFLAGS}
-. if empty(CFLAGS:M${_flag_})
-CFLAGS+= ${_flag_}
-. endif
-. if empty(CXXFLAGS:M${_flag_})
-CXXFLAGS+= ${_flag_}
-. endif
-.endfor
-#
-# We add BUILDLINK_CPPFLAGS to both CFLAGS and CXXFLAGS since much software
-# ignores the value of CPPFLAGS that we set in the environment.
-#
-.for _flag_ in ${BUILDLINK_CPPFLAGS}
-. if empty(CPPFLAGS:M${_flag_})
-CPPFLAGS+= ${_flag_}
-. endif
-. if empty(CFLAGS:M${_flag_})
-CFLAGS+= ${_flag_}
-. endif
-. if empty(CXXFLAGS:M${_flag_})
-CXXFLAGS+= ${_flag_}
-. endif
-.endfor
-.for _flag_ in ${BUILDLINK_LDFLAGS}
-. if empty(LDFLAGS:M${_flag_})
-LDFLAGS+= ${_flag_}
-. endif
-.endfor
-.for _flag_ in ${BUILDLINK_LIBS}
-. if empty(LIBS:M${_flag_})
-LIBS+= ${_flag_}
-. endif
-.endfor
-
-# Create the buildlink include and lib directories so that the Darwin
-# compiler/linker won't complain verbosely (on stdout, even!) when
-# those directories are passed as sub-arguments of -I and -L. Also,
-# create the buildlink bin directory for use by packages that need to
-# drop off a buildlink wrapper for an installed binary or script.
-#
-.PHONY: buildlink-directories
-do-buildlink: buildlink-directories
-buildlink-directories:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_BINDIR}
-.if defined(USE_X11)
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${BUILDLINK_X11_DIR}
- ${_PKG_SILENT}${_PKG_DEBUG}${LN} -sf ${BUILDLINK_DIR} ${BUILDLINK_X11_DIR}
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}/include
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}/lib${LIBABISUFFIX}
-
-# The following variables are all optionally defined and control which
-# package files are symlinked into ${BUILDLINK_DIR} and how their names
-# are transformed during the symlinking:
-#
-# BUILDLINK_FILES.<pkg>
-# shell glob pattern relative to ${BUILDLINK_PREFIX.<pkg>} to be
-# symlinked into ${BUILDLINK_DIR}, e.g. include/*.h
-#
-# BUILDLINK_FILES_CMD.<pkg>
-# shell pipeline that outputs to stdout a list of files relative
-# to ${BUILDLINK_PREFIX.<pkg>}. The resulting files are to be
-# symlinked into ${BUILDLINK_DIR}. By default, this takes the
-# +CONTENTS of a <pkg> and filters it through
-# ${BUILDLINK_CONTENTS_FILTER.<pkg>}.
-#
-# BUILDLINK_CONTENTS_FILTER.<pkg>
-# filter command that filters +CONTENTS input into a list of files
-# relative to ${BUILDLINK_PREFIX.<pkg>} on stdout. By default for
-# overwrite packages, BUILDLINK_CONTENTS_FILTER.<pkg> outputs the
-# contents of the include and lib directories in the package
-# +CONTENTS, and for pkgviews packages, it outputs any libtool
-# archives in lib directories.
-#
-# BUILDLINK_TRANSFORM.<pkg>
-# sed arguments used to transform the name of the source filename
-# into a destination filename, e.g. -e "s|/curses.h|/ncurses.h|g"
-#
-.for _pkg_ in ${_BLNK_PACKAGES}
-_BLNK_COOKIE.${_pkg_}= ${BUILDLINK_DIR}/.buildlink_${_pkg_}_done
-
-_BLNK_TARGETS+= buildlink-${_pkg_}
-_BLNK_TARGETS.${_pkg_}= buildlink-${_pkg_}-message
-_BLNK_TARGETS.${_pkg_}+= ${_BLNK_COOKIE.${_pkg_}}
-_BLNK_TARGETS.${_pkg_}+= buildlink-${_pkg_}-cookie
-
-.ORDER: ${_BLNK_TARGETS.${_pkg_}}
-
-.PHONY: buildlink-${_pkg_}
-buildlink-${_pkg_}: ${_BLNK_TARGETS.${_pkg_}}
-
-.PHONY: buildlink-${_pkg_}-message
-buildlink-${_pkg_}-message:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO_BUILDLINK_MSG} "=> Linking ${_pkg_} files into ${BUILDLINK_DIR}."
-
-.PHONY: buildlink-${_pkg_}-cookie
-buildlink-${_pkg_}-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${TOUCH} ${TOUCH_FLAGS} ${_BLNK_COOKIE.${_pkg_}}
-
-. if (${PKG_INSTALLATION_TYPE} == "pkgviews") && \
- !empty(BUILDLINK_IS_DEPOT.${_pkg_}:M[yY][eE][sS])
-BUILDLINK_CONTENTS_FILTER.${_pkg_}?= \
- ${EGREP} 'lib(/pkgconfig/.*\.pc$$|.*/lib[^/]*\.la$$)'
-. else
-BUILDLINK_CONTENTS_FILTER.${_pkg_}?= \
- ${EGREP} '(include.*/|\.h$$|\.idl$$|\.pc$$|/lib[^/]*\.[^/]*$$)'
-. endif
-BUILDLINK_FILES_CMD.${_pkg_}?= \
- ${_BLNK_PKG_INFO.${_pkg_}} -f ${BUILDLINK_PKGNAME.${_pkg_}} | \
- ${SED} -n '/File:/s/^[ ]*File:[ ]*//p' | \
- ${BUILDLINK_CONTENTS_FILTER.${_pkg_}} | ${CAT}
-
-# _BLNK_FILES_CMD.<pkg> combines BUILDLINK_FILES_CMD.<pkg> and
-# BUILDLINK_FILES.<pkg> into one command that outputs all of the files
-# for <pkg> relative to ${BUILDLINK_PREFIX.<pkg>}.
-#
-_BLNK_FILES_CMD.${_pkg_}= (
-_BLNK_FILES_CMD.${_pkg_}+= ${BUILDLINK_FILES_CMD.${_pkg_}};
-.for _filepattern_ in ${BUILDLINK_FILES.${_pkg_}}
-_BLNK_FILES_CMD.${_pkg_}+= ${LS} -1 ${_filepattern_} 2>/dev/null || ${TRUE};
-.endfor
-_BLNK_FILES_CMD.${_pkg_}+= )
-_BLNK_FILES_CMD.${_pkg_}+= | ${SORT} -u
-
-${_BLNK_COOKIE.${_pkg_}}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case ${BUILDLINK_PREFIX.${_pkg_}} in \
- *not_found) \
- ${ECHO} "${_pkg_} is not installed; can't buildlink files."; \
- ${FALSE}; \
- ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case ${BUILDLINK_PREFIX.${_pkg_}} in \
- ${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \
- *) buildlink_dir="${BUILDLINK_DIR}" ;; \
- esac; \
- cd ${BUILDLINK_PREFIX.${_pkg_}}; \
- ${_BLNK_FILES_CMD.${_pkg_}} | \
- while read file; do \
- src="${BUILDLINK_PREFIX.${_pkg_}}/$$file"; \
- if [ ! -f "$$src" ]; then \
- msg="$$src: not found"; \
- else \
- if [ -z "${BUILDLINK_TRANSFORM.${_pkg_}:Q}" ]; then \
- dest="$$buildlink_dir/$$file"; \
- msg="$$src"; \
- else \
- dest="$$buildlink_dir/$$file"; \
- dest=`${ECHO} $$dest | ${SED} ${BUILDLINK_TRANSFORM.${_pkg_}}`; \
- msg="$$src -> $$dest"; \
- fi; \
- dir=`${DIRNAME} "$$dest"`; \
- if [ ! -d "$$dir" ]; then \
- ${MKDIR} "$$dir"; \
- fi; \
- ${RM} -f "$$dest"; \
- case "$$src" in \
- *.la) \
- ${CAT} "$$src" | \
- ${_BLNK_LT_ARCHIVE_FILTER.${_pkg_}} \
- > "$$dest"; \
- msg="$$msg (created)"; \
- ;; \
- *) \
- ${LN} -sf "$$src" "$$dest"; \
- ;; \
- esac; \
- fi; \
- ${ECHO} "$$msg" >> ${.TARGET}; \
- done
-
-# _BLNK_LT_ARCHIVE_FILTER.${_pkg_} is a command-line filter used in
-# the previous target for transforming libtool archives (*.la) to
-# allow libtool to properly interact with buildlink at link time by
-# linking against the libraries pointed to by symlinks in ${BUILDLINK_DIR}.
-#
-_BLNK_LT_ARCHIVE_FILTER.${_pkg_}= \
- ${SED} ${_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}}
-
-_BLNK_SEP= \ \`\"':;,
-_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}= # empty
-#
-# Modify the dependency_libs line by changing all full paths to other *.la
-# files into the canonical ${BUILDLINK_DIR} path.
-#
-_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)/usr\(/lib/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)/usr\(/lib/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)${DEPOTBASE}/[^/${_BLNK_SEP}]*\(/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)${DEPOTBASE}/[^/${_BLNK_SEP}]*\(/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)${X11BASE}\(/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}}\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)${X11BASE}\(/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}}\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)${LOCALBASE}\(/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)${LOCALBASE}\(/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}\\2,g"
-#
-# Modify the dependency_libs line by removing -L/usr/lib, which is implied.
-#
-_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L/usr/lib\([${_BLNK_SEP}]\),\\1\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L/usr/lib\([${_BLNK_SEP}]\),\\1\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L/usr/lib/\.\([${_BLNK_SEP}]\),\\1\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L/usr/lib/\.\([${_BLNK_SEP}]\),\\1\\2,g"
-#
-# Modify the dependency_libs line by removing -L${LOCALBASE}/* and
-# -L${X11BASE}/*, since those are automatically added by the buildlink3.mk
-# files.
-#
-_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L${X11BASE}/[^${_BLNK_SEP}]*\([${_BLNK_SEP}]\),\\1\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L${X11BASE}/[^${_BLNK_SEP}]*\([${_BLNK_SEP}]\),\\1\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L${LOCALBASE}/[^${_BLNK_SEP}]*\([${_BLNK_SEP}]\),\\1\\2,g" \
- -e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L${LOCALBASE}/[^${_BLNK_SEP}]*\([${_BLNK_SEP}]\),\\1\\2,g"
-#
-# Unmangle.
-#
-_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
- -e "/^dependency_libs=/s,${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}},${BUILDLINK_DIR},g" \
- -e "/^dependency_libs=/s,${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}},${BUILDLINK_X11_DIR},g"
-#
-# Modify the dependency_libs line by cleaning up any leading and trailing
-# whitespace.
-#
-_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
- -e "/^dependency_libs=/s,^\(dependency_libs='\) *,\\1,g" \
- -e "/^dependency_libs=/s, *'$$,',g"
-#
-# Modify the libdir line to point to within ${BUILDLINK_DIR}.
-# This prevents libtool from looking into the original directory
-# for other *.la files.
-#
-. if (${PKG_INSTALLATION_TYPE} == "overwrite") || \
- !empty(BUILDLINK_IS_DEPOT.${_pkg_}:M[nN][oO])
-_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
- -e "/^libdir=/s,/usr\(/lib/[^${_BLNK_SEP}]*\),${BUILDLINK_DIR}\\1,g" \
- -e "/^libdir=/s,${DEPOTBASE}/[^/${_BLNK_SEP}]*\(/[^${_BLNK_SEP}]*\),${BUILDLINK_DIR}\\1,g" \
- -e "/^libdir=/s,${X11BASE}\(/[^${_BLNK_SEP}]*\),${BUILDLINK_X11_DIR}\\1,g" \
- -e "/^libdir=/s,${LOCALBASE}\(/[^${_BLNK_SEP}]*\),${BUILDLINK_DIR}\\1,g"
-. endif
-.endfor
-
-# Include any BUILDLINK_TARGETS provided in buildlink3.mk files in
-# _BLNK_TARGETS.
-#
-_BLNK_TARGETS+= ${BUILDLINK_TARGETS}
-
-# Add each of the targets in _BLNK_TARGETS as a prerequisite for the
-# do-buildlink target. This ensures that all the buildlink magic happens
-# before any configure or build commands are called.
-#
-.for _target_ in ${_BLNK_TARGETS}
-do-buildlink: ${_target_}
-.endfor
-
-# _BLNK_PASSTHRU_DIRS contains the list of directories which we allow in
-# preprocessor's header, linker's library, or the runtime library
-# search paths. The values of this list represent entire directory
-# trees under each named directory. Package makefiles may add to
-# its value through ${BUILDLINK_PASSTHRU_DIRS}.
-#
-# _BLNK_PASSTHRU_RPATHDIRS contains an extra list of directories which we
-# allow in the runtime library search paths. Package makefiles may
-# add to its value through ${BUILDLINK_PASSTHRU_RPATHDIRS}.
-#
-_BLNK_PASSTHRU_DIRS= # empty
-_BLNK_PASSTHRU_RPATHDIRS= # empty
-#
-# Allow all of the depot directories for packages whose headers and
-# libraries we use.
-#
-.for _pkg_ in ${_BLNK_PACKAGES}
-. if !empty(BUILDLINK_IS_DEPOT.${_pkg_}:M[yY][eE][sS])
-_BLNK_PASSTHRU_DIRS+= ${BUILDLINK_PREFIX.${_pkg_}}
-. endif
-.endfor
-#
-# Allow the depot directory for the package we're building.
-#
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-_BLNK_PASSTHRU_DIRS+= ${PREFIX}
-.endif
-#
-# Allow any directories specified by the package or user.
-#
-_BLNK_PASSTHRU_DIRS+= ${BUILDLINK_PASSTHRU_DIRS}
-#
-# Strip out /usr, /usr/include, and /usr/lib as they're always
-# automatically added to all of the search paths. Also strip out
-# ${LOCALBASE} and ${X11BASE} to prevent silly mistakes.
-#
-_BLNK_PASSTHRU_DIRS:= ${_BLNK_PASSTHRU_DIRS:N/usr:N/usr/lib:N/usr/include:N${LOCALBASE}:N${X11BASE}}
-#
-# Allow all directories in the library subdirectories listed for each
-# package to be in the runtime library search path.
-#
-.for _pkg_ in ${_BLNK_PACKAGES}
-. if !empty(BUILDLINK_IS_DEPOT.${_pkg_}:M[nN][oO])
-. if !empty(BUILDLINK_LIBDIRS.${_pkg_})
-. for _dir_ in ${BUILDLINK_LIBDIRS.${_pkg_}}
-. if exists(${BUILDLINK_PREFIX.${_pkg_}}/${_dir_})
-_BLNK_PASSTHRU_RPATHDIRS+= ${BUILDLINK_PREFIX.${_pkg_}}/${_dir_}
-. endif
-. endfor
-. endif
-. endif
-.endfor
-#
-# Always allow ${LOCALBASE}/lib in the runtime library search path so
-# that wildcard dependencies work correctly when installing from binary
-# packages.
-#
-_BLNK_PASSTHRU_RPATHDIRS+= ${LOCALBASE}/lib
-#
-# Allow ${X11BASE}/lib in the runtime library search path for USE_X11
-# packages so that X11 libraries can be found.
-#
-.if defined(USE_X11)
-_BLNK_PASSTHRU_RPATHDIRS+= ${X11BASE}/lib
-.endif
-#
-# Allow any directories specified by the package or user.
-#
-_BLNK_PASSTHRU_RPATHDIRS+= ${BUILDLINK_PASSTHRU_RPATHDIRS}
-#
-# Strip out /usr/lib as it's always automatically in the runtime library
-# search path.
-#
-_BLNK_PASSTHRU_RPATHDIRS:= ${_BLNK_PASSTHRU_RPATHDIRS:N/usr/lib}
-
-_BLNK_MANGLE_DIRS= # empty
-_BLNK_MANGLE_DIRS+= ${BUILDLINK_DIR}
-_BLNK_MANGLE_DIRS+= ${BUILDLINK_X11_DIR}
-_BLNK_MANGLE_DIRS+= ${WRKDIR}
-_BLNK_MANGLE_DIRS+= ${_BLNK_PASSTHRU_DIRS}
-_BLNK_MANGLE_DIRS+= ${_BLNK_PASSTHRU_RPATHDIRS}
-_BLNK_MANGLE_DIRS+= /usr/include
-_BLNK_MANGLE_DIRS+= /usr/lib
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-_BLNK_MANGLE_DIRS+= ${PREFIX}
-.endif
-_BLNK_MANGLE_DIRS+= ${LOCALBASE}
-.if defined(USE_X11)
-_BLNK_MANGLE_DIRS+= ${X11BASE}
-.endif
-
-_BLNK_MANGLE_START= _bUiLdLiNk_
-_BLNK_MANGLE_END= \#
-.for _dir_ in ${_BLNK_MANGLE_DIRS}
-_BLNK_MANGLE_DIR.${_dir_}= \
- ${_BLNK_MANGLE_START}${_dir_:S/\//_/g}${_BLNK_MANGLE_END}
-.endfor
-_BLNK_MANGLE_SED_PATTERN= \
- ${_BLNK_MANGLE_START}[^/ ${_BLNK_MANGLE_END}]*${_BLNK_MANGLE_END}
-
-_BLNK_PROTECT_DIRS= # empty
-_BLNK_UNPROTECT_DIRS= # empty
-
-_BLNK_PROTECT_DIRS+= ${BUILDLINK_DIR}
-_BLNK_PROTECT_DIRS+= ${BUILDLINK_X11_DIR}
-_BLNK_PROTECT_DIRS+= ${WRKDIR}
-_BLNK_PROTECT_DIRS+= ${_BLNK_PASSTHRU_DIRS}
-
-_BLNK_UNPROTECT_DIRS+= /usr/include
-_BLNK_UNPROTECT_DIRS+= /usr/lib
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-_BLNK_UNPROTECT_DIRS+= ${PREFIX}
-.endif
-_BLNK_UNPROTECT_DIRS+= ${LOCALBASE}
-.if defined(USE_X11)
-_BLNK_UNPROTECT_DIRS+= ${X11BASE}
-.endif
-_BLNK_UNPROTECT_DIRS+= ${_BLNK_PASSTHRU_DIRS}
-_BLNK_UNPROTECT_DIRS+= ${WRKDIR}
-_BLNK_UNPROTECT_DIRS+= ${BUILDLINK_X11_DIR}
-_BLNK_UNPROTECT_DIRS+= ${BUILDLINK_DIR}
-
-# Resolve some important directories to their phyiscal paths as symlinks
-# tend to confuse buildlink3.
-#
-_BLNK_PHYSICAL_PATH_VARS?= WRKDIR LOCALBASE
-.for _var_ in ${_BLNK_PHYSICAL_PATH_VARS}
-. if !defined(_BLNK_PHYSICAL_PATH.${_var_})
-_BLNK_PHYSICAL_PATH.${_var_}!= \
- if [ -d ${${_var_}} ]; then \
- cd ${${_var_}}; ${PWD_CMD}; \
- else \
- ${ECHO} ${${_var_}}; \
- fi
-. endif
-MAKEVARS+= _BLNK_PHYSICAL_PATH.${_var_}
-.endfor
-
-# Transform all references to the physical paths to some important
-# directories into their given names.
-#
-.for _var_ in ${_BLNK_PHYSICAL_PATH_VARS}
-. if (${_BLNK_PHYSICAL_PATH.${_var_}} != ${${_var_}}) && \
- empty(${_var_}:M${_BLNK_PHYSICAL_PATH.${_var_}}/*)
-_BLNK_TRANSFORM+= mangle:${_BLNK_PHYSICAL_PATH.${_var_}}:${${_var_}}
-. endif
-.endfor
-#
-# Strip trailing /. from options.
-#
-_BLNK_TRANSFORM+= strip-slashdot:
-#
-# Protect work directories and the dependency directories from all the
-# transformations we're about to do.
-#
-.for _dir_ in ${_BLNK_PROTECT_DIRS}
-_BLNK_TRANSFORM+= mangle:${_dir_}:${_BLNK_MANGLE_DIR.${_dir_}}
-.endfor
-#
-# Protect -I/usr/include/* and -L/usr/lib/* from transformations (these
-# aren't part of the normal header or library search paths).
-#
-_BLNK_TRANSFORM+= opt-sub:-I/usr/include:-I${_BLNK_MANGLE_DIR./usr/include}
-_BLNK_TRANSFORM+= opt-sub:-L/usr/lib:-L${_BLNK_MANGLE_DIR./usr/lib}
-#
-# Change any buildlink directories in runtime library search paths into
-# the canonical actual installed paths.
-#
-_BLNK_TRANSFORM+= rpath:${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}:${LOCALBASE}
-.if defined(USE_X11)
-_BLNK_TRANSFORM+= rpath:${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}}:${X11BASE}
-.endif
-#
-# Protect some directories that we allow to be specified for the runtime
-# library search path.
-#
-.for _dir_ in ${_BLNK_PASSTHRU_DIRS} ${_BLNK_PASSTHRU_RPATHDIRS}
-_BLNK_TRANSFORM+= rpath:${_dir_}:${_BLNK_MANGLE_DIR.${_dir_}}
-.endfor
-#
-# Protect /usr/lib/* as they're all allowed to be specified for the
-# runtime library search path.
-#
-_BLNK_TRANSFORM+= sub-rpath:/usr/lib:${_BLNK_MANGLE_DIR./usr/lib}
-#
-# Change references to ${DEPOTBASE}/<pkg> into ${LOCALBASE} so that
-# "overwrite" packages think headers and libraries for "pkgviews" packages
-# are just found in the default view.
-#
-.if ${PKG_INSTALLATION_TYPE} == "overwrite"
-_BLNK_TRANSFORM+= depot:${DEPOTBASE}:${LOCALBASE}
-.endif
-#
-# Convert direct paths to static libraries and libtool archives in
-# ${LOCALBASE} or ${X11BASE} into references into ${BUILDLINK_DIR}.
-#
-.if ${PKG_INSTALLATION_TYPE} == "overwrite"
-. if defined(USE_X11)
-_BLNK_TRANSFORM+= P:${X11BASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}}
-. endif
-_BLNK_TRANSFORM+= P:${LOCALBASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}
-.endif
-#
-# Transform references into ${X11BASE} into ${BUILDLINK_X11_DIR}.
-#
-.if defined(USE_X11)
-_BLNK_TRANSFORM+= I:${X11BASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}}
-_BLNK_TRANSFORM+= L:${X11BASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}}
-.endif
-#
-# Transform references into ${LOCALBASE} into ${BUILDLINK_DIR}.
-#
-.if ${PKG_INSTALLATION_TYPE} == "overwrite"
-_BLNK_TRANSFORM+= I:${LOCALBASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}
-_BLNK_TRANSFORM+= L:${LOCALBASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}
-.endif
-#
-# Protect any remaining references to ${PREFIX}, ${LOCALBASE}, or ${X11BASE}.
-#
-.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
-_BLNK_TRANSFORM+= untransform:sub-mangle:${PREFIX}:${_BLNK_MANGLE_DIR.${PREFIX}}
-.endif
-_BLNK_TRANSFORM+= untransform:sub-mangle:${LOCALBASE}:${_BLNK_MANGLE_DIR.${LOCALBASE}}
-.if defined(USE_X11)
-_BLNK_TRANSFORM+= untransform:sub-mangle:${X11BASE}:${_BLNK_MANGLE_DIR.${X11BASE}}
-.endif
-#
-# Add any package specified transformations (l:, etc.)
-#
-_BLNK_TRANSFORM+= ${BUILDLINK_TRANSFORM}
-#
-# Explicitly remove everything else that's an absolute path, since we've
-# already protected the ones we care about.
-#
-_BLNK_TRANSFORM+= no-abspath
-#
-# Undo the protection for the directories that we allow to be specified
-# for the runtime library search path.
-#
-.for _dir_ in ${_BLNK_PASSTHRU_DIRS} ${_BLNK_PASSTHRU_RPATHDIRS}
-_BLNK_TRANSFORM+= rpath:${_BLNK_MANGLE_DIR.${_dir_}}:${_dir_}
-.endfor
-#
-# Undo the protection so the correct directory names are passed to the
-# the wrappee.
-#
-.for _dir_ in ${_BLNK_UNPROTECT_DIRS}
-_BLNK_TRANSFORM+= mangle:${_BLNK_MANGLE_DIR.${_dir_}}:${_dir_}
-.endfor
-
-WRAPPER_TRANSFORM_CMDS+= ${_BLNK_TRANSFORM}
-
-# Generate wrapper scripts for the compiler tools that sanitize the
-# argument list by converting references to ${LOCALBASE} and ${X11BASE}
-# into references to ${BUILDLINK_DIR} and ${BUILDLINK_X11_DIR}. These
-# wrapper scripts are to be used instead of the actual compiler tools when
-# building software.
-#
-.if defined(USE_LIBTOOL)
-WRAPPEES+= LIBTOOL
-WRAPPEES+= SHLIBTOOL
-_LIBTOOL= ${WRAPPER_LIBTOOL}
-_SHLIBTOOL= ${WRAPPER_SHLIBTOOL}
-.endif
-_WRAP_ALIASES.LIBTOOL= libtool
-_WRAP_ALIASES.SHLIBTOOL= shlibtool
-_WRAP_ENV.LIBTOOL= PATH="${WRAPPER_BINDIR}:${_WRAP_PATH}"; export PATH
-_WRAP_ENV.SHLIBTOOL= ${_WRAP_ENV.LIBTOOL}
-_BLNK_LIBTOOL_FIX_LA= ${WRAPPER_TMPDIR}/libtool-fix-la
-
-# We need to "unbuildlinkify" any libtool archives.
-_BLNK_WRAP_LT_UNTRANSFORM_SED= ${SUBST_SED.unwrap}
-
-# The libtool wrapper should do all of the same transformations as the
-# compiler wrapper since the primary mode of operation of the wrapper
-# assumes it's being in either compiler or link mode.
-#
-_WRAP_ARG_PP.LIBTOOL= ${_WRAP_ARG_PP.CC}
-
-_WRAP_BUILDCMD.LIBTOOL= ${WRAPPER_TMPDIR}/buildcmd-libtool
-_WRAP_CACHE.LIBTOOL= ${WRAPPER_TMPDIR}/cache-libtool
-_WRAP_CACHE_BODY.LIBTOOL= ${WRAPPER_TMPDIR}/cache-body-libtool
-_WRAP_CLEANUP.LIBTOOL= ${WRAPPER_TMPDIR}/cleanup-libtool
-_WRAP_CMD_SINK.LIBTOOL= ${WRAPPER_TMPDIR}/cmd-sink-libtool
-_WRAP_SCAN.LIBTOOL= ${WRAPPER_TMPDIR}/scan-libtool
-_WRAP_TRANSFORM.LIBTOOL= ${WRAPPER_TMPDIR}/transform-libtool
-
-_WRAP_BUILDCMD.SHLIBTOOL= ${_WRAP_BUILDCMD.LIBTOOL}
-_WRAP_CACHE.SHLIBTOOL= ${_WRAP_CACHE.LIBTOOL}
-_WRAP_CACHE_BODY.SHLIBTOOL= ${_WRAP_CACHE_BODY.LIBTOOL}
-_WRAP_CLEANUP.SHLIBTOOL= ${_WRAP_CLEANUP.LIBTOOL}
-_WRAP_CMD_SINK.SHLIBTOOL= ${_WRAP_CMD_SINK.LIBTOOL}
-_WRAP_SCAN.SHLIBTOOL= ${_WRAP_SCAN.LIBTOOL}
-_WRAP_TRANSFORM.SHLIBTOOL= ${_WRAP_TRANSFORM.LIBTOOL}
-
-# Silently pass the appropriate flags to the compiler/linker commands so
-# that headers and libraries in ${BUILDLINK_DIR}/{include,lib} are found
-# before the system headers and libraries.
-#
-_BLNK_CPPFLAGS= -I${BUILDLINK_DIR}/include
-_BLNK_LDFLAGS= -L${BUILDLINK_DIR}/lib
-_WRAP_EXTRA_ARGS.CC+= ${_BLNK_CPPFLAGS} ${_BLNK_LDFLAGS}
-_WRAP_EXTRA_ARGS.CXX+= ${_BLNK_CPPFLAGS} ${_BLNK_LDFLAGS}
-_WRAP_EXTRA_ARGS.CPP+= ${_BLNK_CPPFLAGS}
-_WRAP_EXTRA_ARGS.FC+= ${_BLNK_CPPFLAGS} ${_BLNK_LDFLAGS}
-_WRAP_EXTRA_ARGS.LD+= ${_BLNK_LDFLAGS}
-_WRAP_EXTRA_ARGS.LIBTOOL+= ${_BLNK_LDFLAGS}
-_WRAP_EXTRA_ARGS.SHLIBTOOL+= ${_BLNK_LDFLAGS}
-
-${WRAPPER_TMPDIR}/libtool-fix-la: ${BUILDLINK_SRCDIR}/libtool-fix-la
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${SED} -e "s|@_BLNK_WRAP_LT_UNTRANSFORM_SED@|${_BLNK_WRAP_LT_UNTRANSFORM_SED:Q}|g" \
- -e "s|@BUILDLINK_DIR@|${BUILDLINK_DIR:Q}|g" \
- -e "s|@DEPOTBASE@|${DEPOTBASE:Q}|g" \
- -e "s|@LOCALBASE@|${LOCALBASE:Q}|g" \
- -e "s|@WRKSRC@|${WRKSRC:Q}|g" \
- -e "s|@BASENAME@|${BASENAME:Q}|g" \
- -e "s|@DIRNAME@|${DIRNAME:Q}|g" \
- -e "s|@EGREP@|${EGREP:Q}|g" \
- -e "s|@MV@|${MV:Q}|g" \
- -e "s|@RM@|${RM:Q}|g" \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/buildcmd-libtool: ${BUILDLINK_SRCDIR}/buildcmd-libtool
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cleanup-libtool: \
- ${BUILDLINK_SRCDIR}/cleanup-libtool \
- ${_BLNK_LIBTOOL_FIX_LA}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${CAT} ${BUILDLINK_SRCDIR}/cleanup-libtool \
- | ${SED} -e "s|@_BLNK_LIBTOOL_FIX_LA@|${_BLNK_LIBTOOL_FIX_LA:Q}|g" \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-libtool: ${BUILDLINK_SRCDIR}/cmd-sink-libtool
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/scan-libtool: ${BUILDLINK_SRCDIR}/scan-libtool
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-libtool: ${BUILDLINK_SRCDIR}/transform-libtool
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${SED} -e "s|@BUILDLINK_DIR@|${BUILDLINK_DIR:Q}|g" \
- -e "s|@WRKSRC@|${WRKSRC:Q}|g" \
- -e "s|@BASENAME@|${BASENAME:Q}|g" \
- -e "s|@DIRNAME@|${DIRNAME:Q}|g" \
- -e "s|@PWD@|${PWD_CMD:Q}|g" \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-WRAPPER_TARGETS+= do-buildlink
-.if !target(do-buildlink)
-do-buildlink:
- @${DO_NADA}
-.endif
-
-.endif # PHASES_AFTER_WRAPPER
-###
-### END: after "wrapper" phase
-###
diff --git a/mk/buildlink3/bsd.builtin.mk b/mk/buildlink3/bsd.builtin.mk
deleted file mode 100644
index e3eea895d45..00000000000
--- a/mk/buildlink3/bsd.builtin.mk
+++ /dev/null
@@ -1,153 +0,0 @@
-# $NetBSD: bsd.builtin.mk,v 1.6 2005/06/20 05:44:17 jlam Exp $
-#
-# Copyright (c) 2004-2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Include this file to set the value of USE_BUILTIN.<pkg> for each
-# package listed in BUILDLINK_PACKAGES. Note that this file may
-# indirectly add additional values to BUILDLINK_PACKAGES.
-#
-# For each package which may duplicate built-in software on the system,
-# a builtin.mk file should be created. The only requirements of a
-# builtin.mk file are:
-#
-# (1) It should set USE_BUILTIN.<pkg> to either "yes" or "no" after it
-# is included.
-# (2) It should *not* override any USE_BUILTIN.<pkg> which is already
-# set before the builtin.mk file is included.
-# (3) It should be written to allow multiple inclusion.
-#
-# An example package builtin.mk file is:
-#
-# -------------8<-------------8<-------------8<-------------8<-------------
-# BUILTIN_PKG:= wibble
-# .include "../../mk/buildlink3/bsd.builtin.mk"
-#
-# ###
-# ### Determine if there is a built-in implementation of the package and
-# ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
-# ###
-# .if !defined(IS_BUILTIN.wibble)
-# IS_BUILTIN.wibble= no
-# .endif
-# MAKEVARS+= IS_BUILTIN.wibble
-#
-# ###
-# ### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
-# ### a package name to represent the built-in package.
-# ###
-# .if !defined(BUILTIN_PKG.iconv) && \
-# !empty(IS_BUILTIN.wibble:M[yY][eE][sS])
-# BUILTIN_PKG.wibble= wibble-1.0
-# .endif
-# MAKEVARS+= BUILTIN_PKG.wibble
-#
-# ###
-# ### Determine whether we should use the built-in implementation if it
-# ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
-# ###
-# .if !defined(USE_BUILTIN.wibble)
-# . if ${PREFER.wibble} == "pkgsrc"
-# USE_BUILTIN.wibble= no
-# . else
-# USE_BUILTIN.wibble= ${IS_BUILTIN.wibble}
-# . if defined(BUILTIN_PKG.wibble) && \
-# !empty(IS_BUILTIN.wibble:M[yY][eE][sS])
-# USE_BUILTIN.wibble= yes
-# . for _dep_ in ${BUILDLINK_DEPENDS.wibble}
-# . if !empty(USE_BUILTIN.wibble:M[yY][eE][sS])
-# USE_BUILTIN.wibble!= \
-# if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.wibble:Q}; then \
-# ${ECHO} "yes"; \
-# else \
-# ${ECHO} "no"; \
-# fi
-# . endif
-# . endfor
-# . endif
-# . endif
-# .endif
-# MAKEVARS+= USE_BUILTIN.wibble
-#
-# ###
-# ### The section below only applies if we are not including this file
-# ### solely to determine whether a built-in implementation exists.
-# ###
-# CHECK_BUILTIN.wibble?= no
-# .if !empty(CHECK_BUILTIN.wibble:M[nN][oO])
-# #
-# # Here we place code that depends on whether USE_BUILTIN.wibble is
-# # set to "yes" or "no".
-# #
-# .endif # CHECK_BUILTIN.wibble
-# -------------8<-------------8<-------------8<-------------8<-------------
-#
-# Note the structure of the builtin.mk file: first we set IS_BUILTIN.<pkg>,
-# then USE_BUILTIN.<pkg>, then we isolate code that depends on the whether
-# USE_BUILTIN.<pkg> is "yes" or "no" in a region that is guarded by
-# CHECK_BUILTIN.<pkg>. Package builtin.mk files aren't protected against
-# multiple inclusion.
-#
-
-.include "../../mk/bsd.prefs.mk"
-
-.for _pkg_ in ${BUILTIN_PKG}
-#
-# Define PREFER.<pkg> to be either "pkgsrc" or "native" depending on
-# whether to prefer the pkgsrc or native versions of software that's
-# also part of the base system. Its value is determined from the
-# user-settable values PREFER_PKGSRC and PREFER_NATIVE. Preferences are
-# determined by the most specific instance of the package in either
-# PREFER_PKGSRC or PREFER_NATIVE. If a package is specified in neither
-# or in both variables, then PREFER_PKGSRC has precedence over
-# PREFER_NATIVE.
-#
-_BLTN_PREFER.${_pkg_}= pkgsrc
-. if !empty(PREFER_NATIVE:M[yY][eE][sS])
-_BLTN_PREFER.${_pkg_}= native
-. endif
-. if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_BLTN_PREFER.${_pkg_}= pkgsrc
-. endif
-. if !empty(PREFER_NATIVE:M${_pkg_})
-_BLTN_PREFER.${_pkg_}= native
-. endif
-. if !empty(PREFER_PKGSRC:M${_pkg_})
-_BLTN_PREFER.${_pkg_}= pkgsrc
-. endif
-PREFER.${_pkg_}?= ${_BLTN_PREFER.${_pkg_}}
-.endfor
-
-.include "../../mk/buildlink3/find-libs.mk"
-.include "../../mk/buildlink3/find-files.mk"
diff --git a/mk/buildlink3/buildcmd-libtool b/mk/buildlink3/buildcmd-libtool
deleted file mode 100644
index 495d6a8aaad..00000000000
--- a/mk/buildlink3/buildcmd-libtool
+++ /dev/null
@@ -1,74 +0,0 @@
-# $NetBSD: buildcmd-libtool,v 1.1 2004/09/21 15:01:40 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# Don't append empty arguments to the command line.
-######################################################################
-"")
- ;;
-######################################################################
-# Reduce command length by not appending options that we've already
-# seen. Also, suppress consecutive repeated libraries.
-######################################################################
--[DILR]*|-Wl,-R*|-Wl,-*,/*)
- case $cmd in
- *" "$arg|*" "$arg" "*)
- ;;
- *)
- shquote "$arg"; arg="$shquoted"
- cmd="$cmd $arg"
- ;;
- esac
- ;;
--l*)
- case $libs in
- *" "$arg)
- ;;
- *)
- shquote "$arg"; arg="$shquoted"
- cmd="$cmd $arg"
- ;;
- esac
- ;;
-######################################################################
-# Append $arg to $cmd to build up the command line to be executed.
-######################################################################
-*)
- shquote "$arg"; arg="$shquoted"
- cmd="$cmd $arg"
- ;;
-esac
diff --git a/mk/buildlink3/cleanup-libtool b/mk/buildlink3/cleanup-libtool
deleted file mode 100644
index ef57ff59a2a..00000000000
--- a/mk/buildlink3/cleanup-libtool
+++ /dev/null
@@ -1,41 +0,0 @@
-# $NetBSD: cleanup-libtool,v 1.1 2004/09/21 15:01:40 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-libtool_fix_la="@_BLNK_LIBTOOL_FIX_LA@"
-
-if $test -n "$lafile" && $test -f "$lafile"; then
- . $libtool_fix_la
-fi
diff --git a/mk/buildlink3/cmd-sink-libtool b/mk/buildlink3/cmd-sink-libtool
deleted file mode 100644
index 75599527020..00000000000
--- a/mk/buildlink3/cmd-sink-libtool
+++ /dev/null
@@ -1,73 +0,0 @@
-# $NetBSD: cmd-sink-libtool,v 1.2 2005/08/05 19:46:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-libtool) pop: $arg"
- case $arg in
- ##############################################################
- # Hardcode a workaround for perl's DynaLoader.a which is
- # definitely a PIC code archive, but libtool isn't smart
- # enough to realize it. Munge the name into something that
- # will make libtool recognize it as a PIC code archive. We
- # unmunge it in arg-pp-main so non-libtool wrappers see the
- # right thing.
- ##############################################################
- */DynaLoader.a)
- arg="${arg%/DynaLoader.a}/libDynaLoader_pic.a"
- $debug_log $wrapperlog " (cmd-sink-libtool) to: $arg"
- . $buildcmd
- ;;
- ##############################################################
- # If we're in "compile" mode, then don't add any linker options
- # to the command line.
- ##############################################################
- -L*|-l*|-Wl,*)
- case $lt_mode in
- link)
- . $buildcmd
- ;;
- *)
- $debug_log $wrapperlog " (cmd-sink-libtool) drop: $arg"
- ;;
- esac
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
diff --git a/mk/buildlink3/find-files.mk b/mk/buildlink3/find-files.mk
deleted file mode 100644
index cdc51e8d25c..00000000000
--- a/mk/buildlink3/find-files.mk
+++ /dev/null
@@ -1,101 +0,0 @@
-# $NetBSD: find-files.mk,v 1.2 2005/07/15 18:27:55 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This is a "subroutine" that can be included to detect the presence of
-# files in the base system.
-#
-# The following variables must be defined before including this file:
-#
-# BUILTIN_FIND_FILES_VAR is a list of variables to define. These
-# variables take the value of the path to the file that is
-# "found".
-#
-# BUILTIN_FIND_FILES.<var> is the list of paths to files to find, in
-# order, on the filesystem. The variable <var> is set to the
-# first path "found" on the filesystem.
-#
-# Optionally, the following variables may also be defined:
-#
-# BUILTIN_FIND_GREP.<var> is a regular expression that must be
-# matched within a file in order for the file to be considered
-# "found". If it isn't defined, then we simply check for the
-# existence of the file.
-#
-# After including this file, the following variables are defined:
-#
-# <var> is the first of the files listed in ${BUILTIN_FIND_FILES.<var>}
-# that is "found", or else it is "__nonexistent__".
-#
-# An example use is:
-#
-# BUILTIN_FIND_FILES_VAR:= FOO BAR
-#
-# BUILTIN_FIND_FILES.FOO= /path1 /path2
-# BUILTIN_FIND_GREP.FOO= \#define.*FOO
-#
-# BUILTIN_FIND_FILES.BAR= /path3 /path4
-# .include "../../mk/buildlink3/builtin-files.mk"
-#
-
-.if empty(USE_TOOLS:Mecho)
-USE_TOOLS+= echo
-.endif
-.if empty(USE_TOOLS:Mgrep)
-USE_TOOLS+= grep
-.endif
-
-.for _var_ in ${BUILTIN_FIND_FILES_VAR}
-. if !defined(${_var_})
-${_var_}= __nonexistent__
-. for _file_ in ${BUILTIN_FIND_FILES.${_var_}}
-. if !empty(${_var_}:M__nonexistent__) && exists(${_file_})
-. if !defined(BUILTIN_FIND_GREP.${_var_})
-${_var_}= ${_file_}
-. else
-${_var_}!= \
- if ${GREP} -q ${BUILTIN_FIND_GREP.${_var_}:Q} ${_file_:Q}; then \
- ${ECHO} ${_file_:Q}; \
- else \
- ${ECHO} __nonexistent__; \
- fi
-. endif
-. endif
-. endfor
-. endif
-MAKEVARS+= ${_var_}
-.endfor
diff --git a/mk/buildlink3/find-libs.mk b/mk/buildlink3/find-libs.mk
deleted file mode 100644
index b0022893368..00000000000
--- a/mk/buildlink3/find-libs.mk
+++ /dev/null
@@ -1,74 +0,0 @@
-# $NetBSD: find-libs.mk,v 1.3 2005/07/15 18:27:55 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This is a "subroutine" that can be included to detect the presence of
-# libraries in the base system.
-#
-# The input variable is BUILDLINK_FIND_LIBS, which is a list of library
-# names, e.g. ncurses, iconv, etc., that will be sought in the base
-# system. BUILTIN_LIB_FOUND.<lib> is set to "yes" or "no" depending
-# on the result of the search.
-#
-# An example use is:
-#
-# BUILDLINK_FIND_LIBS:= intl iconv
-# .include "../../mk/buildlink3/find-libs.mk"
-# # ${BUILTIN_LIB_FOUND.intl} and ${BUILTIN_LIB_FOUND.iconv} are now
-# # either "yes" or "no".
-#
-
-.if empty(USE_TOOLS:Mecho)
-USE_TOOLS+= echo
-.endif
-.if empty(USE_TOOLS:Mtest)
-USE_TOOLS+= test
-.endif
-
-.for _lib_ in ${BUILTIN_FIND_LIBS}
-. if !defined(BUILTIN_LIB_FOUND.${_lib_})
-BUILTIN_LIB_FOUND.${_lib_}!= \
- if ${TEST} "`${ECHO} /usr/lib${ABI}/lib${_lib_}.*`" != "/usr/lib${ABI}/lib${_lib_}.*"; then \
- ${ECHO} yes; \
- elif ${TEST} "`${ECHO} /lib${ABI}/lib${_lib_}.*`" != "/lib${ABI}/lib${_lib_}.*"; then \
- ${ECHO} yes; \
- else \
- ${ECHO} no; \
- fi
-. endif
-MAKEVARS+= BUILTIN_LIB_FOUND.${_lib_}
-.endfor
diff --git a/mk/buildlink3/imake-check b/mk/buildlink3/imake-check
deleted file mode 100755
index d7ea16a211c..00000000000
--- a/mk/buildlink3/imake-check
+++ /dev/null
@@ -1,89 +0,0 @@
-#! /bin/sh
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-# This is the symbol whose value we want to test in the imake config
-# files, e.g. NormalLibXpm, BuildXftLibrary, etc.
-#
-imake_symbol="$1"
-
-: ${X11BASE:=/usr/X11R6}
-: ${IMAKE:=${X11BASE}/bin/imake}
-
-: ${CAT:=cat}
-: ${ECHO:=echo}
-: ${GREP:=grep}
-: ${IMAKE_MAKE:=make}
-: ${MKDIR:=mkdir}
-: ${RM:=rm}
-: ${TEST:=test}
-
-# Extract the first word of ${IMAKE}.
-for i in ${IMAKE}; do
- imake_cmd="$i"; break
-done
-${TEST} -f "$imake_cmd" || exit 1
-
-# Create a secure temporary directory.
-: ${TMPDIR:=/tmp}
-tmpdir="${TMPDIR}/imake-check.$$"
-umask 077
-${MKDIR} "$tmpdir" || exit 1
-
-# Construct an Imakefile that will show whether $imake_symbol is
-# true or false.
-#
-cd "$tmpdir"
-${CAT} > Imakefile << EOF
-#if $imake_symbol
-builtin-test:
- @${ECHO} yes
-#else
-builtin-test:
- @${ECHO} no
-#endif
-EOF
-
-# Run imake to process the Imakefile.
-${IMAKE} -DUseInstalled -I${X11BASE}/lib/X11/config -s - |
- ${IMAKE_MAKE} -f - builtin-test |
- ${GREP} -q yes
-exitcode="$?"
-
-# Clean up after ourselves.
-cd "${TMPDIR}"
-${RM} -rf "$tmpdir"
-exit "$exitcode"
diff --git a/mk/buildlink3/imake-check.mk b/mk/buildlink3/imake-check.mk
deleted file mode 100644
index 333e0ce9301..00000000000
--- a/mk/buildlink3/imake-check.mk
+++ /dev/null
@@ -1,81 +0,0 @@
-# $NetBSD: imake-check.mk,v 1.4 2005/08/10 16:28:59 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This is a "subroutine" that can be included to detect whether the
-# X11 distribution we are using with pkgsrc has certain X11 components
-# built-in to the distribution.
-#
-# The following variables must be defined before including this file:
-#
-# BUILTIN_IMAKE_CHECK is a list of <pkg>:<symbol> pairs, where <pkg>
-# is the package to check for, and <symbol> is the imake symbol
-# to check in the imake config files.
-#
-# After including this file, the following variables are defined:
-#
-# BUILTIN_IMAKE_CHECK.<pkg> is "yes" or "no" depending on whether the
-# specified imake symbol is "true" in the imake config files.
-#
-# An example use is:
-#
-# BUILTIN_IMAKE_CHECK:= Xft2:BuildXftLibrary
-# .include "../../mk/buildlink3/imake-check.mk"
-#
-
-.for _pair_ in ${BUILTIN_IMAKE_CHECK}
-USE_TOOLS+= cat:pkgsrc echo:pkgsrc grep:pkgsrc mkdir:pkgsrc \
- rm:pkgsrc test:pkgsrc
-USE_TOOLS+= imake:pkgsrc ${IMAKE_TOOLS:S/$/:pkgsrc/} # XXX
-IMAKE?= ${X11BASE}/bin/imake # XXX
-
-. if !defined(BUILTIN_IMAKE_CHECK.${_pair_:C/\:[^:]*$//})
-BUILTIN_IMAKE_CHECK.${_pair_:C/\:[^:]*$//}!= \
- if ${SETENV} CAT=${CAT:Q} ECHO=${ECHO:Q} GREP=${GREP:Q} \
- IMAKE=${IMAKE:Q} IMAKE_MAKE=${IMAKE_MAKE:Q} \
- MKDIR=${MKDIR:Q} RM=${RM:Q} TEST=${TEST:Q} \
- X11BASE=${X11BASE:Q} \
- ${SH} ${.CURDIR}/../../mk/buildlink3/imake-check \
- ${_pair_:C/^[^:]*\://}; \
- then \
- ${ECHO} yes; \
- else \
- ${ECHO} no; \
- fi
-. endif
-MAKEVARS+= BUILTIN_IMAKE_CHECK.${_pair_:C/\:[^:]*$//}
-.endfor
diff --git a/mk/buildlink3/libtool-fix-la b/mk/buildlink3/libtool-fix-la
deleted file mode 100644
index 0b5a605717d..00000000000
--- a/mk/buildlink3/libtool-fix-la
+++ /dev/null
@@ -1,352 +0,0 @@
-# $NetBSD: libtool-fix-la,v 1.6 2005/06/22 21:08:37 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# For *.la files, in the "relink_command" line, we make the following
-# replacements:
-#
-# "libfoo.la" -> "-L./.libs libfoo.la"
-# "dirpath/libfoo.la" -> "-Ldirpath/.libs libfoo.la"
-#
-# This allows the libraries to be found within ${WRKSRC} during
-# relinking. We rely on the proper rpath settings to be set by libtool.
-#
-# For the *.lai files, in the "dependency_libs" line, we remove
-# redundant -Ldir and -llib options. We also make sure that we don't
-# ever reference other .la files, only referring to other libraries
-# via the usual "-L/path -llib" and making sure that /path is always
-# somewhere under the default view. This makes wildcard dependencies
-# work for "overwrite" packages by letting libtool find libraries in
-# the default view.
-
-BUILDLINK_DIR="@BUILDLINK_DIR@"
-DEPOTBASE="@DEPOTBASE@"
-LOCALBASE="@LOCALBASE@"
-WRKSRC="@WRKSRC@"
-
-basename="@BASENAME@"
-dirname="@DIRNAME@"
-egrep="@EGREP@"
-mv="@MV@"
-rm="@RM@"
-
-labase=`$basename $lafile .la`
-ladir=`$dirname $lafile`
-latimestamp=${ladir}/.${labase}.la.timestamp
-laifile=${ladir}/.libs/${labase}.lai
-if $test -f $lafile; then
- . ${ladir}/${labase}.la
-
- deps=
- for i in ${dependency_libs}; do
- case $i in
- ####################################################
- # Skip all -R* options... rpath info shouldn't go into
- # the dependency_libs line.
- ####################################################
- -R*)
- ;;
- ####################################################
- # Catch -L<dir> and remove redundant ones.
- ####################################################
- -L*)
- case $deps in
- *"$i "*) ;;
- *"$i") ;;
- *) deps="$deps $i" ;;
- esac
- ;;
- ####################################################
- # Convert "dirpath/libfoo.la" into "-Ldirpath/.libs
- # libfoo.la" if it's an uninstalled libtool archive.
- # This allows proper relinking by libtool during the
- # install stage by allowing it to find the uninstalled
- # shared library in the .libs directory.
- ####################################################
- *.la)
- fixla=0
- ltlibsdir=`$dirname $i`/.libs
- case $ltlibsdir in
- /*)
- # fix if an absolute path in ${WRKSRC}
- case $ltlibsdir in
- ${WRKSRC}/*) fixla=1 ;;
- esac
- ;;
- *)
- # fix all relative paths
- fixla=1
- ;;
- esac
- if $test $fixla -gt 0; then
- case $deps in
- *"-L$ltlibsdir "*) ;;
- *"-L$ltlibsdir") ;;
- *) deps="$deps -L$ltlibsdir" ;;
- esac
- fi
- deps="$deps $i"
- ;;
- ####################################################
- # Everything else Just Belongs in the dependency_libs
- # line.
- ####################################################
- *)
- deps="$deps $i"
- ;;
- esac
- done
-
- relink=
- for i in ${relink_command}; do
- case $i in
- ####################################################
- # -I* and -D* are useless for linking.
- ####################################################
- -I*|-D*)
- ;;
- ####################################################
- # Catch -L<dir> and remove redundant ones.
- ####################################################
- -L*)
- case $relink in
- *"$i "*) ;;
- *"$i") ;;
- *) relink="$relink $i" ;;
- esac
- ;;
- # This is the .la file we're relinking... don't touch it!
- $lafile)
- relink="$relink $i"
- ;;
- ####################################################
- # Convert "dirpath/libfoo.la" into "-Ldirpath/.libs
- # libfoo.la" if it's an uninstalled libtool archive.
- # This allows proper relinking by libtool during the
- # install stage by allowing it to find the uninstalled
- # shared library in the .libs directory.
- ####################################################
- *.la)
- fixla=0
- ltlibsdir=`$dirname $i`/.libs
- case $ltlibsdir in
- /*)
- # fix if an absolute path in ${WRKSRC}
- case $ltlibsdir in
- ${WRKSRC}/*) fixla=1 ;;
- esac
- ;;
- *)
- # fix all relative paths
- fixla=1
- ;;
- esac
- if $test $fixla -gt 0; then
- case $relink in
- *"-L$ltlibsdir "*) ;;
- *"-L$ltlibsdir") ;;
- *) relink="$relink -L$ltlibsdir" ;;
- esac
- fi
- relink="$relink $i"
- ;;
- ####################################################
- # Everything else Just Belongs in the relink_command
- # line.
- ####################################################
- *)
- relink="$relink $i"
- ;;
- esac
- done
- ##############################################################
- # Save the orignal .la file produced by libtool as .la.blsav,
- # and create the new one with a signature.
- ##############################################################
- $mv -f $lafile ${lafile}.blsav
- if $test -n "$deps"; then
- (
- $cat ${lafile}.blsav | $sed -e '/^dependency_libs=/,$d'
- $echo "dependency_libs='$deps'"
- $cat ${lafile}.blsav | $sed -e '1,/^dependency_libs=/d'
- ) > ${lafile}.tmp
- else
- $cat ${lafile}.blsav > ${lafile}.tmp
- fi
- if $test -n "$relink"; then
- (
- $cat ${lafile}.tmp | $sed -e '/^relink_command=/,$d'
- $echo "relink_command='$relink'"
- $cat ${lafile}.tmp | $sed -e '1,/^relink_command=/d'
- ) > $lafile
- else
- $cat ${lafile}.tmp > $lafile
- fi
- $echo >> $lafile
- $echo "# Directory that this library was built in:" >> $lafile
- $echo "buildlibdir='"`cd $ladir; $pwd`"'" >> $lafile
- $echo >> $lafile
- $echo "# This file has been modified by buildlink3." >> $lafile
- $rm ${lafile}.tmp
- msg_log $wrapperlog "==> Fixed $lafile"
- ##############################################################
- # Fix up any .lai files (libtool archives that will be
- # installed).
- ##############################################################
- if $test -z "$laifile" || $test ! -f "$laifile" || \
- $egrep "^#.*modified by buildlink3" $laifile >/dev/null 2>&1; then
- :
- else
- $sed @_BLNK_WRAP_LT_UNTRANSFORM_SED@ \
- $laifile > ${laifile}.tmp
- . ${laifile}.tmp
- deps_ok=no
- deps="${dependency_libs}"
- while $test "$deps_ok" = "no"; do
- deps_ok=yes
- L=; l=; lexist=; prev=
- for i in $deps; do
- case $i in
- ######################################
- # Don't allowed repeated arguments, so
- # "-lm -lm" becomes just "-lm".
- ######################################
- $prev)
- ;;
- ######################################
- # Skip all -R* options... rpath info
- # shouldn't go into the dependency_libs
- # line.
- ######################################
- -R*)
- ;;
- ######################################
- # Skip directories that should never
- # appear in the -L<dir> flags. Also
- # modify directories in ${DEPOTBASE} to
- # point to somewhere in the default view
- # ${LOCALBASE}, since we want "overwrite"
- # packages to think the libraries really
- # do just exist through the default view.
- ######################################
- -L*)
- case $i in
- -L${BUILDLINK_DIR}/*)
- ;;
- -L${WRKSRC}|-L${WRKSRC}/*)
- ;;
- -L${DEPOTBASE}/*)
- i=`$echo "$i" | $sed -e "s,-L${DEPOTBASE}/[^/]*/,-L${LOCALBASE}/,"`
- case $L in
- *"$i "*) ;;
- *"$i") ;;
- *) L="$L $i" ;;
- esac
- ;;
- *)
- case $L in
- *"$i "*) ;;
- *"$i") ;;
- *) L="$L $i" ;;
- esac
- ;;
- esac
- ;;
- ######################################
- # Libraries really do exist, so we want
- # to keep any -L<dir> flags we've seen
- # in the generated dependency_libs line.
- ######################################
- -l*)
- lexist=1
- l="$l $i"
- ;;
- ######################################
- # Libtool archives should be changed from
- # "/path/libfoo.la" to "-L/path -lfoo",
- # where /path is appropriately modified
- # so that the depot directory is changed
- # to the views directory. This allows
- # the .la files to be used by either
- # "overwrite" or "pkgviews" packages and
- # works correctly with wildcard
- # dependencies.
- ######################################
- *.la)
- dirbase=`$dirname $i`
- dir=`$echo "X$dirbase" | $Xsed -e "s,^${DEPOTBASE}/[^/]*/,${LOCALBASE}/,"`
- case $L in
- *"-L$dir "*) ;;
- *"-L$dir") ;;
- *) L="$L -L$dir" ;;
- esac
- libbase=`$basename $i .la`
- lib="${libbase#lib}"
- lexist=1
- l="$l -l$lib"
- deps_ok=no
- ;;
- ######################################
- # Everything else Just Belongs.
- ######################################
- *)
- l="$l $i"
- ;;
- esac
- prev="$i"
- done
- if $test -z "$lexist"; then
- L=
- fi
- deps="$L$l"
- deps=`$echo "X$deps" | $Xsed -e "s/^[ ]*//"`
- done
- $mv -f $laifile ${laifile}.blsav
- (
- $cat ${laifile}.tmp | $sed -e '/^dependency_libs=/,$d'
- $echo "dependency_libs='$deps'"
- $cat ${laifile}.tmp | $sed -e '1,/^dependency_libs=/d'
- $echo
- $echo "# This file has been modified by buildlink3."
- ) > ${laifile}
- $rm -f ${laifile}.tmp
- msg_log $wrapperlog "==> Fixed $laifile"
- if $egrep "${BUILDLINK_DIR}" $laifile >/dev/null 2>&1; then
- msg_log $wrapperlog "==> [buildlink3] Error: buildlink3 leakage into $laifile"
- $echo "==> [buildlink3] Error: buildlink3 leakage into $laifile" 1>&2
- wrapper_result=1
- fi
- fi
-fi
diff --git a/mk/buildlink3/scan-libtool b/mk/buildlink3/scan-libtool
deleted file mode 100644
index c6ad997001d..00000000000
--- a/mk/buildlink3/scan-libtool
+++ /dev/null
@@ -1,131 +0,0 @@
-# $NetBSD: scan-libtool,v 1.3 2004/09/24 20:44:28 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Discover the libtool mode by scanning the argument list.
-lt_mode=link
-prevopt=
-nonopt=
-lafile=
-for arg do
- case $arg in
- -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
- if $test -n "$prevopt"; then
- case $prevopt in
- --mode)
- lt_mode="$arg"
- ;;
- -o)
- case $arg in
- *.la) lafile="$arg" ;;
- esac
- ;;
- esac
- prevopt=
- continue
- fi
- case $arg in
- --finish)
- lt_mode="finish"
- ;;
- --mode|-o)
- prevopt="$arg"
- ;;
- --mode=*)
- lt_mode="$optarg"
- ;;
- -*)
- if $test -n "$nonopt" -a "$lt_mode" != "install"; then
- case $arg in
- -c) lt_mode=compile ;;
- esac
- fi
- ;;
- *)
- if $test -z "$nonopt"; then
- nonopt="$arg"
- case $nonopt in
- *cc|*++|gcc*|*-gcc*|xlc*|*CC)
- lt_mode=link
- for arg do
- case $arg in
- -c) lt_mode=compile; break ;;
- esac
- done
- ;;
- *install*|cp|mv)
- lt_mode=install
- ;;
- *rm)
- lt_mode=uninstall
- ;;
- esac
- fi
- ;;
- esac
-done
-
-$debug_log $wrapperlog " (scan-libtool) mode: $lt_mode"
-case $lt_mode in
-######################################################################
-# We're just being invoked to unwrap a libtool archive, so just
-# invoke the cleanup script.
-######################################################################
-unwrap)
- . $cleanup
- exit 0
- ;;
-######################################################################
-# In case we're in "link" mode, we should add the extra LDFLAGS to the
-# argument list so that libtool finds all of our libraries and libtool
-# archives.
-######################################################################
-link)
- append_extra_args=yes
- ;;
-######################################################################
-# We're doing libtool clean, execute, finish, install, or uninstall, so
-# just invoke the real libtool with all of the given arguments.
-######################################################################
-execute|finish|install|uninstall)
- msg_log $wrapperlog "<.> $cmd $@"
- exec $cmd "$@"
- ;;
-*)
- append_extra_args=no
- ;;
-esac
diff --git a/mk/buildlink3/transform-libtool b/mk/buildlink3/transform-libtool
deleted file mode 100644
index cb7b9ebbb61..00000000000
--- a/mk/buildlink3/transform-libtool
+++ /dev/null
@@ -1,119 +0,0 @@
-# $NetBSD: transform-libtool,v 1.2 2004/10/03 21:39:07 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-BUILDLINK_DIR="@BUILDLINK_DIR@"
-WRKSRC="@WRKSRC@"
-
-basename="@BASENAME@"
-dirname="@DIRNAME@"
-pwd="@PWD@"
-
-case $arg in
-######################################################################
-# Workaround software authors that don't follow the libtool
-# documentation and link against uninstalled libtool archives with:
-#
-# -L../package/source/dir -lfoo
-#
-# instead of the correct (according to the libtool documentation)
-#
-# ../package/source/dir/libfoo.la
-#
-# We convert the former into the latter by remembering all "local"
-# directories that are mentioned in -L* arguments to to libtool
-# wrapper, and checking to see if <dir>/libfoo.la exists when we see
-# "-lfoo" on the libtool command line. Avoid matching the buildlink
-# directory here for the WRKSRC == WRKDIR case.
-######################################################################
--L${BUILDLINK_DIR}/*)
- ;;
--L.|-L./*|-L..*|-L[!/]*|-L${WRKSRC}*)
- case $arg in
- */.libs)
- # ignore -L.../.libs
- ;;
- *)
- msg_log $wrapperlog "*** [buildlink3] Warning: libtool detected $arg"
- lpath="${arg#-L}"
- case $rellpath in
- *"$lpath "*) ;;
- *"$lpath"*) ;;
- *) rellpath="$rellpath $lpath" ;;
- esac
- addtocache=no
- ;;
- esac
- ;;
--l*)
- lib="${arg#-l}"
- for dir in $rellpath; do
- la="$dir/lib$lib.la"
- if $test -f "$la"; then
- ldir=`cd $dir; $pwd`
- buildlibdir=`. $la; $echo $buildlibdir`
- if $test -n "$buildlibdir" -a \
- "$ldir" != "$buildlibdir"; then
- la="$buildlibdir/lib$lib.la"
- fi
- $debug_log $wrapperlog " (transform-libtool) to: $la"
- msg_log $wrapperlog "*** [buildlink3] Warning: libtool replaced $arg with $la"
- $echo "*** [buildlink3] Warning: libtool replaced $arg with $la" 1>&2
- arg="$la"
- addtocache=no
- break
- fi
- done
- ;;
-######################################################################
-# Replace all references to locally-linked libtool archives with the
-# full paths to the archives in $buildlibdir if $buildlibdir differs
-# from the referenced directory. This makes linking against a symlinked
-# local libtool archive possible.
-######################################################################
-./*.la|../*.la|[!-/]*.la|${WRKSRC}/*.la)
- labase=`$basename $arg`
- ladir=`$dirname $arg`
- ldir=`cd $ladir; $pwd`
- buildlibdir=`. $ladir/$labase; $echo $buildlibdir`
- if $test -n "$buildlibdir" -a "$ldir" != "$buildlibdir" -a \
- -e "$buildlibdir/$labase"; then
- arg="$buildlibdir/$labase"
- $debug_log $wrapperlog " (transform-libtool) to: $arg"
- msg_log $wrapperlog "*** [buildlink3] Warning: libtool replaced $ladir/$labase with $arg"
- addtocache=yes
- fi
- ;;
-esac
diff --git a/mk/bulk/TODO b/mk/bulk/TODO
deleted file mode 100644
index d33e259df42..00000000000
--- a/mk/bulk/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
- * integrate pkgtools/libkver
- * Generate list of packages that were "Successfully packaged"
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
deleted file mode 100644
index 016e361f719..00000000000
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ /dev/null
@@ -1,486 +0,0 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.91 2005/11/07 18:22:22 tv Exp $
-
-#
-# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by Hubert Feyrer for
-# the NetBSD Project.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-##
-## For this to work, put
-## DEPENDS_TARGET= bulk-install
-## BATCH= yes
-## into your /etc/mk.conf, then cd /usr/pkgsrc; make bulk-package
-##
-## bulk-install will only compile pkgs if necessary, and install binary
-## pkgs if possible/available.
-## bulk-package will build binary packages, and remove them (together with
-## any depending packages) immediately after that, leaving only the
-## binary package back. Broken packages are marked (``.broken'').
-##
-
-LS?= ls
-TEE?= tee
-WC?= wc
-TO_HTML?= ${SED} -e 's,&,\&amp;,g' -e 's,<,\&lt;,g' -e 's,>,\&gt;,g'
-
-# This variable is set to 'yes' by the pkgsrc/mk/bulk/build script. It enables
-# the use of several cache files (DEPENDSTREEFILE, DEPENDSFILE, SUPPORTSFILE,
-# and INDEXFILE) for speeding up the processing of dependencies. If we're not
-# actively in the middle of a bulk build, however, we don't know that these files
-# exist or are up to date and they take quite a while to rebuild. So unless
-# they're known to exist and be up to date, don't use them.
-USE_BULK_CACHE?= no
-
-# If set to 'yes', avoids inflating the 'breaks' column of the final report
-# by not counting dependent packages that are broken all by themselves.
-# If set to 'no', may speed up building on some platforms where fork() is slow.
-# (Only takes effect if USE_BULK_CACHE=yes.)
-USE_BULK_BROKEN_CHECK?= yes
-
-# This variable may be set to 'no' to avoid automatic rebuilding of dependent
-# packages based solely on timestamps of the package's pkgsrc files and/or
-# its dependency binary packages. This will cause rebuilding only when the
-# full version number of the package changes (e.g., via PKGREVISION bump).
-USE_BULK_TIMESTAMPS?= yes
-
-# Shall we remove any packages which are installed, but not required
-# to build this package
-PRECLEAN?= yes
-
-# If OBJHOSTNAME is set, use first component of hostname in cache and log files
-# If OBJMACHINE is set, use ${MACHINE_ARCH} in the cache and log files
-.if defined(OBJHOSTNAME)
-. if !defined(_HOSTNAME)
-_HOSTNAME!= ${UNAME} -n
-. endif
-BULK_ID?= .${_HOSTNAME:C|\..*||}
-.elif defined(OBJMACHINE)
-BULK_ID?= .${MACHINE_ARCH}
-.else
-BULK_ID?=
-.endif
-
-# This file exists to mark a package as broken
-BROKENFILE?= .broken${BULK_ID}.html
-
-# This file is the work log for a broken package
-BROKENWRKLOG?= .broken${BULK_ID}.work.html
-
-# This file is human-created to force a package to show up as broken
-# (it is never cleaned by the bulk build, and contains the broken reason)
-FORCEBROKENFILE?= .forcebroken
-.if exists(${PKGDIR}/${FORCEBROKENFILE})
-PKG_FAIL_REASON+= "${PKGNAME} is marked as broken by the bulk build administrator: `cat ${PKGDIR}/${FORCEBROKENFILE}`"
-.endif
-
-# This file is where the log of the build goes
-BUILDLOG?= .make${BULK_ID}
-
-# This is the directory in which bulk build global files should be kept.
-# It defaults to ${PKGSRCDIR}, but may be better suited to another directory
-# if pkgsrc is on a remote (e.g., nfs) filesystem.
-BULKFILESDIR?= ${PKGSRCDIR}
-
-# This is a top level file which lists the entire pkgsrc depends tree in the
-# format:
-# foo/bar devel/libfoo
-# meaning 'foo/bar' is requied to build 'devel/libfoo'
-# this is in the format needed by tsort(1)
-DEPENDSTREEFILE?= ${BULKFILESDIR}/.dependstree${BULK_ID}
-
-# This is a top level file which lists the entire pkgsrc depends tree in the
-# format:
-# foo/bar depends on: devel/libfoo devel/libbar devel/baz .....
-# ie, to build foo/bar we need devel/libfoo devel/libbar devel/baz ... installed
-DEPENDSFILE?= ${BULKFILESDIR}/.depends${BULK_ID}
-
-# This is a top level file which lists the entire pkgsrc depends tree in the
-# format:
-# devel/libfoo is depended upon by: foo/bar graphics/gtkfoo ...
-# ie, to build foo/bar we need devel/libfoo to be installed.
-# to build graphics/gtkfoo we need devel/libfoo to be installed
-SUPPORTSFILE?= ${BULKFILESDIR}/.supports${BULK_ID}
-
-# This is a top level file which cross-references each package name and pkg
-# directory in the format:
-# devel/libfoo libfoo-1.3
-INDEXFILE?= ${BULKFILESDIR}/.index${BULK_ID}
-
-# File containing a list of all the packages in the correct order for a bulk
-# build. The correct order is one where packages that are required by others
-# are built before the packages which require them.
-ORDERFILE?= ${BULKFILESDIR}/.order${BULK_ID}
-
-# File which is used as a timestamp for when the build started. This is used
-# eventually for looking for leftover files (files not properly deinstalled)
-STARTFILE?= ${BULKFILESDIR}/.start${BULK_ID}
-
-# File created and used by lintpkgsrc(8) to cache package metadata for
-# pruning and bulk-upload exclusions.
-LINTPKGSRC_DB?= ${BULKFILESDIR}/.lintpkgsrc.db${BULK_ID}
-
-# File which is used as a database for bulk builds in which SPECIFIC_PKGS is
-# defined. This database is used to hold all the dependency and index
-# information for the specific packages as well as their dependencies. In a
-# SPECIFIC_PKGS bulk build, this file is created and then used to create the
-# INDEXFILE and DEPENDSTREEFILE.
-BULK_DBFILE?= ${BULKFILESDIR}/.bulk_db${BULK_ID}
-
-# A list of pkgs which we should _never_ delete during a build. The primary
-# use is for digest and also for xpkgwedge. Add pkgtools/xpkgwedge in
-# /etc/mk.conf to do an xpkgwedged bulk build.
-BULK_PREREQ+= pkgtools/digest
-
-# by default, clean up any broken packages
-_PRESERVE_WRKDIR?= no
-
-# create an escaped version of PKGPATH. We do this because
-# in several places we want to be able to use something like
-# foo/bar.baz++ in a regular expression but have it be interpreted
-# literally. So, turn it into foo\/bar\.baz\+\+
-_ESCPKGPATH= ${PKGPATH:C@\/@\\/@g:C@\+@\\+@g:C@\.@\\.@g:Q}
-
-# build the cache files used as part of a full bulk build
-# Note: we have to install the BULK_PREREQ packages _before_
-# extracting the depends tree because some packages like
-# xpkgwedge only become DEPENDS if it is installed
-bulk-cache:
- @${ECHO_MSG} "BULK> Installing BULK_PREREQ packages"
-.for __prereq in ${BULK_PREREQ} lang/perl5
- cd ${PKGSRCDIR}/${__prereq} && ${MAKE} bulk-install
-.endfor
- ${RM} -f ${BULK_DBFILE}
- ${TOUCH} ${BULK_DBFILE}
-.if !defined(SPECIFIC_PKGS)
- @${ECHO} "This file is unused for a full pkgsrc bulk build" >> ${BULK_DBFILE}
- @${ECHO} "It is only used for a SPECIFIC_PKGS bulk build" >> ${BULK_DBFILE}
- @${ECHO_MSG} "BULK> Building complete pkgsrc dependency tree (this may take a while)."
- cd ${PKGSRCDIR} && ${SETENV} BMAKE=${MAKE} ${SH} mk/bulk/printdepends ${BROKENFILE} > ${DEPENDSTREEFILE}
- @${ECHO_MSG} "BULK> Generating package name <=> package directory cross reference file"
- @${ECHO_MSG} " (this may take a while)."
- cd ${PKGSRCDIR} && ${SETENV} BMAKE=${MAKE} ${SH} mk/bulk/printindex ${BROKENFILE} > ${INDEXFILE}
-.else
- @${ECHO_MSG} "BULK> Extracting database for SPECIFIC_PKGS subset of pkgsrc"
- @${ECHO_MSG} " along with their dependencies"
-.for __tmp__ in ${SUBDIR} ${BULK_PREREQ} lang/perl5 pkgtools/pkglint
- cd ${PKGSRCDIR}/${__tmp__} && ${SETENV} BMAKE=${MAKE} AWK=${AWK} EXPR=${EXPR} ${SH} ../../mk/scripts/mkdatabase -a -f ${BULK_DBFILE}
-.endfor
- @${ECHO_MSG} "BULK> Extracting dependency tree file"
- ${AWK} '/^(build_)?depends/ {pkgs[$$2] = 1; cat=$$2; sub(/\/.*/, "", cat); \
- for(i=3; i<=NF; i=i+1){ \
- listed[$$2] = 1; \
- sub(/[^:]*:\.\.\/\.\.\//, "", $$i); \
- sub(/[^:]*:\.\./, cat , $$i); \
- print $$i " " $$2; \
- }} END{ \
- for(pkg in pkgs) {if( pkg in listed ) {} else{ print pkg " " pkg;}} \
- }' \
- ${BULK_DBFILE} | ${SORT} -u > ${DEPENDSTREEFILE}
- @${ECHO_MSG} "BULK> Extracting package name <=> package directory cross reference file"
- ${AWK} '/^index/ {print $$2 " " $$3 " "}' ${BULK_DBFILE} > ${INDEXFILE}
-.endif
- @${ECHO_MSG} "BULK> Sorting build order."
- ${TSORT} ${DEPENDSTREEFILE} > ${ORDERFILE}
- @${ECHO_MSG} "BULK> Generating up and down dependency files."
- ${LOCALBASE}/bin/perl ${PKGSRCDIR}/mk/bulk/tflat ${SUPPORTSFILE} ${DEPENDSFILE} < ${DEPENDSTREEFILE}
-
-# note explicit pathname on "perl" above, so that we do NOT auto-set
-# USE_TOOLS=perl (which may be undesirable for package building)
-
-# remove the bulk cache files
-clean-bulk-cache:
- ${RM} -f ${BULK_DBFILE} \
- ${DEPENDSTREEFILE} \
- ${DEPENDSFILE} \
- ${SUPPORTSFILE} \
- ${INDEXFILE} \
- ${ORDERFILE}
-
-# check if the $REF file is uptodate, i.e. is newer than any of
-# the pkg files; prints "1" if upto date, "0" if not.
-bulk-check-uptodate:
- @uptodate=1; \
- if [ -f "${REF}" ]; then \
- if [ "${REF:T}" != "${PKGFILE:T}" ]; then \
- ${ECHO_MSG} >&2 "BULK> ${REF} is out of date (new version ${PKGNAME}); rebuilding..."; \
- uptodate=0; \
- elif [ "${USE_BULK_TIMESTAMPS}" = "yes" ]; then \
- ${SHCOMMENT} "Check files of this package"; \
- newfiles="`${FIND} . -type f -newer "${REF}" -print | ${EGREP} -v -e ./work -e COMMENT -e DESCR -e README.html -e CVS -e '^\./\.' || ${TRUE}`"; \
- nnewfiles="`${FIND} . -type f -newer "${REF}" -print | ${EGREP} -v -e ./work -e COMMENT -e DESCR -e README.html -e CVS -e '^\./\.' | ${WC} -l`"; \
- if [ "$$nnewfiles" -gt 0 ]; then \
- ${ECHO_MSG} >&2 "BULK> Package ${PKGNAME} ($$newfiles) modified since last 'make package' re-packaging..."; \
- uptodate=0; \
- else \
- ${ECHO_MSG} >&2 "BULK> ${REF} is up to date."; \
- fi; \
- else \
- ${ECHO_MSG} >&2 "BULK> ${REF} is up to date."; \
- fi; \
- else \
- ${ECHO_MSG} >&2 "BULK> Package ${PKGNAME} not built yet, packaging..."; \
- uptodate=0; \
- fi; \
- if [ "$$uptodate" = "1" ]; then \
- ${SHCOMMENT} "Check required binary packages"; \
- (${DEPENDS:C/:.*$//:@d@${ECHO} ${d:Q};@} ${TRUE}) | \
- (while read dep; do \
- ${SHCOMMENT} "check against the binary pkg that pkg_add would pick, too:"; \
- ${SHCOMMENT} "(Only one should be returned here, really...)"; \
- pkg=`${PKG_ADMIN} lsbest "${PACKAGES}/All/$$dep"`; \
- if [ -z "$$pkg" ]; then \
- ${ECHO_MSG} >&2 "BULK> Required binary package $$dep does not exist, rebuilding..."; \
- exit 1; \
- elif [ "${USE_BULK_TIMESTAMPS}" = "yes" ] && [ -n "`${FIND} $$pkg -prune -newer ${REF} -print`" ]; then \
- ${ECHO_MSG} >&2 "BULK> Required binary package $$dep (`basename $$pkg`) is newer, rebuilding..."; \
- exit 1; \
- else \
- ${ECHO_MSG} >&2 "BULK> Required binary package $$dep (`basename $$pkg`) is usable."; \
- fi; \
- done) || uptodate=0; \
- fi; \
- ${ECHO_MSG} $$uptodate
-
-# rebuild binpkg if any of the pkg files is newer than the binary archive
-# set DO to ":" to not actually do anything (debugging, ...)
-bulk-package:
- @if [ -f ${BROKENFILE} ]; then \
- ${ECHO_MSG} "BULK> *** Package ${PKGNAME} seems broken and needs attention:" ; \
- ${LS} -la ${BROKENFILE}; \
- exit 1; \
- fi
- @( \
- if [ "${PRECLEAN}" = "yes" ]; then \
- ${ECHO_MSG} '<pre>' ; \
- ${ECHO_MSG} '' ; \
- ${ECHO_MSG} '###' ; \
- ${ECHO_MSG} '###' `date`: ; \
- ${ECHO_MSG} '### ${MAKE} ${.TARGET} for ${PKGNAME}' ; \
- ${ECHO_MSG} '### Current pkg count: ' `${LS} -l ${PKG_DBDIR} | ${GREP} '^d' | ${WC} -l` installed packages: `${LS} ${PKG_DBDIR} | ${GREP} -v pkgdb.byfile.db`; \
- ${ECHO_MSG} '###' ; \
- fi \
- ) 2>&1 | ${TEE} -a ${BUILDLOG}
- @uptodate=`${MAKE} ${MAKEFLAGS} bulk-check-uptodate REF=${PKGFILE}` ; \
- if ${PKG_INFO} -qe ${PKGWILDCARD:Q} ; then \
- installed=1; \
- else \
- installed=0; \
- fi ; \
- if [ $$uptodate = 1 ]; then \
- ( if [ $$installed = 1 ]; then \
- ${ECHO_MSG} "BULK> Package ${PKGNAME} is up-to-date, and still installed" ; \
- else \
- ${ECHO_MSG} "BULK> Nothing to be done." ; \
- fi \
- ) 2>&1 | ${TEE} -a ${BUILDLOG}; \
- else \
- ( if [ $$installed = 1 ]; then \
- ${ECHO_MSG} "BULK> Removing outdated (installed) package ${PKGNAME} first." ; \
- ${ECHO_MSG} ${MAKE} deinstall ; \
- ${DO} ${MAKE} deinstall ; \
- if ${PKG_INFO} -qe ${PKGWILDCARD:Q} ; then \
- ${ECHO_MSG} ${PKG_DELETE} -r ${PKGWILDCARD:Q} ;\
- ${DO} ${PKG_DELETE} -r ${PKGWILDCARD:Q} ;\
- fi ;\
- fi ; \
- if [ -f ${PKGFILE} ]; then \
- ${ECHO_MSG} "BULK> Removing old binary package..." ; \
- ${ECHO_MSG} ${RM} -f ${PKGFILE} ; \
- ${DO} ${RM} -f ${PKGFILE} ; \
- for cat in ${CATEGORIES} ;\
- do \
- ${ECHO_MSG} ${RM} -f ${PACKAGES}/$$cat/${PKGNAME}${PKG_SUFX}; \
- ${DO} ${RM} -f ${PACKAGES}/$$cat/${PKGNAME}${PKG_SUFX}; \
- done ;\
- fi; \
- ${ECHO_MSG} "BULK> Full rebuild in progress..." ; \
- ${ECHO_MSG} "BULK> Cleaning package ${PKGNAME}" ;\
- ${ECHO_MSG} ${MAKE} clean;\
- ${DO} ${MAKE} clean;\
- if [ "${PRECLEAN}" = "yes" ]; then \
- ${ECHO_MSG} "BULK> Removing installed packages which are not needed to build ${PKGNAME}" ; \
- for pkgname in `${PKG_INFO} -e \*` ; \
- do \
- if [ "${USE_BULK_CACHE}" = "yes" ]; then \
- pkgdir=`${GREP} " $$pkgname " ${INDEXFILE} | ${AWK} '{print $$1}'` ;\
- if [ -z "$$pkgdir" ]; then \
- pkgdir=unknown ; \
- fi; \
- if ${PKG_INFO} -qe $$pkgname ; then \
- ${SHCOMMENT} "Remove only unneeded pkgs" ; \
- pkgdir2=`${ECHO} "$$pkgdir" | ${AWK} '{gsub(/\//,"\\\\/"); gsub(/\+/,"\\\\+"); gsub(/ /,"\\\\ "); gsub(/\./,"\\\\."); print}'` ; \
- tmp=`${SED} -n -e "/^${_ESCPKGPATH} .* $$pkgdir2 / s;.*;yes;p" ${DEPENDSFILE}` ; \
- if test "X$$tmp" = "Xyes" ; then \
- ${ECHO_MSG} "BULK> ${PKGNAME} requires installed package $$pkgname ($$pkgdir) to build." ;\
- else \
- case "${BULK_PREREQ}" in \
- *$$pkgdir* ) \
- ${ECHO_MSG} "BULK> Keeping BULK_PREREQ: $$pkgname ($$pkgdir)" ;\
- ;; \
- * ) \
- ${ECHO_MSG} ${PKG_DELETE} -r $$pkgname ; \
- ${DO} ${PKG_DELETE} -r $$pkgname || true ; \
- if ${PKG_INFO} -qe $$pkgname ; then \
- ${DO} ${PKG_DELETE} -f $$pkgname || true ; \
- fi ;\
- ;; \
- esac ; \
- fi ;\
- fi ;\
- else \
- ${SHCOMMENT} "Remove all pkgs" ; \
- ${ECHO_MSG} ${PKG_DELETE} -r $$pkgname ; \
- ${DO} ${PKG_DELETE} -r $$pkgname || true ; \
- if ${PKG_INFO} -qe $$pkgname ; then \
- ${DO} ${PKG_DELETE} -f $$pkgname || true ; \
- fi ;\
- fi ;\
- done ; \
- fi ;\
- if [ "${USE_BULK_CACHE}" = "yes" ]; then \
- ${SHCOMMENT} "Install required depends via binarypkgs XXX" ; \
- ${ECHO_MSG} "BULK> Installing packages which are required to build ${PKGNAME}." ;\
- for pkgdir in `${SED} -n -e "/^${_ESCPKGPATH} / s;^[^:]*:;;p" ${DEPENDSFILE}` ${BULK_PREREQ} ; do \
- pkgname=`${GREP} "^$$pkgdir " ${INDEXFILE} | ${AWK} '{print $$2}'` ; \
- if [ -z "$$pkgname" ]; then continue ; fi ;\
- pkgfile=${PACKAGES}/All/$${pkgname}${PKG_SUFX} ;\
- if ${PKG_INFO} -qe $$pkgname ; then \
- ${ECHO_MSG} "BULK> Required package $$pkgname ($$pkgdir) is already installed" ; \
- else \
- if [ -f $$pkgfile ]; then \
- ${ECHO_MSG} "BULK> ${PKG_ADD} ${PKG_ARGS_ADD} $$pkgfile"; \
- ${DO} ${PKG_ADD} ${PKG_ARGS_ADD} $$pkgfile || ${ECHO_MSG} "warning: could not add $$pkgfile." ; \
- else \
- ${ECHO_MSG} "BULK> warning: $$pkgfile does not exist. It will be rebuilt." ;\
- fi ;\
- fi ;\
- done ;\
- fi ;\
- if [ -f ${_INTERACTIVE_COOKIE} ]; then \
- ${ECHO_MSG} "BULK> Removing old marker for INTERACTIVE_STAGE..." ; \
- ${ECHO_MSG} ${RM} -f ${_INTERACTIVE_COOKIE} ; \
- ${DO} ${RM} -f ${_INTERACTIVE_COOKIE} ; \
- fi ;\
- ${ECHO_MSG} ${MAKE} package '(${PKGNAME})' 2>&1 ; \
- ${DO} ( ${MAKE} package 2>&1 ); \
- ) 2>&1 | ${TEE} -a ${BUILDLOG} ; \
- if [ -f ${PKGFILE} ]; then \
- ${RM} ${BUILDLOG} ; \
- else \
- ${MV} ${BUILDLOG} ${BROKENFILE} ;\
- if [ -f "${WRKLOG}" ]; then \
- (${ECHO_MSG} "<pre>"; \
- ${ECHO_MSG} ""; \
- ${TO_HTML} ${WRKLOG}; \
- ${ECHO_MSG} "</pre>"; \
- ) >> ${BROKENWRKLOG}; \
- fi; \
- ( \
- if [ -f "${BROKENWRKLOG}" ]; then \
- ${ECHO_MSG} "</pre>"; \
- ${ECHO_MSG} "<p>"; \
- ${ECHO_MSG} "Please view the <a href=\"../../${PKGPATH}/${BROKENWRKLOG}\">work log for ${PKGNAME}</a>"; \
- ${ECHO_MSG} "</p>"; \
- ${ECHO_MSG} "<pre>"; \
- ${ECHO_MSG} ""; \
- fi ; \
- ${ECHO_MSG} "BULK> ${PKGNAME} was marked as broken:" ; \
- ${LS} -la ${BROKENFILE} ; \
- ${ECHO_MSG} ${MAKE} deinstall ; \
- ${DO} ${MAKE} deinstall ; \
- nbrokenby=0;\
- if [ "${USE_BULK_CACHE}" = "yes" ]; then \
- ${ECHO_MSG} "BULK> Marking all packages which depend upon ${PKGNAME} as broken:"; \
- tmp=`${SED} -n -e "/^${_ESCPKGPATH} / s;^[^:]*:[ ]*;;p" ${SUPPORTSFILE}` ; \
- if test -n "$$tmp" ; then \
- for pkgdir in $$tmp ; do \
- pkgname=`${GREP} "^$$pkgdir " ${INDEXFILE} | ${AWK} '{print $$2}'` ;\
- if [ -z "$$pkgname" ]; then pkgname=unknown ; fi ; \
- ${ECHO_MSG} "BULK> marking package that requires ${PKGNAME} as broken: $$pkgname ($$pkgdir)";\
- pkgerr='-1'; pkgignore=''; pkgskip=''; \
- if [ "${USE_BULK_BROKEN_CHECK}" = 'yes' ]; then \
- pkgignore=`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_FAIL_REASON)`; \
- pkgskip=`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_SKIP_REASON)`; \
- fi; \
- if [ ! -z "$${pkgignore}$${pkgskip}" -a ! -f ${PKGSRCDIR}/$$pkgdir/${BROKENFILE} ]; then \
- ${ECHO_MSG} "BULK> $$pkgname ($$pkgdir) may not be packaged because:" >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- ${ECHO_MSG} "BULK> $$pkgignore" >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- ${ECHO_MSG} "BULK> $$pkgskip" >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- if [ "${USE_BULK_BROKEN_CHECK}" != 'yes' ] || [ -z "`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=BROKEN)`" ]; then \
- pkgerr="0"; \
- else \
- pkgerr="1"; \
- fi; \
- fi; \
- ${ECHO_MSG} "BULK> $$pkgname ($$pkgdir) is broken because it depends upon ${PKGNAME} (${PKGPATH}) which is broken." \
- >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- ${ECHO_MSG} "Please view the <a href=\"../../${PKGPATH}/${BROKENFILE}\">build log for ${PKGNAME}</a>.<br />" \
- >> ${PKGSRCDIR}/$$pkgdir/${BROKENFILE};\
- nbrokenby=`expr $$nbrokenby + 1`;\
- if ${GREP} -q " $$pkgdir/${BROKENFILE}" ${PKGSRCDIR}/${BROKENFILE} ; then :; else \
- ${ECHO} " $$pkgerr $$pkgdir/${BROKENFILE} 0 " >> ${PKGSRCDIR}/${BROKENFILE} ;\
- fi ;\
- done ;\
- fi ;\
- fi ;\
- nerrors=`${GREP} -c '^\*\*\* Error code' ${BROKENFILE} || true`; \
- if [ -f ${_INTERACTIVE_COOKIE} ]; then \
- nerrors="0"; \
- fi; \
- ${ECHO_MSG} " $$nerrors ${PKGPATH}/${BROKENFILE} $$nbrokenby " >> ${PKGSRCDIR}/${BROKENFILE} \
- ) 2>&1 | ${TEE} -a ${BROKENFILE}; \
- fi ; \
- case ${_PRESERVE_WRKDIR} in \
- yes|YES) ;; \
- *) ${ECHO_MSG} "BULK> Cleaning package ${PKGNAME}"; \
- ${ECHO_MSG} ${MAKE} clean;\
- ${DO} ${MAKE} clean; \
- esac; \
- fi
- @if [ ! -f ${PKGFILE} ]; then \
- ${ECHO_MSG} "BULK> Build for ${PKGNAME} was not successful, aborting." | ${TEE} -a ${BROKENFILE} ; \
- false; \
- else \
- ${RM} -f ${BUILDLOG} ;\
- fi
-
-# Install pkg - if possible from binary pkg (i.e. available & up-to-date)
-# else revert to the old recompiling.
-# Don't rely upon pkg_add to snarf in depending pkgs as they may have
-# been modified and need rebuilding.
-bulk-install:
- @if [ `${MAKE} bulk-check-uptodate REF=${PKGFILE}` = 1 ]; then \
- if ${PKG_INFO} -qe ${PKGNAME} ; then :; else \
- ${DO} ${MAKE} install-depends ; \
- ${ECHO_MSG} "BULK>" ${PKG_ADD} ${PKG_ARGS_ADD} ${PKGFILE} ; \
- ${DO} ${PKG_ADD} ${PKG_ARGS_ADD} ${PKGFILE} ; \
- fi ; \
- else \
- ${ECHO_MSG} ${MAKE} bulk-package PRECLEAN=no; \
- ${DO} ${MAKE} bulk-package PRECLEAN=no; \
- fi
-
diff --git a/mk/bulk/build b/mk/bulk/build
deleted file mode 100644
index aa702923935..00000000000
--- a/mk/bulk/build
+++ /dev/null
@@ -1,447 +0,0 @@
-#!/bin/sh
-# $NetBSD: build,v 1.72 2005/11/08 22:12:42 rillig Exp $
-
-#
-# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by Hubert Feyrer for
-# the NetBSD Project.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# Do bulk build
-#
-
-usage() {
- cat <<EOF
-usage: $0 [options]
- $0 -h | --help
-
-Runs a bulk pkgsrc build.
-
-The following options are supported:
-
- -c | --config <file>
- Load the following configuration file instead of the default
- one.
-
- -e | --no-email
- Don't send email when the bulk build is finished, it will put
- the results into a file (FTP/pkgsrc-results.txt).
-
- -h | --help
- Displays this message.
-
- -m | --mirror_only
- Downloads all distfiles needed for the build but does not run
- the build. IMPORTANT: Note that this will still run all the
- pre-build stuff which involves removing all of your installed
- packages.
-
- The only difference between this option and a regular bulk build
- is that the packages are not actually built.
-
- -r | --restart | --resume | restart
- Restart a previously interrupted bulk build. The last form of
- this option is for backwards compatibility and may be removed in
- future versions of this script.
-
- The --restart option may be combined with the --mirror_only
- option.
-
- -s | --specific-pkgs
- Sets SPECIFIC_PKGS=1 when building packages. This option is
- used for building a subset of pkgsrc.
-
-EOF
-}
-
-die() {
- echo "$0: error:" 1>&2
- for i in "$@"; do
- echo " $i" 1>&2
- done
- exit 1
-}
-
-# This function can be overridden in the build.conf file to change the
-# output format of the bulk build. It is used in a pipe, so if you want
-# the original output, just define post_filter_cmd() { cat; }.
-#
-# For more sophisticated output, you may use all the variables that this
-# example function uses.
-post_filter_cmd() {
- ${SED} "s;^;`date '+%Y/%m/%d %H:%M:%S'` ${built}/${tot}=${percent} ${pkgdir} @ ${MACHINE_ARCH}> ;g"
-}
-
-
-#
-# Find out where we are
-#
-scriptdir=`dirname "$0"`
-scriptdir=`cd "${scriptdir}" && pwd`
-
-#
-# Default values for command line options.
-#
-restart=no
-mirror_only=no
-target=bulk-package
-makeargs=""
-noemail=no
-
-#
-# Parse the command line.
-#
-while test $# -gt 0; do
- case $1 in
- -c|--config)
- shift
- BULK_BUILD_CONF=$1; shift
- ;;
- -e|--no-email)
- noemail=yes
- shift
- ;;
- -h|--help)
- usage
- exit 0
- ;;
- -m|--mirror_only)
- mirror_only=yes
- target=mirror-distfiles
- shift
- ;;
- -r|--restart|--resume|restart)
- restart=yes
- shift
- ;;
- -s|--specific-pkgs)
- makeargs="$makeargs SPECIFIC_PKGS=1"
- shift
- ;;
- *)
- echo "unknown option: $1" 1>&2
- usage 1>&2
- exit 1
- ;;
- esac
-done
-
-#
-# Choose an appropriate value for BMAKE depending on the operating system.
-#
-opsys=`uname -s`
-case "$opsys" in
-NetBSD) BMAKE=make ;;
-*) BMAKE=bmake ;;
-esac
-export BMAKE
-
-#
-# Set resource limits as high as possible
-#
-ulimit -S -s `ulimit -H -s`
-ulimit -S -d `ulimit -H -d`
-
-#
-# Find the configuration file.
-#
-BULK_BUILD_CONF="${BULK_BUILD_CONF-${scriptdir}/build.conf}"
-case $BULK_BUILD_CONF in
-/*) ;;
-*) BULK_BUILD_CONF="${PWD}/${BULK_BUILD_CONF}"
-esac
-
-#
-# Load the variables from the configuration file.
-#
-{ test -f "${BULK_BUILD_CONF}" \
- && . "${BULK_BUILD_CONF}" \
- && . "${scriptdir}/post-build-conf" \
- && check_config_vars \
- && export_config_vars
-} || die "Cannot load config file ${BULK_BUILD_CONF}, aborting."
-
-#
-# Set the paths to commonly used directories.
-#
-pkgsrc_dir="${USR_PKGSRC}"
-pkglint_dir="${USR_PKGSRC}/pkgtools/pkglint"
-
-#
-# Set up variables specific for the bulk build.
-#
-BATCH="1"
-DEPENDS_TARGET="bulk-install"
-export BATCH DEPENDS_TARGET
-
-#
-# Unset some environment variables that could disturbe the build.
-#
-unset CDPATH # ensure cd does not print new cwd to stdout, which
- # confuses the printindex script.
-unset DISPLAY # allow sane failure for gimp, xlispstat
-
-#
-# It starts ...
-#
-echo "Bulk build started: `date`"
-echo ""
-show_config_vars
-
-#
-# Check that the package tools are up to date.
-#
-( cd "${pkglint_dir}" \
- && ${BMAKE} fetch >/dev/null 2>&1
-) || {
- echo "Updating pkgtools"
- ( cd "${pkgsrc_dir}/pkgtools/pkg_install" \
- && ${BMAKE} clean \
- && ${BMAKE} install \
- && ${BMAKE} clean
- ) || die "Could not update the package tools."
-}
-
-#
-# Run the pre-build script if necessary.
-#
-case $restart in
-yes) echo "Resuming -- skipping pre-build script";;
-*) # make veryveryclean :)
- ( cd "${pkgsrc_dir}" \
- && /bin/sh mk/bulk/pre-build
- ) || die "Error during bulk-build preparations, aborting.";;
-esac
-
-#
-# Load pkgsrc variables that affect the build process.
-#
-fail=no
-if cd "${pkglint_dir}"; then
- BULK_DBFILE=`${BMAKE} show-var VARNAME=BULK_DBFILE` || fail=yes
- DEPENDSTREEFILE=`${BMAKE} show-var VARNAME=DEPENDSTREEFILE` || fail=yes
- DEPENDSFILE=`${BMAKE} show-var VARNAME=DEPENDSFILE` || fail=yes
- SUPPORTSFILE=`${BMAKE} show-var VARNAME=SUPPORTSFILE` || fail=yes
- INDEXFILE=`${BMAKE} show-var VARNAME=INDEXFILE` || fail=yes
- ORDERFILE=`${BMAKE} show-var VARNAME=ORDERFILE` || fail=yes
- BROKENFILE=`${BMAKE} show-var VARNAME=BROKENFILE` || fail=yes
- BROKENWRKLOG=`${BMAKE} show-var VARNAME=BROKENWRKLOG ` || fail=yes
- BUILDLOG=`${BMAKE} show-var VARNAME=BUILDLOG` || fail=yes
- STARTFILE=`${BMAKE} show-var VARNAME=STARTFILE` || fail=yes
- AWK=`${BMAKE} show-var VARNAME=AWK USE_TOOLS=awk` || fail=yes
- GREP=`${BMAKE} show-var VARNAME=GREP USE_TOOLS=grep` || fail=yes
- SED=`${BMAKE} show-var VARNAME=SED USE_TOOLS=sed` || fail=yes
- MAIL_CMD=`${BMAKE} show-var VARNAME=MAIL_CMD USE_TOOLS=mail` || fail=yes
- PERL5=`${BMAKE} show-var VARNAME=PERL5 USE_TOOLS=perl` || fail=yes
- MACHINE_ARCH=`${BMAKE} show-var VARNAME=MACHINE_ARCH` || fail=yes
- OPSYS=`${BMAKE} show-var VARNAME=OPSYS` || fail=yes
- OS_VERSION=`${BMAKE} show-var VARNAME=OS_VERSION` || fail=yes
- PKG_TOOLS_BIN=`${BMAKE} show-var VARNAME=PKG_TOOLS_BIN` || fail=yes
- BULK_PREREQ=`${BMAKE} show-var VARNAME=BULK_PREREQ` || fail=yes
-else
- die "The pkgtools/pkglint directory does not exist." \
- "Please update your pkgsrc tree in ${pkgsrc_dir}."
-fi
-
-echo "+----------------------------------------+"
-echo "| Some variables used in the bulk build: |"
-echo "+----------------------------------------+"
-echo "BULK_DBFILE = $BULK_DBFILE"
-echo "BULK_PREREQ = $BULK_PREREQ"
-echo "DEPENDSTREEFILE = $DEPENDSTREEFILE"
-echo "DEPENDSFILE = $DEPENDSFILE"
-echo "SUPPORTSFILE = $SUPPORTSFILE"
-echo "INDEXFILE = $INDEXFILE"
-echo "ORDERFILE = $ORDERFILE"
-echo "BROKENFILE = $BROKENFILE"
-echo "BROKENWRKLOG = $BROKENWRKLOG"
-echo "BUILDLOG = $BUILDLOG"
-echo "STARTFILE = $STARTFILE"
-echo "AWK = $AWK"
-echo "GREP = $GREP"
-echo "SED = $SED"
-echo "MAIL_CMD = $MAIL_CMD"
-echo "PERL5 = $PERL5"
-echo "MACHINE_ARCH = $MACHINE_ARCH"
-echo "OPSYS = $OPSYS"
-echo "OS_VERSION = $OS_VERSION"
-echo "PKG_TOOLS_BIN = $PKG_TOOLS_BIN"
-echo "------------------------------------------"
-
-# make sure we have values for these very important
-# variables; BULK_PREREQ may be empty.
-if [ $fail = "yes" -o \
- -z "$BULK_DBFILE" -o \
- -z "$DEPENDSTREEFILE" -o \
- -z "$DEPENDSFILE" -o \
- -z "$SUPPORTSFILE" -o \
- -z "$INDEXFILE" -o \
- -z "$ORDERFILE" -o \
- -z "$BROKENFILE" -o \
- -z "$BROKENWRKLOG" -o \
- -z "$BUILDLOG" -o \
- -z "$STARTFILE" -o \
- -z "$AWK" -o \
- -z "$GREP" -o \
- -z "$SED" -o \
- -z "$MAIL_CMD" -o \
- -z "$PERL5" -o \
- -z "$MACHINE_ARCH" -o \
- -z "$OPSYS" -o \
- -z "$PKG_TOOLS_BIN" -o \
- -z "$OS_VERSION" \
- ]; then
-
- die "Failed to extract certain key variables." \
- "Please examine the above list and correct the problem."
-fi
-
-#
-# Install prerequisite packages.
-#
-# Note: we do this _before_ the depends tree because some packages like
-# xpkgwedge only become DEPENDS if they are installed.
-#
-echo "Installing prerequisite packages specified with BULK_PREREQ..."
-for pkgdir in $BULK_PREREQ; do
- echo "===> Installing prerequisite package $pkgdir"
- ( cd "${pkgsrc_dir}/${pkgdir}" \
- && ${BMAKE} bulk-install
- ) || die "Could not install prerequisite packages."
-done
-
-#
-# Create the bulk cache files.
-#
-if [ "x$restart" != "xyes" ]; then
- ( cd "${pkgsrc_dir}" \
- && ${BMAKE} bulk-cache $makeargs
- ) || die "Could not create the bulk build cache."
-fi
-
-#
-# Everything is prepared. We can start building the real packages now.
-#
-cd "${pkgsrc_dir}" || die "The pkgsrc directory does not exist."
-echo "Starting actual build using the order specified in $ORDERFILE..."
-
-# Loop over every package in the correct order. Before building
-# each one, check to see if we've already processed this package
-# before. This could happen if the build got interrupted and we
-# started it again with the 'restart' option. This prevents us
-# from having to do a potentially very large number of make's to
-# get back to where we let off. After we build each package, add
-# it to the top level buildlog
-# (usually '.make' or '.make.${MACHINE}'). As a side benefit, this
-# can make a progress-meter very simple to add!
-
-# make sure we have something to grep in in the build loop
-touch "${BUILDLOG}" || die "Cannot write to ${pkgsrc_dir}/${BUILDLOG}."
-
-tot=`wc -l $ORDERFILE | ${AWK} '{print $1}'`
-for pkgdir in `cat $ORDERFILE`
-do
- if ${GREP} -q "^${pkgdir}\$" "${BUILDLOG}"; then
- : "skip this package"
- else
- built=`wc -l $BUILDLOG | ${AWK} '{print $1}'`
- percent=`echo $built $tot | ${AWK} '{printf("%4.1f%%",$1*100/$2);}'`
- ( cd "${pkgsrc_dir}/${pkgdir}" \
- && ${NICE_LEVEL} ${BMAKE} USE_BULK_CACHE=yes $target \
- $makeargs </dev/null | post_filter_cmd
- ) || true
- echo "$pkgdir" >> $BUILDLOG
- fi
-done
-
-echo "Build finished. Removing all installed packages left over from build..."
-for pkgname in `${PKG_TOOLS_BIN}/pkg_info -e \*`
-do
- if ${PKG_TOOLS_BIN}/pkg_info -qe $pkgname; then
- pkgdir=`${AWK} "/ $pkgname /"'{print $1}{}' $INDEXFILE`
- case "${BULK_PREREQ}" in
- *$pkgdir* )
- echo "Keeping BULK_PREREQ: $pkgname ($pkgdir)" ;
- ;;
- * )
- echo ${PKG_TOOLS_BIN}/pkg_delete -r $pkgname
- ${PKG_TOOLS_BIN}/pkg_delete -r $pkgname
- if ${PKG_TOOLS_BIN}/pkg_info -qe $pkgname; then
- echo "$pkgname ($pkgdir) did not deinstall nicely. Forcing the deinstall"
- ${PKG_TOOLS_BIN}/pkg_delete -f $pkgname || true
- fi
- ;;
- esac
- fi
-done
-
-# for now, just quit if we were only mirroring distfiles. At somepoint we
-# should teach the post-build script to generate a nice report about how many
-# distfiles were downloaded, how many had bad checksums, failed master sites,
-# network speed, etc.
-
-if [ "x$mirror_only" = "xyes" ]; then
- echo "Bulk mirror of distfiles completed: `date`"
- exit 0
-fi
-
-echo "Post processing bulk build results..."
-
-#rm $DEPENDSTREEFILE $DEPENDSFILE $SUPPORTSFILE $INDEXFILE $ORDERFILE
-
-# Re-install BULK_PREREQ as we may need functionality (e.g. SMTP) provided by
-# them for post-build to run.
-echo "Re-installing prerequisite packages specified with BULK_PREREQ..."
-for pkgdir in $BULK_PREREQ lang/perl5
-do
- echo "===> Installing prerequisite package $pkgdir"
- ( cd "${pkgsrc_dir}/${pkgdir}" \
- && ${BMAKE} bulk-install
- ) || die "Failed to install prerequisite packages."
-done
-
-#
-# Generate the post-build report.
-#
-BUILDDATE=`date +%Y-%m-%d`
-mkdir -p "${FTP}"
-( cd "${pkgsrc_dir}" \
- && ${PERL5} mk/bulk/post-build \
- > ${FTP}/pkgsrc-results-${BUILDDATE}.txt
-) || die "Could not write the results file."
-
-#
-# Notify the ADMIN of the finished build.
-#
-case $noemail in no)
- cat ${FTP}/pkgsrc-results-${BUILDDATE}.txt \
- | ${MAIL_CMD} -s "pkgsrc ${OPSYS} ${OS_VERSION}/${MACHINE_ARCH} bulk build results $BUILDDATE" $ADMIN
-esac
-
-# Done!
-echo ""
-echo "Bulk build ended: `date`"
diff --git a/mk/bulk/build.conf-example b/mk/bulk/build.conf-example
deleted file mode 100644
index e3c310e4915..00000000000
--- a/mk/bulk/build.conf-example
+++ /dev/null
@@ -1,107 +0,0 @@
-# $NetBSD: build.conf-example,v 1.30 2005/11/05 23:22:05 rillig Exp $
-#
-# This is an example configuration file for pkgsrc bulk builds.
-# Actually it's a shell script that is sourced in by the pre-build,
-# build and post-build programs.
-#
-
-#
-# System information
-#
-
-# The OS release this bulk build is happening on
-osrev=`uname -r`
-
-# The machine architecture this is happening on
-arch=`uname -m`
-
-# Where our pkgsrc is located
-USR_PKGSRC="/usr/pkgsrc"
-
-# An absolute pathname to your mk.conf file.
-# The file must be outside ${PREFIX}, or it will be overwritten.
-#MAKECONF="$HOME/etc/mk.conf"
-
-
-#
-# Keeping pkgsrc up-to-date
-#
-
-# As which user to run "cvs updates". Leave empty for no update.
-CVS_USER="yourlogin"
-
-# Flags to pass to 'cvs update', e.g. to get a certain branch
-#CVS_FLAGS="-rnetbsd-2005Q1"
-#CVS_FLAGS="-A" # pkgsrc-current
-
-
-#
-# Getting distfiles
-#
-
-# prune distfiles to remove those which are out of date
-# can be set to 'yes' or 'no'.
-PRUNEDISTFILES=no
-
-# Proxies (optional):
-#ftp_proxy=http://proxy.machi.ne:3128/
-#http_proxy=http://proxy.machi.ne:3128/
-
-
-#
-# Building packages
-#
-
-# List of package directories to build.
-# Defaults to all packages if PKGLIST is empty or undefined.
-#PKGLIST="www/mozilla meta-pkgs/kde3"
-
-# Nice level for builds
-NICE_LEVEL="nice -n 20"
-
-# whether to cache the lintpkgsrc database for PRUNE* or uploading
-# can be set to 'yes' or 'no'.
-LINTPKGSRC_CACHE=no
-
-# Where build will mail the report
-ADMIN="you@some.whe.re"
-
-# Who the report is signed by
-ADMINSIG="-Your Name"
-
-
-#
-# Uploading binary packages
-#
-
-# Update vulnerability database before uploading.
-# can be set to 'yes' or 'no'.
-UPDATE_VULNERABILITY_LIST=yes
-
-# prune binary packages to remove those which are out of date
-# can be set to 'yes' or 'no'.
-PRUNEPACKAGES=yes
-
-# Whether or not to create checksum files
-MKSUMS=yes
-
-# If you want to PGP sign the checksum files, set and correct
-#SIGN_AS=username@NetBSD.org
-
-# Destination for packages and rsync options
-RSYNC_DST=$CVS_USER@ftp.NetBSD.org:/pub/NetBSD/packages/pkgsrc-200xQy/NetBSD-a.b.c/i386
-RSYNC_OPTS='-e ssh'
-
-# Some paths for output files and paths to log files
-FTPx=`date +%Y%m%d.%H%M`
-FTPURL="pub/NetBSD/pkgstat/${FTPx}" # relative to ~ftp !
-FTP="/home/ftp/${FTPURL}" # absolute base path
-FTPHOST="ftp://ftp.machi.ne" # host for broken.html
-
-
-###########################################################################
-### No changes should be needed below this line !!!
-###########################################################################
-
-# Name of the (generated) HTML file which lists all broken pkgs
-REPORT="$FTP/broken.html"
diff --git a/mk/bulk/do-sandbox-build b/mk/bulk/do-sandbox-build
deleted file mode 100644
index 31c2df1e2f7..00000000000
--- a/mk/bulk/do-sandbox-build
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# $NetBSD: do-sandbox-build,v 1.12 2005/07/13 22:07:46 rillig Exp $
-
-#
-# Script to start a sandbox build
-#
-# See pkgsrc/doc/pkgsrc.txt for documentation!
-#
-
-sh="/bin/sh"
-build="mk/bulk/build"
-
-chroot /usr/sandbox \
- $sh -c "cd /usr/pkgsrc && exec $sh $build \"\$@\"" $build "$@"
diff --git a/mk/bulk/do-sandbox-upload b/mk/bulk/do-sandbox-upload
deleted file mode 100644
index e2b0df344f3..00000000000
--- a/mk/bulk/do-sandbox-upload
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# $NetBSD: do-sandbox-upload,v 1.5 2005/07/13 22:07:46 rillig Exp $
-
-#
-# Script to start a sandbox build
-#
-# See pkgsrc/doc/pkgsrc.txt for documentation!
-#
-
-sh="/bin/sh"
-upload="mk/bulk/upload"
-
-chroot /usr/sandbox \
- $sh -c "cd /usr/pkgsrc && exec $sh $upload \"\$@\"" $upload "$@"
diff --git a/mk/bulk/environment.txt b/mk/bulk/environment.txt
deleted file mode 100644
index fc8e51f75c8..00000000000
--- a/mk/bulk/environment.txt
+++ /dev/null
@@ -1,106 +0,0 @@
-# $NetBSD: environment.txt,v 1.3 2005/11/07 18:26:22 tv Exp $
-#
-
-===> Environment variables used by the bulk build scripts
-
-This file lists all(?) the environment and pkgsrc variables that
-directly influence the bulk build process, grouped by the script in
-which they are used.
-
-===> mk/bulk/build
-
- => Settable by the user
-
- BULK_BUILD_CONF: Pathname
- The configuration file for the bulk build.
- http_proxy: URL
- The HTTP proxy used for fetching distfiles.
- ftp_proxy: URL
- The FTP proxy used for fetching distfiles.
- USR_PKGSRC: Pathname
- The location of the pkgsrc root directory.
-
- => User-defined in mk.conf
-
- BULK_DBFILE
- DEPENDSTREEFILE
- DEPENDSFILE
- SUPPORTSFILE
- INDEXFILE
- ORDERFILE
- BROKENFILE
- BROKENWRKLOG
- FORCEBROKENFILE
- BUILDLOG
- STARTFILE
-
- BULK_PREREQ
-
- => Set by the script
-
- BATCH=1
- Used by pkgsrc.
- BMAKE={make,bmake}
- The make(1) program used for building the packages.
- DEPENDS_TARGET=bulk-install
- Used by pkgsrc.
-
-### to be continued in line 191
-
-===> mk/bulk/pre-build
-
- => User-definable
-
- BULK_BUILD_CONF: Pathname
- PRUNEDISTFILES: Boolean := no
- PRUNEPACKAGES: Boolean := yes
- PRUNELINKS: Boolean := yes
- UPDATE_VULNERABILITY_LIST: Boolean := yes
- USR_PKGSRC: Pathname
- CVS_USER: Loginname
-
- => User-defined in mk.conf
-
- BROKENFILE
- BROKENWRKLOG
- BUILDLOG
- LINTPKGSRC_DB
- STARTFILE
- LOCALBASE
- X11BASE
- DISTDIR
- PKG_DBDIR
- DEPOTBASE
- PKG_TOOLS_BIN
- PACKAGES
-
- => Set by the script
-
- BROKENF: Filename
- Filename where the build log is saved when the build fails.
- BRKWRKLOG: Filename
- Filename where the work log is saved when the build fails.
- BLDLOG: Filename
- Filename where ? is saved when the build fails.
- LINTPKGSRC_DB: Filename
- Filename of the lintpkgsrc database.
- STARTFILE: Filename
- Cookie file to determine whether the build has started.
- LOCALBASE: Pathname
- Like in pkgsrc.
- X11BASE: Pathname
- Like in pkgsrc.
- DISTDIR: Pathname
- Like in pkgsrc.
- PKG_DBDIR: Pathname
- Like in pkgsrc.
- DEPOTBASE: Pathname
- Like in pkgsrc.
- PKG_TOOLS_BIN: Pathname
- Like in pkgsrc.
- PACKAGES: Pathname
- Like in pkgsrc.
-
- => Files used by the script
-
- mk/bulk/pre-build.local: Shellscript
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox
deleted file mode 100755
index f42642f152d..00000000000
--- a/mk/bulk/mksandbox
+++ /dev/null
@@ -1,358 +0,0 @@
-#! /bin/sh
-
-# $NetBSD: mksandbox,v 1.40 2005/04/21 21:44:56 dmcmahill Exp $
-#
-#
-# Copyright (c) 2002 Alistair G. Crooks. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by Alistair G. Crooks
-# for the NetBSD project.
-# 4. The name of the author may not be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-# Usage: mksandbox [--pkgsrc=dir] [--src=srcdir] [--xsrc=xsrcdir] [--verbose] sandbox-dir
-#
-# A small shell script to set up a sandbox (usually for a pkgsrc bulk
-# build), using null mounts.
-
-pkgsrc=/usr/pkgsrc
-src=/usr/src
-xsrc=/usr/xsrc
-
-kernel=""
-sandboxMountDirs="/bin /sbin /lib /libexec /usr/X11R6 /usr/bin /usr/games /usr/include /usr/lib /usr/libdata /usr/libexec /usr/lkm /usr/share /usr/sbin /var/mail"
-sandboxEmptyDirs="/var/run /var/log /var/spool/mqueue"
-sandboxEmptyFiles="/var/run/utmp /var/run/utmpx /var/log/wtmp /var/log/wtmpx /var/log/lastlog /var/log/lastlogx"
-
-usage()
-{
- echo "Usage: mksandbox [--pkgsrc=dir] [--src=srcdir] [--xsrc=xsrcdir] [--verbose] sandbox-dir"
- exit 1
-}
-
-err()
-{
- echo "error: $1"
- exit 1
-}
-
-# by default, don't require src and xsrc to be available
-need_src=no
-need_xsrc=no
-
-opsys=`uname -s`
-case "$opsys" in
-Darwin)
- bmakeprog=bmake
- chmodprog=/bin/chmod
- chownprog=/usr/sbin/chown
- cpprog=/bin/cp
- gtarprog=/usr/bin/gnutar
- idprog=/usr/bin/id
- mkdirprog="/bin/mkdir -p"
- mountflags="-t null"
- mountprog=/sbin/mount
- paxprog=/bin/pax
- sedprog=/usr/bin/sed
- ;;
-Linux)
- bmakeprog=bmake
- chmodprog=/bin/chmod
- chownprog=/bin/chown
- cpprog=/bin/cp
- gtarprog=/bin/tar
- idprog=/usr/bin/id
- mkdirprog="/bin/mkdir -p"
- mountflags="--bind"
- mountprog=/sbin/mount
- paxprog=""
- sedprog=/bin/sed
- sandboxMountDirs="$sandboxMountDirs /proc"
- ;;
-NetBSD)
- bmakeprog=make
- chmodprog=/bin/chmod
- chownprog=/usr/sbin/chown
- cpprog=/bin/cp
- gtarprog=/usr/bin/tar
- idprog=/usr/bin/id
- kernel=/netbsd
- mkdirprog="/bin/mkdir -p"
- mountflags="-t null"
- mountprog=/sbin/mount
- paxprog=/bin/pax
- sedprog=/usr/bin/sed
- need_src=yes
- need_xsrc=yes
- ;;
-SunOS)
- bmakeprog=bmake
- chmodprog=/usr/bin/chmod
- chownprog=/usr/bin/chown
- cpprog=/usr/bin/cp
- gtarprog=""
- idprog=/usr/xpg4/bin/id
- mkdirprog="/usr/bin/mkdir -p"
- mountflags="-F lofs"
- mountprog=/sbin/mount
- paxprog=/bin/pax
- sedprog=/usr/xpg4/bin/sed
- sandboxMountDirs="/bin /sbin /kernel /lib /proc /opt/SUNWspro /usr/X11R6 /usr/5bin /usr/bin /usr/ccs /usr/dt /usr/games /usr/include /usr/lib /usr/openwin /usr/share /usr/sbin /usr/ucb /usr/ucblib /usr/xpg4 /var/mail /var/sadm"
- sandboxEmptyDirs="$sandboxEmptyDirs /usr/tmp /var/tmp"
- ;;
-*)
- echo "Unknown Operating System ($opsys) - good luck"
- bmakeprog=bmake
- chmodprog=chmod
- chownprog=chown
- cpprog=cp
- gtarprog="tar"
- idprog="id"
- mkdirprog="mkdir -p"
- mountflags="-t null"
- mountprog=mount
- paxprog=pax
- sedprog=sed
- ;;
-esac
-
-while [ $# -gt 0 ]; do
- case "$1" in
- --pkgsrc=*) pkgsrc=`echo $1 | $sedprog -e 's|^--pkgsrc=||'` ;;
- --src=*) src=`echo $1 | $sedprog -e 's|^--src=||'` ;;
- --xsrc=*) xsrc=`echo $1 | $sedprog -e 's|^--xsrc=||'` ;;
- --verbose) set -x ;;
- -*) usage ;;
- *) break ;;
- esac
- shift
-done
-
-if [ $# -ne 1 ]; then
- usage
-fi
-
-if [ `$idprog -u` -ne 0 ]; then
- err "You must be root to run this script."
-fi
-
-if [ ! -d $pkgsrc ]; then
- err "pkgsrc directory $pkgsrc does not exist."
-fi
-
-if [ ! -d $src -a "$need_src" = "yes" ]; then
- err "source directory $src does not exist."
-fi
-
-if [ ! -d $xsrc -a "$need_xsrc" = "yes" ]; then
- err "xsrc directory $xsrc does not exist."
-fi
-
-sandbox=$1
-sandbox_script="$sandbox/sandbox"
-
-packages=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=PACKAGES)`
-distfiles=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=DISTDIR)`
-localbase=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=LOCALBASE)`
-pkg_dbdir=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=PKG_DBDIR)`
-localpatches=`(cd $pkgsrc/pkgtools/pkglint; $bmakeprog show-var VARNAME=LOCALPATCHES)`
-
-test -d "$localpatches" || echo "WARNING: LOCALPATCHES directory does not exist - ignoring"
-
-$mkdirprog $sandbox
-cat > $sandbox_script <<EOS
-#! /bin/sh -
-sandbox=$sandbox
-
-r3() {
- _R=
- while [ \$# -ge 3 ]
- do
- _R="\$1 \$2 \$3 \$_R"
- shift; shift; shift
- done
- echo "\$_R"
-}
-
-fses="\\
-EOS
-
-if [ ! -z "$kernel" ]; then
- echo "Copying the kernel"
- $cpprog $kernel $sandbox
-fi
-
-echo "Checking package hierarchy in $localbase and package database in $pkg_dbdir exist"
-$mkdirprog $sandbox/$localbase $sandbox/$pkg_dbdir
-
-echo "Make and populate $sandbox/dev"
-$mkdirprog $sandbox/dev
-
-case "$opsys" in
-SunOS)
- /usr/sbin/devfsadm -r $sandbox
- if [ -f /usr/ucblib/ucblinks.awk -a -x /usr/ucb/ucblinks ]; then
- /usr/ucb/ucblinks -r $sandbox
- fi
- ;;
-Linux)
- $cpprog /dev/MAKEDEV* $sandbox/dev
- (cd $sandbox/dev; ./MAKEDEV generic)
- ;;
-*)
- $cpprog /dev/MAKEDEV* $sandbox/dev
- (cd $sandbox/dev; ./MAKEDEV all)
-esac
-
-echo "Make and populate $sandbox/etc"
-$mkdirprog $sandbox/etc
-case "$paxprog" in
-"") (cd /etc; $gtarprog -cf - . | (cd $sandbox/etc; $gtarprog xf - )) ;;
-*) (cd /etc; $paxprog -rwpe . $sandbox/etc) ;;
-esac
-rm -f $sandbox/etc/localtime
-
-case "$opsys" in
-SunOS)
- $cpprog /etc/TIMEZONE $sandbox/etc/TIMEZONE
- ;;
-*)
- $cpprog /usr/share/zoneinfo/GMT $sandbox/etc/localtime
- ;;
-esac
-
-echo "Make empty dirs upon which to mount the null mounts"
-for d in $sandboxMountDirs; do
- test -d $d || continue;
- $mkdirprog $sandbox$d;
- $mountprog $mountflags -r $d $sandbox$d;
- echo "$d $d ro \\" >> $sandbox_script
-done
-
-echo "Making /tmp in $sandbox"
-$mkdirprog $sandbox/tmp $sandbox/var/tmp
-$chmodprog 1777 $sandbox/tmp $sandbox/var/tmp
-
-echo "Making /var/games in $sandbox"
-$mkdirprog $sandbox/var/games
-$chownprog games:games $sandbox/var/games
-$chmodprog 2775 $sandbox/var/games
-
-for d in $sandboxEmptyDirs; do
- test -d $d || continue
- echo "Making $d in $sandbox"
- $mkdirprog $sandbox$d
-done
-
-for f in $sandboxEmptyFiles; do
- test -f $f || continue
- echo "Making $f in $sandbox"
- $cpprog /dev/null $sandbox$f
-done
-
-if [ "$need_src" = "yes" ]; then
- echo "Mount $src from $sandbox"
- $mkdirprog $sandbox/usr/src
- $mountprog $mountflags -r $src $sandbox/usr/src
- echo "$src /usr/src ro \\" >> $sandbox_script
-fi
-
-echo "Mount $pkgsrc from $sandbox"
-$mkdirprog $sandbox/usr/pkgsrc
-$mountprog $mountflags $pkgsrc $sandbox/usr/pkgsrc
-echo "$pkgsrc /usr/pkgsrc rw \\" >> $sandbox_script
-
-if [ "$need_xsrc" = "yes" ]; then
- echo "Mount $xsrc from $sandbox"
- $mkdirprog $sandbox/usr/xsrc
- $mountprog $mountflags -r $xsrc $sandbox/usr/xsrc
- echo "$xsrc /usr/xsrc ro \\" >> $sandbox_script
-fi
-
-echo "Mounting $packages and $distfiles from $sandbox"
-$mkdirprog $sandbox/$packages $sandbox/$distfiles
-$mkdirprog $packages $distfiles
-$mountprog $mountflags $packages $sandbox/$packages
-$mountprog $mountflags $distfiles $sandbox/$distfiles
-echo "$packages $packages rw \\" >> $sandbox_script
-echo "$distfiles $distfiles rw \\" >> $sandbox_script
-
-if [ -n "$localpatches" ] && [ -d "$localpatches" ]; then
- echo "Mounting $localpatches from $sandbox"
- $mkdirprog $sandbox/$localpatches
- $mountprog $mountflags $localpatches $sandbox/$localpatches
- echo "$localpatches $localpatches rw \\" >> $sandbox_script
-fi
-
-cat >> $sandbox_script <<EOS
-"
-case x\$1 in
- xmount)
- set dummy \$fses
- shift
- while [ \$# -ge 3 ]; do
- fs=\$1; shift
- mntpoint=\$1; shift
- rwro=\$1; shift
- case \$rwro in
- ro) mount $mountflags -r \$fs \$sandbox/\$mntpoint || exit 1 ;;
- rw) mount $mountflags \$fs \$sandbox/\$mntpoint || exit 1 ;;
- esac
- done
- ;;
- xumount)
- set dummy \`r3 \$fses\`
- shift
- while [ \$# -ge 3 ]; do
- fs=\$1; shift
- mntpoint=\$1; shift
- dummy=\$1; shift
- umount \$sandbox/\$mntpoint
- done
- ;;
- *)
- if [ \$# -eq 0 ]; then
- set dummy /bin/sh
- shift
- fi
- chroot \$sandbox "\$@"
- ;;
-esac
-EOS
-
-chmod +x $sandbox_script
-
-case $opsys in
-SunOS)
- $cpprog /etc/mnttab $sandbox/etc/mnttab
- ;;
-*)
-esac
-
-echo "Sandbox creation is now complete"
-
-exit 0
diff --git a/mk/bulk/parallel.txt b/mk/bulk/parallel.txt
deleted file mode 100644
index ffd844bfe17..00000000000
--- a/mk/bulk/parallel.txt
+++ /dev/null
@@ -1,207 +0,0 @@
-# $Id: parallel.txt,v 1.5 2004/07/10 14:37:36 grant Exp $
-#
-
-These are my (<dmcmahill>) thoughts on how one would want a parallel
-bulk build to work.
-
-
-====================================================================
-Single Machine Build Process
-====================================================================
-
-The current (as of 2003-03-16) bulk build system works in the
-following manner:
-
-1) All installed packages are removed.
-
-2) Packages listed in the BULK_PREREQ variable are installed. This
- must be done before step 2 as some packages (like xpkgwedge) can
- affect the dependencies of other packages when installed.
-
-3) Each package directory is visited and its explicitly listed
- dependencies are extracted and put in a 'dependstree' file. The
- mk/bulk/tflat script is used to generate flattened dependencies
- for all packages from this dependstree file in both the up and
- down directions. The result is a file 'dependsfile' which has one
- line per package that lists all build dependencies. Additionally,
- a 'supportsfile' is created which has one line for each package
- and lists all packages which depend upon the listed pacakge.
- Finally, tsort(1) is applied to the 'dependstree' file to
- determine the correct build order for the bulk build. The build
- order is stored in a 'buildorder' file. This is all achieved via
- the 'bulk-cache' top level target. By extracting dependencies in
- this fashion, we avoid highly redundant recursive make calls. For
- example, we no longer need to use a recursive make to find the
- dependencies for libtool literally thousands and thousands of
- times throughout the build.
-
-4) During the build, the 'buildorder' file is consulted to figure out
- which package should be built next. Then to build the package,
- the following steps are taken:
-
- a) Check for the existance of a '.broken' file in the package
- directory. If this file exists, then the package is already
- broken for some reason so move on to the next package.
-
- b) Remove all packages which are not needed to build the current
- package. This dependency list is obtained from the 'dependsfile'
- created in step 3 and the BULK_PREREQ variable.
-
- c) Install via pkg_add all packages which are needed to build the
- current package. We are able to do this because we have been
- building our packages in a bottom up order so all dependencies
- should have been built.
-
- d) Build and package the package.
-
- e) If the package build fails, then we copy over the build log to
- a .broken file and in addition, we consult the 'supportsfile' and
- mark all packages which depend upon this one as broken by adding a
- line to their .broken files (creating them if needed). By going
- ahead and marking these packages as broken, we avoid wasting time
- on them later.
-
- f) Append the package directory name to the top level pkgsrc
- '.make' file to indicate that we have processed this package.
-
-5) Run the mk/bulk/post-build script to collect the summary and
- generate html pages and the email we've all seen.
-
-====================================================================
-Single Machine Build Comments
-====================================================================
-
-There are several features of this approach that are worth mentioning
-explicitly.
-
-1) Packages are built in the correct order. We don't want to rebuild
- the gnome meta-pkg and then rebuild gnome-libs for example.
-
-2) Restarting the build is a cheap operation. Remember that this
- build can take weeks or more. In fact the 1.6 build took nearly 6
- weeks on a sparc 20! If for some reason, the build needs to be
- interrupted, it can be easily restarted because in step 4f we keep
- track of what has been built in a file. The lines in the build
- script which control this are:
-
- for pkgdir in `cat $ORDERFILE` ; do
- if ! grep -q "^${pkgdir}\$" $BUILDLOG ; then
- (cd $pkgdir && \
- nice -n 20 ${BMAKE} USE_BULK_CACHE=yes bulk-package)
- fi
- done
-
- In addition to storing the progress to disk, the bulk cache files
- (the 'dependstreefile', 'dependsfile', 'supportsfile', and
- 'orderfile') are stored on disk so they do not need to be
- recreated if a build is stopped and then restarted.
-
-3) By leaving packages installed and only deleting the ones which are
- not needed before each build, we reduce the amount of installing
- and deinstalling needed during the build. For example, it is
- quite common to build several packages in a row which all need GNU
- make or perl.
-
-4) Using the 'supportsfile' to mark all packages which depend upon a
- package which has just failed to build can greatly reduce the time
- wasted on trying to build packages which known broken dependencies.
-
-====================================================================
-Parallel Build Thoughts
-====================================================================
-
-To exploit multiple machines in an attempt to reduce the build time,
-many of the same ideas used in the single machine build can still be
-used. My view of how a parallel build should work is detailed here.
-
-master == master machine. This machine is in charge of directing
- the build and may or may not actively participate in it.
- In addition, this machine might not be of the same
- architecture or operating system as the slaves (unless it
- is to be used as a slave as well).
-
-slave#x == slave machine #x. All slave machines are of the same
- MACHINE_ARCH and have the same operating system and access
- the same pkgsrc tree via NFS and access the same binary
- packages directory.
-
- If the master machine is also to be used as a build
- machine, then it is also considered a slave.
-
-Prior to starting the build, the master directs one of the slaves to
-extract the dependency information per steps 1-3 in the single machine
-case.
-
-The actually build should progress as follows:
-
-1) For each slave which needs a job, the master assigns a package to
- build based on the rule that only packages that have had all their
- dependencies built will be sent to slaves for compilation.
-
-2) When a slave finishes, the master either notes that the binary
- package is now available for use as a depends _or_ notes failure
- and marks all packages which depend upon it as broken as in step
- 4e of the single machine build.
-
-
-Each slave builds a package in the same way as it would in a single
-machine build (steps 4a-d).
-
-====================================================================
-Important Parallel Build Considerations
-====================================================================
-
-
-1) Security. Packages are installed as root prior to packaging.
-
-2) All state kept by the master should be stored to disk to
- facilitate restarting a build. Remember this could take weeks so
- we don't want to have to start over.
-
-3) The master needs to be able to monitor all slaves for signs of
- life. I.e., if a slave machine is simply shut off, the master
- should detect that it's no longer there and re-assign that slaves
- current job.
-
-3a) The master must be able to distinguish between a slave failing to
- compile a package due to the package failing vs a
- network/power/disk/etc. failure. The former causes the package to
- be marked as broken, the latter causes the slave to be marked as
- broken.
-
-4) Ability to add and remove slaves from the cluster during a build.
- Again, a build may take a long time so we want to add/remove
- slaves while the build is in progress.
-
-====================================================================
-Additional Thoughts
-====================================================================
-
-This is mostly related to using slaves which are not on a local
-network.
-
-- maybe a hook could be put in place which rsync's the binary package
- tree between the binary package repository machine and the slave
- machine before and after each package is built?
-
-- security
-
-- support for Kerberos?
-
-====================================================================
-Implementation Thoughts
-====================================================================
-
-- Can this all be written around using ssh to send out tasks? How do
- we monitor slaves for signs of life? How do we indicate 'build
- failed/build succeeded/slave failed' conditions?
-
-- Maybe we could have a file listing slaves and the master consults
- this each time it needs a slave. That would make adding/removing
- slaves easy. There would need to be another file to keep track of
- which slaves are busy (and with what).
-
-- Do we want to use something like pvm instead? There is a
- p5-Parallel-Pvm package and perl nicely deals with parsing some of
- these files and sorting dependencies although I hate to add any
- extra dependencies to the build system.
diff --git a/mk/bulk/post-build b/mk/bulk/post-build
deleted file mode 100644
index 7587175625b..00000000000
--- a/mk/bulk/post-build
+++ /dev/null
@@ -1,593 +0,0 @@
-#!/usr/pkg/bin/perl
-# $NetBSD: post-build,v 1.58 2005/09/25 15:05:40 jschauma Exp $
-#
-# Collect stuff after a pkg bulk build
-#
-# (c) 2000 Hubert Feyrer, All Rights Reserved.
-#
-
-use File::Basename;
-use POSIX qw(strftime);
-use strict;
-use warnings;
-
-my %vars;
-my $verbose = 1; # set to 2 to see more command execution detail
-
-sub my_system (@) {
- print STDERR '> '.join(' ', @_)."\n" if ($verbose >= 2);
- system(@_);
-}
-
-# Where config vars are stored (/bin/sh syntax)
-
-my $BULK_BUILD_CONF = $ENV{BULK_BUILD_CONF} || (dirname($0).'/build.conf');
-$BULK_BUILD_CONF = "./$BULK_BUILD_CONF" if ($BULK_BUILD_CONF !~ m:^/:);
-
-# Dig given variable out of config file, and set it
-sub getconf (@) {
- open(I, ". $BULK_BUILD_CONF; for var in ".join(' ', @_)."; do eval echo \\\${\$var}; done |") || die 'cannot open pipe';
-
- foreach my $var (@_) {
- $vars{$var} = <I>;
- chomp $vars{$var};
- die "\$$var not defined by $BULK_BUILD_CONF" if ($vars{$var} eq '');
-
- print STDERR "> $var=$vars{$var}\n" if ($verbose >= 2);
- }
-}
-
-getconf(
- 'ADMINSIG', # "-Your Name"
- 'FTPURL', # "pub/NetBSD/pkgstat/`date +%Y%m%d.%H%M`"
- 'FTP', # "/disk1/ftp/${FTPURL}"
- 'FTPHOST', # ftp://ftp.machi.ne/
- 'REPORT', # "broken.html"
- 'USR_PKGSRC', # "/usr/pkgsrc"
- 'osrev', # `uname -r`
-);
-
-my $reportf = basename($vars{REPORT});
-
-my $os = `uname -s`;
-chomp $os;
-
-my $BMAKE = $ENV{BMAKE} || die '$BMAKE not defined in environment';
-
-sub getmakevars (@) {
- open(I, "cd $vars{USR_PKGSRC}/pkgtools/pkglint && $BMAKE show-vars BATCH=1 VARNAMES='".join(' ', @_)."' |") || die 'cannot open pipe';
-
- foreach my $var (@_) {
- $vars{$var} = <I>;
- chomp $vars{$var};
- die "\${$var} not defined by $BMAKE" if ($vars{$var} eq '');
-
- print STDERR "> $var=$vars{$var}\n" if ($verbose >= 2);
- }
-}
-
-# Extract the names of the files used for the build log and broken build logs.
-# These have defaults set by bsd.bulk-pkg.mk and may be overridden in
-# /etc/mk.conf
-getmakevars(qw(
- BROKENFILE
- BROKENWRKLOG
- BULK_DBFILE
- DEPENDSFILE
- DEPENDSTREEFILE
- FIND
- INDEXFILE
- LOCALBASE
- MACHINE_ARCH
- ORDERFILE
- PAX
- PKG_DBDIR
- STARTFILE
- SUPPORTSFILE
- X11BASE
- PKG_TOOLS_BIN
-));
-
-my $bulkdbfile = basename($vars{BULK_DBFILE});
-my $dtfile = basename($vars{DEPENDSTREEFILE});
-my $depfile = basename($vars{DEPENDSFILE});
-my $supfile = basename($vars{SUPPORTSFILE});
-my $indfile = basename($vars{INDEXFILE});
-my $ordfile = basename($vars{ORDERFILE});
-
-my $startdate = (stat($vars{STARTFILE}))[9];
-my $enddate = '';
-if ($startdate == 0) {
- $startdate = "unknown";
-} else {
- local $ENV{TZ} = "UTC";
- $startdate = strftime("%c %Z", gmtime($startdate));
- $enddate = strftime("%c %Z", gmtime(time()));
-}
-
-my $report_head = <<EOF;
-Package Breaks Maintainer
---------------------------------------------------------------
-EOF
-my $report_form = <<EOF;
-@<<<<<<<<<<<<<<<<<<<<<<<<< @<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<
-EOF
-# $pkg, $nbrokenby, $maintainer
-
-
-my_system("mkdir -p $vars{FTP}");
-
-# Copy over the output from the build process
-chdir($vars{USR_PKGSRC});
-my_system("find . -name $vars{BROKENFILE} -print -o -name $vars{BROKENWRKLOG} -print | $vars{PAX} -r -w -X -p e $vars{FTP}");
-
-# Copy over the cache files used during the build
-foreach my $f qw(BULK_DBFILE DEPENDSTREEFILE DEPENDSFILE SUPPORTSFILE INDEXFILE ORDERFILE) {
- my_system("cp $vars{$f} $vars{FTP}") if -f $vars{$f};
-}
-
-chdir($vars{FTP});
-writeReport();
-
-#
-# Adjust "last" symlink
-#
-{
- my ($base, $dir) = ($vars{FTP} =~ m|^(.*)/([^/]*)$|);
-
- unlink("$base/last");
- symlink($dir, "$base/last");
-}
-
-#
-# Generate leftovers-$vars{MACHINE_ARCH}.html: files not deleted
-# Leftover files are copied to leftovers-$vars{MACHINE_ARCH} dir,
-# and linked from leftovers-$vars{MACHINE_ARCH}.html
-#
-{
- chdir($vars{FTP});
- my_system("mkdir -p leftovers-$vars{MACHINE_ARCH}");
-
- # Find files since last build:
- my $leftovers_txt = "leftovers-$vars{MACHINE_ARCH}.txt";
- my $leftovers_html = "leftovers-$vars{MACHINE_ARCH}.html";
-
- my_system("$vars{FIND} $vars{LOCALBASE}/ -newer $vars{STARTFILE} -type f -print >>$leftovers_txt");
- my_system("$vars{FIND} $vars{X11BASE}/ -newer $vars{STARTFILE} -type f -print >>$leftovers_txt");
-
- # Strip perl-files:
- my $perlfiles;
- {
- local $/;
- undef $/;
- $perlfiles = `$vars{PKG_TOOLS_BIN}/pkg_info -qL perl*`;
- }
-
- my $perlfiles_pattern = $perlfiles;
- $perlfiles_pattern =~ s/\n/|/g;
- $perlfiles_pattern =~ s/|$//;
-
- open (LEFT, $leftovers_txt) or die "can't read $leftovers_txt: $!";
- my @left = <LEFT>;
- close (LEFT);
- my @leftovers = grep(!/^(?:${perlfiles_pattern})$/, @left);
-
- if (index($vars{PKG_DBDIR}, $vars{LOCALBASE}) == 0) {
- # If PKG_DBDIR is inside LOCALBASE, exclude it from the leftovers.
- @leftovers = grep { index($_, $vars{PKG_DBDIR}) != 0 } @leftovers;
- }
-
- open (LEFT, ">$leftovers_txt") or die "can't write $leftovers_txt: $!";
- print LEFT @leftovers;
- close (LEFT);
-
- if (scalar(@leftovers)) {
- # Store leftovers, for easier identification:
- my_system("$vars{PAX} -r -w -X -p e leftovers-$vars{MACHINE_ARCH} < $leftovers_txt");
- }
-
- # Add links to leftover list:
- open (OUT, "> $leftovers_html")
- or die "can't write $leftovers_html";
- print OUT <<EOOUT;
-<html>
-<body>
-<pre>
-EOOUT
- foreach (@leftovers) {
- chomp;
- print OUT "<a href=\"$vars{FTPHOST}/$vars{FTPURL}/leftovers-$vars{MACHINE_ARCH}$_\">$_</a>\n";
- }
- print OUT <<EOOUT2;
-</pre>
-</body>
-</html>
-EOOUT2
- close(OUT);
-}
-
-# print the result of a single broken package
-sub pkgResult ($$) {
- my ($pinfo, $state) = @_;
- my $pkg = $pinfo->{pkg};
- my $nbrokenby = $pinfo->{nbrokenby};
- my $nerrors = $pinfo->{nerrors};
-
- my @idents = `$vars{FIND} $vars{USR_PKGSRC}/$pkg -type f -print | xargs grep \\\$NetBSD`;
- my $datetime = "";
- my $file = "";
- my $ver = "";
- foreach my $ident (@idents) {
- $ident =~ /\$[N]etBSD: ([^ ]*),v [^ ]* ([^ ]*) ([^ ]*) [^ ]* Exp \$/;
- if (defined($2) && defined($3) && ("$2 $3" gt $datetime)) {
- $datetime = "$2 $3";
- $file = $1;
- $ver = $1;
- }
- }
-
- my $maintainer = `grep ^MAINTAINER $vars{USR_PKGSRC}/$pkg/Makefile`;
- $maintainer =~ s/MAINTAINER=[ \t]*//;
- if (! $maintainer) {
- $maintainer = `cd $vars{USR_PKGSRC}/$pkg ; $BMAKE show-var VARNAME=MAINTAINER`;
- }
- $maintainer =~ s/</&lt;/g;
- $maintainer =~ s/>/&gt;/g;
- chomp($maintainer);
-
- (my $state_style = $state) =~ s/ //g;
-
- my $nbrokenby_html = '<td>&nbsp;</td>';
- $nbrokenby_html =
- '<td align="right" class="pkg-'.$state_style.'">'.$nbrokenby.'</td>'
- if $nbrokenby > 0;
-
- if ($pinfo->{nerrors} != 0 && $verbose && ($state eq "broken" || $state eq "topten")) {
- print swrite($report_form, $pkg, $nbrokenby > 0 ? $nbrokenby : "", $maintainer);
- }
-
- return <<EOHTML;
-<tr>
- <td><a class="pkg-$state_style" href="$pinfo->{bf}" title="build log for $pkg">$pkg</a></td>
- $nbrokenby_html
- <td>$file</td>
- <td>$maintainer</td>
-</tr>
-
-EOHTML
-}
-
-# write the build report
-sub writeReport {
- my $broken = getBroken();
- my $nbroken = scalar(@{$broken->{"broken"}});
- my $nbrokendep = scalar(@{$broken->{"broken depends"}});
- my $nunpackaged = scalar(@{$broken->{"not packaged"}});
- my $nbrokentot = $nbroken + $nbrokendep;
- my $ntotal = $nunpackaged + $nbroken + $nbrokendep;
-
- # determine the number of packages attempted, and then successful
- open(ORDER, $vars{ORDERFILE}) || die "can't open $vars{ORDERFILE}: $!";
- my @order = <ORDER>;
- close(ORDER);
- my $nattempted = scalar(@order);
- my $nsuccessful = $nattempted - $ntotal;
-
- if ($verbose) {
- print <<EOF;
-pkgsrc bulk build results
-$os $vars{osrev}/$vars{MACHINE_ARCH}
-
-Summary:
-
-EOF
- my $summary_form = <<EOF;
- @<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-EOF
- print swrite($summary_form, "Build started:", $startdate);
- print swrite($summary_form, "Build ended:", $enddate);
- print swrite($summary_form, '', '');
- print swrite($summary_form, "Successfully packaged:", $nsuccessful);
- print swrite($summary_form, "Packages really broken:", $nbroken);
- print swrite($summary_form, "Pkgs broken due to them:", $nbrokendep);
- print swrite($summary_form, "Total broken:", $nbrokentot);
- print swrite($summary_form, "Not packaged:", $nunpackaged);
- print swrite($summary_form, "Total:", $ntotal);
- print <<EOF;
-
-Packages not listed here resulted in a binary package. The build
-report, including logs of failed/not-packaged is available from:
-
-$vars{FTPHOST}/$vars{FTPURL}/$reportf
-EOF
- }
-
- open(HTML, ">$vars{REPORT}") or die "Can't write $vars{REPORT}: $!\n";
- print HTML <<EOHTML;
-<html>
-<head>
-<title>$os $vars{osrev}/$vars{MACHINE_ARCH} bulk package build</title>
-<style type="text/css">
-<!--
-
-body {
- Font-Family: Tahoma, Verdana, sans-serif;
- Line-Height: 1.3em;
- Text-Decoration: None;
- Color: black;
- Background-Color: white;
- Border-Width: 0;
-}
-
-table {
- Border-Width: 0;
-}
-
-table td {
- Font-Family: Tahoma, Verdana, sans-serif;
- line-height: 1em;
-}
-
-a:link {
- Color: #3535c5;
-}
-
-a:visited {
- Color: #700080;
-}
-
-a:hover {
- Color: #6565e5;
- Text-Decoration: underline;
-}
-
-tr {
- Vertical-Align: top;
-}
-
-td {
- Vertical-Align: top;
-}
-
-h1 {
- Font-Size: 3.5ex;
- Line-Height: 1em;
- Color: #000066;
-}
-
-h2 {
- Font-Size: 2.5ex;
- Line-Height: 1em;
- Color: #660000;
-}
-
-h3 {
- Font-Size: 2ex;
- Color: #660066;
-}
-
-h4 {
- Font-Size: 1.8ex;
- Color: #006600;
-}
-
-tt.filename {
- Line-Height: 1.3em;
- Color: #AA0000;
-}
-
-.pkgname {
- Font-Family: Arial, Helvetica, Courier, fixed;
- Font-Style: Italic;
- Text-Decoration: none;
- Line-Height: 1.3em;
-}
-
-.pkg-broken {
- Color: red;
-}
-
-.pkg-brokendepends {
- Color: orange;
-}
-
-.pkg-notpackaged {
- Color: blue;
-}
--->
-</style>
-</head>
-
-<body bgcolor="white" text="black" link="#3535c5" vlink="#700080" alink="#3535c5">
-
-<a name="top"></a>
-<h1>pkgsrc bulk build results</h1>
-<h2>$os $vars{osrev}/$vars{MACHINE_ARCH}</h2>
-
-<h3>Summary</h3>
-
-<table>
-<tr>
- <td>Build started: <td align="right">$startdate</td>
-</tr>
-<tr>
- <td>Build ended: <td align="right">$enddate</td>
-</tr>
-<tr>
- <td>&nbsp;</td> <td>&nbsp;</td>
-</tr>
-<tr>
- <td>Successfully packaged:</td> <td align="right">$nsuccessful</td>
-</tr>
-<tr class="pkg-broken">
- <td>Packages really broken:</td> <td align="right">$nbroken</td>
-</tr>
-<tr class="pkg-brokendepends">
- <td>Packages broken due to them:</td> <td align="right">$nbrokendep</td>
-</tr>
-<tr>
- <td>Total broken:</td> <td align="right">$nbrokentot</td>
-</tr>
-<tr class="pkg-notpackaged">
- <td>Not packaged:</td> <td align="right">$nunpackaged</td>
-</tr>
-<tr>
- <td>Total:</td> <td align="right">$ntotal</td>
-</tr>
-</table>
-
-<p>
- Packages not listed here resulted in a <a
- href="../../packages/" title="binary packages for $os $vars{osrev}/$vars{MACHINE_ARCH}">binary
- package</a>. Results of failed packages are available below.
-</p>
-
-<p>
- Files leftover from the build (because of broken PLISTs, etc.) can be
- found in <a href="leftovers-$vars{MACHINE_ARCH}.html" title="leftover files">this
- list</a>.
-</p>
-
-<p>
- Jump to:<br/>
- <ul>
- <li><a href="#topten">Top Ten Offenders</a></li>
- <li><a href="#broken">Broken packages</a></li>
- <li><a href="#broken depends">Broken dependencies</a></li>
- <li><a href="#not packaged">Not packaged</a></li>
- </ul>
-</p>
-
-EOHTML
-
- my %state_head = (
- "topten" => "Top Ten Offenders",
- "broken" => "Broken packages",
- "broken depends" => "Broken dependencies",
- "not packaged" => "Not packaged"
- );
-
- foreach my $state ("topten", "broken", "broken depends", "not packaged") {
- next unless scalar(@{$broken->{$state}});
-
- if ($verbose && ($state eq "topten" || $state eq "broken")) {
- print "\n\n$state_head{$state}\n\n";
- print $report_head;
- }
-
-
- print HTML <<EOHTML;
-
-<a name="$state"></a>
-<h2>$state_head{$state}</h2>
-<table width="100%">
-<tr align="left">
- <th width="30%">Package</th>
- <th>Breaks</th>
- <th>File touched last</th>
- <th>Maintainer</th>
-</tr>
-
-EOHTML
- foreach my $pinfo (@{$broken->{$state}}) {
- print HTML pkgResult($pinfo, $state);
- }
-
- print HTML <<EOHTML;
-</table>
-<hr>
-<a href="#top">Up to top</a><br/>
-<hr>
-EOHTML
- }
-
- print HTML <<EOHTML;
-<hr>
-<p>
-The following cache files were used during the build:
-</p>
-<ul>
-<li>The <a href="$bulkdbfile">SPECIFIC_PKGS bulk database file</a>.</li>
-<li>The <a href="$dtfile">depends tree file</a>.</li>
-<li>The <a href="$depfile">depends file</a>.</li>
-<li>The <a href="$supfile">supports file</a>.</li>
-<li>The <a href="$indfile">index file</a>.</li>
-<li>The <a href="$ordfile">build order file</a>.</li>
-</ul>
-<hr>
-
-<p>
-<ul>
-<!-- <li>See the list of <a href="../index.html">all log files</a>. -->
-<li>Visit the <a href="http://www.NetBSD.org">NetBSD web site</a>.
-<li>Learn more about
- <a href="http://www.NetBSD.org/Documentation/software/packages.html">
- The NetBSD Packages Collection</a>.
-</ul>
-</p>
-</body>
-</html>
-EOHTML
- close(HTML);
-
- if ($verbose) {
- print "\n\n$vars{ADMINSIG}\n\n";
- print "[* This message was created by the Packages Collection bulk build software *]\n";
- }
-}
-
-# get and sort the broken packages
-sub getBroken {
- my $res = {
- 'broken' => [],
- 'broken depends' => [],
- 'not packaged' => [],
- 'topten' => []
- };
-
- open (BF, $vars{BROKENFILE}) || return $res;
- my @in = <BF>;
- close (BF);
-
- foreach (@in) {
- chomp;
- my ($nerrors, $bf, $nbrokenby) = split;
- my $pkg = $bf;
- $pkg =~ s,/$vars{BROKENFILE},,;
- my %tmp = (
- bf => $bf,
- pkg => $pkg,
- nbrokenby => $nbrokenby,
- nerrors => $nerrors,
- );
-
- if ($nerrors > 0) {
- push(@{$res->{"broken"}}, \%tmp);
- } elsif ($nerrors == -1) {
- push(@{$res->{"broken depends"}}, \%tmp);
- } else {
- push(@{$res->{"not packaged"}}, \%tmp);
- }
- }
-
- # sort pkgs in each state
- foreach my $state ("broken", "broken depends", "not packaged") {
- $res->{$state} = [ sort { $a->{pkg} cmp $b->{pkg} } @{$res->{$state}} ];
- }
-
- $res->{"topten"} = [ sort { $b->{nbrokenby} <=> $a->{nbrokenby} } @{$res->{"broken"}} ];
-
- for (my $count = $#{$res->{"topten"}}; $count >= 10; $count--) {
- pop(@{$res->{"topten"}});
- }
-
- return $res;
-}
-
-sub swrite {
- my $format = shift;
- $^A = "";
- formline($format, @_);
- $^A =~ s/\n\n/\n/;
- return $^A;
-}
diff --git a/mk/bulk/post-build-conf b/mk/bulk/post-build-conf
deleted file mode 100644
index c1291dba371..00000000000
--- a/mk/bulk/post-build-conf
+++ /dev/null
@@ -1,162 +0,0 @@
-# $NetBSD: post-build-conf,v 1.4 2005/11/06 17:14:07 rillig Exp $
-#
-
-# This file is included after the build.conf file by the "build" and
-# "pre-build" scripts. It provides functions for printing, checking and
-# exporting the configuration variables.
-
-# Note: All functions whose names start with "pbc_" are considered private
-# to this file. The "pbc" prefix is an abbreviation for "post-build-conf".
-
-# usage: pbc_showvar varname
-pbc_showvar() {
- eval "pbc_isset=\${$1+set}"
- case $pbc_isset in
- "set") eval "fnv_val=\${$1-}"
- printf " %-25s = %s\\n" "$1" "${fnv_val}"
- ;;
- *) printf " %-25s (undefined)\\n" "$1"
- ;;
- esac
-}
-
-# usage: pbc_section title varname...
-pbc_section() {
- printf "%s\\n" "$1"
- shift
- for pbc_var in "$@"; do
- pbc_showvar "${pbc_var}"
- done
- printf "\\n"
-}
-
-# usage: show_config_vars
-show_config_vars() {
- pbc_section "System information" \
- osrev arch BULK_BUILD_CONF USR_PKGSRC MAKECONF
- pbc_section "Keeping pkgsrc up-to-date" \
- CVS_USER CVS_FLAGS
- pbc_section "Getting distfiles" \
- PRUNEDISTFILES ftp_proxy http_proxy
- pbc_section "Building packages" \
- PKGLIST NICE_LEVEL ADMIN ADMINSIG
- pbc_section "Uploading binary packages" \
- UPDATE_VULNERABILITY_LIST PRUNEPACKAGES MKSUMS SIGN_AS \
- RSYNC_DST RSYNC_OPTS FTPHOST FTP
-}
-
-# usage: export_config_vars
-export_config_vars() {
- export osrev arch BULK_BUILD_CONF USR_PKGSRC
- export CVS_USER CVS_FLAGS
- export PRUNEDISTFILES ftp_proxy http_proxy
- export PKGLIST NICE_LEVEL ADMIN ADMINSIG
- export UPDATE_VULNERABILITY_LIST PRUNEPACKAGES MKSUMS SIGN_AS
- export RSYNC_DST RSYNC_OPTS FTPHOST FTP
-}
-
-# usage: pbc_die error-message
-pbc_die() {
- exec 1>&2
- printf "error: %s\\n" "$1"
- printf " Please check your bulk build configuration file:\\n"
- case ${BULK_BUILD_CONF+set} in
- "set") printf " %s\\n" "${BULK_BUILD_CONF}"
- esac
- exit 1
-}
-
-# usage: pbc_checkyesno varname
-pbc_checkyesno() {
- eval "pbc_val=\${$1-}"
- case $pbc_val in
- [Yy][Ee][Ss]|[Nn][Oo]) ;;
- *) pbc_die "$1 must be set to one of YES, yes, NO, no.";;
- esac
-}
-
-# usage: pbc_checkexistingfile varname
-pbc_checkexistingfile() {
- eval "pbc_val=\${$1-}"
-
- case $pbc_val in
- /*) ;;
- *) pbc_die "$1 must be an absolute pathname.";;
- esac
-
- test -f "${pbc_val}" \
- || pbc_die "$1 must be the name of an existing file."
-}
-
-# usage: pbc_checkexistingdir varname
-pbc_checkexistingdir() {
- eval "pbc_val=\${$1-}"
-
- case $pbc_val in
- /*) ;;
- *) pbc_die "$1 must be an absolute pathname.";;
- esac
-
- test -d "${pbc_val}" \
- || pbc_die "$1 must be the name of an existing directory."
-}
-
-# usage: pbc_checknonempty varname
-pbc_checknonempty() {
- eval "pbc_isset=\${$1+set}"
- eval "pbc_val=\${$1-}"
-
- case $pbc_isset in
- "set") case $pbc_val in
- "") pbc_die "$1 must be non-empty.";;
- esac;;
- *) pbc_die "$1 must be defined and non-empty.";;
- esac
-}
-
-# usage: pbc_checkdefined varname
-pbc_checkdefined() {
- eval "pbc_val=\${$1+set}"
-
- case $pbc_val in
- "set") ;;
- *) pbc_die "$1 must be defined.";;
- esac
-}
-
-# usage: check_config_vars
-check_config_vars() {
- # section "System information"
- pbc_checknonempty osrev
- pbc_checknonempty arch
- pbc_checkexistingfile BULK_BUILD_CONF
- pbc_checkexistingdir USR_PKGSRC
- case ${MAKECONF+set} in set)
- pbc_checkexistingfile MAKECONF;;
- esac
-
- # section "Keeping pkgsrc up-to-date"
- # no checks for CVS_USER
- # no checks for CVS_FLAGS
-
- # section "Getting distfiles"
- pbc_checkyesno PRUNEDISTFILES
- # no checks for ftp_proxy
- # no checks for http_proxy
-
- # section "Building packages"
- # no checks for PKGLIST
- # no checks for NICE_LEVEL
- # no checks for ADMIN
- # no checks for ADMINSIG
-
- # section "Uploading binary packages"
- pbc_checkyesno UPDATE_VULNERABILITY_LIST
- pbc_checkyesno PRUNEPACKAGES
- pbc_checkyesno MKSUMS
- # no checks for SIGN_AS
- # no checks for RSYNC_DST
- # no checks for RSYNC_OPTS
- # no checks for FTPHOST
- # no checks for FTP
-}
diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build
deleted file mode 100644
index cd35ff629a3..00000000000
--- a/mk/bulk/pre-build
+++ /dev/null
@@ -1,287 +0,0 @@
-#!/bin/sh
-# $NetBSD: pre-build,v 1.50 2005/08/26 07:24:53 reed Exp $
-#
-# Clean up system to be ready for bulk pkg build
-#
-# (c) 2000 Hubert Feyrer, All Rights Reserved.
-#
-
-#set -v # Debug
-
-# Pull in USR_PKGSRC, CVS_USER:
-if [ -f "$BULK_BUILD_CONF" ]; then
- . $BULK_BUILD_CONF
-else
- . `dirname $0`/build.conf
-fi
-
-PRUNEDISTFILES=${PRUNEDISTFILES:-"no"}
-PRUNEPACKAGES=${PRUNEPACKAGES:-"yes"}
-PRUNELINKS=${PRUNEPACKAGES:-"yes"}
-
-PKGLINT_PKG_DIR=${USR_PKGSRC}/pkgtools/pkglint
-
-# Extract the name of the files used for the build log and broken build log.
-# These have defaults set by bsd.bulk-pkg.mk and may be overridden in
-# /etc/mk.conf
-BROKENF=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=BROKENFILE )`;
-export BROKENF
-if [ "$BROKENF" = "" ]; then
- echo "Had problems determining the name of the .broken files"
- exit 1
-fi
-BRKWRKLOG=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=BROKENWRKLOG )`;
-if [ "$BRKWRKLOG" = "" ]; then
- echo "Had problems determining the name of the .broken.work files"
- exit 1
-fi
-BLDLOG=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=BUILDLOG )`;
-if [ "$BLDLOG" = "" ]; then
- echo "Had problems determining the name of the .make files"
- exit 1
-fi
-LINTPKGSRC_DB=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=LINTPKGSRC_DB )`;
-if [ "$LINTPKGSRC_DB" = "" ]; then
- echo "Had problems determining the name of the .lintpkgsrc.db file"
- exit 1
-fi
-STARTFILE=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=STARTFILE )`;
-if [ "$STARTFILE" = "" ]; then
- echo "Had problems determining the name of the .start file"
- exit 1
-fi
-
-LOCALBASE=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=LOCALBASE )`;
-X11BASE=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=X11BASE )`;
-DISTDIR=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=DISTDIR )`;
-
-# Make sure the pkg-vulnerabilities file is up to date
-echo "Making sure vulnerability-list is upto date:"
-if [ -z "$UPDATE_VULNERABILITY_LIST" -o "$UPDATE_VULNERABILITY_LIST" = yes ]; then
- ( cd ${USR_PKGSRC}/security/audit-packages \
- && ${BMAKE} bulk-install \
- && env PKGVULNDIR=${DISTDIR} download-vulnerability-list )
- echo 'done.'
-else
- echo '(skipped)'
-fi
-
-# On non-NetBSD platforms we need to keep the bootstrap-files!
-if [ x"$BMAKE" = x"bmake" ]; then
- ( cd $LOCALBASE && tar cf /tmp/$$.tar \
- sbin/mtree sbin/pkg_add sbin/pkg_admin sbin/pkg_create \
- sbin/pkg_delete sbin/pkg_info sbin/pkg_view sbin/linkfarm \
- share/mk/sys.mk share/mk/bsd.dep.mk share/mk/bsd.depall.mk \
- share/mk/bsd.files.mk share/mk/bsd.hostprog.mk \
- share/mk/bsd.doc.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.prog.mk share/mk/bsd.subdir.mk \
- share/mk/bsd.sys.mk share/mk/bsd.own.mk \
- bin/bmake bin/ftp bin/digest bin/nbsed bin/install-sh \
- bin/pax bin/tar bin/cpio man/cat1/ftp.1 man/cat1/pax.0 \
- man/cat1/tar.0 man/cat1/cpio.0 man/cat1/pkg_add.0 \
- man/cat1/pkg_admin.0 man/cat1/pkg_create.0 \
- man/cat1/pkg_delete.0 man/cat1/pkg_info.0 \
- man/cat1/pkg_view.0 man/cat1/linkfarm.0 \
- man/man1/digest.1 man/man1/pax.1 man/man1/cpio.1 \
- man/man1/tar.1 man/man1/nbsed.1 man/man1/pkg_add.1 \
- man/man1/pkg_admin.1 man/man1/pkg_create.1 \
- man/man1/pkg_delete.1 man/man1/pkg_info.1 \
- man/man1/pkg_view.1 man/man1/linkfarm.1 man/cat8/mtree.0 \
- man/man8/mtree.8 man/cat7/packages.0 etc/mk.conf )
-fi
-
-#
-# Clean out everything and its mother
-#
-PKG_DBDIR=`(cd ${PKGLINT_PKG_DIR}; ${BMAKE} show-var VARNAME=PKG_DBDIR)`
-DEPOTBASE=`(cd ${PKGLINT_PKG_DIR}; ${BMAKE} show-var VARNAME=DEPOTBASE)`
-PKG_TOOLS_BIN=`(cd ${PKGLINT_PKG_DIR}; ${BMAKE} show-var VARNAME=PKG_TOOLS_BIN)`
-
-for dbdir in ${PKG_DBDIR} ${DEPOTBASE}; do
- echo Removing all installed packages in $dbdir
- if [ -d $dbdir ]; then
- cd $dbdir
- for pkg in *
- do
- if `${PKG_TOOLS_BIN}/pkg_info -K $dbdir -qe $pkg`; then
- echo ${PKG_TOOLS_BIN}/pkg_delete -r $pkg
- ${PKG_TOOLS_BIN}/pkg_delete -K $dbdir -r $pkg
- fi
- done
- #
- # this should have removed everything.
- # Now force any broken pkgs to deinstall.
- #
- for pkg in *
- do
- if `${PKG_TOOLS_BIN}/pkg_info -K $dbdir -qe $pkg`; then
- echo ${PKG_TOOLS_BIN}/pkg_delete -f $pkg
- ${PKG_TOOLS_BIN}/pkg_delete -K $dbdir -f $pkg
- fi
- done
-
- # We've tried our best to get rid of the pkgs, now do it
- # the hard way. If it wasn't for stuff in $X11BASE, I
- # wouldn't have hard feelings about this!
- rm -fr *
- fi
-done
-
-cd $LOCALBASE && rm -fr * && rm -fr .??*;
-if [ x"$BMAKE" = x"bmake" ]; then
- ( cd $LOCALBASE && tar xf /tmp/$$.tar )
-fi
-
-# Stuff known to be broken
-rm -fr $X11BASE/share/gimp
-rm -fr $X11BASE/share/gnome
-rm -fr $X11BASE/share/kde
-rm -fr $X11BASE/share/netscape
-rm -fr /var/tmp/inst*
-rm -fr $X11BASE/lib/libgimp* # gimp doesn't build with old libs around
-rm -fr /nonexistent # broken useradd on pop3d
-rm -fr /home/majordom # mail/majordomo pkg
-rm -fr /home/nut # sysutils/ups-net
-rm -fr /var/wwwoffle # www/wwwoffle
-rm -fr /tmp/config-guess-*
-rm -fr /tmp/mod*
-
-
-# Clean up state files
-cd ${USR_PKGSRC}
-echo Cleaning up leftover state files from previous runs
-rm -f */*/$BROKENF */*/$BRKWRKLOG */*/$BLDLOG
-rm -f $BROKENF $BRKWRKLOG $BLDLOG $STARTFILE
-
-
-
-
-#
-# Install cvs package and do a cvs update here
-#
-if [ "$CVS_USER" != "" ]; then
- if [ ! -f /usr/bin/cvs ]; then
- echo Installing required cvs pkgs for CVS update
- ( cd ${USR_PKGSRC}/devel/cvs ; ${BMAKE} bulk-install )
- fi
- if [ ! -f /usr/bin/ssh ]; then
- echo Installing required ssh pkgs for CVS update
- ( cd ${USR_PKGSRC}/security/ssh ; ${BMAKE} bulk-install )
- fi
- echo Performing CVS update - this will take some time
- su - ${CVS_USER} -c "stty sane ; cd ${USR_PKGSRC} ; \
- env CVS_RSH=ssh cvs -q update -Pd ${CVS_FLAGS} || exit 0"
- if [ $? != 0 ]
- then
- echo CVS update not successful, aborting.
- exit 1
- fi
- echo CVS update done.
-fi
-
-#
-# Remove old/broken distfiles and binary packages
-#
-PACKAGES=`( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} show-var VARNAME=PACKAGES )`;
-
-case "$LINTPKGSRC_CACHE$PRUNEDISTFILES$PRUNEPACKAGES" in
-*yes*|*YES*)
- # install pkglint to support any of these options
- ( cd ${PKGLINT_PKG_DIR} ; ${BMAKE} PRECLEAN=yes bulk-install )
- ;;
-esac
-
-case "$LINTPKGSRC_CACHE" in
-yes|YES)
- echo "Creating lintpkgsrc cache database."
- lintpkgsrc -K $PACKAGES -P $USR_PKGSRC -M $DISTDIR -E $LINTPKGSRC_DB
- lintpkgsrc_cache="-I $LINTPKGSRC_DB"
- echo done.
- ;;
-*)
- lintpkgsrc_cache=''
- ;;
-esac
-
-case "$PRUNEDISTFILES" in
-yes|YES)
- echo "Removing old/broken distfiles"
- lintpkgsrc $lintpkgsrc_cache -K $PACKAGES -P $USR_PKGSRC -M $DISTDIR -o -m -r
- echo done.
- ;;
-*)
- echo "Skipping distfile pruning."
- ;;
-esac
-
-case "$PRUNEPACKAGES" in
-yes|YES)
- echo "Removing old (out of date) binary packages"
- lintpkgsrc $lintpkgsrc_cache -K $PACKAGES -P $USR_PKGSRC -M $DISTDIR -p -r
- echo done.
- ;;
-*)
- echo "Skipping packages pruning."
- ;;
-esac
-
-case "$PRUNELINKS" in
-yes|YES)
- echo "Checking for and removing orphaned packages links"
- find $PACKAGES -type l -print | \
- while read f
- do
- if [ ! -d $f -a ! -f $f ]; then
- echo "Removing orphaned link: \"$f\""
- rm $f
- fi
- done
- echo done.
- ;;
-*)
- echo "Skipping pruning of packages links."
- ;;
-esac
-
-# Clean out the packages added above so that the real bulk build
-# is started in a consistent state.
-for dbdir in ${PKG_DBDIR} ${DEPOTBASE}; do
- echo Removing all installed packages in $dbdir
- if [ -d $dbdir ]; then
- cd $dbdir
- for pkg in *
- do
- if `${PKG_TOOLS_BIN}/pkg_info -K $dbdir -qe $pkg`; then
- echo ${PKG_TOOLS_BIN}/pkg_delete -r $pkg
- ${PKG_TOOLS_BIN}/pkg_delete -K $dbdir -r $pkg
- fi
- done
- fi
-done
-
-cd ${USR_PKGSRC}
-
-# on non-NetBSD, we don't want these to build as they overwrite
-# bootstrap-pkgsrc generated files and thus would break the following builds.
-
-if [ x"$BMAKE" = x"bmake" ]; then
- for pkg in archivers/pax devel/bmake devel/mk-files net/tnftp \
- security/kth-krb4 textproc/nbsed; do
- echo "Don't blow away bootstrap-pkgsrc stuff!" > \
- ${pkg}/${BROKENF}
- done
-fi
-
-if [ -f mk/bulk/pre-build.local ]; then
- . mk/bulk/pre-build.local
-fi
-
-if [ ! -d ${PKG_DBDIR} ]; then
- mkdir -p ${PKG_DBDIR}
-fi
-
-touch $STARTFILE
diff --git a/mk/bulk/printdepends b/mk/bulk/printdepends
deleted file mode 100644
index ec48a807be8..00000000000
--- a/mk/bulk/printdepends
+++ /dev/null
@@ -1,125 +0,0 @@
-#!/bin/sh
-# $NetBSD: printdepends,v 1.18 2005/11/05 10:14:43 rillig Exp $
-
-#
-# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@NetBSD.org>
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by Hubert Feyrer for
-# the NetBSD Project.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# Print list of pkg dependencies suitable for tsort(1).
-# Start in $USR_PKGSRC.
-#
-# If an argument is given, use it as a file name
-# to contain any failure messages in each package directory.
-#
-
-# Pull in PKGLIST
-if [ -f "$BULK_BUILD_CONF" ]; then
- . $BULK_BUILD_CONF
-else
- . `dirname $0`/build.conf
-fi
-
-if [ ! -z "$1" ]; then
- brokenfile=$1
-else
- brokenfile=/dev/null
-fi
-
-opsys=`uname -s`
-case "$opsys" in
-NetBSD) BMAKE=make ;;
-*) BMAKE=bmake ;;
-esac
-
-export BMAKE
-
-# $USR_PKGSRC
-cwd=$PWD
-
-# get some initial variables
-cd $cwd/pkgtools/pkglint
-GREP=`${BMAKE} show-var VARNAME=GREP USE_TOOLS=grep`
-SED=`${BMAKE} show-var VARNAME=SED USE_TOOLS=sed`
-cd $cwd
-
-if [ -n "${PKGLIST}" ]; then
- list="${PKGLIST}"
-else
- # List of all pkgs, from pkgsrc/*/Makefile
- list=`${GREP} '^[[:space:]]*'SUBDIR */Makefile | ${GREP} -v regress/ | ${SED} 's,/Makefile.*=[[:space:]]*,/,'`
-fi
-
-# cache the package list for printindex
-echo list='"'${list}'"' > .pkglist
-
-pkgbar=""
-for i in $list; do
- pkgbar="${pkgbar} a"
-done
-npackages=`echo "$pkgbar" | wc -w`
-npackages=`echo $npackages`
-
-cpackages=0
-cpackages_mod_50=""
-for pkgdir in $list
-do
- if [ ! -d $pkgdir ]; then
- echo "WARNING: the package directory $pkgdir is listed in" > /dev/stderr
- echo $pkgdir | ${SED} 's;/.*;/Makefile;g' > /dev/stderr
- echo "but the directory does not exist. Please fix this!" > /dev/stderr
- else
- l=`cd $pkgdir && ${BMAKE} show-depends-dirs`
- if [ $? != 0 ]; then
- echo "WARNING (printdepends): the package in $pkgdir had problem with" > /dev/stderr
- echo " ${BMAKE} show-depends-dirs" > /dev/stderr
- echo " dependency information in the cache will" > /dev/stderr
- echo " be dropped for $pkgdir" > /dev/stderr
- echo "${BMAKE} show-depends-dirs failed:" > $brokenfile
- ${BMAKE} show-depends-dirs >> $brokenfile 2>&1
- echo "$pkgdir $pkgdir"
- else
- if [ "$l" = "" ]; then
- # No dependencies
- echo "$pkgdir $pkgdir"
- else
- for depdir in $l
- do
- echo "$depdir $pkgdir"
- done
- fi
- fi
- fi
- cpackages_mod_50="${cpackages_mod_50}+";
- case $cpackages_mod_50 in
- ++++++++++++++++++++++++++++++++++++++++++++++++++)
- cpackages_mod_50=""
- cpackages=`expr $cpackages + 50`
- echo "${cpackages} of ${npackages} packages finished." 1>&2;;
- esac
-done
diff --git a/mk/bulk/printindex b/mk/bulk/printindex
deleted file mode 100644
index 3b39932c1e1..00000000000
--- a/mk/bulk/printindex
+++ /dev/null
@@ -1,131 +0,0 @@
-#!/bin/sh
-# $NetBSD: printindex,v 1.19 2005/11/08 13:55:29 rillig Exp $
-#
-#
-# Copyright (c) 2001 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-# usage: printindex [brokenfile [brokenbasedir]]
-#
-# Generates a mapping from pkgsrc directories to the current package
-# version and prints it on stdout. Each line of the output has two
-# fields: the package directory (in the form category/package) and the
-# package version (in the form package-1.456nb3).
-#
-# If the optional argument <brokenfile> is given, it specifies the
-# basename of the file to which package-specific errors will be
-# appended.
-#
-# If the <brokenbasedir> is specified, the complete filename of the
-# <brokenfile> is <brokenbasedir>/${pkgdir}/<brokenfile>. This
-# directory is created automatically if needed. If the <brokenbasedir>
-# is not specified, the <brokenfile> is created in the package directory
-# itself.
-#
-# Note: printindex must be called from a pkgsrc root directory.
-
-set -e
-
-have_brokenbasedir="no"
-case $# in
-0) brokenfile="/dev/null"
- ;;
-1) brokenfile="$1"
- ;;
-2) brokenfile="$1"; brokenbasedir="$2"; have_brokenbasedir="yes"
- ;;
-*) echo "usage: $0 [brokenfile [brokenbasedir]]" 1>&2
- exit 1
- ;;
-esac
-
-case ${BMAKE-""} in "")
- echo "$0: error: BMAKE must be set." 1>&2
- exit 1;;
-esac
-
-# $USR_PKGSRC
-cwd="${PWD}"
-
-# get some initial variables
-cd "${cwd}/pkgtools/pkglint"
-BULK_PREREQ=`${BMAKE} show-var VARNAME=BULK_PREREQ`
-GREP=`${BMAKE} show-var VARNAME=GREP USE_TOOLS=grep`
-MKDIR=`${BMAKE} show-var VARNAME=MKDIR USE_TOOLS=mkdir`
-SED=`${BMAKE} show-var VARNAME=SED USE_TOOLS=sed`
-cd "${cwd}"
-
-if [ -r "${cwd}/.pkglist" ]; then
- . "${cwd}/.pkglist"
-else
- # fall back to all packages.
- list=`${GREP} '^[[:space:]]*'SUBDIR */Makefile | ${SED} 's,/Makefile.*=[[:space:]]*,/,'`
-fi
-
-done_pkgs=""
-detect_duplicates=no
-for pkgdir in $list :detect_duplicates: $BULK_PREREQ; do
-
- case $pkgdir in :detect_duplicates:)
- detect_duplicates=yes
- continue;;
- esac
- case $detect_duplicates in yes)
- case $done_pkgs in *=${pkgdir}=*)
- continue;;
- esac;;
- esac
-
- if cd "${cwd}/${pkgdir}"; then
- if pkgname=`${BMAKE} show-var VARNAME=PKGNAME`; then
- echo "${pkgdir} ${pkgname}"
- done_pkgs="${done_pkgs} =${pkgdir}="
- else
- echo "$0: error: could not extract PKGNAME for ${pkgdir} -- skipping." 1>&2
-
- case $have_brokenbasedir in
- yes) broken_path="${brokenbasedir}/${pkgdir}/${brokenfile}"
- ${MKDIR} "${brokendir}"
- ;;
- *) broken_path="${brokenfile}"
- ;;
- esac
-
- { echo "===> ${BMAKE} show-var VARNAME=PKGNAME failed"
- ${BMAKE} show-var VARNAME=PKGNAME || true
- } >> "${broken_path}" 2>&1
- fi
- fi
-done
diff --git a/mk/bulk/tflat b/mk/bulk/tflat
deleted file mode 100755
index 63e8a046650..00000000000
--- a/mk/bulk/tflat
+++ /dev/null
@@ -1,121 +0,0 @@
-# $NetBSD: tflat,v 1.15 2005/10/26 16:54:04 tv Exp $
-#
-# Copyright (c) 2001, 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Dan McMahill and Todd Vierling.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This perl version is very fast compared to other alternatives, which would
-# likely use things like forking "sort" subprocesses.
-#
-use strict;
-
-sub usage () {
- print STDERR <<EOF ;
-tflat -- flatten a depends tree. tflat is used to show all
- packages which depend upon a given package, and
- all packages which are depend upon by a given package.
-
-usage: $0 upfile downfile < depfile
-
-Input file format is in the form
-foo bar
-foo baz
-libbar bar
-
-meaning "foo is depended upon by bar,
- foo is depended upon by baz,
- libbar is depended upon by bar"
-
-The typical use is:
-cd /usr/pkgsrc
-./mk/bulk/printdepends > .depends
-perl ./mk/bulk/tflat .supports .requires < .depends
-
-EOF
- exit 1;
-}
-
-my $upfile = shift(@ARGV) || usage();
-my $downfile = shift(@ARGV) || usage();
-scalar(@ARGV) && usage();
-
-open(UPF, ">$upfile") || die $!;
-open(DOWNF, ">$downfile") || die $!;
-
-# read in dependstree file
-
-my %depended;
-my %depends;
-while (<>) {
- chomp;
- my ($dep, $pkg) = split;
-
- push(@{$depended{$dep}}, $pkg);
- push(@{$depends{$pkg}}, $dep);
-}
-
-# print out upfile and downfile
-
-sub getdeps ($$$@) {
- my $curhash = shift;
- my $alldeps = shift;
- my $what = shift;
-
- foreach my $dep (@{$curhash->{$what}}) {
- if ($what eq $dep) {
- next;
- } elsif (grep { $_ eq $dep } @_) {
- print STDERR "circular dependency in $dep\n";
- } elsif (!grep { $_ eq $dep } @$alldeps) {
- push(@$alldeps, $dep);
- getdeps($curhash, $alldeps, $dep, $what, @_);
- }
- }
-}
-
-foreach my $pkg (sort(keys(%depended))) {
- my @alldeps;
- getdeps(\%depended, \@alldeps, $pkg);
- print UPF "$pkg is depended on by: ".join(' ', @alldeps)."\n";
-}
-
-foreach my $pkg (sort(keys(%depends))) {
- my @alldeps;
- getdeps(\%depends, \@alldeps, $pkg);
- print DOWNF "$pkg depends on: ".join(' ', @alldeps)."\n";
-}
-
-close(UPF);
-close(DOWNF);
diff --git a/mk/bulk/upload b/mk/bulk/upload
deleted file mode 100644
index c5fbd901a53..00000000000
--- a/mk/bulk/upload
+++ /dev/null
@@ -1,208 +0,0 @@
-#!/bin/sh
-# $NetBSD: upload,v 1.27 2005/07/28 00:37:43 grant Exp $
-
-#
-# Upload non-restricted binary pkgs to ftp server
-#
-
-MD5="digest md5";
-SHA1="digest sha1";
-
-opsys=`uname -s`
-case "$opsys" in
-NetBSD) BMAKE=make;
- BSDSUM="sum -o 1";
- CKSUM="cksum";
- SYSVSUM="sum -o 2";
- ;;
-IRIX*) BMAKE=bmake;
- BSDSUM="sum -r";
- CKSUM="cksum";
- SYSVSUM="sum";
- ;;
-*) BMAKE=bmake ;;
-esac
-
-export BMAKE
-
-# Bring in variables for bulk-install
-BATCH=1
-DEPENDS_TARGET=bulk-install
-export BATCH DEPENDS_TARGET
-
-# Pull in RSYNC_DST, RSYNC_OPTS:
-if [ -f "$BULK_BUILD_CONF" ]; then
- . $BULK_BUILD_CONF
-else
- . `dirname $0`/build.conf
-fi
-
-cd $USR_PKGSRC
-
-if [ -z "$RSYNC_DST" ]; then
- echo "You must set the variable RSYNC_DST, see build.conf-example."
- exit 1
-fi
-
-#
-# Some temp files
-#
-
-umask 022
-TMPDIR="${TMPDIR:-/tmp}"
-TMP="${TMPDIR}"/pkg_upload.$$
-(umask 077 && mkdir "${TMP}")
-if [ $? -ne 0 ]
-then
- echo $0: cannot create temporary directory \""${TMP}"\" >&2
- exit 1
-fi
-
-exf="$TMP"/exclude
-vf="$TMP"/vulnerable
-upload="$TMP"/upload
-upload_general="$TMP"/upload_general
-upload_vulnerable="$TMP"/upload_vulnerable
-
-# May be different than $USR_PKGSRC:
-pkgsrcdir=`cd pkgtools/pkglint ; ${BMAKE} show-var VARNAME=_PKGSRCDIR`
-packages=`cd pkgtools/pkglint ; ${BMAKE} show-var VARNAME=PACKAGES`
-distdir=`cd pkgtools/pkglint ; ${BMAKE} show-var VARNAME=DISTDIR`
-
-# Pull in some pkgs needed
-( cd pkgtools/pkglint ; ${BMAKE} bulk-install )
-( cd net/rsync ; ${BMAKE} bulk-install )
-( cd security/audit-packages ; ${BMAKE} bulk-install )
-
-echo "Making sure vulnerability-list is up-to-date:"
-if [ -z "$UPDATE_VULNERABILITY_LIST" -o "$UPDATE_VULNERABILITY_LIST" = "yes" ]
-then
- env PKGVULNDIR=${distdir} download-vulnerability-list
-else
- echo '(skipped)'
-fi
-
-case $LINTPKGSRC_CACHE in
-yes|YES)
- lintpkgsrc_cache="-I `cd pkgtools/pkglint ; ${BMAKE} show-var VARNAME=LINTPKGSRC_DB`"
- ;;
-*)
- lintpkgsrc_cache=''
- ;;
-esac
-
-echo "Checking for restricted and out of date packages:"
-# -p = report old versions of packages
-# -R = report restricted packages
-lintpkgsrc $lintpkgsrc_cache -K $packages -P $pkgsrcdir -pR | sed 's@'$packages'/@@' > "$exf"
-
-echo "Checking for vulnerable packages:"
-lintpkgsrc $lintpkgsrc_cache -K $packages -P $pkgsrcdir -V | sed 's@'$packages'/@@' > "$vf"
-
-RSFLAGS="-vap --progress $RSYNC_OPTS"
-
-failed=no
-cd $packages
-
-if [ "${MKSUMS}" = "yes" -o "${MKSUMS}" = "YES" ]; then
-
- echo "Calculating checksum files..."
-
- SUMFILES="BSDSUM CKSUM MD5 SHA1 SYSVSUM"
-
- rm -f ${SUMFILES}
-
- if [ x"${SIGN_AS}" != x"" ]; then
- ( cd ${pkgsrcdir}/security/gnupg; ${BMAKE} bulk-install )
- for i in ${SUMFILES}; do
- echo > $i
- echo "This file is signed with ${SIGN_AS}'s PGP key." >> $i
- echo >> $i
- done
- fi
-
- ( cd ${pkgsrcdir}/pkgtools/digest; ${BMAKE} bulk-install )
-
- [ -z "${BSDSUM}" ] && BSDSUM="echo"
- [ -z "${CKSUM}" ] && CKSUM="echo"
- [ -z "${SYSVSUM}" ] && SYSVSUM="echo"
-
- for i in All/*; do
- if grep $i $exf >/dev/null; then
- :
- else
- ${BSDSUM} $i >> BSDSUM
- ${CKSUM} $i >> CKSUM
- ${MD5} $i >> MD5
- ${SHA1} $i >> SHA1
- ${SYSVSUM} $i >> SYSVSUM
- fi
- done
-
- [ "${BSDSUM}" = "echo" ] && rm BSDSUM
- [ "${CKSUM}" = "echo" ] && rm CKSUM
- [ "${SYSVSUM}" = "echo" ] && rm SYSVSUM
-
- if [ x"${SIGN_AS}" != x"" ]; then
- for i in ${SUMFILES}; do
- if [ -s $i ]; then
- echo "Signing $i"
- gpg --clearsign $i && rm $i
- fi
- done
- else
- echo "Checksum files not PGP-signed. Please do so manually!"
- echo "(Run 'gpg --clearsign' on all of them)"
- fi
-fi
-
-
-echo "#!/bin/sh" > "$upload"
-echo "packages=$packages" >> "$upload"
-echo "if cd $packages; then" >> "$upload"
-echo " :" >> "$upload"
-echo "else" >> "$upload"
-echo " echo \"could not cd to $packages\"" >> "$upload"
-echo " exit 1" >> "$upload"
-echo "fi" >> "$upload"
-
-echo "Uploading non-vulnerable pkgs"
-cmd="rsync $RSFLAGS --exclude-from=\"$exf\" --exclude-from=\"$vf\" . \"$RSYNC_DST\""
-cp -f "$upload" "$upload_general"
-echo "$cmd" >> "$upload_general"
-chmod 755 "$upload_general"
-echo "$cmd"
-sh "$upload_general"
-if [ $? != 0 ]; then
- echo "--------------------------------------------------"
- echo " "
- echo "WARNING: rsync failed. To retry later, you can run"
- echo " $upload_general"
- echo " "
- echo "--------------------------------------------------"
- failed=yes
-fi
-
-echo "Uploading vulnerable pkgs"
-sed -n "s@All/@@p" "$exf" > "$exf.new"
-sed -n "s@All/@@p" "$vf" > "$vf.new"
-cmd="rsync $RSFLAGS --exclude-from=\"$exf.new\" --include-from=\"$vf.new\" --exclude='*' All/ \"$RSYNC_DST/vulnerable/\""
-cp -f "$upload" "$upload_vulnerable"
-echo "$cmd" >> "$upload_vulnerable"
-chmod 755 "$upload_vulnerable"
-echo "$cmd"
-sh "$upload_vulnerable"
-if [ $? != 0 ]; then
- echo "--------------------------------------------------"
- echo " "
- echo "WARNING: rsync failed. To retry later, you can run"
- echo " $upload_vulnerable"
- echo " "
- echo "--------------------------------------------------"
- failed=yes
-fi
-
-# clean up temp files
-if [ "$failed" = "no" ]; then
- rm -fr "$TMP"
-fi
diff --git a/mk/compiler.mk b/mk/compiler.mk
deleted file mode 100644
index 14be434b1e6..00000000000
--- a/mk/compiler.mk
+++ /dev/null
@@ -1,150 +0,0 @@
-# $NetBSD: compiler.mk,v 1.47 2005/10/16 19:44:44 schwarz Exp $
-#
-# This Makefile fragment implements handling for supported C/C++/Fortran
-# compilers.
-#
-# The following variables are used by this file:
-#
-# PKGSRC_COMPILER
-# A list of values specifying the chain of compilers to be used by
-# pkgsrc to build packages.
-#
-# Valid values are:
-# ccc Compaq C Compilers (Tru64)
-# ccache compiler cache (chainable)
-# distcc distributed C/C++ (chainable)
-# f2c Fortran 77 to C compiler (chainable)
-# icc Intel C++ Compiler (Linux)
-# ido SGI IRIS Development Option cc (IRIX 5)
-# gcc GNU
-# mipspro Silicon Graphics, Inc. MIPSpro (n32/n64)
-# mipspro-ucode Silicon Graphics, Inc. MIPSpro (o32)
-# sunpro Sun Microsystems, Inc. WorkShip/Forte/Sun
-# ONE Studio
-# xlc IBM's XL C/C++ compiler suite (Darwin/MacOSX)
-#
-# The default is "gcc". You can use ccache and/or distcc with
-# an appropriate PKGSRC_COMPILER setting, e.g. "ccache distcc
-# gcc". You can also use "f2c" to overlay the lang/f2c package
-# over the C compiler instead of using the system Fortran
-# compiler. The chain should always end in a real compiler.
-# This should only be set in /etc/mk.conf.
-#
-# GCC_REQD
-# A list of version numbers used to determine the minimum
-# version of GCC required by a package. This value should only
-# be appended to by a package Makefile.
-#
-# NOTE: Be conservative when setting GCC_REQD, as lang/gcc3 is
-# known not to build on some platforms, e.g. Darwin. If gcc3 is
-# required, set GCC_REQD=3.0 so that we do not try to pull in
-# lang/gcc3 unnecessarily and have it fail.
-#
-# USE_PKGSRC_GCC
-# Force using the appropriate version of GCC from pkgsrc based on
-# GCC_REQD instead of the native compiler. Should only be set in
-# /etc/mk.conf.
-#
-#
-# USE_LANGUAGES
-# Lists the languages used in the source code of the package,
-# and is used to determine the correct compilers to install.
-# Valid values are: c, c++, fortran, java, objc. The default
-# is "c" ("c" is actually _always_ implicitly in this list).
-#
-# The following variables are defined, and available for testing in
-# package Makefiles:
-#
-# CC_VERSION
-# The compiler and version being used, e.g.,
-#
-# .include "../../mk/compiler.mk"
-#
-# .if !empty(CC_VERSION:Mgcc-3*)
-# ...
-# .endif
-#
-
-.if !defined(BSD_COMPILER_MK)
-BSD_COMPILER_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-# Always require a C compiler for proper compiler detection.
-USE_LANGUAGES?= c
-.if empty(USE_LANGUAGES:Mc)
-USE_LANGUAGES:= c ${USE_LANGUAGES}
-.endif
-
-# For environments where there is an external gcc too, but pkgsrc
-# should use the pkgsrc one for consistency.
-#
-.if defined(USE_PKGSRC_GCC)
-_USE_PKGSRC_GCC= yes
-.endif
-
-_COMPILERS= ccc gcc icc ido mipspro mipspro-ucode sunpro xlc
-_PSEUDO_COMPILERS= ccache distcc f2c
-
-.if defined(NOT_FOR_COMPILER) && !empty(NOT_FOR_COMPILER)
-. for _compiler_ in ${_COMPILERS}
-. if ${NOT_FOR_COMPILER:M${_compiler_}} == ""
-_ACCEPTABLE_COMPILERS+= ${_compiler_}
-. endif
-. endfor
-.elif defined(ONLY_FOR_COMPILER) && !empty(ONLY_FOR_COMPILER)
-. for _compiler_ in ${_COMPILERS}
-. if ${ONLY_FOR_COMPILER:M${_compiler_}} != ""
-_ACCEPTABLE_COMPILERS+= ${_compiler_}
-. endif
-. endfor
-.else
-_ACCEPTABLE_COMPILERS+= ${_COMPILERS}
-.endif
-
-.if defined(_ACCEPTABLE_COMPILERS)
-. for _acceptable_ in ${_ACCEPTABLE_COMPILERS}
-. for _compiler_ in ${PKGSRC_COMPILER}
-. if !empty(_ACCEPTABLE_COMPILERS:M${_compiler_}) && !defined(_COMPILER)
-_COMPILER= ${_compiler_}
-. endif
-. endfor
-. endfor
-.endif
-
-.if !defined(_COMPILER)
-PKG_FAIL_REASON+= "No acceptable compiler found for ${PKGNAME}."
-.endif
-
-.for _compiler_ in ${PKGSRC_COMPILER}
-. if !empty(_PSEUDO_COMPILERS:M${_compiler_})
-_PKGSRC_COMPILER:= ${_compiler_} ${_PKGSRC_COMPILER}
-. endif
-.endfor
-_PKGSRC_COMPILER:= ${_COMPILER} ${_PKGSRC_COMPILER}
-
-_COMPILER_STRIP_VARS= # empty
-
-.for _compiler_ in ${_PKGSRC_COMPILER}
-. include "../../mk/compiler/${_compiler_}.mk"
-.endfor
-.undef _compiler_
-
-# Strip the leading paths from the toolchain variables since we manipulate
-# the PATH to use the correct executable.
-#
-.for _var_ in ${_COMPILER_STRIP_VARS}
-. if empty(${_var_}:C/^/_asdf_/1:N_asdf_*)
-${_var_}:= ${${_var_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T}
-. else
-${_var_}:= ${${_var_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T} ${${_var_}:C/^/_asdf_/1:N_asdf_*}
-. endif
-.endfor
-
-.if defined(ABI) && !empty(ABI)
-_WRAP_EXTRA_ARGS.CC+= ${_COMPILER_ABI_FLAG.${ABI}}
-_WRAP_EXTRA_ARGS.CXX+= ${_COMPILER_ABI_FLAG.${ABI}}
-_WRAP_EXTRA_ARGS.LD+= ${_LINKER_ABI_FLAG.${ABI}}
-.endif
-
-.endif # BSD_COMPILER_MK
diff --git a/mk/compiler/ccache.mk b/mk/compiler/ccache.mk
deleted file mode 100644
index 2bd70bd6f22..00000000000
--- a/mk/compiler/ccache.mk
+++ /dev/null
@@ -1,125 +0,0 @@
-# $NetBSD: ccache.mk,v 1.26 2005/01/24 18:20:57 tv Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-.if !defined(COMPILER_CCACHE_MK)
-COMPILER_CCACHE_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(PKGPATH:Mdevel/ccache) || !empty(PKGPATH:Mdevel/patch)
-IGNORE_CCACHE= yes
-MAKEFLAGS+= IGNORE_CCACHE=yes
-.endif
-
-.if defined(IGNORE_CCACHE)
-_USE_CCACHE= NO
-.endif
-
-# LANGUAGES.<compiler> is the list of supported languages by the compiler.
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the ones
-# requested by the package in USE_LANGUAGES.
-#
-LANGUAGES.ccache= c c++
-_LANGUAGES.ccache= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.ccache+= ${LANGUAGES.ccache:M${_lang_}}
-.endfor
-.if empty(_LANGUAGES.ccache)
-_USE_CCACHE= NO
-.endif
-
-.if !defined(_USE_CCACHE)
-_USE_CCACHE= YES
-.endif
-
-.if !empty(_USE_CCACHE:M[yY][eE][sS])
-EVAL_PREFIX+= _CCACHEBASE=ccache
-_CCACHEBASE_DEFAULT= ${LOCALBASE}
-
-_CCACHE_DIR= ${WRKDIR}/.ccache
-_CCACHE_VARS= # empty
-. if !empty(_LANGUAGES.ccache:Mc)
-PKG_CC?= ${CC}
-_CCACHE_VARS+= CC
-_CCACHE_CC:= ${_CCACHE_DIR}/bin/${PKG_CC:T}
-_ALIASES.CC+= cc
-PKG_CC:= ${_CCACHE_CC}
-. endif
-. if !empty(_LANGUAGES.ccache:Mc++)
-PKG_CXX?= ${CXX}
-_CCACHE_VARS+= CXX
-_CCACHE_CXX:= ${_CCACHE_DIR}/bin/${PKG_CXX:T}
-_ALIASES.CXX+= c++
-PKG_CXX:= ${_CCACHE_CXX}
-. endif
-
-# Prepend the path the to the compiler to the PATH
-. if !empty(_LANGUAGES.ccache)
-PREPEND_PATH+= ${_CCACHE_DIR}/bin
-. endif
-
-# Add the dependency on ccache.
-BUILD_DEPENDS+= ccache-[0-9]*:../../devel/ccache
-
-# Override the compiler-specific hash with the version string for the
-# compiler.
-#
-BUILD_ENV+= CCACHE_HASHCC=${CC_VERSION_STRING:Q}
-
-. if defined(CCACHE_DIR) && !empty(CCACHE_DIR)
-BUILD_ENV+= CCACHE_DIR=${CCACHE_DIR:Q}
-. endif
-
-# Create symlinks for the compiler into ${WRKDIR}.
-. for _var_ in ${_CCACHE_VARS}
-. if !target(${_CCACHE_${_var_}})
-override-tools: ${_CCACHE_${_var_}}
-${_CCACHE_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${LN} -fs ${_CCACHEBASE}/bin/ccache ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -fs ${_CCACHEBASE}/bin/ccache ${_alias_}; \
- fi
-. endfor
-. endif
-. endfor
-.endif # _USE_CCACHE == "yes"
-
-.endif # COMPILER_CCACHE_MK
diff --git a/mk/compiler/ccc.mk b/mk/compiler/ccc.mk
deleted file mode 100644
index 12ae71c7ac1..00000000000
--- a/mk/compiler/ccc.mk
+++ /dev/null
@@ -1,97 +0,0 @@
-# $NetBSD: ccc.mk,v 1.13 2005/01/12 18:42:42 jlam Exp $
-
-.if !defined(COMPILER_CCC_MK)
-COMPILER_CCC_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
-#
-LANGUAGES.ccc= # empty
-
-_CCC_DIR= ${WRKDIR}/.ccc
-_CCC_VARS= # empty
-.if exists(/usr/bin/cc)
-LANGUAGES.ccc+= c
-_CCC_VARS+= CC
-_CCC_CC= ${_CCC_DIR}/cc
-_ALIASES.CC= cc
-CCPATH= /usr/bin/cc
-PKG_CC:= ${_CCC_CC}
-.endif
-.if exists(/usr/bin/cxx) && exists(/usr/lib/cmplrs/cxx)
-LANGUAGES.ccc+= c++
-_CCC_VARS+= CXX
-_CCC_CXX= ${_CCC_DIR}/cxx
-_ALIASES.CXX= c++ cxx
-CXXPATH= /usr/bin/cxx
-PKG_CXX:= ${_CCC_CXX}
-.endif
-_COMPILER_STRIP_VARS+= ${_CCC_VARS}
-
-.if exists(${CCPATH}) && !defined(CC_VERSION_STRING)
-CC_VERSION_STRING!= ${CCPATH} -V 2>&1 | ${AWK} '{print; exit(0);}'
-CC_VERSION!= ${CCPATH} -V 2>&1 | ${AWK} '{print "CCC-"$3; exit(0);}'
-.else
-CC_VERSION_STRING?= ${CC_VERSION}
-CC_VERSION?= CCC
-.endif
-
-# CCC passes flags to the linker using "-Wl,".
-_COMPILER_LD_FLAG= -Wl,
-
-# CCC passes rpath directives to the linker using "-rpath".
-_LINKER_RPATH_FLAG= -rpath
-
-# CCC passes rpath directives to the linker using "-rpath" tailing ",".
-_COMPILER_RPATH_FLAG= ${_COMPILER_LD_FLAG}${_LINKER_RPATH_FLAG},
-
-# Most packages assume ieee floats, make that the default.
-CFLAGS+= -ieee
-CXXFLAGS+= -ieee
-
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the
-# ones requested by the package in USE_LANGUAGES.
-#
-_LANGUAGES.ccc= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.ccc+= ${LANGUAGES.ccc:M${_lang_}}
-.endfor
-
-# Prepend the path to the compiler to the PATH.
-.if !empty(_LANGUAGES.ccc)
-PREPEND_PATH+= ${_CCC_DIR}/bin
-.endif
-
-# Create compiler driver scripts in ${WRKDIR}.
-.for _var_ in ${_CCC_VARS}
-. if !target(${_CCC_${_var_}})
-override-tools: ${_CCC_${_var_}}
-${_CCC_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec /usr/bin/${.TARGET:T} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -f ${.TARGET} ${_alias_}; \
- fi
-. endfor
-. endif
-.endfor
-
-# Force the use of f2c-f77 for compiling Fortran.
-_CCC_USE_F2C= no
-FCPATH= /nonexistent
-.if !exists(${FCPATH})
-_CCC_USE_F2C= yes
-.endif
-.if !empty(_CCC_USE_F2C:M[yY][eE][sS])
-. include "../../mk/compiler/f2c.mk"
-.endif
-
-.endif # COMPILER_CCC_MK
diff --git a/mk/compiler/distcc.mk b/mk/compiler/distcc.mk
deleted file mode 100644
index 1bdd6b7436a..00000000000
--- a/mk/compiler/distcc.mk
+++ /dev/null
@@ -1,126 +0,0 @@
-# $NetBSD: distcc.mk,v 1.27 2005/01/24 18:20:57 tv Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-.if !defined(COMPILER_DISTCC_MK)
-COMPILER_DISTCC_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(PKGPATH:Mdevel/distcc)
-IGNORE_DISTCC= yes
-MAKEFLAGS+= IGNORE_DISTCC=yes
-.endif
-
-.if defined(IGNORE_DISTCC)
-_USE_DISTCC= NO
-.endif
-
-# LANGUAGES.<compiler> is the list of supported languages by the compiler.
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the ones
-# requested by the package in USE_LANGUAGES.
-#
-LANGUAGES.distcc= c c++
-_LANGUAGES.distcc= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.distcc+= ${LANGUAGES.distcc:M${_lang_}}
-.endfor
-.if empty(_LANGUAGES.distcc)
-_USE_DISTCC= NO
-.endif
-
-.if !defined(_USE_DISTCC)
-_USE_DISTCC= YES
-.endif
-
-.if !empty(_USE_DISTCC:M[yY][eE][sS])
-EVAL_PREFIX+= _DISTCCBASE=distcc
-_DISTCCBASE_DEFAULT= ${LOCALBASE}
-
-_DISTCC_DIR= ${WRKDIR}/.distcc
-_DISTCC_VARS= # empty
-. if !empty(_LANGUAGES.distcc:Mc)
-PKG_CC?= ${CC}
-_DISTCC_VARS+= CC
-_DISTCC_CC:= ${_DISTCC_DIR}/bin/${PKG_CC:T}
-_ALIASES.CC+= cc
-PKG_CC:= ${_DISTCC_CC}
-. endif
-. if !empty(_LANGUAGES.distcc:Mc++)
-PKG_CXX?= ${CXX}
-_DISTCC_VARS+= CXX
-_DISTCC_CXX:= ${_DISTCC_DIR}/bin/${PKG_CXX:T}
-_ALIASES.CXX+= c++
-PKG_CXX:= ${_DISTCC_CXX}
-. endif
-
-# Prepend the path to the compiler to the PATH.
-. if !empty(_LANGUAGES.distcc)
-PREPEND_PATH+= ${_DISTCC_DIR}/bin
-. endif
-
-# Add the dependency on distcc.
-BUILD_DEPENDS+= distcc-[0-9]*:../../devel/distcc
-
-. if defined(DISTCC_HOSTS) && !empty(DISTCC_HOSTS)
-BUILD_ENV+= DISTCC_HOSTS=${DISTCC_HOSTS:Q}
-. endif
-. if defined(DISTCC_SSH) && !empty(DISTCC_SSH)
-BUILD_ENV+= DISTCC_SSH=${DISTCC_SSH:Q}
-. endif
-. if defined(DISTCC_VERBOSE) && !empty(DISTCC_VERBOSE)
-BUILD_ENV+= DISTCC_VERBOSE=${DISTCC_VERBOSE:Q}
-. endif
-
-# Create symlinks for the compiler into ${WRKDIR}.
-. for _var_ in ${_DISTCC_VARS}
-. if !target(${_DISTCC_${_var_}})
-override-tools: ${_DISTCC_${_var_}}
-${_DISTCC_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${LN} -fs ${_DISTCCBASE}/bin/distcc ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -fs ${_DISTCCBASE}/bin/distcc ${_alias_}; \
- fi
-. endfor
-. endif
-. endfor
-.endif # _USE_DISTCC == "yes"
-
-.endif # COMPILER_DISTCC_MK
diff --git a/mk/compiler/f2c.mk b/mk/compiler/f2c.mk
deleted file mode 100644
index 18e22f59ddc..00000000000
--- a/mk/compiler/f2c.mk
+++ /dev/null
@@ -1,123 +0,0 @@
-# $NetBSD: f2c.mk,v 1.5 2005/03/24 17:46:01 tv Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-.if !defined(COMPILER_F2C_MK)
-COMPILER_F2C_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(PKGPATH:Mlang/f2c) || !empty(PKGPATH:Mdevel/patch) || \
- !empty(PKGPATH:Mdevel/libtool-base)
-IGNORE_F2C= yes
-MAKEFLAGS+= IGNORE_F2C=yes
-.endif
-
-.if defined(IGNORE_F2C)
-_USE_F2C= NO
-.endif
-
-# LANGUAGES.<compiler> is the list of supported languages by the compiler.
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the ones
-# requested by the package in USE_LANGUAGES.
-#
-LANGUAGES.f2c= fortran
-_LANGUAGES.f2c= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.f2c+= ${LANGUAGES.f2c:M${_lang_}}
-.endfor
-.if empty(_LANGUAGES.f2c)
-_USE_F2C= NO
-.endif
-
-.if !defined(_USE_F2C)
-_USE_F2C= YES
-.endif
-
-.if !empty(_USE_F2C:M[yY][eE][sS])
-EVAL_PREFIX+= _F2CBASE=f2c
-_F2CBASE_DEFAULT= ${LOCALBASE}
-
-_F2C_DIR= ${WRKDIR}/.f2c
-_F2C_VARS= # empty
-. if !empty(_LANGUAGES.f2c:Mfortran)
-PKG_FC?= ${FC}
-_F2C_VARS+= FC
-_F2C_FC:= ${_F2C_DIR}/bin/${PKG_FC:T}
-_ALIASES.FC+= f77 f2c-f77
-FCPATH= ${_F2CBASE}/bin/f2c-f77
-PKG_FC:= ${_F2C_FC}
-#
-# The f2c-f77 shell script invokes the C compiler, so ensure that it finds
-# the cc wrapper for proper transformations.
-#
-# XXX This shouldn't really be leaking into here, as it breaks encapsulation.
-# XXX It should really be handled within the wrapper framework.
-#
-_WRAP_ENV.FC= PATH="${WRAPPER_BINDIR}:${_WRAP_PATH}"; export PATH
-. endif
-
-# Prepend the path the to the compiler to the PATH
-. if !empty(_LANGUAGES.f2c)
-PREPEND_PATH+= ${_F2C_DIR}/bin
-. endif
-
-# Add the dependency on f2c.
-. include "../../lang/f2c/buildlink3.mk"
-
-. if defined(F2C_DIR) && !empty(F2C_DIR)
-BUILD_ENV+= F2C_DIR=${F2C_DIR:Q}
-. endif
-
-# Create symlinks for the compiler into ${WRKDIR}.
-. for _var_ in ${_F2C_VARS}
-. if !target(${_F2C_${_var_}})
-override-tools: ${_F2C_${_var_}}
-${_F2C_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${LN} -fs ${_F2CBASE}/bin/f2c-f77 ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -fs ${_F2CBASE}/bin/f2c-f77 ${_alias_}; \
- fi
-. endfor
-. endif
-. endfor
-.endif # _USE_F2C == "yes"
-
-.endif # COMPILER_F2C_MK
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
deleted file mode 100644
index 6642212871d..00000000000
--- a/mk/compiler/gcc.mk
+++ /dev/null
@@ -1,454 +0,0 @@
-# $NetBSD: gcc.mk,v 1.81 2005/05/31 10:51:36 shannonjr Exp $
-
-.if !defined(COMPILER_GCC_MK)
-COMPILER_GCC_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-USE_NATIVE_GCC?= no
-
-GCC_REQD+= 2.8.0
-
-# _GCC_DIST_VERSION is the highest version of GCC installed by the pkgsrc
-# without the PKGREVISIONs.
-#
-_GCC_DIST_VERSION= 3.4.4
-
-# _GCC2_PATTERNS matches N s.t. N <= 2.95.3.
-_GCC2_PATTERNS= [0-1].* 2.[0-9] 2.[0-9].* 2.[1-8][0-9] 2.[1-8][0-9].* \
- 2.9[0-4] 2.9[0-4].* 2.95 2.95.[0-3]
-
-# _GCC3_PATTERNS matches N s.t. 2.95.3 < N < 3.4.
-_GCC3_PATTERNS= 2.95.[4-9]* 2.95.[1-9][0-9]* 2.9[6-9] 2.9[6-9].* \
- 2.[1-9][0-9][0-9]* 3.[0-3] 3.[0-3].*
-
-# _GCC34_PATTERNS matches N s.t. 3.4 <= N.
-_GCC34_PATTERNS= 3.[4-9] 3.[4-9].* 3.[1-9][0-9]* [4-9]*
-
-# _CC is the full path to the compiler named by ${CC} if it can be found.
-.if !defined(_CC)
-_CC:= ${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-. for _dir_ in ${PATH:C/\:/ /g}
-. if empty(_CC:M/*)
-. if exists(${_dir_}/${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//})
-_CC:= ${_dir_}/${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-. endif
-. endif
-. endfor
-MAKEFLAGS+= _CC=${_CC:Q}
-.endif
-
-.if !defined(_GCC_VERSION)
-_GCC_VERSION_STRING!= \
- ( ${_CC} -v 2>&1 | ${GREP} 'gcc version' ) 2>/dev/null || ${ECHO} 0
-. if !empty(_GCC_VERSION_STRING:Megcs*)
-_GCC_VERSION= 2.8.1 # egcs is considered to be gcc-2.8.1.
-. elif !empty(_GCC_VERSION_STRING:Mgcc*)
-_GCC_VERSION!= ${_CC} -dumpversion
-. else
-_GCC_VERSION= 0
-. endif
-.endif
-_GCC_PKG= gcc-${_GCC_VERSION}
-
-.if !empty(_CC:M${LOCALBASE}/*)
-_IS_BUILTIN_GCC= NO
-GCC_REQD+= ${_GCC_VERSION}
-.else
-. if !empty(_CC:M/*)
-#
-# GCC in older versions of Darwin report "Apple Computer ... based on gcc
-# version ...", so we can't just grep for "^gcc".
-#
-. if ${_GCC_VERSION} != "0"
-_IS_BUILTIN_GCC= YES
-. else
-_IS_BUILTIN_GCC= NO
-. endif
-. else
-_IS_BUILTIN_GCC= NO
-. endif
-.endif
-
-# Distill the GCC_REQD list into a single _GCC_REQD value that is the
-# highest version of GCC required.
-#
-_GCC_STRICTEST_REQD?= none
-.for _version_ in ${GCC_REQD}
-. for _pkg_ in gcc-${_version_}
-. if ${_GCC_STRICTEST_REQD} == "none"
-_GCC_PKG_SATISFIES_DEP= YES
-. for _vers_ in ${GCC_REQD}
-. if !empty(_GCC_PKG_SATISFIES_DEP:M[yY][eE][sS])
-_GCC_PKG_SATISFIES_DEP!= \
- if ${PKG_ADMIN} pmatch 'gcc>=${_vers_}' ${_pkg_} 2>/dev/null; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-. endfor
-. if !empty(_GCC_PKG_SATISFIES_DEP:M[yY][eE][sS])
-_GCC_STRICTEST_REQD= ${_version_}
-. endif
-. endif
-. endfor
-.endfor
-_GCC_REQD= ${_GCC_STRICTEST_REQD}
-
-# Determine whether we require GCC-2.x or GCC-3.x by examining _GCC_REQD.
-_NEED_GCC2?= no
-.for _pattern_ in ${_GCC2_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC2= yes
-. endif
-.endfor
-_NEED_GCC3?= no
-.for _pattern_ in ${_GCC3_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC3= yes
-. endif
-.endfor
-_NEED_GCC34?= no
-.for _pattern_ in ${_GCC34_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC34= yes
-. endif
-.endfor
-.if !empty(_NEED_GCC2:M[nN][oO]) && !empty(_NEED_GCC3:M[nN][oO]) && \
- !empty(_NEED_GCC34:M[nN][oO])
-_NEED_GCC3= yes
-.endif
-
-# Assume by default that GCC will only provide a C compiler.
-LANGUAGES.gcc?= c
-.if !empty(_NEED_GCC2:M[yY][eE][sS])
-LANGUAGES.gcc= c c++ fortran objc
-.elif !empty(_NEED_GCC3:M[yY][eE][sS])
-LANGUAGES.gcc= c c++ fortran java objc
-.elif !empty(_NEED_GCC34:M[yY][eE][sS])
-LANGUAGES.gcc= c c++ fortran objc
-.endif
-_LANGUAGES.gcc= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.gcc+= ${LANGUAGES.gcc:M${_lang_}}
-.endfor
-
-# GCC has this annoying behaviour where it advocates in a multi-line
-# banner the use of "#include" over "#import" when including headers.
-# This generates a huge number of warnings when building practically all
-# Objective-C code where it is convention to use "#import". Suppress
-# the warning if we're building Objective-C code using GCC.
-#
-.if !empty(_LANGUAGES.gcc:Mobjc)
-CFLAGS+= -Wno-import
-.endif
-
-.if !empty(_NEED_GCC2:M[yY][eE][sS])
-#
-# We require gcc-2.x in the lang/gcc directory.
-#
-_GCC_PKGBASE= gcc
-. if !empty(PKGPATH:Mlang/gcc)
-_IGNORE_GCC= yes
-MAKEFLAGS+= _IGNORE_GCC=yes
-. endif
-. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
-_GCC_PKGSRCDIR= ../../lang/gcc
-_GCC_DEPENDENCY= gcc>=${_GCC_REQD}:../../lang/gcc
-. if !empty(_LANGUAGES.gcc:Mc++) || \
- !empty(_LANGUAGES.gcc:Mfortran) || \
- !empty(_LANGUAGES.gcc:Mobjc)
-_USE_GCC_SHLIB?= yes
-. endif
-. endif
-.elif !empty(_NEED_GCC3:M[yY][eE][sS])
-#
-# We require gcc-3.x in the lang/gcc3-* directories.
-#
-_GCC_PKGBASE= gcc3-c
-. if !empty(PKGPATH:Mlang/gcc3-c)
-_IGNORE_GCC= yes
-MAKEFLAGS+= _IGNORE_GCC=yes
-. endif
-. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc:Mc)
-_GCC_PKGSRCDIR= ../../lang/gcc3-c
-_GCC_DEPENDENCY= gcc3-c>=${_GCC_REQD}:../../lang/gcc3-c
-. endif
-.elif !empty(_NEED_GCC34:M[yY][eE][sS])
-#
-# We require gcc-3.4.x in the lang/gcc34 directory.
-#
-_GCC_PKGBASE= gcc34
-. if !empty(PKGPATH:Mlang/gcc34)
-_IGNORE_GCC= yes
-MAKEFLAGS+= _IGNORE_GCC=yes
-. endif
-. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
-_GCC_PKGSRCDIR= ../../lang/gcc34
-_GCC_DEPENDENCY= gcc34>=${_GCC_REQD}:../../lang/gcc34
-. if !empty(_LANGUAGES.gcc:Mc++) || \
- !empty(_LANGUAGES.gcc:Mfortran) || \
- !empty(_LANGUAGES.gcc:Mobjc)
-_USE_GCC_SHLIB?= yes
-. endif
-. endif
-.endif
-_GCC_DEPENDS= ${_GCC_PKGBASE}>=${_GCC_REQD}
-
-.if !empty(_NEED_GCC3:M[yY][eE][sS])
-. if !empty(PKGPATH:Mlang/gcc3-c++)
-_IGNORE_GCC3CXX= yes
-MAKEFLAGS+= _IGNORE_GCC3CXX=yes
-. endif
-. if !defined(_IGNORE_GCC3CXX) && !empty(_LANGUAGES.gcc:Mc++)
-_GCC_PKGSRCDIR+= ../../lang/gcc3-c++
-_GCC_DEPENDENCY+= gcc3-c++>=${_GCC_REQD}:../../lang/gcc3-c++
-_USE_GCC_SHLIB?= yes
-. endif
-. if !empty(PKGPATH:Mlang/gcc3-f77)
-_IGNORE_GCC3F77= yes
-MAKEFLAGS+= _IGNORE_GCC3F77=yes
-. endif
-. if !defined(_IGNORE_GCC3F77) && !empty(_LANGUAGES.gcc:Mfortran)
-_GCC_PKGSRCDIR+= ../../lang/gcc3-f77
-_GCC_DEPENDENCY+= gcc3-f77>=${_GCC_REQD}:../../lang/gcc3-f77
-_USE_GCC_SHLIB?= yes
-. endif
-. if !empty(PKGPATH:Mlang/gcc3-objc)
-_IGNORE_GCC3OBJC= yes
-MAKEFLAGS+= _IGNORE_GCC3OBJC=yes
-. endif
-. if !defined(_IGNORE_GCC3OBJC) && !empty(_LANGUAGES.gcc:Mobjc)
-_GCC_PKGSRCDIR+= ../../lang/gcc3-objc
-_GCC_DEPENDENCY+= gcc3-objc>=${_GCC_REQD}:../../lang/gcc3-objc
-_USE_GCC_SHLIB?= yes
-. endif
-.endif
-
-.if !empty(USE_NATIVE_GCC:M[yY][eE][sS])
-_USE_PKGSRC_GCC= no
-.endif
-
-.if defined(_IGNORE_GCC)
-_USE_PKGSRC_GCC= NO
-.endif
-
-.if !defined(_USE_PKGSRC_GCC)
-_USE_PKGSRC_GCC= YES
-. if !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
-_GCC_TEST_DEPENDS= gcc>=${_GCC_REQD}
-_USE_PKGSRC_GCC!= \
- if ${PKG_ADMIN} pmatch '${_GCC_TEST_DEPENDS}' ${_GCC_PKG} 2>/dev/null; then \
- ${ECHO} "NO"; \
- else \
- ${ECHO} "YES"; \
- fi
-. endif
-.endif
-
-# Check if any of the versions of GCC in pkgsrc can satisfy the _GCC_REQD
-# requirement.
-#
-.if !defined(_NEED_NEWER_GCC)
-_PKGSRC_GCC_VERSION= ${_GCC_PKGBASE}-${_GCC_DIST_VERSION}
-_NEED_NEWER_GCC!= \
- if ${PKG_ADMIN} pmatch '${_GCC_DEPENDS}' ${_PKGSRC_GCC_VERSION} 2>/dev/null; then \
- ${ECHO} "NO"; \
- else \
- ${ECHO} "YES"; \
- fi
-#MAKEFLAGS+= _NEED_NEWER_GCC=${_NEED_NEWER_GCC}
-.endif
-.if !empty(_USE_PKGSRC_GCC:M[yY][eE][sS]) && \
- !empty(_NEED_NEWER_GCC:M[yY][eE][sS])
-PKG_SKIP_REASON= "Unable to satisfy dependency: ${_GCC_DEPENDS}"
-.endif
-
-# GNU ld option used to set the rpath
-_LINKER_RPATH_FLAG= -R
-
-# GCC passes rpath directives to the linker using "-Wl,-R".
-_COMPILER_RPATH_FLAG= -Wl,${_LINKER_RPATH_FLAG}
-
-.if !empty(MACHINE_ARCH:Mmips*)
-_COMPILER_ABI_FLAG.32= -mabi=n32 # ABI == "32" == "n32"
-_COMPILER_ABI_FLAG.n32= -mabi=n32
-_COMPILER_ABI_FLAG.o32= -mabi=32
-_COMPILER_ABI_FLAG.64= -mabi=64
-
-. if defined(ABI) && !empty(ABI)
-MABIFLAG= ${_COMPILER_ABI_FLAG.${ABI}}
-. endif
-.endif
-
-.if !empty(_USE_PKGSRC_GCC:M[yY][eE][sS])
-#
-# Ensure that the correct rpath is passed to the linker if we need to
-# link against gcc shared libs.
-#
-_GCC_SUBPREFIX!= \
- if ${PKG_INFO} -qe ${_GCC_PKGBASE}; then \
- ${PKG_INFO} -f ${_GCC_PKGBASE} | \
- ${GREP} "File:.*bin/gcc" | \
- ${SED} -e "s/.*File: *//;s/bin\/gcc.*//;q"; \
- else \
- case ${_CC} in \
- ${LOCALBASE}/*) \
- subprefix="${_CC:H:S/\/bin$//:S/${LOCALBASE}\///:S/${LOCALBASE}//}"; \
- case "$${subprefix}" in \
- "") ${ECHO} "$${subprefix}" ;; \
- *) ${ECHO} "$${subprefix}/" ;; \
- esac; \
- ;; \
- *) \
- ${ECHO} "_GCC_SUBPREFIX_not_found/"; \
- ;; \
- esac; \
- fi
-_GCC_PREFIX= ${LOCALBASE}/${_GCC_SUBPREFIX}
-_GCC_ARCHDIR!= \
- if [ -x ${_GCC_PREFIX}bin/gcc ]; then \
- ${DIRNAME} `${_GCC_PREFIX}bin/gcc ${MABIFLAG} -print-libgcc-file-name 2>/dev/null`; \
- else \
- ${ECHO} "_GCC_ARCHDIR_not_found"; \
- fi
-. if empty(_GCC_ARCHDIR:M*not_found*)
-. if defined(MABIFLAG) && !empty(MABIFLAG)
-_GCC_PREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H}/
-_GCC_SUBPREFIX:= ${_GCC_ARCHDIR:H:H:H:H:H:T}/
-. else
-_GCC_PREFIX:= ${_GCC_ARCHDIR:H:H:H:H}/
-_GCC_SUBPREFIX:= ${_GCC_ARCHDIR:H:H:H:H:T}/
-. endif
-. endif
-_GCC_LIBDIRS= ${_GCC_ARCHDIR} ${_GCC_PREFIX}lib
-_GCC_LDFLAGS= # empty
-. for _dir_ in ${_GCC_LIBDIRS:N*not_found*}
-_GCC_LDFLAGS+= -L${_dir_} ${COMPILER_RPATH_FLAG}${_dir_}
-. endfor
-LDFLAGS+= ${_GCC_LDFLAGS}
-.endif
-
-# Point the variables that specify the compiler to the installed
-# GCC executables.
-#
-_GCC_DIR= ${WRKDIR}/.gcc
-_GCC_VARS= # empty
-
-.if !empty(_USE_PKGSRC_GCC:M[yY][eE][sS])
-_GCCBINDIR= ${_GCC_PREFIX}bin
-.elif !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
-_GCCBINDIR= ${_CC:H}
-.endif
-.if exists(${_GCCBINDIR}/gcc)
-_GCC_VARS+= CC
-_GCC_CC= ${_GCC_DIR}/bin/gcc
-_ALIASES.CC= cc gcc
-CCPATH= ${_GCCBINDIR}/gcc
-PKG_CC:= ${_GCC_CC}
-.endif
-.if exists(${_GCCBINDIR}/cpp)
-_GCC_VARS+= CPP
-_GCC_CPP= ${_GCC_DIR}/bin/cpp
-_ALIASES.CPP= cpp
-CPPPATH= ${_GCCBINDIR}/cpp
-PKG_CPP:= ${_GCC_CPP}
-.endif
-.if exists(${_GCCBINDIR}/g++)
-_GCC_VARS+= CXX
-_GCC_CXX= ${_GCC_DIR}/bin/g++
-_ALIASES.CXX= c++ g++
-CXXPATH= ${_GCCBINDIR}/g++
-PKG_CXX:= ${_GCC_CXX}
-.endif
-.if exists(${_GCCBINDIR}/g77)
-_GCC_VARS+= FC
-_GCC_FC= ${_GCC_DIR}/bin/g77
-_ALIASES.FC= f77 g77
-FCPATH= ${_GCCBINDIR}/g77
-F77PATH= ${_GCCBINDIR}/g77
-PKG_FC:= ${_GCC_FC}
-.endif
-_COMPILER_STRIP_VARS+= ${_GCC_VARS}
-
-# Pass the required flags to imake to tell it we're using gcc on Solaris.
-.if ${OPSYS} == "SunOS"
-IMAKEOPTS+= -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
-.endif
-
-.if !empty(_USE_PKGSRC_GCC:M[yY][eE][sS])
-. if exists(${CCPATH})
-CC_VERSION_STRING!= ${CCPATH} -v 2>&1
-CC_VERSION!= \
- if ${CCPATH} -dumpversion > /dev/null 2>&1; then \
- ${ECHO} "gcc-`${CCPATH} -dumpversion`"; \
- else \
- ${ECHO} "gcc-${_GCC_REQD}"; \
- fi
-
-. else
-CC_VERSION_STRING= ${CC_VERSION}
-CC_VERSION= gcc-${_GCC_REQD}
-. endif
-.else
-CC_VERSION_STRING= ${CC_VERSION}
-CC_VERSION= ${_GCC_PKG}
-.endif
-
-# Prepend the path to the compiler to the PATH.
-.if !empty(_LANGUAGES.gcc)
-PREPEND_PATH+= ${_GCC_DIR}/bin
-.endif
-
-# Add the dependency on GCC.
-.if !empty(_USE_PKGSRC_GCC:M[yY][eE][sS])
-. for _dir_ in ${_GCC_PKGSRCDIR}
-. include "${_dir_}/buildlink3.mk"
-. endfor
-.endif
-
-# Create compiler driver scripts in ${WRKDIR}.
-GCC_USE_SYMLINKS?= no
-.for _var_ in ${_GCC_VARS}
-. if !target(${_GCC_${_var_}})
-override-tools: ${_GCC_${_var_}}
-${_GCC_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
-. if !empty(GCC_USE_SYMLINKS:Myes)
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${LN} -s ${_GCCBINDIR}/${.TARGET:T} ${.TARGET}
-. else
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${_GCCBINDIR}/${.TARGET:T} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. endif
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -f -s ${.TARGET:T} ${_alias_}; \
- fi
-. endfor
-. endif
-.endfor
-
-# On older NetBSD systems and where the Fortran compiler doesn't exist,
-# force the use of f2c-f77.
-#
-_GCC_USE_F2C= no
-.if !exists(${FCPATH})
-_GCC_USE_F2C= yes
-.else
-. for _pattern_ in 0.* 1.[0-4] 1.[0-4].*
-. if !empty(MACHINE_PLATFORM:MNetBSD-${_pattern_}-*)
-_GCC_USE_F2C= yes
-. endif
-. endfor
-.endif
-.if !empty(_GCC_USE_F2C:M[yY][eE][sS])
-. include "../../mk/compiler/f2c.mk"
-.endif
-
-.endif # COMPILER_GCC_MK
diff --git a/mk/compiler/icc.mk b/mk/compiler/icc.mk
deleted file mode 100644
index 19f0a703f3f..00000000000
--- a/mk/compiler/icc.mk
+++ /dev/null
@@ -1,90 +0,0 @@
-# $NetBSD: icc.mk,v 1.2 2005/02/16 10:48:40 grant Exp $
-
-.if !defined(COMPILER_ICC_MK)
-COMPILER_ICC_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-ICCBASE?= /opt/intel_cc_80
-
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
-#
-LANGUAGES.icc= # empty
-
-_ICC_DIR= ${WRKDIR}/.icc
-_ICC_VARS= # empty
-.if exists(${ICCBASE}/bin/icc)
-LANGUAGES.icc+= c
-_ICC_VARS+= CC
-_ICC_CC= ${_ICC_DIR}/bin/icc
-_ALIASES.CC= cc
-CCPATH= ${ICCBASE}/bin/icc
-PKG_CC:= ${_ICC_CC}
-LANGUAGES.icc+= c++
-_ICC_VARS+= CXX
-_ICC_CXX= ${_ICC_DIR}/bin/icpc
-_ALIASES.CXX= CC c++
-CXXPATH= ${ICCBASE}/bin/icpc
-PKG_CXX:= ${_ICC_CXX}
-.endif
-_COMPILER_STRIP_VARS+= ${_ICC_VARS}
-
-# icc passes rpath directives to the linker using "-Wl,-R".
-_LINKER_RPATH_FLAG= -Wl,-R
-
-# icc passes rpath directives to the linker using "-Wl,-R".
-_COMPILER_RPATH_FLAG= -Wl,-R
-
-.if exists(${CCPATH})
-CC_VERSION_STRING!= ${CCPATH} -V 2>&1 | ${GREP} '^Intel'
-_CC_VERSION!= ${CCPATH} -v 2>&1 || ${TRUE}
-CC_VERSION= Intel C++ Compiler ${_CC_VERSION}
-.else
-CC_VERSION_STRING?= ${CC_VERSION}
-CC_VERSION?= Intel C++ Compiler
-.endif
-
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the
-# ones requested by the package in USE_LANGUAGES.
-#
-_LANGUAGES.icc= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.icc+= ${LANGUAGES.icc:M${_lang_}}
-.endfor
-
-# Prepend the path to the compiler to the PATH.
-.if !empty(_LANGUAGES.icc)
-PREPEND_PATH+= ${_ICC_DIR}/bin
-.endif
-
-# icc supports __attribute__, but the GNU configure test uses a nested
-# function, which icc does not support. #undef'ing __attribute__ has the
-# unfortunate side-effect of breaking many of the Linux header files, which
-# cannot be compiled properly without __attribute__. The test must be
-# overridden so that __attribute__ is assumed supported by the compiler.
-.if defined(GNU_CONFIGURE)
-CONFIGURE_ENV+= ac_cv___attribute__=yes
-.endif
-
-# Create compiler driver scripts in ${WRKDIR}.
-.for _var_ in ${_ICC_VARS}
-. if !target(${_ICC_${_var_}})
-override-tools: ${_ICC_${_var_}}
-${_ICC_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${ICCBASE}/bin/${.TARGET:T} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -f ${.TARGET} ${_alias_}; \
- fi
-. endfor
-. endif
-.endfor
-
-.endif # COMPILER_ICC_MK
diff --git a/mk/compiler/ido.mk b/mk/compiler/ido.mk
deleted file mode 100644
index 6c2e08f3cd5..00000000000
--- a/mk/compiler/ido.mk
+++ /dev/null
@@ -1,78 +0,0 @@
-# $NetBSD: ido.mk,v 1.2 2005/10/30 10:33:23 schwarz Exp $
-
-.if !defined(COMPILER_IDO_MK)
-COMPILER_IDO_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-IDOBASE?= /usr
-
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
-#
-LANGUAGES.ido= # empty
-
-_IDO_DIR= ${WRKDIR}/.ido
-_IDO_VARS= # empty
-.if exists(${IDOBASE}/bin/cc)
-LANGUAGES.ido+= c
-_IDO_VARS+= CC
-_IDO_CC= ${_IDO_DIR}/bin/cc
-_ALIASES.CC= cc
-CCPATH= ${IDOBASE}/bin/cc
-PKG_CC:= ${_IDO_CC}
-.endif
-_COMPILER_STRIP_VARS+= ${_IDO_VARS}
-
-CC_VERSION?= ${LOWER_OPSYS} ido cc
-
-# IDO linker option used to set the rpath.
-_LINKER_RPATH_FLAG= -rpath
-
-# IDO passes rpath directives to the linker using "-Wl,-rpath,".
-_COMPILER_RPATH_FLAG= -Wl,${_LINKER_RPATH_FLAG},
-
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the
-# ones requested by the package in USE_LANGUAGES.
-#
-_LANGUAGES.ido= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.ido+= ${LANGUAGES.ido:M${_lang_}}
-.endfor
-
-# Prepend the path to the compiler to the PATH.
-.if !empty(_LANGUAGES.ido)
-PREPEND_PATH+= ${_IDO_DIR}/bin
-.endif
-
-# Create compiler driver scripts in ${WRKDIR}.
-.for _var_ in ${_IDO_VARS}
-. if !target(${_IDO_${_var_}})
-override-tools: ${_IDO_${_var_}}
-${_IDO_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${IDOBASE}/bin/${.TARGET:T} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -f ${.TARGET} ${_alias_}; \
- fi
-. endfor
-. endif
-.endfor
-
-# Force the use of f2c-f77 for compiling Fortran.
-_IDO_USE_F2C= no
-FCPATH= /nonexistent
-.if !exists(${FCPATH})
-_IDO_USE_F2C= yes
-.endif
-.if !empty(_IDO_USE_F2C:M[yY][eE][sS])
-. include "../../mk/compiler/f2c.mk"
-.endif
-
-.endif # COMPILER_IDO_MK
diff --git a/mk/compiler/mipspro-ucode.mk b/mk/compiler/mipspro-ucode.mk
deleted file mode 100644
index ea19dc23016..00000000000
--- a/mk/compiler/mipspro-ucode.mk
+++ /dev/null
@@ -1,47 +0,0 @@
-# $NetBSD: mipspro-ucode.mk,v 1.3 2005/01/12 18:36:38 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-.if !defined(COMPILER_MIPSPRO_UCODE_MK)
-COMPILER_MIPSPRO_UCODE_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-CC_VERSION?= MIPSpro Compilers: Version 4.x (ucode)
-
-.include "../../mk/compilers/mipspro.mk"
-
-.endif # COMPILER_MIPSPRO_UCODE_MK
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk
deleted file mode 100644
index dea3b7230b6..00000000000
--- a/mk/compiler/mipspro.mk
+++ /dev/null
@@ -1,107 +0,0 @@
-# $NetBSD: mipspro.mk,v 1.34 2005/01/12 18:37:52 jlam Exp $
-
-.if !defined(COMPILER_MIPSPRO_MK)
-COMPILER_MIPSPRO_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-MIPSPROBASE?= /usr
-
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
-#
-LANGUAGES.mipspro= # empty
-
-_MIPSPRO_DIR= ${WRKDIR}/.mipspro
-_MIPSPRO_VARS= # empty
-.if exists(${MIPSPROBASE}/bin/cc)
-LANGUAGES.mipspro+= c
-_MIPSPRO_VARS+= CC
-_MIPSPRO_CC= ${_MIPSPRO_DIR}/bin/cc
-_ALIASES.CC= cc
-CCPATH= ${MIPSPROBASE}/bin/cc
-PKG_CC:= ${_MIPSPRO_CC}
-.endif
-.if exists(${MIPSPROBASE}/bin/CC)
-LANGUAGES.mipspro+= c++
-_MIPSPRO_VARS+= CXX
-_MIPSPRO_CXX= ${_MIPSPRO_DIR}/bin/CC
-_ALIASES.CXX= CC c++
-CXXPATH= ${MIPSPROBASE}/bin/CC
-PKG_CXX:= ${_MIPSPRO_CXX}
-.endif
-_COMPILER_STRIP_VARS+= ${_MIPSPRO_VARS}
-
-.if exists(${CCPATH})
-# MIPSpro Compilers: Version 7.3.1.2m
-CC_VERSION_STRING!= ${CCPATH} -version 2>&1 || ${TRUE}
-CC_VERSION!= ${CCPATH} -version 2>&1 | ${GREP} '^MIPSpro'
-.else
-CC_VERSION_STRING?= ${CC_VERSION}
-CC_VERSION?= MIPSpro Compilers
-.endif
-
-# MIPSPro linker option used to set the rpath.
-_LINKER_RPATH_FLAG= -rpath
-
-# MIPSPro passes rpath directives to the linker using "-Wl,-rpath,".
-_COMPILER_RPATH_FLAG= -Wl,${_LINKER_RPATH_FLAG},
-
-# MIPSPro supports compiling/linking objects for several ABIs: n32, o32,
-# and 64 bit.
-#
-_COMPILER_ABI_FLAG.32= -n32 # ABI == "32" is an alias for ABI == "n32"
-_COMPILER_ABI_FLAG.o32= # empty
-_COMPILER_ABI_FLAG.n32= -n32
-_COMPILER_ABI_FLAG.64= -64
-
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the
-# ones requested by the package in USE_LANGUAGES.
-#
-_LANGUAGES.mipspro= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.mipspro+= ${LANGUAGES.mipspro:M${_lang_}}
-.endfor
-
-# Prepend the path to the compiler to the PATH.
-.if !empty(_LANGUAGES.mipspro)
-PREPEND_PATH+= ${_MIPSPRO_DIR}/bin
-.endif
-
-# Create compiler driver scripts in ${WRKDIR}.
-.for _var_ in ${_MIPSPRO_VARS}
-. if !target(${_MIPSPRO_${_var_}})
-override-tools: ${_MIPSPRO_${_var_}}
-${_MIPSPRO_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${MIPSPROBASE}/bin/${.TARGET:T} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -f ${.TARGET} ${_alias_}; \
- fi
-. endfor
-. endif
-.endfor
-
-.if defined(ABI)
-MABIFLAG= -${ABI:C/^32$/n&/}
-CFLAGS+= ${MABIFLAG}
-LDFLAGS+= ${MABIFLAG}
-.endif
-
-# Force the use of f2c-f77 for compiling Fortran.
-_MIPSPRO_USE_F2C= no
-FCPATH= /nonexistent
-.if !exists(${FCPATH})
-_MIPSPRO_USE_F2C= yes
-.endif
-.if !empty(_MIPSPRO_USE_F2C:M[yY][eE][sS])
-. include "../../mk/compiler/f2c.mk"
-.endif
-
-.endif # COMPILER_MIPSPRO_MK
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk
deleted file mode 100644
index 076071bc313..00000000000
--- a/mk/compiler/sunpro.mk
+++ /dev/null
@@ -1,97 +0,0 @@
-# $NetBSD: sunpro.mk,v 1.33 2005/07/21 01:36:25 grant Exp $
-
-.if !defined(COMPILER_SUNPRO_MK)
-COMPILER_SUNPRO_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-SUNWSPROBASE?= /opt/SUNWspro
-
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
-#
-LANGUAGES.sunpro= # empty
-
-_SUNPRO_DIR= ${WRKDIR}/.sunpro
-_SUNPRO_VARS= # empty
-.if exists(${SUNWSPROBASE}/bin/cc)
-LANGUAGES.sunpro+= c
-_SUNPRO_VARS+= CC
-_SUNPRO_CC= ${_SUNPRO_DIR}/bin/cc
-_ALIASES.CC= cc gcc
-CCPATH= ${SUNWSPROBASE}/bin/cc
-PKG_CC:= ${_SUNPRO_CC}
-.endif
-.if exists(${SUNWSPROBASE}/bin/CC)
-LANGUAGES.sunpro+= c++
-_SUNPRO_VARS+= CXX
-_SUNPRO_CXX= ${_SUNPRO_DIR}/bin/CC
-_ALIASES.CXX= CC c++ g++
-CXXPATH= ${SUNWSPROBASE}/bin/CC
-PKG_CXX:= ${_SUNPRO_CXX}
-.endif
-_COMPILER_STRIP_VARS+= ${_SUNPRO_VARS}
-
-# The Solaris linker uses "-R" for rpath directives.
-_LINKER_RPATH_FLAG= -R
-
-# SunPro passes rpath directives to the linker using "-R", however
-# some packages require the "-Wl," prefix to recognize linker options.
-# This is transformed by the compiler wrapper to "-R".
-_COMPILER_RPATH_FLAG= -Wl,-R
-
-# SunPro compiler must be passed certain flags to compile/link 64-bit code.
-_COMPILER_ABI_FLAG.64= -xtarget=ultra -xarch=v9
-
-.if exists(${CCPATH})
-CC_VERSION_STRING!= ${CCPATH} -V 2>&1 || ${TRUE}
-CC_VERSION!= ${CCPATH} -V 2>&1 | ${GREP} '^cc'
-.else
-CC_VERSION_STRING?= ${CC_VERSION}
-CC_VERSION?= cc: Sun C
-.endif
-
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the
-# ones requested by the package in USE_LANGUAGES.
-#
-_LANGUAGES.sunpro= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.sunpro+= ${LANGUAGES.sunpro:M${_lang_}}
-.endfor
-
-# Prepend the path to the compiler to the PATH.
-.if !empty(_LANGUAGES.sunpro)
-PREPEND_PATH+= ${_SUNPRO_DIR}/bin
-.endif
-
-# Create compiler driver scripts in ${WRKDIR}.
-.for _var_ in ${_SUNPRO_VARS}
-. if !target(${_SUNPRO_${_var_}})
-override-tools: ${_SUNPRO_${_var_}}
-${_SUNPRO_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${SUNWSPROBASE}/bin/${.TARGET:T} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -f ${.TARGET} ${_alias_}; \
- fi
-. endfor
-. endif
-.endfor
-
-# Force the use of f2c-f77 for compiling Fortran.
-_SUNPRO_USE_F2C= no
-FCPATH= /nonexistent
-.if !exists(${FCPATH})
-_SUNPRO_USE_F2C= yes
-.endif
-.if !empty(_SUNPRO_USE_F2C:M[yY][eE][sS])
-. include "../../mk/compiler/f2c.mk"
-.endif
-
-.endif # COMPILER_SUNPRO_MK
diff --git a/mk/compiler/xlc.mk b/mk/compiler/xlc.mk
deleted file mode 100644
index 1d16bfbb4c2..00000000000
--- a/mk/compiler/xlc.mk
+++ /dev/null
@@ -1,125 +0,0 @@
-# $NetBSD: xlc.mk,v 1.12 2005/01/12 22:58:29 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-.if !defined(COMPILER_XLC_MK)
-COMPILER_XLC_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-XLCBASE?= /opt/ibmcmp/vacpp/6.0
-
-# LANGUAGES.<compiler> is the list of supported languages by the
-# compiler.
-#
-LANGUAGES.xlc= # empty
-
-_XLC_DIR= ${WRKDIR}/.xlc
-_XLC_VARS= # empty
-.if exists(${XLCBASE}/bin/xlc)
-LANGUAGES.xlc+= c
-_XLC_VARS+= CC
-_XLC_CC= ${_XLC_DIR}/bin/xlc
-_ALIASES.CC= cc xlc
-CCPATH= ${XLCBASE}/bin/xlc
-PKG_CC:= ${_XLC_CC}
-.endif
-.if exists(${XLCBASE}/bin/xlc++)
-LANGUAGES.xlc+= c++
-_XLC_VARS+= CXX
-_XLC_CXX= ${_XLC_DIR}/bin/xlc++
-_ALIASES.CXX= c++ xlc++
-CXXPATH= ${XLCBASE}/bin/xlc++
-PKG_CXX:= ${_XLC_CXX}
-.endif
-_COMPILER_STRIP_VARS+= ${_XLC_VARS}
-
-.if exists(${CCPATH})
-CC_VERSION_STRING!= ${CCPATH} -V 2>&1 | ${GREP} 'IBM XL C.*for' | ${SED} -e 's/^ *//' || ${TRUE}
-CC_VERSION= ${CC_VERSION_STRING}
-.else
-CC_VERSION_STRING?= ${CC_VERSION}
-CC_VERSION?= IBM XL C
-.endif
-
-# Most packages assume alloca is available without #pragma alloca, so
-# make it the default.
-CFLAGS+= -ma
-
-# _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the
-# ones requested by the package in USE_LANGUAGES.
-#
-_LANGUAGES.xlc= # empty
-.for _lang_ in ${USE_LANGUAGES}
-_LANGUAGES.xlc+= ${LANGUAGES.xlc:M${_lang_}}
-.endfor
-
-# Prepend the path to the compiler to the PATH.
-.if !empty(_LANGUAGES.xlc)
-PREPEND_PATH+= ${_XLC_DIR}/bin
-.endif
-
-# Create compiler driver scripts in ${WRKDIR}.
-.for _var_ in ${_XLC_VARS}
-. if !target(${_XLC_${_var_}})
-override-tools: ${_XLC_${_var_}}
-${_XLC_${_var_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- (${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${XLCBASE}/bin/${.TARGET:T} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -x "${_alias_}" ]; then \
- ${LN} -f ${.TARGET} ${_alias_}; \
- fi
-. endfor
-. endif
-.endfor
-
-# Force the use of f2c-f77 for compiling Fortran.
-_XLC_USE_F2C= no
-FCPATH= /nonexistent
-.if !exists(${FCPATH})
-_XLC_USE_F2C= yes
-.endif
-.if !empty(_XLC_USE_F2C:M[yY][eE][sS])
-. include "../../mk/compiler/f2c.mk"
-.endif
-
-.endif # COMPILER_XLC_MK
diff --git a/mk/curses.buildlink3.mk b/mk/curses.buildlink3.mk
deleted file mode 100644
index 9daa70acf30..00000000000
--- a/mk/curses.buildlink3.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-# $NetBSD: curses.buildlink3.mk,v 1.3 2004/10/13 20:10:31 tv Exp $
-#
-# This file should be included by Makefiles for packages that use curses.
-# If a system curses isn't available, then add a dependency on ncurses.
-#
-# If a package genuinely requires ncurses, then it should directly include
-# ncurses/buildlink3.mk instead of this file in the package Makefile.
-
-.if !exists(/usr/include/curses.h) && \
- !exists(/usr/include/ncurses.h)
-. include "../../devel/ncurses/buildlink3.mk"
-.else
-
-# XXX this is ugly, but needed to get the BUILDLINK_TRANSFORM from builtin.mk;
-# on Interix, libncurses is static yet libcurses (also ncurses) is shared
-. include "../../mk/bsd.prefs.mk"
-. if ${OPSYS} == "Interix"
-. include "../../devel/ncurses/buildlink3.mk"
-. endif
-
-.endif
diff --git a/mk/db1.builtin.mk b/mk/db1.builtin.mk
deleted file mode 100644
index f695258038c..00000000000
--- a/mk/db1.builtin.mk
+++ /dev/null
@@ -1,95 +0,0 @@
-# $NetBSD: db1.builtin.mk,v 1.14 2005/08/11 20:25:20 cube Exp $
-
-BUILTIN_PKG:= db1
-
-BUILTIN_FIND_LIBS:= db1 db
-BUILTIN_FIND_FILES_VAR:= H_DB
-BUILTIN_FIND_FILES.H_DB= /usr/include/db1/db.h /usr/include/db.h
-#
-# The builtin Berkeley database library must support hash version 2 or
-# else it doesn't support db-1.85 databases.
-#
-BUILTIN_FIND_GREP.H_DB= ^\#define.*HASHVERSION.*2$$
-
-.include "../../mk/buildlink3/bsd.builtin.mk"
-
-###
-### Determine if there is a built-in implementation of the package and
-### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
-###
-.if !defined(IS_BUILTIN.db1)
-IS_BUILTIN.db1= no
-. if empty(H_DB:M${LOCALBASE}/*) && exists(${H_DB})
-IS_BUILTIN.db1= yes
-. endif
-.endif
-MAKEVARS+= IS_BUILTIN.db1
-
-###
-### Determine whether we should use the built-in implementation if it
-### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
-###
-.if !defined(USE_BUILTIN.db1)
-# XXX
-# XXX Until pkgsrc gets a databases/db1 package, we must always prefer the
-# XXX native db1 package because the alternative doesn't yet exist.
-# XXX
-PREFER.db1= native
-. if ${PREFER.db1} == "pkgsrc"
-USE_BUILTIN.db1= no
-. else
-USE_BUILTIN.db1= ${IS_BUILTIN.db1}
-. if defined(BUILTIN_PKG.db1) && !empty(IS_BUILTIN.db1:M[yY][eE][sS])
-USE_BUILTIN.db1= yes
-. for _dep_ in ${BUILDLINK_DEPENDS.db1}
-. if !empty(USE_BUILTIN.db1:M[yY][eE][sS])
-USE_BUILTIN.db1!= \
- if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.db1:Q}; then \
- ${ECHO} yes; \
- else \
- ${ECHO} no; \
- fi
-. endif
-. endfor
-. endif
-. endif # PREFER.db1
-.endif
-MAKEVARS+= USE_BUILTIN.db1
-
-###
-### The section below only applies if we are not including this file
-### solely to determine whether a built-in implementation exists.
-###
-CHECK_BUILTIN.db1?= no
-.if !empty(CHECK_BUILTIN.db1:M[nN][oO])
-
-. if !empty(USE_BUILTIN.db1:M[yY][eE][sS])
-BUILDLINK_PREFIX.db1= /usr
-. if exists(${H_DB})
-BUILDLINK_INCDIRS.db1?= ${H_DB:H:S/^${BUILDLINK_PREFIX.db1}\///}
-. endif
-. if !empty(BUILTIN_LIB_FOUND.db1:M[yY][eE][sS])
-BUILDLINK_LDADD.db1= -ldb1
-BUILDLINK_TRANSFORM+= l:db:db1
-. elif !empty(BUILTIN_LIB_FOUND.db:M[yY][eE][sS])
-BUILDLINK_LDADD.db1= -ldb
-. else
-BUILDLINK_LDADD.db1= # empty
-. endif
-BUILDLINK_LIBS.db1= ${BUILDLINK_LDADD.db1}
-. endif
-
-BUILDLINK_TARGETS+= buildlink-db1-db185-h
-. if !target(buildlink-db1-db185-h)
-.PHONY: buildlink-db1-db185-h
-buildlink-db1-db185-h:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- src=${H_DB:Q}; \
- dest=${BUILDLINK_DIR:Q}"/include/db_185.h"; \
- if ${TEST} -f "$$src" -a ! -f "$$dest"; then \
- ${MKDIR} `${DIRNAME} "$$dest"`; \
- ${LN} -fs "$$src" "$$dest"; \
- fi
-. endif
-
-.endif # CHECK_BUILTIN.db1
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf
deleted file mode 100644
index b38c5adca69..00000000000
--- a/mk/defaults/mk.conf
+++ /dev/null
@@ -1,2082 +0,0 @@
-# $NetBSD: mk.conf,v 1.85 2005/11/09 01:06:48 reed Exp $
-#
-
-# A file providing defaults for pkgsrc and the packages collection.
-# See the NetBSD mk.conf(5) and packages(7) manual page for a full
-# description of all available options.
-#
-
-# ************************************************************************
-# NOTE TO PEOPLE EDITING THIS FILE - USE LEADING SPACES, NOT LEADING TABS.
-# ************************************************************************
-
-#ALLOW_VULNERABLE_PACKAGES=
-# allow the user to build packages which are known to be vulnerable to
-# security exploits
-# Possible: defined, not defined
-# Default: not defined
-
-MANINSTALL?= maninstall catinstall
-# Specify manpage installation types.
-# Possible: maninstall, catinstall, both types or empty
-# Default: maninstall catinstall
-
-#MANZ=
-# gzip manual pages at installation time
-# Possible: defined, not defined
-# Default: not defined
-
-GZIP?= -9
-# default compression level when compressing files with gzip
-# Possible: -[0-9], --fast, --best (see gzip(1))
-# Default: -9
-
-#MKCRYPTO= no
-# If not YES or yes, don't fetch, build or install crypto packages.
-# Possible: not defined, no
-# Default: yes
-
-#OBJHOSTNAME=
-# use hostname-specific object directories, e.g. work.amnesiac, work.localhost
-# OBJHOSTNAME takes precedence over OBJMACHINE (see below).
-# Possible: defined, not defined
-# Default: not defined
-
-#OBJMACHINE=
-# use machine-specific object directories, e.g. work.i386, work.sparc
-# Possible: defined, not defined
-# Default: not defined
-
-#PKG_SUFX= .tbz
-# Create binary packages with bzip2(1) or gzip(1).
-# Possible: .tbz, .tgz
-# Default: .tgz
-
-PKGSRC_LOCKTYPE?= none
-# The type of locking which will be done if competing processes attempt to
-# do work on one package directory simultaneously.
-# + Locking requires that OBJHOSTNAME is set.
-# + Locking may require the pkgsrc/pkgtools/shlock package to be installed
-# on certain OS types.
-# + Sleep locking means that the process will sleep for ${PKGSRC_SLEEPSECS}
-# seconds, then try to acquire the lock, and sleeping again if it's not
-# available.
-# + Once locking will try once to acquire the lock, and then fail.
-# Possible: none, sleep, once
-# Default: none
-
-PKGSRC_SLEEPSECS?= 5
-# The number of seconds to wait when PKGSRC_LOCKTYPE is sleep
-# Possible: a positive integer
-# Default: 5
-
-#USETBL=
-# Run raw manual pages through tbl(1) before piping through troff(1)
-# when formatting manual pages.
-# Possible: defined, not defined
-# Default: not defined
-
-
-#
-# The following values are used to manage the packages collection as a whole.
-#
-
-#ABI=
-# The ABI to be used, if supported by the Operating System and/or compiler.
-# Currently only used under IRIX and explicitly set during bootstrapping
-# Only change this if you really know what you're doing -- libraries of
-# one ABI can not be linked with libraries of another!
-# Possible: 64 (64 bit ABI), 32 (SGI's N32 ABI), undefined (SGI's old o32 ABI)
-# Default: determined during bootstrapping
-
-#PKG_DEVELOPER= yes
-# Run a sanity check that package developers want:
-# * run check-shlibs to see that all binaries will find their libs
-# Possible: defined, not defined
-# Default: not defined
-
-IGNORE_RECOMMENDED?= no
-# Ignore package prerequisite recommendations. If this is set to
-# "no", all entries in RECOMMENDED will be added to DEPENDS.
-# If set to "yes", a warning will be printed if recommendations
-# are possibly ignored.
-#
-# WARNING: This should only be set if you know what you're doing.
-# Please read pkgsrc/doc/pkgsrc.txt for details.
-#
-# Possible: yes, no
-# Default: no
-
-#PKG_REGISTER_SHELLS= YES
-# Automatically register shells in /etc/shells
-# Possible: YES, NO
-# Default: YES
-
-PKGSRC_COMPILER?= gcc
-# Compiler type(s) to use for building packages
-# Possible: (see comments in mk/compiler.mk)
-# Default: "gcc"
-
-PKGSRC_MESSAGE_RECIPIENTS?=
-# login names of recipients of any MESSAGE files which will be mailed
-# Possible: any login names
-# Default: none
-
-PKGSRC_SHOW_BUILD_DEFS?=yes
-# Show BUILD_DEFS definitions for a package when it is being built
-# (BUILD_DEFS are extra definitions which govern how some packages are
-# built and behave)
-# Possible: "yes", not "yes"
-# Default: "yes"
-
-.if defined(PKG_DEVELOPER)
-PKGSRC_SHOW_PATCH_ERRORMSG?=no
-.else
-PKGSRC_SHOW_PATCH_ERRORMSG?=yes
-.endif
-# Print a potentially helpful error message when the "patch" stage fails
-# Possible: "yes", not "yes"
-# Default: "no" if PKG_DEVELOPER is defined, "yes" otherwise
-
-PKGSRC_RUN_TEST?= no
-# Run test target before install
-# Possible: yes, no
-# Default: no
-
-PREFER_PKGSRC?= MesaLib Xft2 Xrandr Xrender expat fontconfig \
- freetype2 glu randrext renderext xcursor
-PREFER_NATIVE?= yes
-#
-# When building packages, whether to prefer the pkgsrc or native
-# versions of software that's also part of the base system. Its value
-# can be either yes/no, or a list of packages as named in the
-# BUILDLINK_PACKAGES line in a package's buildlink[23].mk file.
-# Preferences are determined by the most specific instance of the
-# package in either PREFER_PKGSRC or PREFER_NATIVE. If a package is
-# specified in neither or in both variables, then PREFER_PKGSRC has
-# precedence over PREFER_NATIVE.
-#
-# Possible: yes, no, or a list of packages
-
-PREFER_NATIVE_PTHREADS?= yes
-# This toggles whether we prefer using the native pthreads implementation
-# or the pkgsrc OPR (see pthread.buildlink3.mk). This setting is
-# independent of the PREFER_* variables named above.
-
-#WRKOBJDIR= /usr/tmp
-# build here instead of in pkgsrc
-# Possible: any path
-# Default: not defined
-
-LOCALBASE?= /usr/pkg
-# Where non-X-based packages will be installed
-# Possible: any path
-# Default: /usr/pkg
-
-CROSSBASE?= ${LOCALBASE}/cross
-# Where "cross" category packages install
-# Possible: any path
-# Default: ${LOCALBASE}/cross
-
-VARBASE?= /var
-# Where files containing local state information are installed
-# Possible: any path
-# Default: /var
-
-#X11_TYPE?= native
-# Used to set the X11 implementation used to build X11 packages.
-# Possible: xorg (uses x11/xorg-libs), XFree86 (uses x11/XFree86-libs), or
-# native (uses pkgtools/x11-links to use the native, non-pkgsrc-managed X11).
-# Default: native
-
-#X11BASE?= /usr/X11R6
-# Where X11 is installed on the system.
-# (and the default install path of X11 pkgs)
-# Possible: any path
-# Default: /usr/X11R6, /usr/openwin for Solaris
-
-MLDONKEY_GROUP?= mldonkey
-# System group to run mldonkey's core as.
-# Possible: any group name
-# Default: mldonkey
-
-#MOTIFBASE?= /usr/X11R6
-# Where Motif-2.0-compatible headers and libraries are installed
-# on the system.
-# Possible: any path
-# Default: ${X11PREFIX} or where openmotif or lesstif is installed
-
-PKGMANDIR?= man
-# Pathname relative to ${PREFIX} of directory holding the
-# manual pages and man directories.
-# Possible: any path you like, e.g. share/man.
-# Default: man (i.e. /usr/pkg/man)
-# NOTE: the support for custom setting (not "man") is not complete.
-
-USE_XPKGWEDGE?= yes
-# Whether we should use xpkgwedge or not to install all packages into
-# ${LOCALBASE}.
-# Possible: yes, no
-# Default: yes
-
-BSDSRCDIR?= /usr/src
-# Where the NetBSD src module source tree is located
-# used in the emulators/plex86, emulators/vmware-module{,3}, net/arla,
-# sysutils/aperture, and sysutils/fdgw packages
-# Possible: any path
-# Default: /usr/src
-
-BSDXSRCDIR?= /usr/xsrc
-# Where the NetBSD xsrc module source tree is located
-# used in the x11/xservers package
-# Possible: any path
-# Default: /usr/xsrc
-
-DISTDIR?= ${PKGSRCDIR}/distfiles
-# Directory where original distribution
-# files are stored.
-# Possible: any path you like
-# Default: /usr/pkgsrc/distfiles
-
-#DIST_PATH= /cdrom/0/distfiles:${HOME}/distfiles
-# colon-delimited list of directories in which to search for
-# ${DISTFILES} and ${PATCHFILES}. If the requested file is not in any
-# of the directories in ${DIST_PATH}, it will be downloaded into
-# ${DISTDIR}. If the requested file is in one of the directories in
-# ${DIST_PATH}, a symbolic link will be made to it from ${DISTDIR}.
-# ${DIST_PATH} directories will will be searched before ${DISTDIR},
-# letting a CD hold the main distfiles archive, and local ${DISTDIR}
-# hold any updated distfiles, for example.
-# Possible: any directories
-# Default: none
-
-DEFAULT_VIEW?= ""
-# This is the default view to which packages are added after installation.
-# Default: "" (the empty view)
-
-.if exists(${LOCALBASE}/bin/ftp)
-FETCH_CMD?= ${LOCALBASE}/bin/ftp
-.else
-FETCH_CMD?= /usr/bin/ftp
-.endif
-# Default program to fetch the files with pkgsrc.
-# Default: NetBSD's ftp(1).
-# Possible: any.
-
-.if ${FETCH_CMD:T} == "ftp"
-FETCH_RESUME_ARGS?= -R
-.else
-FETCH_RESUME_ARGS?= # empty
-.endif
-# Used when PKG_RESUME_TRANSFERS is enabled, to specify default argument
-# to resume transfers.
-# Default: -R
-# Possible: depends on your FETCH_CMD value.
-
-.if ${FETCH_CMD:T} == "ftp"
-FETCH_OUTPUT_ARGS?= -o
-.else
-FETCH_OUTPUT_ARGS?= # empty
-.endif
-# Used when PKG_RESUME_TRANSFERS is enabled, to specify default argument
-# in FETCH_CMD to fetch the file to a temporary name.
-# Default: -o
-# Possible: depends on your FETCH_CMD value.
-
-LIBTOOLIZE_PLIST?= yes
-# This determines whether to expand libtool archives (.la files) in PLISTs
-# into the represented library names.
-# Possible: yes, no
-# Default: yes
-
-PKG_INSTALLATION_PREFS?= overwrite pkgviews
-# This is a whitespace-separated list of installation types to try when
-# building a package, in order of preference.
-# Possible: any of: overwrite, pkgviews
-# Default: overwrite pkgviews
-
-PKG_RESUME_TRANSFERS?= NO
-# Used in pkgsrc to resume transfers, if enabled the whole file won't be
-# downloaded from scratch again.
-# Possible: yes or no.
-# Default: no.
-
-PKG_SYSCONFBASE?= ${PREFIX}/etc
-# This is the main config directory under which all package configuration
-# files should be found.
-# Possible: any path you like
-# Default: ${PREFIX}/etc
-
-RCD_SCRIPTS_DIR?= /etc/rc.d
-# This is the system rc.d script directory in which all rc.d scripts
-# expected to be executed at boot-time should be found. Package views
-# users may want to set this to "${PKG_SYSCONFBASEDIR}/rc.d".
-# Possible: any path you like
-# Default: /etc/rc.d
-
-PACKAGES?= ${PKGSRCDIR}/packages
-# Store generated packages on a per-architecture base
-# Possible: any path you like
-# Default: /usr/pkgsrc/packages
-
-PKGVULNDIR?= ${DISTDIR}
-# Specifies where the `vulnerabilities' file is located. This variable
-# is used by the audit-packages program and by pkgsrc itself to do security
-# checks before building/installing programs.
-# Possible: any path you like
-# Default: /usr/pkgsrc/distfiles
-
-#PASSIVE_FETCH=
-# Use ftp(1) in passive mode, for use behind filtering firewalls.
-# (Set by default in ftp(1) in NetBSD-current)
-# Possible: defined, not defined
-# Default: not defined
-
-PATCH_FUZZ_FACTOR?= -F0
-# Fuzz factor to use when applying patches. Will only be applied when
-# using a patch(1) that understands -F. This should be a "?="
-# setting, since package Makefiles may set this value, before
-# /etc/mk.conf is read.
-# Possible: "-Fn" where n is a number, none
-# Default: "-F0"
-
-#ACCEPTABLE_LICENSES= fee-based-commercial-use no-commercial-use \
-# no-profit limited-redistribution
-# Whitespace-delimited list of the types of license which are
-# acceptable for installation. (Packages with licenses that qualify as
-# "open source" according to OSI or "Free" according to FSF are
-# not marked with a LICENSE variable.) Packages for which you need
-# to accept a license will display a message like the following:
-# ===> xv-3.10anb9 has an unacceptable license: xv-license.
-# ===> To view the license, enter "/usr/bin/make show-license".
-# ===> To indicate acceptance, add this line to your /etc/mk.conf:
-# ===> ACCEPTABLE_LICENSES+=xv-license
-#
-# Default: none
-
-#SPECIFIC_PKGS=
-# Don't use the default of all packages (from the top-level of the
-# pkgsrc tree), and use the values of the definitions
-# SITE_SPECIFIC_PKGS, HOST_SPECIFIC_PKGS, GROUP_SPECIFIC_PKGS, and
-# USER_SPECIFIC_PKGS.
-# Possible: defined, not defined
-# Default: not defined
-
-#SITE_SPECIFIC_PKGS=
-# List of packages that are wanted for each host on the site. Each
-# package in the list is of the form <category>/<package>.
-# Possible: any combination of packages
-# Default: not set
-
-#HOST_SPECIFIC_PKGS=
-# List of packages that are wanted for this particular host/machine.
-# Each package in the list is of the form <category>/<package>.
-# Possible: any combination of packages
-# Default: not set
-
-#GROUP_SPECIFIC_PKGS=
-# List of packages that are wanted for this group of users. Each
-# package in the list is of the form <category>/<package>.
-# Possible: any combination of packages
-# Default: not set
-
-#USER_SPECIFIC_PKGS=
-# List of packages that are wanted for this particular user. Each
-# package in the list is of the form <category>/<package>.
-# Possible: any combination of packages
-# Default: not set
-
-EXTRACT_USING?= nbtar
-# Use the specified tool to extract tar/ustar archives.
-# Possible: gtar, nbtar, pax
-# Default: nbtar
-
-#FAILOVER_FETCH=
-# Perform a checksum at "make fetch" time. If the checksum doesn't
-# match the stored value, try to retrieve the file from the next site
-# in the list
-# Possible: defined, not defined
-# Default: not defined
-
-#MASTER_SORT= .ac.at .at .de .ch .se .fi .no
-# Whitespace delimited list of preferred download locations.
-# MASTER_SITES and PATCH_SITES will be reordered according to the hosts'
-# address last components.
-# Possible: list of domain name suffixes
-# Default: none
-
-#MASTER_SORT_REGEX= ftp://.*/
-# Same as MASTER_SORT, but takes a regular expression for more
-# flexibility in matching. Regexps defined here have higher priority
-# than MASTER_SORT. This example would prefer ftp transfers over
-# anything else.
-# Possible: Regexps as in awk(1)
-# Default: none
-
-#PATCH_DEBUG=
-# Used to debug patches as they are applied
-# Possible: defined, not defined
-# Default: not defined
-
-#PKG_FC=
-# The Fortran compiler used to compile Fortran code contained in
-# packages.
-# Possible: any Fortran compiler
-# Default: none
-
-#IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-# The imake binary to invoke.
-# Possible: any path followed by any valid flags
-# Default: ${X11BASE}/bin/imake ${IMAKEOPTS}
-
-#IMAKEOPTS=
-# Options passed to imake(1). The defaults ensure that imake finds the
-# correct commands.
-# Possible: any valid flags
-# Default:
-# for Solaris with gcc:
-# -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
-# for IRIX:
-# -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE} \
-# -DManUsr=${PREFIX}
-.if ${OPSYS} == "IRIX"
-#IMAKEOPTS?= -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE} \
-# -DManUsr=${PREFIX}
-# ABI specific flags may be added during bootstrapping process or by hand:
-. if defined(ABI)
-. if ${ABI} == "32"
-#IMAKEOPTS+= -DBuildN32
-. else
-#IMAKEOPTS+= -DBuild64bit
-. endif
-. endif
-# you may also wish to add ISA specific flags, such as "-DSgiISA32=4" if
-# you are compiling for mips4.
-.elif ${OPSYS} == "SunOS"
-# The flags required by imake with gcc on Solaris are automatically
-# added if gcc is being used. Though it should not be needed, you can
-# override this using:
-#IMAKEOPTS+= -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
-.endif
-
-PRE_ROOT_CMD?= ${TRUE}
-# Command to be run by normal user, just before becoming root (see
-# SU_CMD) to install the package. For example, "chmod -R o+w ${WRKDIR}"
-# would allow others to write and modify files below ${WRKDIR}.
-# Possible: any shell commands
-# Default: none
-
-SETGIDGAME?= no
-# This flags specifies whether or not certain games are installed setgid,
-# which would allow them to write to a group-owned score file.
-# See also: GAMEGRP, GAMEMODE, GAMEOWN
-# Possible: yes, no
-# Default: no
-
-SU_CMD?= ${ROOT_CMD}
-# Command to perform before "make install", if the user does not have
-# an effective uid of 0. A possible substitute is "sudo sh -c"
-# Possible: su, sudo, or priv, with appropriate arguments
-# Default: dependent on operating system. For NetBSD: ${SU} - root -c
-
-SU_CMD_PATH_APPEND?=/sbin:/usr/sbin
-# Additional directories (in a colon separated list) to be added to the
-# PATH environment variable when running ${SU_CMD}.
-# Default: /sbin:/usr/sbin
-
-FATAL_OBJECT_FMT_SKEW?=yes
-# If there is a pre-requisite package, which has a different object format
-# from that currently being used, halt execution. One (rare) situation where
-# it is possible for the difference to be harmless is where the pre-requisite
-# package provides an executable, not a library.
-# Possible: yes, no
-# Default: yes
-
-WARN_NO_OBJECT_FMT?=yes
-# Packages installed on a machine before OBJECT_FMT was added to the
-# BUILD_DEFS definitions (on 29th September 1999) cannot say which
-# object format they are in. This will cause a warning to be displayed.
-# Set this to "no" to stop the warning message being shown.
-# Possible: yes, no
-# Default: yes
-
-#SMART_MESSAGES=yes
-# Display the make(1) target, and the current stack of packages being built,
-# when displaying messages during package builds.
-# Possible: defined, not defined
-# Default: not defined
-
-#BINPKG_SITES=...
-# Whitespace separated list of URLs for binary packages. Directories
-# "All" etc. are expected in the named place, variables "rel" and
-# "arch" are replaced with OS release ("1.5", ...) and architecture
-# ("mipsel", ...)
-# Possible: any ftp url, see above.
-# Default: ftp://ftp.NetBSD.org/pub/NetBSD/packages/$${rel}/$${arch}
-
-#BIN_INSTALL_FLAGS=
-# List of flags passed to pkg_add(8) in the bin_install package.
-# Possible: -v, -u, etc. See pkg_add(8)
-# Default: (no option)
-
-#LOCALPATCHES=...
-# Directory where local patches are stored. See pkgsrc/doc/pkgsrc.txt.
-# Possible: Any local directory
-# Default: none
-
-#
-# Definitions used only in the packages collection
-#
-
-#ACROREAD_FONTPATH?= ${PREFIX}/lib/X11/fonts/TTF
-# Colon separated list of additional directories for acroread7 to
-# look in for TTF/Type1 fonts.
-# Default: ${PREFIX}/lib/X11/fonts/TTF
-
-#AMANDA_SMB=
-# Used in amanda-client and amanda-dev-client to enable backup with
-# smbclient.
-# Possible: defined, not defined
-# Default: not defined
-
-AMANDA_USER?= backup
-# Used in the amanda packages to specify the login user and group
-# responsible for backups.
-# Possible: any user name
-# Default: backup
-
-AMANDA_TMP?= /tmp/amanda
-# Specifies the directory in which amanda puts its debug and temporary
-# files.
-# Default: /tmp/amanda
-
-AMANDA_VAR?= ${VARBASE}/amanda
-# Specifies the directory in which amanda puts its logs and status
-# files.
-# Default: ${VARBASE}/amanda
-
-#APACHE_CUSTOM_CFLAGS=
-# Used in apache to pass extra CFLAGS to the compiler during
-# the build.
-# Possible: any legal compiler flags, e.g. -O6 -DHARD_SERVER_LIMIT=512
-# Default: not defined
-
-APACHE_USER?= www
-# Used in apache, apache2, isap, and smb2www to specify the user
-# allowed to execute the `suexec' wrapper. Expected to be the user the
-# httpd server normally runs as.
-# Possible: any user name
-# Default: www
-
-APACHE_GROUP?= www
-# Used in apache, apache2, squirrelmail, and iasp to specify
-# the default group of the user allowed to execute the `suexec' wrapper.
-# Expected to be the group the httpd server normally runs as.
-# Possible: any group name
-# Default: www
-
-#APACHE_SUEXEC_CONFIGURE_ARGS= --suexec-uidmin=1000
-# Used in apache and apache2 to specify additional suexec options
-# to be passed to the configure script.
-# Possible: any --suexec-* options recognized by the Apache configure script.
-# Default: not defined
-
-APACHE_SUEXEC_DOCROOT?= ${LOCALBASE}/share/httpd/htdocs
-# Used in apache and apache2 to specify the document space in
-# which suexec will be allowed to work.
-# Possible: Any valid directory
-# Default: ${LOCALBASE}/share/httpd/htdocs
-
-ARLA_CACHE?= ${LOCALBASE}/cache
-# Used in arla to specify the location of the cache used by arla. Should
-# be on a local disk.
-# Default: ${LOCALBASE}/cache
-
-BIND_DIR?= ${VARBASE}/chroot/named
-# The directory for BIND system user.
-# Possible: any valid location
-# Default: ${VARBASE}/named
-
-BIND_GROUP?= named
-# System group to run the BIND name server as. Used by the "bind9" package.
-# Possible: any group name
-# Default: named
-
-BIND_USER?= named
-# System user to run the BIND name server as. Used by the "bind9" package.
-# Possible: any user name
-# Default: named
-
-#BULK_PREREQ=
-# Used during bulk package builds. Packages listed in this variable are
-# assumed to be required to build all packages. Only a very limited number
-# of packages belong in this variable. An example of an appropriate package
-# is pkgtools/xpkgwedge. Currently pkgtools/digest is always added to this
-# list.
-# Possible: category/pkg
-# Default: not defined
-
-CANNA_GROUP?= daemon
-# Used in the canna-server-bin package to specify the server group.
-# Possible: any group name
-# Default: daemon
-
-CANNA_USER?= daemon
-# Used in the canna-server-bin package to specify the server user.
-# Possible: any user name
-# Default: daemon
-
-#CDRECORD_CONF= ${PKG_SYSCONFDIR}/cdrecord.conf
-# The location of the cdrtools/cdrecord configuration file. The
-# sysutils/cdrecord pkg issues a warning if the cdrtools default of
-# /etc/default/cdrecord is changed, and the man pages are updated
-# accordingly. This is required by the cdrtools license.
-# Possible: any file name
-# Default: ${PKG_SYSCONFDIR}/cdrecord.conf
-
-CLAMAV_GROUP?= clamav
-# Used in clamav to specify the group to run clamav
-# Possible: any group name
-# Default: clamav
-
-CLAMAV_USER?= clamav
-# Used in clamav to specify the user to run clamav
-# Possible: any user name
-# Default: clamav
-
-CONSERVER_DEFAULTHOST?= localhost
-# Used by conserver package to specify the master server hostname.
-# Possible: any hostname
-# Default: localhost
-
-CONSERVER_DEFAULTPORT?= 782
-# Used by conserver package to specify the default listen port.
-# Possible: 1-65535
-# Default: 782
-
-CUPS_GROUP?= sys
-# Used in cups to specify the group to run CUPS commands as.
-# Possible: any group name
-# Default: sys
-
-CUPS_USER?= lp
-# Used in cups to specify the user to run CUPS commands as and to create
-# temporary files in the /var/spool/cups/tmp directory.
-# Possible: any user name
-# Default: lp
-
-# CYRUS_IDLE
-# use METHOD for IMAP IDLE
-# METHOD is poll, idled or no
-# Default: not defined
-
-CYRUS_GROUP?= mail
-# Used in cyrus-imapd, cyrus-imapd21, cyrus-sasl, and cyrus-sasl2 to
-# specify the group used for installing setuid programs.
-# Possible: any group name
-# Default: mail
-
-CYRUS_USER?= cyrus
-# Used in cyrus-imapd, cyrus-imapd21, cyrus-sasl, and cyrus-sasl2 to
-# specify the userid used for installing setuid programs.
-# Possible: any user name
-# Default: cyrus
-
-DEFANG_GROUP?= defang
-# Used in the mimedefang package to specify the group to run commands as
-# Possible: any group name
-# Default: defang
-
-DEFANG_USER?= defang
-# Used in the mimedefang package to specify the user to run commands as
-# Possible: any user name
-# Default: defang
-
-DEFANG_SPOOLDIR?= ${VARBASE}/spool/MIMEDefang
-# Location of spool and quarantined files for the mimedefang package
-# Default: ${VARBASE}/spool/MIMEDefang
-
-#DEFAULT_IRC_SERVER=
-# Used in ircII to set the default irc server.
-# Possible: see the list at
-# http://www.irchelp.org/irchelp/networks/servers/efnet.html
-# Default: not defined
-
-#DEFAULT_SERIAL_DEVICE=
-# Used to provide a default setting for the serial device for
-# various packages which communicate over the serial port.
-# Possible: /dev/your_favorite_serial_device
-# Default: defaults for various machine_archs are set in mk/platform/${OPSYS}.mk
-
-DT_LAYOUT?= US
-# Used by dt package to specify the keyboard layout.
-# Possible: US, FI, FR, GER, DV
-# Default: FI
-
-ELK_GUI?= none
-# Used by elk to determine which GUI API modules are enabled.
-# Possible: none, or some combination of xaw and/or motif
-# Default: none
-
-EMACS_TYPE?= emacs21
-# Used by emacs.mk to determine which emacs version should be installed and
-# emacs lisp packages should be built for.
-# Possible: emacs21, emacs21nox, emacs20, xemacs214, xemacs215
-# Default: emacs21
-
-EMACS_USE_POP?= yes
-# Used by emacs package to determine whether pop support is enabled or not.
-# Possible: yes, no
-# Default: yes
-
-#EMACS_USE_X=
-# Used by emacs package to determine whether X support is enabled or not.
-# If defined, the value is directly passed as argument of --with-x.
-# If not defined, the configure script will configure automatically.
-# Possible: yes, no, not defined
-# Default: not defined
-
-#EMACS_USE_X_TOOLKIT=
-# Used by emacs package to determine what kind of toolkit support is enabled.
-# If defined, the value is directly passed as argument of --with-x-toolkit.
-# If not defined or defined to yes, the configure script will pick up an
-# appropriate one. E.g, if X11R5 or later is found, lucid will be used.
-# Possible: yes, no, not defined, athena, lucid, motif
-# Default: not defined
-
-EXIM_GROUP?= mail
-# Used in the exim package to specify the server group.
-# Possible: any group name
-# Default: mail
-
-EXIM_USER?= mail
-# Used in the exim package to specify the server user.
-# Possible: any user name
-# Default: mail
-
-#FLUXBOX_USE_XINERAMA?= NO
-# Compile flukebox with xinerama extensions
-# Possible: YES, NO
-# Default: NO
-
-#FLUXBOX_USE_KDE?= NO
-# Compile flukebox with KDE support
-# Possible: YES, NO
-# Default: NO
-
-#FLUXBOX_USE_GNOME?= NO
-# Compile flukebox with GNOME support
-# Possible: YES, NO
-# Default: NO
-
-#FLUXBOX_USE_XFT?= YES
-# Compile flukebox with Xft support
-# Possible: YES, NO
-# Default: YES
-
-FOX_USE_XUNICODE?= YES
-# Used in fox to build in support for Unicode by XUnicode. See
-# http://www.ab.wakwak.com/~tino/jatk/fox/ (in japanese) for more information.
-# Possible: YES, NO
-# Default: YES
-
-FREEWNN_USER?= wnn
-# Used in the ja-freewnn-server-bin package to specify the Free wnn user.
-# Possible: any user name
-# Default: wnn
-
-FREEWNN_GROUP?= jserver
-# Used in the ja-freewnn-server-bin package to specify the Free wnn group.
-# Possible: any group name
-# Default: jserver
-
-.if !empty(SETGIDGAME:M[yY][eE][sS])
-GAMEDATAMODE?= 664
-.else
-GAMEDATAMODE?= ${SHAREMODE}
-.endif
-# Used for various games to allow writing to a group-owned score file.
-# See also: GAMEMODE, GAMEOWN, SETGIDGAME
-# Possible: any file ownership
-# Default: ${SHAREMODE} if SETGIDGAME is not set to 'yes', 644 otherwise
-
-GAMEGRP?= ${BINGRP}
-# Used for various games to allow writing to a group-owned score file.
-# If SETGIDGAME is 'yes', setting this to a dedicated group, such as 'games'
-# would make sense.
-# See also: GAMEMODE, GAMEOWN, SETGIDGAME
-# Possible: any group name
-# Default: ${BINGRP}
-
-GAMEMODE?= ${BINMODE}
-# Used for various games to allow writing to a group-owned score file.
-# If SETGIDGAME is 'yes', setting this to 2555 would make sense.
-# See also: GAMEGRP, GAMEOWN, SETGIDGAME
-# Possible: any mode
-# Default: ${BINMODE}
-
-GAMEOWN?= ${BINOWN}
-# Used for various games to allow writing to a group-owned score file.
-# If SETGIDGAME is 'yes', setting this to a dedicated user, such as 'games'
-# would make sense.
-# See also: GAMEGRP, GAMEMODE, SETGIDGAME
-# Possible: any user name
-# Default: ${BINOWN}
-
-GNU_PROGRAM_PREFIX?= g
-# This is the prefix to add for GNU programs, like gls or gnutouch.
-# Possible: g, gnu, empty, ...
-# Default: g
-
-#GRUB_NETWORK_CARDS=
-# Compile netboot support for the listed network interface cards into GRUB.
-# Use e.g. "rtl8139" for RealTek 8139 support or "eepro100 epic100" for
-# Intel Etherexpress Pro/100 and SMC EtherPower II support.
-# Default: not defined (-> no netboot support)
-
-#GRUB_PRESET_COMMAND=
-# Specifies a single command that will be embedded into GRUB's stage2 and
-# executed at boot time as a default configuration file. This is usually
-# useful to create stage2 files with automated diskless support; you should
-# set this variable to "bootp", "dhcp" or "rarp", and use it together
-# GRUB_NETWORK_CARDS.
-# Default: not defined
-
-#GRUB_SCAN_ARGS=
-# Can be used to supply additional configure arguments for netboot support in
-# GRUB. Set e.g. "GRUB_NETWORK_CARDS" to "ne" and "GRUB_SCAN_ARGS" to
-# "--enable-ne-scan=0x300" to let the boot loader search for an NE 2000 ISA
-# card at I/O offset 0x300.
-# Default: not defined
-
-ICECAST_CHROOTDIR?= ${VARBASE}/chroot/icecast
-# Used in icecast2 to specify the chroot directory in which icecast
-# will be allowed to work.
-# Possible: Any valid directory
-# Default: ${VARBASE}/chroot/icecast
-
-#ICECAST_CHUNKLEN=512
-# If you want a larger backlog for each client, which will allow for
-# worse network congestion or other network errors before kicking the
-# client, increase the ICECAST_CHUNKLEN value.
-# Default: 64
-
-#ICECAST_SOURCE_BUFFSIZE=8192
-# SOURCE_BUFFSIZE sets how many bytes will be read from the source
-# before trying to send this chunk to the clients. If your server will
-# take on a lot of listeners, or stream very high bitrate mpeg data,
-# like video mpeg streams, and if you system supports it, you should
-# increase this value to 65535 or something similar.
-# Default: 8192
-
-IMAP_UW_CCLIENT_MBOX_FMT?= unix
-# Used in imap-uw to set the default format used by c-client programs for
-# new mailbox creation. Check the UW IMAP documentation for more details
-# regarding the pros and cons of the various mailbox formats.
-#
-# Possible: mbox, mbx, mh, mmdf, mtx, mx, news, phile, tenex, unix
-# Default: unix
-
-#IMAP_UW_MAILSPOOLHOME=.MailBox
-# To default user mailboxes to their home directory,
-# specify the name of the mailbox file.
-# Possible: Any valid filename, not defined
-# Default: not defined
-
-#IMAP_UW_NO_CLEARTEXT?= YES
-# Used in imap-uw to disallow plaintext passwords except when SSL or TLS
-# is used. This effectively disallows cleartext passwords.
-#
-# Possible: not defined, YES
-# Default: not defined
-
-#IMAP_UW_NO_SSL?= YES
-# Used in imap-uw to build without any SSL or TLS support at all. Note that
-# it doesn't make any sense to enable this together with IMAP_UW_NO_CLEARTEXT,
-# nor is is it fully supported in pkgsrc for all clients.
-#
-# Possible: not defined, YES
-# Default: not defined
-
-IMDICTDIR?= ${VARBASE}/dict
-# Specify the directory for input method's dictionary installation.
-# Possible: any valid location
-# Default: ${VARBASE}/dict
-
-INN_DATA_DIR?= ${VARBASE}/news
-# Used by inn to specify the data directory.
-# Possible: any path you like
-# Default: ${VARBASE}/news
-
-INN_USER?= news
-# Used by inn to specify the username
-# Possible: any valid username
-# Default: news
-
-INN_GROUP?= news
-# Used by inn to specify the groupname
-# Possible: any valid groupname
-# Default: news
-
-IRCD_HYBRID_SMALL_NET?= YES
-# Used by ircd-hybrid to tune various ircd paramaters when running
-# small IRC networks so the daemon does not use much resources.
-# A set of variables - see below - can then be defined to fine tune the daemon
-# behaviour.
-# Possible: YES, NO
-# Default: YES
-
-#IRCD_HYBRID_LINK_PREALLOCATE=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the number of server linkd to preallocate.
-# Possible: nearly any integer value
-# Default: 1024 from source, 64 if IRCD_HYBRID_SMALL_NET is "YES"
-
-#IRCD_HYBRID_CLIENTS_PREALLOCATE=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the number of client structures to preallocate.
-# Possible: nearly any integer value
-# Default: 1024 from source, 64 if IRCD_HYBRID_SMALL_NET is "YES"
-
-#IRCD_HYBRID_USERS_PREALLOCATE=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the number of user structures to preallocate.
-# Possible: nearly any integer value
-# Default: 1024 from source, 64 if IRCD_HYBRID_SMALL_NET is "YES"
-
-#IRCD_HYBRID_NICKNAMEHISTORYLENGTH=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the number of entries in the nickname history.
-# Possible: nearly any integer value
-# Default: 15000 from source, 1000 if IRCD_HYBRID_SMALL_NET is "YES"
-
-#IRCD_HYBRID_MAXSENDQLENGTH=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the maximum -in bytes- of internal send buffering for sockets.
-# Possible: nearly any integer value
-# Default: 9000000 from source, 500000 if IRCD_HYBRID_SMALL_NET is "YES"
-
-#IRCD_HYBRID_INITIAL_DBUFS=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the initial number of dbufs (dynamic buffering of a byte stream,
-# similar to mbufs) to preallocate.
-# Possible: nearly any integer value
-# Default: 4000 from source, 300 if IRCD_HYBRID_SMALL_NET is "YES"
-
-#IRCD_HYBRID_HARD_FDLIMIT_=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the maximum number of file descriptor the daemon will use.
-# Possible: 1 <> maximum file descriptor the system would give you
-# Default: 256 from source, 90 if IRCD_HYBRID_SMALL_NET is "YES"
-
-#IRCD_HYBRID_INIT_MAXCLIENTS=
-# Used by ircd-hybrid when IRCD_HYBRID_SMALL_NET is "YES". Specify
-# the maximum number of clients allowed to connect to the daemon.
-# Possible: 1<> ~IRCD_HYBRID_HARD_FDLIMIT_
-# Default: 200 from source, 40 if IRCD_HYBRID_SMALL_NET is "YES"
-
-IRCD_HYBRID_USE_LOGFILE?= YES
-# Used by ircd-hybrid. Specify if the daemon should use a logfile.
-# Note: can be used even when IRCD_HYBRID_USE_SYSLOG is "YES".
-# Possible: YES, NO
-# Default: YES
-
-IRCD_HYBRID_USE_SYSLOG?= NO
-# Used by ircd-hybrid. Specify if the daemon should use syslog.
-# Note: can be used even when IRCD_HYBRID_USE_LOGFILE is "YES".
-# Possible: YES, NO
-# Default: NO
-
-IRCD_HYBRID_LPATH?= ${VARBASE}/log/ircd-hybrid.log
-# Used by ircd-hybrid. Specify the pathname of the daemon logfile.
-# Note: only used if IRCD_HYBRID_USE_LOGFILE is "YES".
-# Possible: any path
-# Default: ${VARBASE}/log/ircd-hybrid.log
-
-IRCD_HYBRID_FNAME_USERLOG?= ${VARBASE}/log/ircd-hybrid.users.log
-# Used by ircd-hybrid. Specify the pathname of the user connections logfile.
-# IRCD_HYBRID_USE_SYSLOG should be set to "YES" for this logfile be used.
-# Possible: any path
-# Default: ${VARBASE}/log/ircd-hybrid.users.log
-
-IRCD_HYBRID_FNAME_OPERLOG?= ${VARBASE}/log/ircd-hybrid.opers.log
-# Used by ircd-hybrid. Specify the pathname of the operator connections
-# logfile.
-# Possible: any path
-# Default: ${VARBASE}/log/ircd-hybrid.opers.log
-
-IRCD_HYBRID_PPATH?= ${VARBASE}/run/ircd-hybrid.pid
-# Used by ircd-hybrid. Specify the pathname of the daemon pid file.
-# Possible: any path
-# Default: ${VARBASE}/run/ircd-hybrid.pid
-
-IRCD_HYBRID_SYSLOG_FACILITY?= LOG_LOCAL4
-# Used by ircd-hybrid. Specify which syslog facility the daemon should use
-# when IRCD_HYBRID_USE_SYSLOG is "YES".
-# Possible: any syslog facility (LOG_*)
-# Default: LOG_LOCAL4
-
-IRCD_HYBRID_INIT_LOG_LEVEL?= L_NOTICE
-# Used by ircd-hybrid. Specify initial minimum level from which the daemon logs
-# events. This is unrelated from syslog() level.
-# Possible: L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO, L_DEBUG
-# Default: L_NOTICE
-
-IRCD_HYBRID_IRC_USER?= irc
-# Used by ircd-hybrid. Specify the user name under which the daemon runs.
-# Possible: any user name
-# Default: irc
-
-IRCD_HYBRID_IRC_GROUP?= irc
-# Used by ircd-hybrid. Specify the group name under which the daemon runs.
-# Possible: any group name
-# Default: irc
-
-IRCD_HYBRID_NETWORK_NAME?= PKGSRCNet
-# Used by ircd-hybrid. Specify the IRC network name advertised by the daemon.
-# Possible: anything
-# Default: PKGSRCNet
-
-IRCD_HYBRID_NETWORK_DESC?= Package Source Network
-# Used by ircd-hybrid. Specify the IRC network description advertised by the
-# daemon.
-# Possible: anything
-# Default: Package Source Network
-
-#IRRD_USE_PGP=
-# Used by irrd package to specify the version of PGP to use, if any.
-# Possible: 5, 2, not defined
-# Default: not defined
-# [XXX: configure will locate pgpv or pgp]
-
-#XLOCK_DEFAULT_MODE=
-#JB_FQHOSTNAME=
-# Used by jitterbug package to include the fully-qualified domain name
-# of the host.
-# Possible: defined, not defined
-# default: not defined
-
-JB_GROUP?=jitter
-# Used by jitterbug package for groupname
-# Possible: any valid groupname
-# Default: jitter
-
-JB_GROUPID?=509
-# Used by jitterbug package for gid of JB_USER.
-# Possible: any valid gid
-# Default: 509
-
-#JB_LOCALMAIL=
-# Used by jitterbug package as the mail alias to receive mail from
-# jitterbug
-# Possible: any valid mail alias
-# Default: none
-
-JB_PACKAGE?= test
-# Used by jitterbug to determine the type of package to be installed.
-# Possible: test, production
-# Default: test
-
-JB_USER?=jitter
-# Used by jitterbug package for username
-# Possible: any valid username
-# Default: jitter
-
-JB_USERID?=509
-# Used by jitterbug package for uid of JB_USER.
-# Possible: any valid uid
-# Default: 509
-
-JABBERD_USER?= jabberd
-# Used in jabberd to specify the user used to run the daemon.
-# Possible: any valid username
-# Default: jabberd
-
-JABBERD_GROUP?= jabberd
-# Used in jabberd to specify the group userd to run the daemon.
-# Possible: any valid group
-# Default: jabberd
-
-JABBERD_LOGDIR?= ${VARBASE}/log/jabberd
-# Used in jabberd to specify the default directory under which log
-# files are placed.
-# Possible: any directory
-# Default: ${VARBASE}/log/jabberd
-
-JABBERD_SPOOLDIR?= ${VARBASE}/spool/jabberd
-# Used in jabberd to specify the default directory under which server
-# information is stored.
-# Possible: any directory
-# Default: ${VARBASE}/spool/jabberd
-
-JABBERD_PIDDIR?= ${VARBASE}/run/jabberd
-# Used in jabberd to specify the default directory under which pid
-# files are placed.
-# Possible: any directory
-# Default: ${VARBASE}/run/jabberd
-
-JAKARTA_HOME?= ${JAVA_HOME}/jakarta
-# Used by the www/jakarta-tomcat package to choose an install location
-# Possible: any directory
-# Default: ${JAVA_HOME}/jakarta
-
-#JAVA_HOME=
-# Location of jvm to be used by pkgsrc. Java-based packages will be installed
-# in ${LOCALBASE}/lib/java, so that they are available to all jvms.
-#
-# Possible: any directory
-# Default: home of JVM chosen by ${PKG_JVM}
-
-JDK_HOME?= ${LOCALBASE}/java
-# Used by the lang/JDK package to choose an install location
-# Possible: any directory, e.g. /usr/jdk
-# Default: ${LOCALBASE}/java
-
-JSDK_HOME?= ${JAVA_HOME}/jsdk
-# Location for Java Servlet Development Kit installed by www/jsdk20
-# Possible: any directory
-# Default: ${JAVA_HOME}/jsdk
-
-#KERBEROS=
-# Used in many packages to specify use of a Kerberos (or compatible)
-# subsystem. Requires Kerberos libraries in /usr/lib.
-# Possible: defined, not defined
-# Default: not defined
-
-#KERMIT_SUID_UUCP
-# If set to YES or yes, install kermit binary set-uid uucp. Permits an
-# unprivileged user to access the serial ports, with default permissions
-# on the /dev/tty0* special files.
-# Possible: YES, yes, not defined
-# Default: not defined
-
-#KJS_USE_PCRE=
-# Used in kdelibs2 to determine if kjs (javascript) should use Perl
-# Compatible Regular Expressions (pcre)
-# Possible: yes, not defined
-# Default: not defined
-
-#KNEWS_DOMAIN_FILE=
-# Used in the knews package to set the domain name from the contents
-# of this file.
-# Possible: any valid path
-# Default: none
-
-#KNEWS_DOMAIN_NAME=
-# Used in the knews package to set the domain name.
-# Possible: almost anything really, usually a FQDN.
-# Default: none
-
-#KTERM_USE_WALLPAPER=
-# Used in kterm package to support wallpaper
-# Possible: not defined, YES
-# Default: not defined
-
-#LIBDVDCSS_HOMEPAGE=
-# Used in libdvdcss package as the homepage.
-# In order to ensure compliance with U.S. and international law, please
-# do not modify this variable to provide pointers to the homepage
-# for this software or submit any PRs telling us the contents of the
-# LIBDVDCSS_HOMEPAGE definition in this Makefile.
-# Possible: any libdvdcss site
-# Default: not defined
-
-#LIBDVDCSS_MASTER_SITES=
-# Used in libdvdcss package as the master site.
-# In order to ensure compliance with U.S. and international law, please
-# do not modify this variable to provide pointers to the homepage
-# for this software or submit any PRs telling us the contents of the
-# LIBDVDCSS_MASTER_SITES definition in this Makefile.
-# Possible: any libdvdcss site
-# Default: not defined
-
-#LATEX2HTML_ICONPATH=
-# Used in the latex2html package to set URL prefix for where to
-# find latex2html's icons.
-# Possible: a URL prefix
-# Default: none
-
-LEAFNODE_DATA_DIR?= ${VARBASE}/news
-# Used by leafnode to specify the data directory.
-# Possible: any path you like
-# Default: ${VARBASE}/news
-# Note: default is the same as INN_DATA_DIR
-
-LEAFNODE_USER?= news
-# Used by leafnode to specify the username
-# Possible: any valid username
-# Default: news
-# Note: default is the same as INN_USER
-
-LEAFNODE_GROUP?= news
-# Used by leafnode to specify the groupname
-# Possible: any valid groupname
-# Default: news
-# Note: default is the same as INN_GROUP
-
-LINUX_LOCALES?= \
- af ar bg br ca cs cy da de el en eo es et eu fi fo fr ga gl \
- he hr hu hy id is it ja ka kl ko lo lt lv nl no oc pl pt ro \
- ru sk sl sr sv th tr uk vi wa zh
-# Used in linux-locale package to install specify language(s)
-# Possible: af ar bg br ca cs cy da de el en eo es et eu fi fo fr ga gl \
-# he hr hu hy id is it ja ka kl ko lo lt lv nl no oc pl pt ro \
-# ru sk sl sr sv th tr uk vi wa zh
-# Default: all languages
-
-LSOF_MORE_SECURE?= 0
-# Used in lsof to specify that non-root users can only view their own files
-# Possible: 0 (allow non-root users to view all open files), or
-# 1 (only allow root to view all open files)
-# Default: 0
-
-LSOF_LESS_SECURE_SOCKETS?= 0
-# Used in lsof to specify that non-root users should still be able to view
-# all open sockets even if LSOF_MORE_SECURE is set. If LSOF_MORE_SECURE is
-# not set (ie, is zero), this option has no effect.
-# Possible: 0 (don't allow non-root users to see sockets they don't own)
-# 1 (allow all sockets to be viewed at all times)
-# Default: 0
-
-#M68060=
-# Used mostly by packages (e.g.: gnupg, pgp2, ssh) which have fast
-# 68020/030/040 assembler routines for multiprecision arithmetic
-# which use the 32/64bit mul/div instruction. These instructions are
-# software emulated on the 68060, thus very slow. Set to YES when
-# compiling for the 68060 cpu.
-# Possible: not defined, YES.
-# Default: not defined.
-
-MAJORDOMO_GROUP?= majordom
-# Used by the majordomo package as the groupid majordomo runs at.
-# Possible: any
-# Default: majordom
-
-MAJORDOMO_TMPDIR?= ${VARBASE}/tmp
-# Used by the majordomo package as the directory to store temp files.
-# Possible: any directory.
-# Default: ${VARBASE}/tmp
-
-MAJORDOMO_USER?= majordom
-# Used by majordomo package as the userid majordomo runs at.
-# Possible: any
-# Default: majordom
-
-#MAKEINFO_ARGS?=
-# flags to be passed to makeinfo(1), if any. Warning: only use if you
-# know what you're doing, may break PLISTs.
-# Possible: any valid flag for makeinfo(1)
-# Default: may set info files size for consistency across platforms and
-# makeinfo version, also various machine_archs arguments may be set in
-# mk/platform/${OPSYS}.mk with the _OPSYS_MAKEINFO_ARGS variable.
-
-MLDONKEY_HOME?= ${VARBASE}/mldonkey
-# Directory where mldonkey will keep all configuration files and downloads
-# when started with the rc.d script provided in the mldonkey package.
-# Possible: any path
-# Default: ${VARBASE}/mldonkey
-
-MLDONKEY_USER?= mldonkey
-# System user to run mldonkey's core as.
-# Possible: any user name
-# Default: mldonkey
-
-MONOTONE_GROUP?= monotone
-# System group to run the dedicated Monotone server as. Used by the
-# monotone-server package.
-# Possible: any group name
-# Default: monotone
-
-MONOTONE_USER?= monotone
-# System user to run the dedicated Monotone server as. Used by the
-# monotone-server package.
-# Possible: any user name
-# Default: monotone
-
-#MOZILLA_USE_LINUX=
-# Used by mozilla binary packages to prefer the use of Linux
-# compatibility instead of native builds.
-# Possible: set, unset
-# Default: unset
-
-MOZILLA_USE_XFT?= NO
-# Used by mozilla packages to enable Xft support where available.
-# The mozilla-gtk2 package sets this value to YES unconditionally.
-# Possible: YES, NO
-# Default: NO
-
-#MOTIF_TYPE?= openmotif
-# Used by motif.buildlink3.mk to choose which Motif-2.0-compatible
-# installation to use. This value is also automatically set by
-# motif.buildlink3.mk to whichever Motif-2.0 installation represented by
-# the possible values below is already installed, but defaults to
-# ${MOTIF_TYPE_DEFAULT}. This value is ignored if MOTIFBASE is
-# explicitly set.
-# Possible: openmotif, lesstif, dt (Irix and Solaris only)
-# Default: ${MOTIF_TYPE_DEFAULT}
-
-#MOTIF_TYPE_DEFAULT?= openmotif
-# Used by motif.buildlink3.mk as the final default value for MOTIF_TYPE.
-# Possible: openmotif, lesstif, dt (Irix and Solaris only)
-# Default: openmotif, or dt (Irix and Solaris only)
-
-#MPG123_ARM_FIXED64=YES
-# Used by mpg123 and mpg123-esound to enable ARM to use 64bit fixedpoint
-# Possible: not defined, YES
-# Default: not defined
-
-MTOOLS_ENABLE_FLOPPYD?= NO
-# Used by the mtools package to determine whether or not the floppyd
-# program is installed. X11 libraries and header files are needed to
-# build floppyd and run floppyd.
-# Possible: YES, NO
-# Default: NO
-
-#MYSQL_USER?= mysql
-# The username of the mysql administrator.
-# Possible: any user name
-# Default: mysql
-
-#MYSQL_GROUP?= mysql
-# The group of the mysql administrator.
-# Possible: any group name
-# Default: mysql
-
-#MYSQL_DATADIR?= ${VARBASE}/mysql
-# Home directory of the mysql administrator and location of the
-# database files.
-# Possible: any directory
-# Default: ${VARBASE}/mysql
-
-#MYSQL_CHARSET= latin1
-# default character set of mysql.
-# Possible: big5, cp1251, cp1257, croat, czech, danish, dec8, dos, estonia,
-# euc_kr, gb2312, gbk, german1, greek, hebrew, hp8, hungarian,
-# koi8_ru, koi8_ukr, latin1, latin2, latin5, swe7, usa7, win1250,
-# win1251ukr, ujis, sjis and tis620
-# Default: latin1
-
-#MYSQL_EXTRA_CHARSET= all
-# additional charsets to be compiled in mysql.
-# Possible: none, compolex, all or list selected from MYSQL_CHARSET's
-# possible values.
-
-NMH_EDITOR?= vi
-# default editor for use in nmh.
-# Possible: any editor.
-# Default: vi
-
-NMH_MTA?= smtp
-# default MTA for use in nmh.
-# Possible: smtp or sendmail.
-# Default: smtp
-
-NMH_PAGER?= more
-# default pager for use in nmh.
-# Possible: any pager.
-# Default: more
-
-#NS_PREFERRED=
-# Used by netscape to determine preferred browser to open
-# Possible: not defined, communicator, navigator, mozilla
-# Default: not defined, which implies communicator
-
-#NS_NO_FLASH=
-# Used by navigator/communicator package to decide if flash should be
-# installed or not. By default, flash is installed.
-# Possible: not defined, defined
-# Default: not defined
-
-#NS_USE_BSDI= YES
-# Used to decide if i386 BSDi Netscape binary should be used in preference
-# to linux version.
-# Possible: not defined, YES
-# Default: not defined
-
-#NS_USE_SUNOS= YES
-# Used to decide if sparc SunOS-4.1 Netscape binary should be used in preference
-# to the Solaris-2.5.1 version.
-# Possible: not defined, YES
-# Default: not defined
-
-OPENSSH_CHROOT?= ${VARBASE}/chroot/sshd
-# The chroot directory for OpenSSH with privilege separation. This directory
-# will be created and MUST be only readable by root.
-# Possible: any directory
-# Default: ${VARBASE}/chroot/sshd
-
-OPENSSH_USER?= sshd
-# The unprivileged user for OpenSSH with privilege separation.
-# Possible: any user name
-# Default: sshd
-
-OPENSSH_UID?= 16
-# The unprivileged UID for OpenSSH with privilege separation.
-# Possible: any uid
-# Default: 16
-
-OPENSSH_GROUP?= sshd
-# The group of the OPENSSH_USER for OpenSSH with privilege separation.
-# Possible: any group name
-# Default: sshd
-
-OPENSSH_GID?= 16
-# The GID of the OPENSSH_USER for OpenSSH with privilege separation.
-# Possible: any gid
-# Default: sshd
-
-P4USER?= perforce
-# The unprivileged user for the Perforce server.
-# Possible: any user name
-# Default: perforce
-
-P4GROUP?= p4admin
-# The group of the P4USER for the Perforce server.
-# Possible: any group name
-# Default: p4admin
-
-P4ROOT?= ${VARBASE}/perforce
-# The directory where the Perforce server will store its depot.
-# Possible: any directory
-# Default: ${VARBASE}/perforce
-
-P4PORT?= 1666
-# The TCP port on which the Perforce server will listen.
-# Possible: any port
-# Default: 1666
-
-PALMOS_DEFAULT_SDK?= 3.5
-# Version of PalmOS SDK to use as default.
-# Possible: 1, 2, 3.1, 3.5
-# Default: 3.5
-
-PAPERSIZE?= A4
-# Default paper size for packages.
-# Possible: A4, Letter.
-# Default: A4
-
-PGGROUP?= pgsql
-# Used in postgresql package as the groupname of the database
-# administrator
-# Possible: any group name
-# Default: pgsql
-
-PGUSER?= pgsql
-# Used in postgresql package as the username of the database admin
-# Possible: any user name
-# Default: pgsql
-
-PGHOME?= ${PREFIX}/${PGUSER}
-# Used in postgresql package as the home directory for the database
-# administrator
-# Possible: any valid location
-# Default: ${PREFIX}/${PGUSER}
-
-#PGSQL_USE_HIER?= yes
-# Add support for hierarchical queries with Oracle like CONNECT BY syntax
-# to the PostgreSQL 7.4 package.
-# See http://gppl.moonbone.ru/README.html for details.
-# Possible: undefined, yes
-# Default: undefined
-
-#PG_MB_ENCODING= SQL_ASCII
-# Used to postgresql package to define the language encoding of the
-# backend server process.
-# Possible: SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL,
-# LATIN1, LATIN2, LATIN3, LATIN4, LATIN5, KOI8, WIN, ALT
-# Default: undefined
-
-PILRC_USE_GTK?= YES
-# Use gtk+ in pilrc, needed for the UI previewer.
-# Possible: YES, NO
-# Default: YES
-
-PKG_INSTALLATION_TYPES?= overwrite
-# This is a whitespace-separated list of installation types supported
-# by the package.
-#
-# *NOTE*: This variable *must* be set in the package Makefile *before*
-# the inclusion of bsd.prefs.mk.
-#
-# Possible: any of: overwrite, pkgviews
-# Default: overwrite
-
-#PKG_JVM=
-# Used to choose a java virtual machine for packages which use Java.
-# ${JAVA_HOME} will be set based on this choice, if unset
-# Possible: jdk, sun-jdk, blackdown-jdk13, kaffe (kaffe currently has some problems)
-# Default: jdk on NetBSD/i386, blackdown-jdk13 on powerpc, kaffe elsewhere
-
-PKG_LANG?=english
-# Used to specify preferred language settings
-# Currently only used by www/netscape7 and misc/openoffice
-# Possible: depends on packages supporting this variable, basically any
-# language. Should be '<lang>_<lc>' or '<lang>', for example 'english_uk',
-# 'german' or 'portuguese_br'.
-# Default: english
-
-#POPTOP_USE_MPPE=
-# Used in poptop package to specify the use of the mppe-ppp package
-# in preference to the standard ppp
-# Possible: defined, not defined
-# Default: not defined
-
-PURE_FTPD_USE_MYSQL?= NO
-# Compile in MySQL support.
-# Possible: YES, NO
-# Default: NO
-
-PURE_FTPD_USE_PGSQL?= NO
-# Compile in PostgreSQL support.
-# Possible: YES, NO
-# Default: NO
-
-PURE_FTPD_USE_TLS?= NO
-# Compile in SSL/TLS support.
-# Possible: YES, NO
-# Default: NO
-
-PURE_FTPD_USE_VIRTUAL_CHROOT?= NO
-# Compile in virtual chroot support (enables the ability
-# to follow symlinks outside a chroot jail).
-# Possible: YES, NO
-# Default: NO
-
-#PROCMAIL_MAILSPOOLHOME=.MailBox
-# To default user mailboxes to their home directory,
-# specify the name of the mailbox file.
-# Possible: Any valid filename, not defined
-# Default: not defined
-
-PROCMAIL_TRUSTED_IDS?=0
-# To allow all users to use the "-f" switch set this to 0.
-# Possible: A list of users, terminated by a zero.
-# Default: see Makefile
-
-.if exists(/usr/bin/ssh)
-PVM_SSH?= /usr/bin/ssh
-.else
-PVM_SSH?= ${LOCALBASE}/bin/ssh
-.endif
-# Specify the rsh/ssh program used by pvm to communicate between
-# systems.
-# Possible: Any rsh/ssh program.
-# Default: /usr/bin/ssh if it exists, otherwise ${LOCALBASE}/bin/ssh
-
-QMAILDIR?= /var/qmail
-# The directory for qmail installation. You probably don't need to
-# change this.
-# Possible: any valid location
-# Default: /var/qmail (intentionally not ${VARBASE}/qmail)
-
-QMAIL_QFILTER_TMPDIR?= ${VARBASE}/tmp/qmail-qfilter
-# The temporary directory for qmail-qfilter.
-# Possible: a directory writable only by qmail-qfilter's UID
-# Default: ${VARBASE}/tmp/qmail-qfilter
-
-QMAIL_QUEUE_DIR?= ${VARBASE}/spool/qmail
-# The directory for qmail's queue.
-# Possible: any location on an appropriate filesystem, except that it
-# must be outside ${QMAILDIR}.
-# Default: ${VARBASE}/spool/qmail
-
-QMAIL_QUEUE_EXTRA?=
-# An additional recipient that will be added to every qmail delivery.
-# This is used primarily for logging.
-# Possible: empty, any valid local address
-# Default: empty
-
-QPOPPER_FAC?= LOCAL1
-# Used by qpopper package as the default syslog facility.
-# Possible: syslog(3)'s facility string without preceding "LOG_".
-# Default: LOCAL1
-
-QPOPPER_USER?= pop
-# Used by qpopper package as the owner of apop database and qpopauth
-# command runs at.
-# Possible: any
-# Default: pop
-
-#QPOPPER_SPOOL_DIR=
-# Used by qpopper package to define the mail spool directory,
-# overriding the hardcoded directories searched for by the configure
-# script.
-# Possible: any location on an appropriate filesystem.
-# Default: not defined
-
-RASMOL_DEPTH?= 8
-# Used in rasmol package to choose display depth to compile the package
-# for, since it only supports one at a time.
-# Possible: 8, 16, 32
-# Default: 8
-
-RPM_DB_PREFIX?= ${VARBASE}/pkg
-# Used in the rpm package to note the prefix of the path to the RPM
-# databases. The RPM databases are stored in ${RPM_DB_PREFIX}/lib/rpm.
-# Possible: any valid location, e.g. ${LOCALBASE}
-# Default: ${VARBASE}/pkg
-
-#RSSH_SCP_PATH=
-# Used in the rssh package to specify pathname to scp(1)
-# Possible: any valid pathname for scp command
-# Default: not defined
-
-#RSSH_SFTP_SERVER_PATH=
-# Used in the rssh package to specify pathname to sftp-server(8)
-# Possible: any valid pathname for sftp-server command
-# Default: not defined
-
-#RSSH_CVS_PATH=
-# Used in the rssh package to specify pathname to cvs(1)
-# Possible: any valid pathname for cvs command
-# Default: not defined
-
-#RSSH_RDIST_PATH=
-# Used in the rssh package to specify pathname to rdist(1)
-# Possible: any valid pathname for rdist command
-# Default: not defined
-
-#RSSH_RSYNC_PATH=
-# Used in the rssh package to specify pathname to rsync(1)
-# Possible: any valid pathname for rsync command
-# Default: not defined
-
-#SAWFISH_THEMES=
-# Specifies the DISTFILES for wm/sawfish-themes, to allow the user to choose
-# which themes to install
-# Possible: empty, any number of theme-name-[0-9]*.*.tar.gz
-# Default: Set to include about 180 themes available on themes.freshmeat.net
-
-SCREWS_GROUP?= www
-# Used in the screws package to specify the user under which the server
-# should be run.
-# Possible: any user name
-# Default: screws
-
-SCREWS_USER?= screws
-# Used in the screws package to specify the user under which the server
-# should be run.
-# Possible: any user name
-# Default: screws
-
-SDIST_PAWD?= pwd
-# If you are using amd you'll want to use pawd instead of pwd to derive
-# the current working directory.
-# Possible: pawd, pwd
-# Default: pwd
-
-#SERIAL_DEVICES=
-# Used to provide a default setting for all the serial devices for
-# various packages which communicate over the serial port.
-# Possible: /dev/your_favorite_serial_device0 /dev/your_favorite_serial_device1 ...
-# Default: defaults for various machine_archs are set in mk/bsd.prefs.mk
-
-SILC_CLIENT_WITH_PERL?= YES
-# Used to decide whether perl scripting support will be compiled.
-# Possible: YES, NO
-# Default: YES
-
-#SPARC_TARGET_ARCH= sparcv7
-# Select SPARC target architecture under Solaris.
-# Possible: sparcv7, sparcv8 or sparcv9.
-# Default: sparcv7
-
-#SPOP3D_ENABLE_APOP= yes
-# Enable APOP support in the mail/solid-pop3d package.
-# Possible: undefined, defined
-# Default: undefined
-
-#SPOP3D_ENABLE_STANDALONE= yes
-# Build mail/solid-pop3d to run standalone instead of via inetd.
-# Possible: undefined, defined
-# Default: undefined
-
-#SPOP3D_ENABLE_ALIASES= yes
-# Build mail/solid-pop3d with support for user names mapping and non-IP
-# based virtuals.
-# Possible: undefined, defined
-# Default: undefined
-
-#SQUID_CONFIGURE_ARGS=
-# Used in squid package to set build configuration options.
-# Possible: see "configure --help"
-# Default: --enable-cachemgr-hostname=localhost
-# --enable-icmp
-# --enable-ipf-transparent
-# --enable-snmp
-
-SSH_RSHPATH?= ${RSH}
-# Used in ssh to specify standard rsh path
-# Possible: path to rsh binary
-# Default: platform dependent; ${RSH} set in mk/platform/${OPSYS}.mk
-
-SSH_SUID?= NO
-# Used in ssh to enable setuid installation of "ssh" binary.
-# Possible: YES, or NO.
-# Default: NO
-
-SSYNC_PAWD?= pwd
-# If you are using amd you'll want to use pawd instead of pwd to derive
-# the current working directory.
-# Possible: pawd, pwd
-# Default: pwd
-
-.if empty(MACHINE_PLATFORM:MNetBSD-1*-*)
-SUSE_PREFER?= 9.1
-.else
-SUSE_PREFER?= 7.3
-.endif
-# Which version of the suse packages to prefer.
-# Decides if you want to use 9.1 (default) or 7.3 (pre NetBSD-2) by default.
-# Possible: 7.3, 9.1
-# Default: 9.1 in 2.0 and later, 7.3 otherwise
-
-TIN_USE_INN_SPOOL?= NO
-# Used to enable reading directly in an inn spool.
-# Possible: YES, or NO.
-# Default: NO
-
-#TEXMFSITE=
-# Used in TeXfamily package which depends on teTeX package to specify
-# site-local texmf configuration.
-# Since teTeX package uses ${PREFIX}/share/texmf directory, TeXfamily
-# package uses ${PREFIX}/share/texmf.local. Therefore, though you can
-# use /usr/local/share/texmf as TEXMFSITE, it causes a conflict if you
-# set ${PREFIX} to /usr/local. Use another path in such a case.
-# Possible: any valid path
-# Default: none
-
-#THTTPD_LOG_FACILITY?= LOG_DAEMON
-# Used by the thttpd package to choose the log facility used
-# by thttpd for its syslogd(8) messages.
-# Possible: see "facility codes" in /usr/include/syslog.h
-# Default: LOG_DAEMON
-
-UNPRIVILEGED?= NO
-# Set this to YES to enable unprivileged support (see mk/unprivileged.mk).
-# Possible: YES, NO
-# Default: NO
-
-USE_CANNA?= YES
-# Used in kinput2 and nvi-m17n to enable Canna kana-kanji converter
-# support.
-# Possible: YES, or NO.
-# Default: YES
-
-USE_CRYPTO?= YES
-# Used in speakfreely to choose support for encrypted connections.
-# Possible: YES, or NO.
-# Default: YES
-
-#USE_CUPS= YES
-# Used by packages to compile in support for the UNIX IPP implementation, CUPS.
-# Possible: YES, not defined
-# Default: not defined
-
-USE_I586?= NO
-# Use assembler routines optimized for i586 in gnupg.
-# Possible: YES, or NO.
-# Default: NO
-
-#USE_INET6=
-# Enable IPv6 support on certain packages. It is safer to leave it undefined
-# in mk.conf and obey the default. Reasons:
-# - it is just fine to use IPv6-ready packages on top of non-IPv6 kernel
-# (assuming that you have IPv6-ready headers and libraries)
-# - it may cause some trouble to use a package compiled with USE_INET6=NO,
-# on top of IPv6-ready kernel
-# Possible: not defined, NO, YES
-# Default: YES on IPv6-ready userland, not defined otherwise
-
-#USE_INN=
-# Used in nn and trn to specify use of "inn" instead of "nntpclnt"
-# package to provide "inews" binary.
-# Possible: not defined, YES
-# Default: not defined
-
-USE_OPENLDAP?= NO
-# Enable openldap support. Used in xemacs, gnupg, dovecot, postfix, samba,
-# sendmail, sylpheed, pine and others.
-# Possible: YES, or NO.
-# Default: NO
-
-#USE_OSS=
-#
-# Used to enable OSS audio support in preference to or in place of Sun audio
-# support in various packages.
-# Possible: defined, not defined
-# Default: not defined
-
-#USE_SASL=YES
-# Used to specify optional support for SASL authentication
-# Possible: YES, not defined
-# Default: not defined
-
-#USE_SASL2=YES
-# Used to specify optional support for SASL authentication version 2.*
-# Possible: YES, not defined
-# Default: not defined
-
-USE_SJ3?= YES
-# Used in kinput2 to enable SJ3 kana-kanji converter support.
-# Possible: YES, or NO.
-# Default: YES
-
-#USE_SOCKS=
-# Used to specify SOCKS firewall support
-# Set this to the version of socks necessary.
-# Possible: 4, 5, not defined
-# Default: not defined
-
-USE_WNN4?= YES
-# Used in kinput2 to enable FreeWnn (a.k.a. Wnn4) kana-kanji
-# converter support.
-# Possible: YES, or NO.
-# Default: YES
-
-#USE_XFACE=
-# Used in xemacs package to build in support for xface
-# (pkgsrc/mail/face)
-# Possible: not defined, YES
-# Default: not defined
-
-USERPPP_GROUP?= network
-# Used in the userppp package to specify the default group.
-# Possible: any group name
-# Default: network
-
-#VIM_EXTRA_OPTS=
-# Used in vim package to build with non-gui extra options
-# Possible: not defined, see "configure --help"
-# Default: not defined
-
-#WCALC_HTMLDIR?= share/${WCALC_DIR}/htdocs
-# Directory where cad/wcalc-docs will install the wcalc web pages
-# Possible: any subdirectory of ${PREFIX}
-# Default: share/${WCALC_DIR}/htdocs
-
-#WCALC_HTMLPATH?= /wcalc/
-# URI configured into the web server to access the wcalc web pages.
-# This is important when cad/cgi-wcalc is installed.
-# Possible: any
-# Default: /wcalc/
-
-#WCALC_CGIDIR?= libexec/cgi-bin
-# Directory where cad/cgi-wcalc will install the cgi programs
-# Possible: any subdirectory of ${PREFIX}
-# Default: libexec/cgi-bin
-
-#WCALC_CGIPATH?= /cgi-wcalc/
-# URI configured into the web server to access the cad/cgi-wcalc
-# cgi programs.
-# Possible: any
-# Default: /cgi-bin/
-
-#WDM_MANAGERS?=
-# Is a space-separated list of window managers for x11/wdm to support.
-# Possible: any space-separated list of window managers
-# Default: not defined
-
-WINDOWMAKER_OPTIONS?= gnome kde openlook
-# Options for building windowmaker package. Used to add support for
-# GNOME, KDE or OPEN LOOK(tm) and to avoid redundancies with KDE.
-# Possible: gnome, kde, openlook, lite
-# Default: gnome kde openlook
-
-WINDOWMAKER_THEMES?= freebsdtheme-0.52 netbsddrinkingteam-0.60.0 netbsd_-0.52
-# Used in the wmthemes package to specify the themes which will be
-# installed.
-# Possible: see http://wm.themes.org/
-# Default: freebsdtheme-0.52 netbsddrinkingteam-0.60.0 netbsd_-0.52
-
-#X10_PORT=
-# The serial device for misc/bottlerocket to use to communicate
-# to the X10 adaptor.
-# Possible: /dev/your_favorite_serial_device
-# Default: defaults to ${DEFAULT_SERIAL_DEVICE}
-
-XAW_TYPE?=standard
-# Used in various packages to specify that libXaw is used.
-# Possible: standard, 3d, xpm
-# Default: standard
-
-XEN12_USE_COM2?= NO
-# This option changes Xen's serial console port to com2.
-# Possible: YES, NO
-# Default: NO
-
-#XLOCK_DEFAULT_MODE=
-# Set the default display (screen saver) mode for xlockmore.
-# Possible: ant, apollonian, ball, bat, blank, blot, bomb, bouboule, bounce,
-# braid, bubble, bug, clock, coral, crystal, daisy, dclock, decay,
-# deco, demon, dilemma, discrete, dragon, drift, euler2d, eyes,
-# fadeplot, flag, flame, flow, forest, galaxy, goop, grav, helix,
-# hop, hyper, ico, ifs, image, juggle, julia, kaleid, kumppa, laser,
-# life, life1d, life3d, lightning, lisa, lissie, loop, lyapunov,
-# mandelbrot, marquee, matrix, maze, mountain, munch, nose, pacman,
-# penrose, petal, petri, polyominoes, puzzle, pyro, qix, random,
-# roll, rotor, scooter, shape, sierpinski, slip, solitare, space,
-# sphere, spiral, spline, star, starfish, strange, swarm, swirl,
-# t3d, tetris, thornbird, tik_tak, triangle, tube, turtle, vines,
-# voters, wator, wire, world, worm, xcl, xjack, not defined
-# Default: not defined
-
-#ZIP_ENCRYPTION=
-# Add encryption code to zip1
-# Possible: defined, not defined
-# Default: not defined
-
-#ZSH_STATIC=
-# Build statically linked zsh binary - recommended if used as a login shell
-# Possible: defined, not defined
-# Default: not defined
-
-
-#
-# Overrides for faster or cheaper sites.
-#
-# Refer to http://www.NetBSD.org/mirrors/ or /usr/doc/MIRRORS
-# for information on determining the location of NetBSD mirror sites.
-#
-
-# Australia.
-#
-#MASTER_SITE_CYGWIN= http://planetmirror.com/pub/sourceware/cygwin/
-#MASTER_SITE_GNOME= http://public.planetmirror.com.au/pub/gnome/
-#MASTER_SITE_GNU= http://public.planetmirror.com.au/pub/gnu/
-#MASTER_SITE_MOZILLA= http://public.planetmirror.com.au/pub/mozilla/releases/
-#MASTER_SITE_PERL_CPAN= ftp://mirror.aarnet.edu.au/pub/cpan/modules/by-module/ \
-# http://public.planetmirror.com.au/pub/perl/cpan/modules/by-module/
-#MASTER_SITE_OPENOFFICE=http://openoffice.mirrors.ilisys.com.au/ \
-# http://mirror.pacific.net.au/openoffice/ \
-# http://planetmirror.com/pub/openoffice/
-#MASTER_SITE_SUNSITE= http://public.planetmirror.com.au/pub/sunsite/
-#MASTER_SITE_SUSE= http://public.planetmirror.com.au/pub/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
-#MASTER_SITE_TEX_CTAN= http://public.planetmirror.com.au/pub/tex-archive/
-#MASTER_SITE_SOURCEFORGE=http://optusnet.dl.sourceforge.net/sourceforge/ \
-# http://public.planetmirror.com.au/pub/sourceforge/
-#MASTER_SITE_XCONTRIB= http://public.planetmirror.com.au/pub/X11/contrib/
-#MASTER_SITE_XEMACS= ftp://ftp.au.xemacs.org/pub/xemacs/
-#MASTER_SITE_BACKUP= ftp://ftp.au.NetBSD.org/pub/NetBSD/packages/distfiles/ \
-# ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/
-#MASTER_SITE_LOCAL= ftp://ftp.au.NetBSD.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/ \
-# ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/
-#
-
-# Austria
-#
-#MASTER_SITE_CYGWIN= ftp://gd.tuwien.ac.at/gnu/cygwin/
-#MASTER_SITE_XCONTRIB= ftp://ftp.at.NetBSD.org/hci/X11/x.org/contrib/
-#MASTER_SITE_GNU= ftp://ftp.at.NetBSD.org/gnu/gnusrc/
-#MASTER_SITE_PERL_CPAN= ftp://ftp.at.NetBSD.org/languages/perl/CPAN/modules/by-module/
-#MASTER_SITE_OPENOFFICE=http://gd.tuwien.ac.at/office/openoffice/
-#MASTER_SITE_TEX_CTAN= ftp://ftp.at.NetBSD.org/publishing/tex/CTAN/
-#MASTER_SITE_SUNSITE= ftp://ftp.univie.ac.at/systems/linux/sunsite/
-#MASTER_SITE_XEMACS= ftp://ftp.at.xemacs.org/editors/xemacs/
-#MASTER_SITE_BACKUP= ftp://ftp.at.NetBSD.org/opsys/NetBSD/packages/distfiles/
-
-# Denmark
-#
-#MASTER_SITE_CYGWIN= http://mirrors.sunsite.dk/cygwin/
-#MASTER_SITE_GNU= ftp://ftp.sunsite.auc.dk/pub/gnu/
-#MASTER_SITE_PERL_CPAN= ftp://ftp.sunsite.auc.dk/pub/languages/perl/CPAN/modules/by-module/
-#MASTER_SITE_OPENOFFICE=http://mirrors.sunsite.dk/openoffice/
-#MASTER_SITE_TEX_CTAN= ftp://ftp.sunsite.auc.dk/pub/tex/ctan/
-#MASTER_SITE_SUNSITE= ftp://ftp.suaunsite.auc.dk/mirrors/sunsite.unc.edu/pub/Linux/
-#MASTER_SITE_XEMACS= ftp://ftp.dk.xemacs.org/pub/emacs/xemacs/
-#MASTER_SITE_BACKUP= ftp://ftp.dk.NetBSD.org/pub/NetBSD/packages/distfiles/
-
-# Finland
-#
-#MASTER_SITE_CYGWIN= ftp://ftp.funet.fi/pub/mirrors/cygwin.com/pub/cygwin/
-#MASTER_SITE_XCONTRIB= ftp://ftp.funet.fi/pub/X11/contrib/
-#MASTER_SITE_GNU= ftp://ftp.funet.fi/pub/gnu/gnu/
-#MASTER_SITE_PERL_CPAN= \
-# ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/
-#MASTER_SITE_OPENOFFICE=ftp://ftp.funet.fi/pub/mirrors/openoffice.org/
-#MASTER_SITE_TEX_CTAN= ftp://ftp.funet.fi/pub/TeX/CTAN/
-#MASTER_SITE_SUNSITE= \
-# ftp://ftp.funet.fi/pub/mirrors/sunsite.unc.edu/pub/Linux/
-#MASTER_SITE_XEMACS= ftp://ftp.fi.xemacs.org/pub/mirrors/ftp.xemacs.org/pub/tux/xemacs/
-#MASTER_SITE_BACKUP= \
-# ftp://ftp.fi.NetBSD.org/pub/NetBSD/packages/distfiles/
-
-# France
-#
-#MASTER_SITE_CYGWIN= http://mir.zyrianes.net/cygwin/
-#MASTER_SITE_OPENOFFICE=ftp://openoffice.cict.fr/openoffice/ \
-# http://ftp.club-internet.fr/pub/OpenOffice/
-#MASTER_SITE_SUSE= \
-# ftp://fr.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/ \
-# ftp://fr2.rpmfind.net/linux/SuSE-Linux/${MACHINE_ARCH}/update/${SUSE_VERSION}/
-
-# Greece
-#
-#MASTER_SITE_CYGWIN= http://ftp.ntua.gr/pub/pc/cygwin/
-#MASTER_SITE_OPENOFFICE=http://www.ellak.gr/pub/openoffice/ \
-# http://ftp.ntua.gr/pub/OpenOffice/
-#MASTER_SITE_SUSE= \
-# ftp://ftp.duth.gr/pub/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
-
-# Japan
-#
-#MASTER_SITE_CYGWIN= ftp://ftp.t.ring.gr.jp/archives/pc/gnu-win32/
-#MASTER_SITE_GNOME= ftp://ftp.t.ring.gr.jp/pub/X/gnome/
-#MASTER_SITE_GNU= ftp://ftp.t.ring.gr.jp/pub/GNU/
-#MASTER_SITE_MOZILLA= ftp://ftp.t.ring.gr.jp/pub/net/www/mozilla/mozilla/releases/
-#MASTER_SITE_PERL_CPAN= ftp://ftp.t.ring.gr.jp/pub/lang/perl/CPAN/modules/by-module/
-#MASTER_SITE_OPENOFFICE=ftp://ftp.kddlabs.co.jp/office/openoffice/ \
-# ftp://ftp.t.ring.gr.jp/pub/misc/openoffice/
-#MASTER_SITE_TEX_CTAN= ftp://ftp.t.ring.gr.jp/pub/text/CTAN/
-#MASTER_SITE_SUSE= \
-# ftp://ftp.kddlabs.co.jp/Linux/packages/SuSE/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
-#MASTER_SITE_SUNSITE= ftp://sunsite.sut.ac.jp/pub/archives/linux/sunsite-unc/
-#MASTER_SITE_XCONTRIB= ftp://ftp.t.ring.gr.jp/pub/X/opengroup/contrib/
-#MASTER_SITE_XEMACS= ftp://ftp.jp.xemacs.org/pub/GNU/xemacs/
-#MASTER_SITE_BACKUP= \
-# ftp://ftp.t.ring.gr.jp/pub/NetBSD/packages/distfiles/ \
-# ftp://ftp.jp.NetBSD.org/pub/NetBSD/packages/distfiles/
-
-# Switzerland
-#
-#MASTER_SITE_CYGWIN= ftp://mirror.switch.ch/mirror/cygwin/
-#MASTER_SITE_OPENOFFICE=ftp://mirror.switch.ch/mirror/OpenOffice/
-#MASTER_SITE_SUSE= \
-# ftp://sunsite.cnlab-switch.ch/mirror/SuSE/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
-
-# United Kingdom
-#
-#MASTER_SITE_CYGWIN= ftp://ftp.mirror.ac.uk/sites/sources.redhat.com/ftp/cygwin/
-#MASTER_SITE_GNU= ftp://sunsite.org.uk/packages/gnu/
-#MASTER_SITE_PERL_CPAN= ftp://sunsite.org.uk/packages/perl/CPAN/modules/by-module/
-#MASTER_SITE_OPENOFFICE=ftp://ftp.mirror.ac.uk/sites/ny1.mirror.openoffice.org/
-#MASTER_SITE_TEX_CTAN= ftp://sunsite.org.uk/packages/tex/uk-tex/
-#MASTER_SITE_SUSE= \
-# ftp://ftp.mirror.ac.uk/sites/ftp.suse.com/pub/suse/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
-#MASTER_SITE_SUNSITE= ftp://sunsite.org.uk/Mirrors/sunsite.unc.edu/pub/Linux/
-#MASTER_SITE_XCONTRIB= ftp://sunsite.org.uk/Mirrors/ftp.x.org/contrib/
-#MASTER_SITE_XEMACS= ftp://ftp.uk.xemacs.org/sites/ftp.xemacs.org/pub/xemacs/
-#MASTER_SITE_BACKUP= \
-# ftp://sunsite.org.uk/packages/NetBSD/packages/distfiles/ \
-# ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/
-
-# USA
-#
-#MASTER_SITE_OPENOFFICE=http://openoffice.behrsolutions.com/ \
-# http://www.ibiblio.org/pub/mirrors/openoffice/ \
-# ftp://ftp.ussg.iu.edu/pub/openoffice/ \
-# http://mirrors.isc.org/pub/openoffice/ \
-# ftp://mirror.telentente.com/pub/OpenOffice/ \
-# http://openoffice.mirrors.pair.com/
-#MASTER_SITE_SUSE= \
-# ftp://mirror.mcs.anl.gov/pub/ftp.suse.com/${MACHINE_ARCH}/${SUSE_VERSION}/suse/
-
-# France. This will try to fetch distfile from the distfile mirror
-# before trying ${MASTER_SITE} or the distfiles at ftp.NetBSD.org
-#
-#MASTER_SITE_OVERRIDE= \
-# ftp://ftp2.fr.NetBSD.org/pub/NetBSD/packages/distfiles/
-#MASTER_SITE_BACKUP= \
-# ftp://ftp2.fr.NetBSD.org/pub/NetBSD/packages/distfiles/
-#MASTER_SITE_LOCAL= \
-# ftp://ftp.fr.NetBSD.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/
diff --git a/mk/defaults/obsolete.mk b/mk/defaults/obsolete.mk
deleted file mode 100644
index f6f8403467d..00000000000
--- a/mk/defaults/obsolete.mk
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: obsolete.mk,v 1.16 2005/10/03 21:25:17 wiz Exp $
-#
-# This file holds make(1) logic to allow obsolete or deprecated variables
-# still to be used. These may eventually disappear over time as the contents
-# are, by definition, obsolete and deprecated.
-
-.if defined(PRIV_CONF_DIR)
-PKG_SYSCONFDIR.priv?= ${PRIV_CONF_DIR}
-.endif
-
-###
-### Set PKG_LEGACY_OPTIONS based on to-be-deprecated global variables.
-###
-
-.if defined(KERBEROS)
-. if ${KERBEROS} == "4" && !empty(PKG_SUPPORTED_OPTIONS:Mkerberos4)
-PKG_LEGACY_OPTIONS+= kerberos4
-PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable KERBEROS used, use PKG_DEFAULT_OPTIONS+=kerberos4 instead."
-. elif !empty(PKG_SUPPORTED_OPTIONS:Mkerberos)
-PKG_LEGACY_OPTIONS+= kerberos
-PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable KERBEROS used, use PKG_DEFAULT_OPTIONS+=kerberos instead."
-. endif
-.endif
-.if defined(USE_SOCKS)
-. if ${USE_SOCKS} == "4" && !empty(PKG_SUPPORTED_OPTIONS:Msocks4)
-PKG_LEGACY_OPTIONS+= socks4
-PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks4 instead."
-. elif ${USE_SOCKS} == "5" && !empty(PKG_SUPPORTED_OPTIONS:Msocks5)
-PKG_LEGACY_OPTIONS+= socks5
-PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks5 instead."
-. endif
-.endif
-
-PKG_OPTIONS_LEGACY_OPTS+= postgresql:pgsql
-PKG_OPTIONS_LEGACY_OPTS+= postgresql73:pgsql
-PKG_OPTIONS_LEGACY_OPTS+= postgresql74:pgsql
-
-PKG_OPTIONS_LEGACY_VARS+= USE_CANNA:canna
-PKG_OPTIONS_LEGACY_VARS+= USE_CUPS:cups
-PKG_OPTIONS_LEGACY_VARS+= USE_I586:i586
-PKG_OPTIONS_LEGACY_VARS+= USE_INET6:inet6
-PKG_OPTIONS_LEGACY_VARS+= USE_INN:inn
-PKG_OPTIONS_LEGACY_VARS+= USE_OPENLDAP:ldap
-PKG_OPTIONS_LEGACY_VARS+= USE_OSS:oss
-PKG_OPTIONS_LEGACY_VARS+= USE_RSAREF2:rsaref
-PKG_OPTIONS_LEGACY_VARS+= USE_SASL:sasl
-PKG_OPTIONS_LEGACY_VARS+= USE_SASL2:sasl
-PKG_OPTIONS_LEGACY_VARS+= USE_SJ3:sj3
-PKG_OPTIONS_LEGACY_VARS+= USE_WNN4:wnn4
-PKG_OPTIONS_LEGACY_VARS+= USE_XFACE:xface
diff --git a/mk/defaults/options.description b/mk/defaults/options.description
deleted file mode 100644
index 29315ee291e..00000000000
--- a/mk/defaults/options.description
+++ /dev/null
@@ -1,309 +0,0 @@
-2ch_dict
-a52
-aac
-aalib Enable aalib support.
-abook Enable abook support.
-ac3_passthrough
-ads
-alsa
-anthy Use Anthy as Japanese conversion program.
-antialias
-apm
-apop
-ark
-arping1
-arping2
-arts Use the aRts audio daemon.
-aspell
-aterm-big5 Enable Chinese support.
-aterm-greek Enable Greek keyboard support.
-aterm-kanji Enable kanji support.
-aterm-xterm-scroll Use xterm-scrollbar instead of a NeXT-like one.
-ati
-audiofile
-authlib
-avifile
-awl-sql-tests
-bayes-sql-tests
-bdb
-bktr
-blender-exppython Enable the Experimental Python support.
-bpf
-buffy-size
-canna Use Canna as Japanese conversion program.
-catalog-mysql Store Bacula catalog in MySQL database.
-catalog-pgsql Store Bacula catalog in PostgreSQL database.
-catalog-sqlite Store Bacula catalog in SQLite database.
-cdparanoia Use cdparanoia to rip CDDA media.
-charset
-charts
-chips
-chroot
-cirrus
-cups
-curl Enable curl support.
-curses
-cyrix
-darwin Build and/or run on Darwin and Mac OS X.
-db
-db2
-db4
-dbh Enable DBH support.
-debug Enable debugging facilities in the package.
-deliver-suid Install deliver executable setuid root.
-djbdns-ignoreip2 Patch to treat certain responses as NXDOMAIN.
-djbdns-tinydns64 Patch to fix tinydns-data on 64-bit platforms.
-djbfft-pentium Optimize for Pentium{,MMX} processors.
-djbfft-ppro Optimize for Pentium{Pro,II,III} processors.
-djbfft-sparc Optimize for UltraSPARC-{I,II} processors.
-djbware-errno-hack Patch to #include <errno.h> for correctness.
-domainscale
-drac Enable DRAC support.
-dummy
-dv Enable usage of the libdv library.
-dvdread Enable reproduction of DVDs.
-dynamic
-eb Enable EB dictionary library support.
-edit
-emacs-xaw3d Emacs should use Xaw3D for the scrollbar.
-esound Enable support for the Enlightment Sound Daemon.
-exim-build-eximon Also build the X based exim queue monitoring tool.
-exim-content-scan Call virus and spam scanning direct from ACLs.
-exim-lookup-dnsdb Use DNS for lookups (as general database facility).
-exim-lookup-dsearch Lookup via key as filename in directory.
-exim-lookup-ldap LDAP lookup using a query in the form of a URL.
-exim-lookup-mysql Perform lookups in MySQL database.
-exim-lookup-whoson Lookup in whoson dynamic IP address.
-exim-old-demime Use deprecated "demime" condition in the DATA ACL.
-ezmlm-althash Patch to hash subscriber list case-insensitively.
-faac
-faad Enable AAC decoding support using faad2.
-fam
-fastcgi Use FastCGI as the CGI manager.
-ffmpeg
-firefox Use firefox as gecko rendering engine.
-flac
-freetype
-gd
-gdbm Use the GNU gdbm database library.
-gdk-pixbuf Use gdk-pixbuf as imaging library.
-geoip Enable IP-to-country-lookup using the GeoIP C library.
-ggi Enable GGI support.
-gif Enable GIF support.
-gimp1-helpbrowser Link against gnome1 to get a help browser.
-glib1
-glint
-glpk
-gnome
-gnupg
-gnuplot
-gnutls Enable GNU TLS support.
-gpgsm
-gqmpeg-japanese Japanese ID3 tag support.
-gqmpeg-russian Russian ID3 tag support.
-graphs
-gsasl
-gssapi
-gstreamer
-gtk Enable support for GTK.
-gtkfe
-gtkspell Enable gtkspell support.
-gucharmap
-hdf5
-homedir
-hpn-patch
-hub
-i128
-i586-optimized Optimize for i586 (only).
-i740
-i810
-iconv
-id3
-idea Enable support for the IDEA cryptographic algorithm (possible license+patent problems).
-idn Internationalized Domain Names (IDN) support.
-ifevents
-imlib Use imlib as imaging library.
-imlib2 Use imlib2 as imaging library.
-imstt
-inet6 Enable support for IPv6.
-ipfilter
-iptables
-irssi-perl Enable Perl support in irssi.
-ispell
-jasper Enable JPEG 2000 support using the jasper library.
-java
-jpeg Enable JPEG support.
-jpilot
-jwhois-enable-cache Enable cache support.
-kde
-kerberos Enable Kerberos support.
-kerberos4 Enable Kerberos4 support.
-kqueue
-krb4
-krb5
-lame Use the lame encoder to create MP3 files.
-largefile
-largescale
-ldap Enable LDAP support.
-ldap-compat
-leaf
-libcrack
-libgcrypt
-libnet10
-libnet11
-long-usernames
-lookup
-lprng-priv-ports Connections must be made from privileged ports.
-lprng-suid Install LPRng executables setuid root.
-lua
-lynxkey
-lzw
-m17n
-m68060-optimized Optimize for m68060 (only).
-mad Enable usage of the mad library to play MP3 files.
-magick
-mdc2
-metarefresh
-mex Enable matlab mex support (Linux and Solaris only).
-mga
-mhash
-milter
-mjpegtools-cmov Enable CMOV support (i386 only).
-mlib Enable usage of medialib (SunOS only).
-mmx Enable MMX support (i386 only).
-modperl
-modperl1 Use modperl 1.x as the CGI manager (with Apache 1.x).
-modperl2 Use modperl 2.x as the CGI manager (with Apache 2.x).
-motif Enable motif support.
-mozilla Use mozilla as gecko rendering engine.
-mplayer-menu Enable support for user-defined menus.
-mplayer-real Enable usage of Real codecs.
-mplayer-runtime-cpudetection Enable CPU detection at run time.
-mplayer-win32 Enable usage of Win32 DLLs (codecs).
-multibyte
-mutt-hcache Enable header caching in mutt.
-mysql Enable MySQL support.
-mysql4
-nas Enable usage of the Network Audio System.
-native
-ncurses Enable ncurses support.
-neomagic
-net-tests
-newport
-nogui
-nospoof
-nsc
-nv
-ogg Enable Ogg support.
-okinawa_dict
-openal Enable OpenAL support.
-opengl Use OpenGL as display library.
-openssl
-oss Enable support for the Open Sound System audio library.
-osx-addressbook Enable support for MacOSX Address Book.
-pam Enable PAM support.
-patchviewer
-pcre
-perf-tuning
-perl
-perl-taint-checks
-perl-warnings
-pf
-pgsql Enable PostgreSQL support.
-pinfo-native-curses Use NetBSD native curses rather than ncurses.
-plplot
-png Enable PNG support.
-portals
-prefix-cmds
-python
-qmail-badrcptto Patch to SMTP-reject particular envelope recipients.
-qmail-bigdns Patch to handle oversized responses to MX queries.
-qmail-netqmail Patch collection prepared by respected list members.
-qmail-outgoingip Patch to force a particular source IP address.
-qmail-qregex Patch to SMTP-reject customizable patterns.
-qmail-realrcptto Patch to SMTP-reject nonexistent recipients.
-qmail-viruscan Patch to SMTP-reject certain types of MIME attachments.
-qpopper-servermode Enable server mode.
-qt
-quota
-radius
-rc5
-readline
-recommended-db
-remoteinc
-rendition
-rrdtool
-s3
-s3virge
-samba
-sasl Enable SASL support.
-saslauthd Use the Cyrus saslauthd daemon for authentication.
-savage
-sdl Use SDL as display library.
-sendmail-socketmap Enable Sendmail SOCKETMAP support.
-siliconmotion
-sis
-skey
-slang Enable S-Lang support.
-slp
-snmp
-socks4 Enable Socks4 support.
-socks5 Enable Socks5 support.
-sqlite
-ssl Enable SSL support.
-starttls Enable TLS support.
-static
-streamtuner-local Enable local metadata support
-streamtuner-xiph Enable the Xiph plugin
-subshell
-suexec
-sun-jre-jce Use unlimited strength cryptograpy extension.
-svn
-syncdir Force synchronous link() and related syscalls.
-tcpd
-tcpwrappers
-tdb
-tdfx
-tga
-theora Use the theora codecs.
-tls Enable TLS support.
-trident
-truetype
-tseng
-unicode
-unrealircd
-vesa
-vflib
-vfs
-vga
-via
-virtualchroot
-vmware
-vorbis Enable Ogg Vorbis support.
-vpop
-w3m-image-gdk-pixbuf Use gdk-pixbuf as imaging library for W3m.
-w3m-image-imlib Use imlib as imaging library for W3m.
-w3m-image-imlib2 Use imlib2 as imaging library for W3m.
-w3m-lynx-key Enable lynx-like key bindings.
-w3m-m17n Multilingual support.
-w3m-unicode Use Unicode characters.
-wcalc-gtk1 Use GTK-1.2.x instead of GKT-2.x for gtk-wcalc.
-wrap
-wx
-x11 Enable X11 support.
-xaw Enable Xaw support.
-xface
-xft
-xft2
-xlockmore-allow-root Allow root to get access.
-xlockmore-dpms Use DPMS.
-xmlimportbugs
-xmms-eq
-xrender Enable Xrender support.
-xterm-256color Enable 256 color support.
-xterm-88color Enable 88 color support.
-xterm-luit Enable locale <> UTF encoding translation.
-xvid Enable usage of XVid codecs.
-zaptel
-zip
-ziplinks
diff --git a/mk/dirs.mk b/mk/dirs.mk
deleted file mode 100644
index 86eec480edf..00000000000
--- a/mk/dirs.mk
+++ /dev/null
@@ -1,69 +0,0 @@
-# $NetBSD: dirs.mk,v 1.6 2004/12/24 10:06:41 jmmv Exp $
-#
-
-.if !defined(DIRS_MK)
-DIRS_MK= # defined
-
-_USE_GNOME1_DIRS= # empty
-_USE_GNOME2_DIRS= # empty
-_USE_THEME_DIRS= # empty
-_USE_XDG_DIRS= # empty
-_USE_XDG_X11_DIRS= # empty
-_USE_XFREE86_DIRS= # empty
-_USE_XORG_DIRS= # empty
-
-.for dir in ${USE_DIRS}
-pkg:= ${dir:C/-[^-]*$//}
-ver:= ${dir:C/^.*-//}
-
-. if ${pkg} == "gnome1" && ${_USE_GNOME1_DIRS} < ${ver}
-_USE_GNOME1_DIRS:= ${ver}
-. elif ${pkg} == "gnome2" && ${_USE_GNOME2_DIRS} < ${ver}
-_USE_GNOME2_DIRS:= ${ver}
-. elif ${pkg} == "theme" && ${_USE_THEME_DIRS} < ${ver}
-_USE_THEME_DIRS:= ${ver}
-. elif ${pkg} == "xdg" && ${_USE_XDG_DIRS} < ${ver} && !defined(USE_X11BASE)
-_USE_XDG_DIRS:= ${ver}
-. elif ${pkg} == "xdg-x11" && ${_USE_XDG_X11_DIRS} < ${ver} && \
- defined(USE_X11BASE)
-_USE_XDG_X11_DIRS:= ${ver}
-. elif ${pkg} == "XFree86" && ${_USE_XFREE86_DIRS} < ${ver}
-_USE_XFREE86_DIRS:= ${ver}
-. elif ${pkg} == "xorg" && ${_USE_XORG_DIRS} < ${ver}
-_USE_XORG_DIRS:= ${ver}
-. endif
-
-.endfor
-.undef ver
-.undef pkg
-.undef dir
-
-.if !empty(_USE_GNOME1_DIRS)
-. include "../../misc/gnome1-dirs/dirs.mk"
-.endif
-
-.if !empty(_USE_GNOME2_DIRS)
-. include "../../misc/gnome2-dirs/dirs.mk"
-.endif
-
-.if !empty(_USE_THEME_DIRS)
-. include "../../misc/theme-dirs/dirs.mk"
-.endif
-
-.if !empty(_USE_XDG_DIRS)
-. include "../../misc/xdg-dirs/dirs.mk"
-.endif
-
-.if !empty(_USE_XDG_X11_DIRS)
-. include "../../misc/xdg-x11-dirs/dirs.mk"
-.endif
-
-.if !empty(_USE_XFREE86_DIRS)
-. include "../../misc/XFree86-dirs/dirs.mk"
-.endif
-
-.if !empty(_USE_XORG_DIRS)
-. include "../../misc/xorg-dirs/dirs.mk"
-.endif
-
-.endif # !defined(DIRS_MK)
diff --git a/mk/djbware.mk b/mk/djbware.mk
deleted file mode 100644
index ed9ab4a228d..00000000000
--- a/mk/djbware.mk
+++ /dev/null
@@ -1,91 +0,0 @@
-# $NetBSD: djbware.mk,v 1.11 2005/10/05 05:46:54 schmonz Exp $
-#
-# Makefile fragment for packages with djb-style build machinery
-#
-# Common functions provided:
-# * a boilerplate RESTRICTED clause
-# * typical defaults for BUILD_TARGET and INSTALL_TARGET
-# * typical values for conf-* files
-# * replace inline definitions of errno with "#include <errno.h>"
-#
-# TODO:
-# * centralize handling of third-party manpages
-# * centralize MASTER_SITES and SITES_foo
-# * centralize compiler hack for arm{,32}
-# * common install script for compatibility with default conf-home pathnames
-# * PKG_OPTIONS (default):
-# djbware-errno-hack (off)
-# djbware-pathname-compat (on)
-# inet6 (off)
-# pam (off)
-# * set RESTRICTED automatically iff patches or other mods are applied
-# * define "djb-nonlicense" and set LICENSE on affected packages
-# * be unrestricted by default for bulk builds
-#
-
-.if !defined(DJBWARE_MK)
-DJBWARE_MK= # defined
-
-DJB_RESTRICTED?= YES
-DJB_MAKE_TARGETS?= YES
-DJB_BUILD_TARGETS?= # empty
-DJB_INSTALL_TARGETS?= # empty
-DJB_CONFIG_PREFIX?= ${PREFIX}
-DJB_CONFIG_HOME?= conf-home
-DJB_CONFIG_CMDS?= ${DO_NADA}
-
-.if !empty(DJB_RESTRICTED:M[yY][eE][sS])
-RESTRICTED= "modified source and binaries may not be distributed"
-NO_BIN_ON_CDROM= ${RESTRICTED}
-NO_BIN_ON_FTP= ${RESTRICTED}
-.endif
-
-.if !empty(DJB_MAKE_TARGETS:M[yY][eE][sS])
-BUILD_TARGET?= it ${DJB_BUILD_TARGETS}
-INSTALL_TARGET?= setup check ${DJB_INSTALL_TARGETS}
-.endif
-
-.if !defined(NO_CONFIGURE) && !target(do-configure)
-do-configure:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- for i in conf-*; do ${CP} $${i} $${i}.orig_dist; done; \
- [ -f ${DJB_CONFIG_HOME} ] && \
- ${ECHO} ${DJB_CONFIG_PREFIX} > ${DJB_CONFIG_HOME}; \
- [ -f conf-cc ] && \
- ${ECHO} ${CC:Q} ${CFLAGS:Q} > conf-cc; \
- [ -f conf-ld ] && \
- ${ECHO} ${CC:Q} ${_STRIPFLAG_CC} > conf-ld; \
- [ -f conf-bin ] && \
- ${ECHO} ${DJB_CONFIG_PREFIX}/bin > conf-bin; \
- [ -f conf-man ] && \
- ${ECHO} ${DJB_CONFIG_PREFIX}/man > conf-man; \
- [ -f conf-qmail ] && \
- ${ECHO} ${QMAILDIR} > conf-qmail; \
- [ -f conf-bgincs ] && \
- ${ECHO} ${LOCALBASE}/include/bglibs > conf-bgincs; \
- [ -f conf-bglibs ] && \
- ${ECHO} ${LOCALBASE}/lib/bglibs > conf-bglibs; \
- ${DJB_CONFIG_CMDS}
-.endif
-
-PKG_SUPPORTED_OPTIONS+= djbware-errno-hack
-PKG_SUGGESTED_OPTIONS+= djbware-errno-hack
-
-.include "../../mk/bsd.prefs.mk"
-
-.if exists(${PKGDIR}/options.mk)
-. include "${PKGDIR}/options.mk"
-.else
-PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGBASE}
-.include "../../mk/bsd.options.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Mdjbware-errno-hack)
-SUBST_CLASSES+= djbware
-SUBST_STAGE.djbware= do-configure
-SUBST_FILES.djbware= error.h
-SUBST_SED.djbware= -e 's|^extern\ int\ errno\;|\#include \<errno.h\>|'
-SUBST_MESSAGE.djbware= "Correcting definition of errno."
-.endif
-
-.endif # DJBWARE_MK
diff --git a/mk/dlopen.buildlink3.mk b/mk/dlopen.buildlink3.mk
deleted file mode 100644
index b7f29e659e7..00000000000
--- a/mk/dlopen.buildlink3.mk
+++ /dev/null
@@ -1,44 +0,0 @@
-# $NetBSD: dlopen.buildlink3.mk,v 1.9 2005/06/26 13:11:22 minskim Exp $
-#
-# This Makefile fragment is included by package Makefiles and
-# buildlink3.mk files for the packages that use dlopen().
-#
-DLOPEN_BUILDLINK3_MK:= ${DLOPEN_BUILDLINK3_MK}+
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(DLOPEN_BUILDLINK3_MK:M+)
-CHECK_BUILTIN.dl:= yes
-.include "../../mk/dlopen.builtin.mk"
-CHECK_BUILTIN.dl:= no
-.endif # DLOPEN_BUILDLINK3_MK
-
-DL_AUTO_VARS?= no
-
-.if !empty(USE_BUILTIN.dl:M[yY][eE][sS])
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndl}
-BUILDLINK_PACKAGES+= dl
-BUILDLINK_BUILTIN_MK.dl= ../../mk/dlopen.builtin.mk
-BUILDLINK_AUTO_VARS.dl= ${DL_AUTO_VARS}
-.elif !empty(MACHINE_PLATFORM:MDarwin-[56].*)
-. include "../../devel/dlcompat/buildlink3.mk"
-BUILDLINK_AUTO_VARS.dlcompat= ${DL_AUTO_VARS}
-.else
-PKG_SKIP_REASON= "${PKGNAME} requires a working dlopen()."
-.endif
-
-.if !empty(DLOPEN_BUILDLINK3_MK:M+)
-#
-# Define user-visible DL_{CFLAGS,LDFLAGS,LIBS} as compiler options used
-# to compile/link code that uses dl*() functions.
-#
-DL_CFLAGS= ${BUILDLINK_CFLAGS.dl}
-DL_LDFLAGS= ${BUILDLINK_LDFLAGS.dl}
-DL_LIBS= ${BUILDLINK_LIBS.dl}
-CONFIGURE_ENV+= DL_CFLAGS="${DL_CFLAGS}"
-CONFIGURE_ENV+= DL_LDFLAGS="${DL_LDFLAGS}"
-CONFIGURE_ENV+= DL_LIBS="${DL_LIBS}"
-MAKE_ENV+= DL_CFLAGS="${DL_CFLAGS}"
-MAKE_ENV+= DL_LDFLAGS="${DL_LDFLAGS}"
-MAKE_ENV+= DL_LIBS="${DL_LIBS}"
-.endif # DLOPEN_BUILDLINK3_MK
diff --git a/mk/dlopen.builtin.mk b/mk/dlopen.builtin.mk
deleted file mode 100644
index 16c77b3ba83..00000000000
--- a/mk/dlopen.builtin.mk
+++ /dev/null
@@ -1,102 +0,0 @@
-# $NetBSD: dlopen.builtin.mk,v 1.14 2005/06/26 13:11:22 minskim Exp $
-
-BUILTIN_PKG:= dl
-
-BUILTIN_FIND_LIBS:= dl
-BUILTIN_FIND_FILES_VAR:= H_DL
-BUILTIN_FIND_FILES.H_DL= /usr/include/dlfcn.h \
- /opt/gcc.3.3/include/dlfcn.h
-
-.include "../../mk/buildlink3/bsd.builtin.mk"
-
-###
-### Determine if there is a built-in implementation of the package and
-### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
-###
-.if !defined(IS_BUILTIN.dl)
-IS_BUILTIN.dl= no
-. if empty(H_DL:M${LOCALBASE}/*) && exists(${H_DL})
-IS_BUILTIN.dl= yes
-. endif
-.endif
-MAKEVARS+= IS_BUILTIN.dl
-
-###
-### Determine whether we should use the built-in implementation if it
-### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
-###
-#
-# We ignore the value of PREFER_PKGSRC and PREFER_NATIVE because for
-# every platform except for Darwin-[56].*, we can only use the built-in
-# dynamic linker functions, so USE_BUILTIN.dl must match IS_BUILTIN.dl.
-#
-.if !defined(USE_BUILTIN.dl)
-USE_BUILTIN.dl= ${IS_BUILTIN.dl}
-. if !empty(MACHINE_PLATFORM:MDarwin-[56].*)
-USE_BUILTIN.dl= no # Darwin-[56].* uses devel/dlcompat
-. endif
-.endif
-MAKEVARS+= USE_BUILTIN.dl
-
-# The following platforms require pthreads to be linked into the
-# application if it uses dlopen() or else the applications will core
-# dump when they dlopen a shared module that _is_ linked with pthread
-# support.
-#
-_BLNK_DLOPEN_REQUIRE_PTHREAD_PLATFORMS= \
- NetBSD-2.[0-9]_*-* \
- NetBSD-2.[0-9]-* NetBSD-2.[0-9].[0-9]*-* \
- NetBSD-2.[0-8][0-9]*-* NetBSD-2.9[0-8]*-* \
- NetBSD-2.99.[0-9]-* NetBSD-2.99.10-*
-
-.if !defined(_BLNK_DLOPEN_REQUIRE_PTHREADS)
-_BLNK_DLOPEN_REQUIRE_PTHREADS?= no
-. for _pattern_ in ${_BLNK_DLOPEN_REQUIRE_PTHREAD_PLATFORMS}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-. if !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
-_BLNK_DLOPEN_REQUIRE_PTHREADS= yes
-. endif
-. endif
-. endfor
-.endif
-MAKEVARS+= _BLNK_DLOPEN_REQUIRE_PTHREADS
-#
-# DLOPEN_REQUIRE_PTHREADS is a user- and package-settable yes/no variable
-# whose value decides whether pthread.buildlink3.mk is automatically
-# included or not. Its default value depends on whether native
-# pthreads exist.
-#
-.if defined(DLOPEN_REQUIRE_PTHREADS)
-_BLNK_DLOPEN_REQUIRE_PTHREADS:= ${DLOPEN_REQUIRE_PTHREADS}
-.else
-DLOPEN_REQUIRE_PTHREADS= ${_BLNK_DLOPEN_REQUIRE_PTHREADS}
-.endif
-
-###
-### The section below only applies if we are not including this file
-### solely to determine whether a built-in implementation exists.
-###
-CHECK_BUILTIN.dl?= no
-.if !empty(CHECK_BUILTIN.dl:M[nN][oO])
-
-. if !empty(USE_BUILTIN.dl:M[yY][eE][sS])
-BUILDLINK_PREFIX.dl= /usr
-. if !empty(BUILTIN_LIB_FOUND.dl:M[yY][eE][sS])
-#
-# No need to add this to BUILDLINK_LIBS.dl since most GNU configure
-# scripts already check for -ldl themselves.
-#
-BUILDLINK_LDADD.dl= -ldl
-. endif
-. if !empty(_BLNK_DLOPEN_REQUIRE_PTHREADS:M[yY][eE][sS])
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-. include "../../mk/pthread.buildlink3.mk"
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
-. include "../../mk/pthread.builtin.mk"
-BUILDLINK_CFLAGS.dl+= ${PTHREAD_CFLAGS}
-BUILDLINK_LDFLAGS.dl+= ${PTHREAD_LDFLAGS}
-BUILDLINK_LIBS.dl+= ${PTHREAD_LIBS}
-. endif
-. endif
-
-.endif # CHECK_BUILTIN.dl
diff --git a/mk/emacs.mk b/mk/emacs.mk
deleted file mode 100644
index 3f290a0ee7c..00000000000
--- a/mk/emacs.mk
+++ /dev/null
@@ -1,334 +0,0 @@
-# $NetBSD: emacs.mk,v 1.22 2005/09/01 22:23:41 rillig Exp $
-#
-# This Makefile fragment handles Emacs Lisp Packages (== ELPs).
-#
-# Note to users:
-#
-# * Users choose one favoriate Emacs version (default GNU Emacs 21).
-#
-# * Emacs Lisp files are installed...
-# GNU emacs
-# -> ${PREFIX}/share/emacs/site-lisp/foo/...
-# XEmacs
-# ->${PREFIX}/lib/xemacs/site-packages/lisp/foo/...
-#
-# * You can't install an ELP for both Emacs and XEmacs
-# simultaneously.
-#
-# * XEmacs package's names are prefix'ed by "xemacs-".
-#
-# Note to package developers:
-#
-# * XEmacs package's names are prefix'ed by "xemacs-".
-#
-# This is to make sure ELPs for XEmacs keep their own dependency
-# tree (for example, if an ELP "bar" depends on another ELP "foo",
-# "xemacs-bar" depends on "xemacs-foo". "foo" (installed for GNU
-# Emacs) is useless for "xemacs-bar" in this case.).
-#
-# Make sure too that "foo" and "xemacs-foo" conflict each other,
-# since they can share some files. (Making all ELPs separately
-# installable for GNU Emacs/XEmacs might be possible.)
-#
-# * Assume each ELP supports all Emacs versions by default. If the
-# ELP supports only certain Emacs versions, define EMACS_VERSIONS
-# _ACCEPTED explicitly before including mk/emacs.mk.
-#
-# Variables for users:
-#
-# EMACS_TYPE
-# Description:
-# The user's favoriate Emacs version.
-# Possible values:
-# emacs21, emacs21nox, emacs20, xemacs215, xemacs214
-# Default value:
-# emacs21
-#
-# Variables ELPs can provide:
-#
-# EMACS_USE_LEIM
-# Description:
-# Set if the ELP wants LEIM support.
-# Possible values:
-# <undefined>, <defined>
-# Default value:
-# <undefined>
-#
-# EMACS_VERSIONS_ACCEPTED
-# Description:
-# Versions the ELP accepts (supports).
-# Possible values:
-# emacs21, emacs21nox, emacs20, xemacs215, xemacs214
-# Default value:
-# emacs21, emacs21nox, emacs20, xemacs215, xemacs214
-# REPLACE_EMACS
-# Description:
-# If set, correct the #!/path/to/emacs line in the
-# specified files.
-# Possible values:
-# <a list of files relative to ${WRKDIR}>
-# Default value:
-# <undefined>
-#
-# Variables provided for ELPs:
-#
-# EMACS_BIN
-# Description:
-# Path to Emacs executable.
-# Possible values:
-# ${PREFIX}/bin/emacs, ${PREFIX}/bin/xemacs
-#
-# EMACS_ETCPREFIX
-# Description:
-# Path to the directory misc. files should be
-# installed into. ELPs should append a short
-# name as a subdirectory.
-# Possible values:
-# ${PREFIX}/share
-# ${PREFIX}/lib/xemacs/site-packages/etc
-#
-# EMACS_FLAVOR
-# Description:
-# GNU Emacs (emacs) or XEmacs (xemacs).
-# Possible values:
-# emacs, xemacs
-#
-# EMACS_INFOPREFIX
-# Description:
-# Path to the directory Info files should be
-# installed into. Unlike EMACS_ETCPREFIX or
-# EMACS_LISPPREFIX, subdirectory is not needed.
-# Possible values:
-# ${PREFIX}/info
-# ${PREFIX}/lib/xemacs/site-packages/info
-#
-# EMACS_LISPPREFIX
-# Description:
-# Path to the directory Emacs lisp files should be
-# installed into. ELPs should append a short name
-# as a subdirectory.
-# Possible values:
-# ${PREFIX}/share/emacs/site-lisp
-# ${PREFIX}/lib/xemacs/site-packages/lisp
-#
-# EMACS_PKGNAME_PREFIX
-# Description:
-# The prefix of PKGNAME and DEPENDS lines. All ELPs
-# must honour this!
-# Possible values:
-# "", "xemacs-"
-#
-# Variables provided in ELPs' PLIST:
-#
-# EMACS_ETCPREFIX
-# Description:
-# Same as the one in Makefile, except that
-# ${PREFIX} is omitted in PLIST.
-# Possible values:
-# share
-# lib/xemacs/site-packages/etc
-#
-# EMACS_INFOPREFIX
-# Description:
-# Same as the one in Makefile, except that
-# ${PREFIX} is omitted in PLIST.
-# Possible values:
-# info
-# lib/xemacs/site-packages/info
-#
-# EMACS_LISPPREFIX
-# Description:
-# Same as the one in Makefile, except that
-# ${PREFIX} is omitted in PLIST.
-# Possible values:
-# share/emacs/site-lisp
-# lib/xemacs/site-packages/lisp
-#
-# EMACS_VERSION
-# Description:
-# XXX
-# Possible values:
-# XXX
-#
-# FOR_{emacs,emacs21,emacs21nox,emacs20,xemacs,xemacs215,xemacs214}
-# Description:
-# These macros will become either an empty string or
-# "@comment" depending on the Emacs version; when
-# "emacs21" is used, ${FOR_emacs} and ${FOR_emacs21}
-# become "" (empty), and other macros become
-# "@comment"; thie means that only the PLIST lines
-# prefixed by ${FOR_emacs} and ${FOR_emacs21} are
-# valid.
-# Possible values:
-# "", "@comment"
-#
-# NOTFOR_{emacs,emacs21,emacs21nox,emacs20,xemacs,xemacs215,xemacs214}
-# Description:
-# The opposite of FOR_*. See above.
-# Possible values:
-# "", "@comment"
-#
-
-.if !defined(EMACS_MK)
-EMACS_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-#
-# Constants
-#
-
-_EMACS_VERSIONS_ALL= \
- emacs21 emacs21nox xemacs214 emacs20 xemacs215
-_EMACS_VERSIONS_ACCEPTED_DEFAULT= ${_EMACS_VERSIONS_ALL}
-_EMACS_VERSION_DEFAULT.emacs= emacs21
-_EMACS_VERSION_DEFAULT.xemacs= xemacs214
-_EMACS_REQD.emacs20= emacs>=20.7
-_EMACS_REQD.emacs21= emacs>=21.2
-_EMACS_REQD.emacs21nox= emacs-nox11>=21.2
-_EMACS_REQD.xemacs214= xemacs>=21.4
-_EMACS_REQD.xemacs215= xemacs>=21.5
-_EMACS_REQD.leim20= leim>=20.7
-_EMACS_REQD.leim21= leim>=21.2
-_EMACS_DEP.emacs20= ../../editors/emacs20
-_EMACS_DEP.emacs21= ../../editors/emacs
-_EMACS_DEP.emacs21nox= ../../editors/emacs-nox11
-_EMACS_DEP.xemacs214= ../../editors/xemacs
-_EMACS_DEP.xemacs215= ../../editors/xemacs-current
-_EMACS_DEP.leim20= ../../editors/leim20
-_EMACS_DEP.leim21= ../../editors/leim
-
-#
-# Version decision
-#
-# 1. Pick up an emacs version.
-#
-# if (user want a specific version)
-# if (the specified version is "emacs" or "xemacs")
-# fall into recommended versions (i.e. "emacs21" or
-# "xemacs214";
-# use the specified version;
-# else
-# use "emacs21" by default;
-# add a dependency to the version;
-#
-# 2. Check if a given package can be used for the emacs version.
-#
-# if (package accepts the emacs version)
-# nothing to do;
-# else
-# abort;
-#
-
-.if !empty(EMACS_TYPE:Memacs) || !empty(EMACS_TYPE:Mxemacs)
-_EMACS_TYPE= ${_EMACS_VERSION_DEFAULT.${EMACS_TYPE}}
-.endif
-_EMACS_TYPE?= ${EMACS_TYPE}
-
-.if !empty(_EMACS_TYPE:Nxemacs*)
-. if !empty(_EMACS_TYPE:N*nox)
-_EMACS_PKGBASE= emacs
-. else
-_EMACS_PKGBASE= emacs-nox11
-. endif
-.else
-. if !empty(_EMACS_TYPE:N*nox)
-_EMACS_PKGBASE= xemacs
-. else
-_EMACS_PKGBASE= xemacs-nox11
-. endif
-.endif
-
-_EMACS_VERSION_CMD!= ${PKG_INFO} -e "${_EMACS_PKGBASE}" || ${ECHO}
-.if ${_EMACS_VERSION_CMD} != ""
-_EMACS_VERSION_FULL= ${_EMACS_VERSION_CMD}
-_EMACS_VERSION= ${_EMACS_VERSION_FULL:C/^${_EMACS_PKGBASE}-//}
-_EMACS_VERSION_MAJOR= ${_EMACS_VERSION:C/\..*//}
-_EMACS_VERSION_MINOR= ${_EMACS_VERSION:C/^[0-9]*\.//:C/[^0-9].*//}
-_EMACS_VERSION_NOREV= ${_EMACS_VERSION:C/[a-z]*$//}
-_EMACS_VERSION_ISMATCH!= \
- dep="${_EMACS_REQD.${_EMACS_TYPE}:Q}"; \
- ${PKG_ADMIN} pmatch "$$dep" "${_EMACS_PKGBASE}"; \
- if [ $$? = 0 ]; then ${ECHO} "yes"; else ${ECHO} "no"; fi
-.endif
-
-EMACS_VERSIONS_ACCEPTED?= ${_EMACS_VERSIONS_ACCEPTED_DEFAULT}
-
-.if empty(EMACS_VERSIONS_ACCEPTED:M${_EMACS_TYPE})
-PKG_FAIL_REASON+= "Accepted versions are: ${EMACS_VERSIONS_ACCEPTED}"
-PKG_FAIL_REASON+= "No valid Emacs version installed found"
-.endif
-
-#
-# Dependencies and conflicts
-#
-
-DEPENDS+= ${_EMACS_REQD.${_EMACS_TYPE}}:${_EMACS_DEP.${_EMACS_TYPE}}
-.if defined(EMACS_USE_LEIM)
-. if !empty(_EMACS_TYPE:Nxemacs*:Nemacs20*)
-DEPENDS+= ${_EMACS_REQD.leim21}:${_EMACS_DEP.leim21}
-. else
-DEPENDS+= ${_EMACS_REQD.leim20}:${_EMACS_DEP.leim20}
-. endif
-.endif
-.if !empty(_EMACS_TYPE:Nxemacs*)
-CONFLICTS+= xemacs-${PKGBASE}-[0-9]*
-.else
-CONFLICTS+= ${PKGBASE:C|^xemacs-||}-[0-9]*
-.endif
-
-#
-# Macros for packages
-#
-
-EMACS_FLAVOR= ${_EMACS_TYPE:C|nox||:C|[0-9].*||}
-EMACS_BIN= ${PREFIX}/bin/${EMACS_FLAVOR}
-.if ${EMACS_FLAVOR} == "emacs"
-EMACS_ETCPREFIX= ${PREFIX}/share
-EMACS_INFOPREFIX= ${PREFIX}/info
-EMACS_LISPPREFIX= ${PREFIX}/share/emacs/site-lisp
-EMACS_PKGNAME_PREFIX=
-.else
-EMACS_ETCPREFIX= ${PREFIX}/lib/xemacs/site-packages/etc
-EMACS_INFOPREFIX= ${PREFIX}/lib/xemacs/site-packages/info
-EMACS_LISPPREFIX= ${PREFIX}/lib/xemacs/site-packages/lisp
-EMACS_PKGNAME_PREFIX= xemacs-
-.endif
-
-_EMACS_FOR.emacs= "@comment "
-_EMACS_FOR.emacs21= "@comment "
-_EMACS_FOR.emacs21nox= "@comment "
-_EMACS_FOR.emacs20= "@comment "
-_EMACS_FOR.xemacs= "@comment "
-_EMACS_FOR.xemacs215= "@comment "
-_EMACS_FOR.xemacs214= "@comment "
-_EMACS_NOTFOR.emacs= ""
-_EMACS_NOTFOR.emacs21= ""
-_EMACS_NOTFOR.emacs21nox= ""
-_EMACS_NOTFOR.emacs20= ""
-_EMACS_NOTFOR.xemacs= ""
-_EMACS_NOTFOR.xemacs215= ""
-_EMACS_NOTFOR.xemacs214= ""
-_EMACS_FOR.${EMACS_FLAVOR}= ""
-_EMACS_FOR.${_EMACS_TYPE}= ""
-_EMACS_NOTFOR.${EMACS_FLAVOR}= "@comment "
-_EMACS_NOTFOR.${_EMACS_TYPE}= "@comment "
-
-PLIST_SUBST+= EMACS_VERSION=${_EMACS_VERSION_NOREV}
-PLIST_SUBST+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||}
-PLIST_SUBST+= FOR_emacs=${_EMACS_FOR.emacs}
-PLIST_SUBST+= FOR_emacs21=${_EMACS_FOR.emacs21}
-PLIST_SUBST+= FOR_emacs21nox=${_EMACS_FOR.emacs21nox}
-PLIST_SUBST+= FOR_emacs20=${_EMACS_FOR.emacs20}
-PLIST_SUBST+= FOR_xemacs=${_EMACS_FOR.xemacs}
-PLIST_SUBST+= FOR_xemacs215=${_EMACS_FOR.xemacs215}
-PLIST_SUBST+= FOR_xemacs214=${_EMACS_FOR.xemacs214}
-PLIST_SUBST+= NOTFOR_emacs=${_EMACS_NOTFOR.emacs}
-PLIST_SUBST+= NOTFOR_emacs21=${_EMACS_NOTFOR.emacs21}
-PLIST_SUBST+= NOTFOR_emacs21nox=${_EMACS_NOTFOR.emacs21nox}
-PLIST_SUBST+= NOTFOR_emacs20=${_EMACS_NOTFOR.emacs20}
-PLIST_SUBST+= NOTFOR_xemacs=${_EMACS_NOTFOR.xemacs}
-PLIST_SUBST+= NOTFOR_xemacs215=${_EMACS_NOTFOR.xemacs215}
-PLIST_SUBST+= NOTFOR_xemacs214=${_EMACS_NOTFOR.xemacs214}
-
-.endif # EMACS_MK
diff --git a/mk/endian.mk b/mk/endian.mk
deleted file mode 100644
index f08b5ac6b04..00000000000
--- a/mk/endian.mk
+++ /dev/null
@@ -1,51 +0,0 @@
-# $NetBSD: endian.mk,v 1.4 2005/04/30 03:01:06 jlam Exp $
-#
-# Determine the endianness of the platform by checking header files.
-#
-# This file is used as follows:
-#
-# .include "../../mk/endian.mk"
-#
-# .if ${MACHINE_ENDIAN} == "big"
-# # ...big endian stuff...
-# .elif ${MACHINE_ENDIAN} == "little"
-# # ...little endian stuff...
-# .else
-# BROKEN= "Unknown endianness"
-# .endif
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !defined(MACHINE_ENDIAN)
-. if exists(/usr/include/endian.h)
-_ENDIAN_H= /usr/include/endian.h # Linux
-. elif exists(/usr/include/sys/endian.h)
-_ENDIAN_H= /usr/include/sys/endian.h # NetBSD>=1.5
-. elif exists(/usr/include/machine/endian.h)
-_ENDIAN_H= /usr/include/machine/endian.h # NetBSD<1.5
-. elif exists(/usr/include/sys/byteorder.h)
-_ENDIAN_H= /usr/include/sys/byteorder.h # Solaris
-. else
-_ENDIAN_H= /dev/null
-. endif
-
-MACHINE_ENDIAN!= \
- { ${ECHO} "\#include <${_ENDIAN_H}>"; \
- ${ECHO} "\#ifndef BYTE_ORDER"; \
- ${ECHO} "\#ifdef _BIG_ENDIAN"; \
- ${ECHO} "\#define BYTE_ORDER 4321"; \
- ${ECHO} "\#else"; \
- ${ECHO} "\#define BYTE_ORDER 1234"; \
- ${ECHO} "\#endif"; \
- ${ECHO} "\#endif"; \
- ${ECHO} "BYTE_ORDER"; } | ${CC} -E - | \
- { while read line; do \
- case $$line in \
- 1234) ${ECHO} "little"; exit 0 ;; \
- 4321) ${ECHO} "big"; exit 0 ;; \
- esac; \
- done; \
- ${ECHO} "unknown"; }
-
-MAKEFLAGS+= MACHINE_ENDIAN=${MACHINE_ENDIAN:Q}
-.endif
diff --git a/mk/fam.buildlink3.mk b/mk/fam.buildlink3.mk
deleted file mode 100644
index 7f0a0cc1b3c..00000000000
--- a/mk/fam.buildlink3.mk
+++ /dev/null
@@ -1,54 +0,0 @@
-# $NetBSD: fam.buildlink3.mk,v 1.4 2005/09/03 21:34:19 jlam Exp $
-#
-# This Makefile fragment is meant to be included by packages that
-# require a FAM implementation. fam.buildlink3.mk will:
-#
-# * set FAMBASE to the base directory of the FAM files;
-# * set FAM_TYPE to the FAM implementation used.
-#
-# There are two variables that can be used to tweak the selection of
-# the FAM implementation:
-#
-# FAM_DEFAULT is a user-settable variable whose value is the default
-# FAM implementation to use.
-#
-# FAM_ACCEPTED is a package-settable list of FAM implementations that
-# may be used by the package.
-
-MK_FAM_BUILDLINK3_MK:= ${MK_FAM_BUILDLINK3_MK}+
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(MK_FAM_BUILDLINK3_MK:M+)
-FAM_DEFAULT?= fam
-FAM_ACCEPTED?= ${_FAM_PKGS}
-
-# This is an exhaustive list of all of the FAM implementations that may
-# be used with fam.buildlink3.mk, in order of precedence.
-#
-_FAM_PKGS?= fam gamin
-
-_FAM_DEFAULT= ${FAM_DEFAULT}
-_FAM_ACCEPTED= ${FAM_ACCEPTED}
-
-_FAM_TYPE?= ${_FAM_DEFAULT}
-
-. if !empty(_FAM_ACCEPTED:M${_FAM_TYPE})
-FAM_TYPE= ${_FAM_TYPE}
-. else
-FAM_TYPE= none
-. endif
-FAMBASE= ${BUILDLINK_PREFIX.${FAM_TYPE}}
-
-BUILD_DEFS+= FAM_TYPE
-BUILD_DEFS+= FAMBASE
-.endif # MK_FAM_BUILDLINK3_MK
-
-.if ${FAM_TYPE} == "none"
-PKG_FAIL_REASON= \
- "${_FAM_TYPE} is not an acceptable FAM type for ${PKGNAME}."
-.elif ${FAM_TYPE} == "fam"
-. include "../../sysutils/fam/buildlink3.mk"
-.elif ${FAM_TYPE} == "gamin"
-. include "../../sysutils/gamin/buildlink3.mk"
-.endif
diff --git a/mk/find-prefix.mk b/mk/find-prefix.mk
deleted file mode 100644
index dfc47fd4afc..00000000000
--- a/mk/find-prefix.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-# $NetBSD: find-prefix.mk,v 1.3 2005/05/13 23:37:54 jlam Exp $
-#
-# This is a "subroutine" that can be included to find the installation
-# prefix of a package.
-#
-# The input variable is FIND_PREFIX, which is a list of VARNAME=<package>
-# pairs, where "VARNAME" is the variable that will be set to the
-# installation prefix for the package, and <package> is the ${PKGNAME}
-# for the package.
-#
-# An example use is:
-#
-# FIND_PREFIX:= M4DIR=gm4
-# .include "../../mk/find-prefix.mk"
-# # ${M4DIR} now contains the installation prefix for the "gm4" package
-#
-
-.for _def_ in ${FIND_PREFIX}
-. if !defined(${_def_:C/=.*$//})
-${_def_:C/=.*$//}_DEFAULT?= ${LOCALBASE}
-_${_def_:C/=.*$//}_cmd= \
- ${PKG_INFO} -qp ${_def_:C/^.*=//} 2>/dev/null | \
- { read cmd arg; \
- case "$$arg" in \
- "") ${ECHO} ${${_def_:C/=.*$//}_DEFAULT:Q} ;; \
- *) ${ECHO} "$$arg" ;; \
- esac; }
-${_def_:C/=.*$//}= ${_${_def_:C/=.*$//}_cmd:sh}
-. endif
-MAKEVARS+= ${_def_:C/=.*$//}
-.endfor
-.undef _def_
diff --git a/mk/fonts.mk b/mk/fonts.mk
deleted file mode 100644
index 94fd177e943..00000000000
--- a/mk/fonts.mk
+++ /dev/null
@@ -1,60 +0,0 @@
-# $NetBSD: fonts.mk,v 1.6 2004/12/28 14:38:03 wiz Exp $
-#
-# This Makefile fragment is intended to be included by packages that install
-# fonts (most of them in the fonts category). It takes care of updating the
-# fonts.dir files at install/deinstall time.
-#
-# The following variables need to be defined by packages using fonts.mk:
-#
-# FONTS_<TYPE>_DIRS - Whitespaced list of directories where the font database
-# is updated. If empty, nothing is done for this TYPE.
-#
-# Supported TYPEs: TTF, TYPE1, X11.
-#
-
-.if !defined(FONTS_MK)
-FONTS_MK= # defined
-
-# TrueType fonts
-FONTS_TTF_DIRS?=
-# Type1 fonts
-FONTS_TYPE1_DIRS?=
-# Generic X fonts (PCF, SNF, BDF)
-FONTS_X11_DIRS?=
-
-.if !empty(FONTS_TTF_DIRS) || !empty(FONTS_TYPE1_DIRS) || !empty(FONTS_X11_DIRS)
-
-USE_PKGINSTALL= YES
-HEADER_EXTRA_TMPL+= ${.CURDIR}/../../mk/install/fonts
-
-.if !empty(FONTS_TTF_DIRS)
-EVAL_PREFIX+= TTMKFDIR_PREFIX=ttmkfdir
-TTMKFDIR_PREFIX_DEFAULT= ${LOCALBASE}
-FILES_SUBST+= FONTS_TTF="YES"
-FILES_SUBST+= FONTS_TTF_DIRS="${FONTS_TTF_DIRS}"
-FILES_SUBST+= TTMKFDIR="${TTMKFDIR_PREFIX}/bin/ttmkfdir"
-DEPENDS+= ttmkfdir2>=20021109:../../fonts/ttmkfdir2
-# also need to run mkfontdir there
-FONTS_X11_DIRS+= ${FONTS_TTF_DIRS}
-.endif
-
-.if !empty(FONTS_TYPE1_DIRS)
-EVAL_PREFIX+= TYPE1INST_PREFIX=type1inst
-TYPE1INST_PREFIX_DEFAULT= ${LOCALBASE}
-FILES_SUBST+= FONTS_TYPE1="YES"
-FILES_SUBST+= FONTS_TYPE1_DIRS="${FONTS_TYPE1_DIRS}"
-FILES_SUBST+= TYPE1INST="${TYPE1INST_PREFIX}/bin/type1inst"
-DEPENDS+= type1inst>=0.6.1:../../fonts/type1inst
-# also need to run mkfontdir there
-FONTS_X11_DIRS+= ${FONTS_TYPE1_DIRS}
-.endif
-
-.if !empty(FONTS_X11_DIRS)
-FILES_SUBST+= FONTS_X11="YES"
-FILES_SUBST+= FONTS_X11_DIRS="${FONTS_X11_DIRS}"
-FILES_SUBST+= MKFONTDIR="${X11BASE}/bin/mkfontdir"
-.endif
-
-.endif
-
-.endif # FONTS_MK
diff --git a/mk/ghostscript.mk b/mk/ghostscript.mk
deleted file mode 100644
index cfecd85b83f..00000000000
--- a/mk/ghostscript.mk
+++ /dev/null
@@ -1,105 +0,0 @@
-# $NetBSD: ghostscript.mk,v 1.14 2005/10/12 19:24:20 abs Exp $
-#
-# This Makefile fragment is included by packages that require a run-time
-# dependency on a ghostscript Postscript interpreter.
-#
-# To use this Makefile fragment, simply:
-#
-# (1) Optionally set GHOSTSCRIPT_REQD to the minimum version number of
-# Ghostscript required by the package,
-# (2) Optionally set USE_GHOSTSCRIPT to "build" to only add a build-time
-# dependency on Ghostscript,
-# (3) And include this Makefile fragment in the package Makefile,
-
-.include "../../mk/bsd.prefs.mk"
-
-GHOSTSCRIPT_REQD?= 6.01
-USE_GHOSTSCRIPT?= run
-
-.if defined(NO_X11)
-. if defined(USE_CUPS) && !empty(USE_CUPS:M[Yy][Ee][Ss])
-_GS_PKGSRCDIR?= ../../print/ghostscript-esp-nox11
-. else
-_GS_PKGSRCDIR?= ../../print/ghostscript-gnu-nox11
-. endif
-.else
-. if defined(USE_CUPS) && !empty(USE_CUPS:M[Yy][Ee][Ss])
-_GS_PKGSRCDIR?= ../../print/ghostscript-esp
-. else
-_GS_PKGSRCDIR?= ../../print/ghostscript-gnu
-. endif
-.endif
-
-_VALID_GS= # empty
-
-# ghostscript-afpl satisfies ${GHOSTSCRIPT_REQD}<=7.07.1
-#
-.for _gs_pattern_ in [0-6].* 7.0 7.0[1-6]* 7.07 7.07.1
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript-afpl>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript-afpl>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-# ghostscript-esp{,-x11,-nox11} satisfies ${GHOSTSCRIPT_REQD}<=7.07.1
-#
-.for _gs_pattern_ in [0-6].* 7.0 7.0[1-6]* 7.07 7.07.1
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript-esp>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript-esp>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-esp-nox11>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-# ghostscript-gnu{,-x11,-nox11} satisfies ${GHOSTSCRIPT_REQD}<=7.07
-#
-.for _gs_pattern_ in [0-6].* 7.0 7.0[1-6]* 7.07
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript-gnu>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-gnu-x11>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript-gnu>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-gnu-x11>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-gnu-nox11>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-# ghostscript{,-nox11} satisfies ${GHOSTSCRIPT_REQD}<=6.01
-#
-.for _gs_pattern_ in [0-5].* 6.0 6.01
-. if !empty(GHOSTSCRIPT_REQD:M${_gs_pattern_})
-. if defined(USE_X11)
-_VALID_GS+= ghostscript>=${GHOSTSCRIPT_REQD}
-. else
-_VALID_GS+= ghostscript>=${GHOSTSCRIPT_REQD}
-_VALID_GS+= ghostscript-nox11>=${GHOSTSCRIPT_REQD}
-. endif
-. endif
-.endfor
-
-.if !defined(GHOSTSCRIPT_DEPENDS) && !empty(_VALID_GS)
-_GS_DEPENDS!= ${ECHO} '${_VALID_GS}' | ${SED} -e "s:^ *::" -e "s: :,:g"
-. if !empty(_GS_DEPENDS:M*,*)
-GHOSTSCRIPT_DEPENDS= {${_GS_DEPENDS}}:${_GS_PKGSRCDIR}
-. else
-GHOSTSCRIPT_DEPENDS= ${_GS_DEPENDS}:${_GS_PKGSRCDIR}
-. endif
-#MAKEFLAGS+= GHOSTSCRIPT_DEPENDS="${GHOSTSCRIPT_DEPENDS}"
-.endif
-
-.if (${USE_GHOSTSCRIPT} == "build")
-_GS_DEPMETHOD= BUILD_DEPENDS
-.else
-USE_GHOSTSCRIPT:= run
-_GS_DEPMETHOD= DEPENDS
-.endif
-
-${_GS_DEPMETHOD}+= ${GHOSTSCRIPT_DEPENDS}
diff --git a/mk/gnu-config/config.guess b/mk/gnu-config/config.guess
deleted file mode 100755
index 1e6f50b7da5..00000000000
--- a/mk/gnu-config/config.guess
+++ /dev/null
@@ -1,1463 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: config.guess,v 1.8 2004/08/14 19:13:55 schmonz Exp $
-#
-# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-
-timestamp='2004-06-11'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Per Bothner <per@bothner.com>.
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
-#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
- --version | -v )
- echo "$version" ; exit 0 ;;
- --help | --h* | -h )
- echo "$usage"; exit 0 ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help" >&2
- exit 1 ;;
- * )
- break ;;
- esac
-done
-
-if test $# != 0; then
- echo "$me: too many arguments$help" >&2
- exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int x;" > $dummy.c ;
- for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
- CC_FOR_BUILD="$c"; break ;
- fi ;
- done ;
- if test x"$CC_FOR_BUILD" = x ; then
- CC_FOR_BUILD=no_compiler_found ;
- fi
- ;;
- ,,*) CC_FOR_BUILD=$CC ;;
- ,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac ;'
-
-# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
-# (ghazi@noc.rutgers.edu 1994-08-24)
-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
- PATH=$PATH:/.attbin ; export PATH
-fi
-
-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
-UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
-# Note: order is significant - the case branches are not exclusive.
-
-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
- *:NetBSD:*:*)
- # NetBSD (nbsd) targets should (where applicable) match one or
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
- # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
- # switched to ELF, *-*-netbsd* would select the old
- # object file format. This provides both forward
- # compatibility and a consistent mechanism for selecting the
- # object file format.
- #
- # Note: NetBSD doesn't particularly care about the vendor
- # portion of the name. We always set it to "unknown".
- sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
- case "${UNAME_MACHINE_ARCH}" in
- armeb) machine=armeb-unknown ;;
- arm*) machine=arm-unknown ;;
- sh3el) machine=shl-unknown ;;
- sh3eb) machine=sh-unknown ;;
- sh5el) machine=sh5le-unknown ;;
- *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
- esac
- # The Operating System including object format, if it has switched
- # to ELF recently, or will in the future.
- case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
- eval $set_cc_for_build
- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep __ELF__ >/dev/null
- then
- # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
- # Return netbsd for either. FIX?
- os=netbsd
- else
- os=netbsdelf
- fi
- ;;
- *)
- os=netbsd
- ;;
- esac
- # The OS release
- # Debian GNU/NetBSD machines have a different userland, and
- # thus, need a distinct triplet. However, they do not need
- # kernel version information, so it can be replaced with a
- # suitable tag, in the style of linux-gnu.
- case "${UNAME_VERSION}" in
- Debian*)
- release='-gnu'
- ;;
- *)
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
- ;;
- esac
- # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
- # contains redundant information, the shorter form:
- # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}"
- exit 0 ;;
- amd64:OpenBSD:*:*)
- echo x86_64-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- amiga:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- arc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- cats:OpenBSD:*:*)
- echo arm-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- hp300:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- luna88k:OpenBSD:*:*)
- echo m88k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mac68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- macppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme88k:OpenBSD:*:*)
- echo m88k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvmeppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- pmax:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sgi:OpenBSD:*:*)
- echo mipseb-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sun3:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- wgrisc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- *:OpenBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- *:ekkoBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
- exit 0 ;;
- macppc:MirBSD:*:*)
- echo powerppc-unknown-mirbsd${UNAME_RELEASE}
- exit 0 ;;
- *:MirBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
- exit 0 ;;
- alpha:OSF1:*:*)
- case $UNAME_RELEASE in
- *4.0)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- ;;
- *5.*)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
- ;;
- esac
- # According to Compaq, /usr/sbin/psrinfo has been available on
- # OSF/1 and Tru64 systems produced since 1995. I hope that
- # covers most systems running today. This code pipes the CPU
- # types through head -n 1, so we only detect the type of CPU 0.
- ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
- case "$ALPHA_CPU_TYPE" in
- "EV4 (21064)")
- UNAME_MACHINE="alpha" ;;
- "EV4.5 (21064)")
- UNAME_MACHINE="alpha" ;;
- "LCA4 (21066/21068)")
- UNAME_MACHINE="alpha" ;;
- "EV5 (21164)")
- UNAME_MACHINE="alphaev5" ;;
- "EV5.6 (21164A)")
- UNAME_MACHINE="alphaev56" ;;
- "EV5.6 (21164PC)")
- UNAME_MACHINE="alphapca56" ;;
- "EV5.7 (21164PC)")
- UNAME_MACHINE="alphapca57" ;;
- "EV6 (21264)")
- UNAME_MACHINE="alphaev6" ;;
- "EV6.7 (21264A)")
- UNAME_MACHINE="alphaev67" ;;
- "EV6.8CB (21264C)")
- UNAME_MACHINE="alphaev68" ;;
- "EV6.8AL (21264B)")
- UNAME_MACHINE="alphaev68" ;;
- "EV6.8CX (21264D)")
- UNAME_MACHINE="alphaev68" ;;
- "EV6.9A (21264/EV69A)")
- UNAME_MACHINE="alphaev69" ;;
- "EV7 (21364)")
- UNAME_MACHINE="alphaev7" ;;
- "EV7.9 (21364A)")
- UNAME_MACHINE="alphaev79" ;;
- esac
- # A Pn.n version is a patched version.
- # A Vn.n version is a released version.
- # A Tn.n version is a released field test version.
- # A Xn.n version is an unreleased experimental baselevel.
- # 1.2 uses "1.2" for uname -r.
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit 0 ;;
- Alpha*:OpenVMS:*:*)
- echo alpha-hp-vms
- exit 0 ;;
- Alpha\ *:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # Should we change UNAME_MACHINE based on the output of uname instead
- # of the specific Alpha model?
- echo alpha-pc-interix
- exit 0 ;;
- 21064:Windows_NT:50:3)
- echo alpha-dec-winnt3.5
- exit 0 ;;
- Amiga*:UNIX_System_V:4.0:*)
- echo m68k-unknown-sysv4
- exit 0;;
- *:[Aa]miga[Oo][Ss]:*:*)
- echo ${UNAME_MACHINE}-unknown-amigaos
- exit 0 ;;
- *:[Mm]orph[Oo][Ss]:*:*)
- echo ${UNAME_MACHINE}-unknown-morphos
- exit 0 ;;
- *:OS/390:*:*)
- echo i370-ibm-openedition
- exit 0 ;;
- *:OS400:*:*)
- echo powerpc-ibm-os400
- exit 0 ;;
- arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
- echo arm-acorn-riscix${UNAME_RELEASE}
- exit 0;;
- SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
- echo hppa1.1-hitachi-hiuxmpp
- exit 0;;
- Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
- # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
- if test "`(/bin/universe) 2>/dev/null`" = att ; then
- echo pyramid-pyramid-sysv3
- else
- echo pyramid-pyramid-bsd
- fi
- exit 0 ;;
- NILE*:*:*:dcosx)
- echo pyramid-pyramid-svr4
- exit 0 ;;
- DRS?6000:unix:4.0:6*)
- echo sparc-icl-nx6
- exit 0 ;;
- DRS?6000:UNIX_SV:4.2*:7*)
- case `/usr/bin/uname -p` in
- sparc) echo sparc-icl-nx7 && exit 0 ;;
- esac ;;
- sun4H:SunOS:5.*:*)
- echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
- echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- i86pc:SunOS:5.*:*)
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- sun4*:SunOS:6*:*)
- # According to config.sub, this is the proper way to canonicalize
- # SunOS6. Hard to guess exactly what SunOS6 will be like, but
- # it's likely to be more like Solaris than SunOS4.
- echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- sun4*:SunOS:*:*)
- case "`/usr/bin/arch -k`" in
- Series*|S4*)
- UNAME_RELEASE=`uname -v`
- ;;
- esac
- # Japanese Language versions have a version number like `4.1.3-JL'.
- echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
- exit 0 ;;
- sun3*:SunOS:*:*)
- echo m68k-sun-sunos${UNAME_RELEASE}
- exit 0 ;;
- sun*:*:4.2BSD:*)
- UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
- test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
- case "`/bin/arch`" in
- sun3)
- echo m68k-sun-sunos${UNAME_RELEASE}
- ;;
- sun4)
- echo sparc-sun-sunos${UNAME_RELEASE}
- ;;
- esac
- exit 0 ;;
- aushp:SunOS:*:*)
- echo sparc-auspex-sunos${UNAME_RELEASE}
- exit 0 ;;
- # The situation for MiNT is a little confusing. The machine name
- # can be virtually everything (everything which is not
- # "atarist" or "atariste" at least should have a processor
- # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
- # to the lowercase version "mint" (or "freemint"). Finally
- # the system name "TOS" denotes a system which is actually not
- # MiNT. But MiNT is downward compatible to TOS, so this should
- # be no problem.
- atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
- atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
- *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
- milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit 0 ;;
- hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit 0 ;;
- *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit 0 ;;
- m68k:machten:*:*)
- echo m68k-apple-machten${UNAME_RELEASE}
- exit 0 ;;
- powerpc:machten:*:*)
- echo powerpc-apple-machten${UNAME_RELEASE}
- exit 0 ;;
- RISC*:Mach:*:*)
- echo mips-dec-mach_bsd4.3
- exit 0 ;;
- RISC*:ULTRIX:*:*)
- echo mips-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
- VAX*:ULTRIX*:*:*)
- echo vax-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
- 2020:CLIX:*:* | 2430:CLIX:*:*)
- echo clipper-intergraph-clix${UNAME_RELEASE}
- exit 0 ;;
- mips:*:*:UMIPS | mips:*:*:RISCos)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-#ifdef __cplusplus
-#include <stdio.h> /* for printf() prototype */
- int main (int argc, char *argv[]) {
-#else
- int main (argc, argv) int argc; char *argv[]; {
-#endif
- #if defined (host_mips) && defined (MIPSEB)
- #if defined (SYSTYPE_SYSV)
- printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
- #endif
- #if defined (SYSTYPE_SVR4)
- printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
- #endif
- #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
- printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
- #endif
- #endif
- exit (-1);
- }
-EOF
- $CC_FOR_BUILD -o $dummy $dummy.c \
- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
- && exit 0
- echo mips-mips-riscos${UNAME_RELEASE}
- exit 0 ;;
- Motorola:PowerMAX_OS:*:*)
- echo powerpc-motorola-powermax
- exit 0 ;;
- Motorola:*:4.3:PL8-*)
- echo powerpc-harris-powermax
- exit 0 ;;
- Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
- echo powerpc-harris-powermax
- exit 0 ;;
- Night_Hawk:Power_UNIX:*:*)
- echo powerpc-harris-powerunix
- exit 0 ;;
- m88k:CX/UX:7*:*)
- echo m88k-harris-cxux7
- exit 0 ;;
- m88k:*:4*:R4*)
- echo m88k-motorola-sysv4
- exit 0 ;;
- m88k:*:3*:R3*)
- echo m88k-motorola-sysv3
- exit 0 ;;
- AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
- if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
- then
- if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
- [ ${TARGET_BINARY_INTERFACE}x = x ]
- then
- echo m88k-dg-dgux${UNAME_RELEASE}
- else
- echo m88k-dg-dguxbcs${UNAME_RELEASE}
- fi
- else
- echo i586-dg-dgux${UNAME_RELEASE}
- fi
- exit 0 ;;
- M88*:DolphinOS:*:*) # DolphinOS (SVR3)
- echo m88k-dolphin-sysv3
- exit 0 ;;
- M88*:*:R3*:*)
- # Delta 88k system running SVR3
- echo m88k-motorola-sysv3
- exit 0 ;;
- XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
- echo m88k-tektronix-sysv3
- exit 0 ;;
- Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
- echo m68k-tektronix-bsd
- exit 0 ;;
- *:IRIX*:*:*)
- echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
- exit 0 ;;
- ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
- i*86:AIX:*:*)
- echo i386-ibm-aix
- exit 0 ;;
- ia64:AIX:*:*)
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- else
- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- fi
- echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
- exit 0 ;;
- *:AIX:2:3)
- if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <sys/systemcfg.h>
-
- main()
- {
- if (!__power_pc())
- exit(1);
- puts("powerpc-ibm-aix3.2.5");
- exit(0);
- }
-EOF
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
- echo rs6000-ibm-aix3.2.5
- elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
- echo rs6000-ibm-aix3.2.4
- else
- echo rs6000-ibm-aix3.2
- fi
- exit 0 ;;
- *:AIX:*:[45])
- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
- if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
- IBM_ARCH=rs6000
- else
- IBM_ARCH=powerpc
- fi
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- else
- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- fi
- echo ${IBM_ARCH}-ibm-aix${IBM_REV}
- exit 0 ;;
- *:AIX:*:*)
- echo rs6000-ibm-aix
- exit 0 ;;
- ibmrt:4.4BSD:*|romp-ibm:BSD:*)
- echo romp-ibm-bsd4.4
- exit 0 ;;
- ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
- echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
- exit 0 ;; # report: romp-ibm BSD 4.3
- *:BOSX:*:*)
- echo rs6000-bull-bosx
- exit 0 ;;
- DPX/2?00:B.O.S.:*:*)
- echo m68k-bull-sysv3
- exit 0 ;;
- 9000/[34]??:4.3bsd:1.*:*)
- echo m68k-hp-bsd
- exit 0 ;;
- hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
- echo m68k-hp-bsd4.4
- exit 0 ;;
- 9000/[34678]??:HP-UX:*:*)
- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- case "${UNAME_MACHINE}" in
- 9000/31? ) HP_ARCH=m68000 ;;
- 9000/[34]?? ) HP_ARCH=m68k ;;
- 9000/[678][0-9][0-9])
- if [ -x /usr/bin/getconf ]; then
- sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- 532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
- '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
- fi
- if [ "${HP_ARCH}" = "" ]; then
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-
- #define _HPUX_SOURCE
- #include <stdlib.h>
- #include <unistd.h>
-
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
-
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
-EOF
- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
- test -z "$HP_ARCH" && HP_ARCH=hppa
- fi ;;
- esac
- if [ ${HP_ARCH} = "hppa2.0w" ]
- then
- # avoid double evaluation of $set_cc_for_build
- test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
- then
- HP_ARCH="hppa2.0w"
- else
- HP_ARCH="hppa64"
- fi
- fi
- echo ${HP_ARCH}-hp-hpux${HPUX_REV}
- exit 0 ;;
- ia64:HP-UX:*:*)
- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- echo ia64-hp-hpux${HPUX_REV}
- exit 0 ;;
- 3050*:HI-UX:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <unistd.h>
- int
- main ()
- {
- long cpu = sysconf (_SC_CPU_VERSION);
- /* The order matters, because CPU_IS_HP_MC68K erroneously returns
- true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
- results, however. */
- if (CPU_IS_PA_RISC (cpu))
- {
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
- case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
- default: puts ("hppa-hitachi-hiuxwe2"); break;
- }
- }
- else if (CPU_IS_HP_MC68K (cpu))
- puts ("m68k-hitachi-hiuxwe2");
- else puts ("unknown-hitachi-hiuxwe2");
- exit (0);
- }
-EOF
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
- echo unknown-hitachi-hiuxwe2
- exit 0 ;;
- 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
- echo hppa1.1-hp-bsd
- exit 0 ;;
- 9000/8??:4.3bsd:*:*)
- echo hppa1.0-hp-bsd
- exit 0 ;;
- *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
- echo hppa1.0-hp-mpeix
- exit 0 ;;
- hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
- echo hppa1.1-hp-osf
- exit 0 ;;
- hp8??:OSF1:*:*)
- echo hppa1.0-hp-osf
- exit 0 ;;
- i*86:OSF1:*:*)
- if [ -x /usr/sbin/sysversion ] ; then
- echo ${UNAME_MACHINE}-unknown-osf1mk
- else
- echo ${UNAME_MACHINE}-unknown-osf1
- fi
- exit 0 ;;
- parisc*:Lites*:*:*)
- echo hppa1.1-hp-lites
- exit 0 ;;
- C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
- echo c1-convex-bsd
- exit 0 ;;
- C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit 0 ;;
- C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
- echo c34-convex-bsd
- exit 0 ;;
- C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
- echo c38-convex-bsd
- exit 0 ;;
- C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
- echo c4-convex-bsd
- exit 0 ;;
- CRAY*Y-MP:*:*:*)
- echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*[A-Z]90:*:*:*)
- echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
- | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
- -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
- -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*TS:*:*:*)
- echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*T3E:*:*:*)
- echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*SV1:*:*:*)
- echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- *:UNICOS/mp:*:*)
- echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
- FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit 0 ;;
- 5000:UNIX_System_V:4.*:*)
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit 0 ;;
- i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
- echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
- exit 0 ;;
- sparc*:BSD/OS:*:*)
- echo sparc-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
- *:BSD/OS:*:*)
- echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
- *:FreeBSD:*:*)
- # Determine whether the default compiler uses glibc.
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <features.h>
- #if __GLIBC__ >= 2
- LIBC=gnu
- #else
- LIBC=
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
- # FreeBSD's kernel, but not the complete OS.
- case ${LIBC} in gnu) kernel_only='k' ;; esac
- echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
- exit 0 ;;
- i*:CYGWIN*:*)
- echo ${UNAME_MACHINE}-pc-cygwin
- exit 0 ;;
- i*:MINGW*:*)
- echo ${UNAME_MACHINE}-pc-mingw32
- exit 0 ;;
- i*:PW*:*)
- echo ${UNAME_MACHINE}-pc-pw32
- exit 0 ;;
- x86:Interix*:[34]*)
- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
- exit 0 ;;
- [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
- echo i${UNAME_MACHINE}-pc-mks
- exit 0 ;;
- i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
- # UNAME_MACHINE based on the output of uname instead of i386?
- echo i586-pc-interix
- exit 0 ;;
- i*:UWIN*:*)
- echo ${UNAME_MACHINE}-pc-uwin
- exit 0 ;;
- p*:CYGWIN*:*)
- echo powerpcle-unknown-cygwin
- exit 0 ;;
- prep*:SunOS:5.*:*)
- echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- *:GNU:*:*)
- # the GNU system
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
- exit 0 ;;
- *:GNU/*:*:*)
- # other systems with GNU libc and userland
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
- exit 0 ;;
- i*86:Minix:*:*)
- echo ${UNAME_MACHINE}-pc-minix
- exit 0 ;;
- arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- cris:Linux:*:*)
- echo cris-axis-linux-gnu
- exit 0 ;;
- ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- m32r*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- mips:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips
- #undef mipsel
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mipsel
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips
- #else
- CPU=
- #endif
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
- ;;
- mips64:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips64
- #undef mips64el
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mips64el
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips64
- #else
- CPU=
- #endif
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
- ;;
- ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
- exit 0 ;;
- ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-gnu
- exit 0 ;;
- alpha:Linux:*:*)
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- EV5) UNAME_MACHINE=alphaev5 ;;
- EV56) UNAME_MACHINE=alphaev56 ;;
- PCA56) UNAME_MACHINE=alphapca56 ;;
- PCA57) UNAME_MACHINE=alphapca56 ;;
- EV6) UNAME_MACHINE=alphaev6 ;;
- EV67) UNAME_MACHINE=alphaev67 ;;
- EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
- exit 0 ;;
- parisc:Linux:*:* | hppa:Linux:*:*)
- # Look for CPU level
- case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
- *) echo hppa-unknown-linux-gnu ;;
- esac
- exit 0 ;;
- parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-gnu
- exit 0 ;;
- s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
- exit 0 ;;
- sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- x86_64:Linux:*:*)
- echo x86_64-unknown-linux-gnu
- exit 0 ;;
- i*86:Linux:*:*)
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- # Set LC_ALL=C to ensure ld outputs messages in English.
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
- | sed -ne '/supported targets:/!d
- s/[ ][ ]*/ /g
- s/.*supported targets: *//
- s/ .*//
- p'`
- case "$ld_supported_targets" in
- elf32-i386)
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- a.out-i386-linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit 0 ;;
- coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit 0 ;;
- "")
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
- # one that does not give us useful --help.
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
- exit 0 ;;
- esac
- # Determine whether the default compiler is a.out or elf
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <features.h>
- #ifdef __ELF__
- # ifdef __GLIBC__
- # if __GLIBC__ >= 2
- LIBC=gnu
- # else
- LIBC=gnulibc1
- # endif
- # else
- LIBC=gnulibc1
- # endif
- #else
- #ifdef __INTEL_COMPILER
- LIBC=gnu
- #else
- LIBC=gnuaout
- #endif
- #endif
- #ifdef __dietlibc__
- LIBC=dietlibc
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
- ;;
- i*86:DYNIX/ptx:4*:*)
- # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
- # earlier versions are messed up and put the nodename in both
- # sysname and nodename.
- echo i386-sequent-sysv4
- exit 0 ;;
- i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
- # I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
- echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
- exit 0 ;;
- i*86:OS/2:*:*)
- # If we were able to find `uname', then EMX Unix compatibility
- # is probably installed.
- echo ${UNAME_MACHINE}-pc-os2-emx
- exit 0 ;;
- i*86:XTS-300:*:STOP)
- echo ${UNAME_MACHINE}-unknown-stop
- exit 0 ;;
- i*86:atheos:*:*)
- echo ${UNAME_MACHINE}-unknown-atheos
- exit 0 ;;
- i*86:syllable:*:*)
- echo ${UNAME_MACHINE}-pc-syllable
- exit 0 ;;
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
- echo i386-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- i*86:*DOS:*:*)
- echo ${UNAME_MACHINE}-pc-msdosdjgpp
- exit 0 ;;
- i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
- UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
- if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
- echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
- else
- echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
- fi
- exit 0 ;;
- i*86:*:5:[78]*)
- case `/bin/uname -X | grep "^Machine"` in
- *486*) UNAME_MACHINE=i486 ;;
- *Pentium) UNAME_MACHINE=i586 ;;
- *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
- esac
- echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
- exit 0 ;;
- i*86:*:3.2:*)
- if test -f /usr/options/cb.name; then
- UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
- echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
- elif /bin/uname -X 2>/dev/null >/dev/null ; then
- UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
- (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
- (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
- && UNAME_MACHINE=i586
- (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
- && UNAME_MACHINE=i686
- (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
- && UNAME_MACHINE=i686
- echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
- else
- echo ${UNAME_MACHINE}-pc-sysv32
- fi
- exit 0 ;;
- pc:*:*:*)
- # Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i386.
- echo i386-pc-msdosdjgpp
- exit 0 ;;
- Intel:Mach:3*:*)
- echo i386-pc-mach3
- exit 0 ;;
- paragon:*:*:*)
- echo i860-intel-osf1
- exit 0 ;;
- i860:*:4.*:*) # i860-SVR4
- if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
- echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
- else # Add other i860-SVR4 vendors below as they are discovered.
- echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
- fi
- exit 0 ;;
- mini*:CTIX:SYS*5:*)
- # "miniframe"
- echo m68010-convergent-sysv
- exit 0 ;;
- mc68k:UNIX:SYSTEM5:3.51m)
- echo m68k-convergent-sysv
- exit 0 ;;
- M680?0:D-NIX:5.3:*)
- echo m68k-diab-dnix
- exit 0 ;;
- M68*:*:R3V[5678]*:*)
- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
- 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
- OS_REL=''
- test -r /etc/.relid \
- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && echo i486-ncr-sysv4.3${OS_REL} && exit 0
- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
- && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
- 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && echo i486-ncr-sysv4 && exit 0 ;;
- m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
- echo m68k-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- mc68030:UNIX_System_V:4.*:*)
- echo m68k-atari-sysv4
- exit 0 ;;
- TSUNAMI:LynxOS:2.*:*)
- echo sparc-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- rs6000:LynxOS:2.*:*)
- echo rs6000-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
- echo powerpc-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- SM[BE]S:UNIX_SV:*:*)
- echo mips-dde-sysv${UNAME_RELEASE}
- exit 0 ;;
- RM*:ReliantUNIX-*:*:*)
- echo mips-sni-sysv4
- exit 0 ;;
- RM*:SINIX-*:*:*)
- echo mips-sni-sysv4
- exit 0 ;;
- *:SINIX-*:*:*)
- if uname -p 2>/dev/null >/dev/null ; then
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
- echo ${UNAME_MACHINE}-sni-sysv4
- else
- echo ns32k-sni-sysv
- fi
- exit 0 ;;
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- # says <Richard.M.Bartel@ccMail.Census.GOV>
- echo i586-unisys-sysv4
- exit 0 ;;
- *:UNIX_System_V:4*:FTX*)
- # From Gerald Hewes <hewes@openmarket.com>.
- # How about differentiating between stratus architectures? -djm
- echo hppa1.1-stratus-sysv4
- exit 0 ;;
- *:*:*:FTX*)
- # From seanf@swdc.stratus.com.
- echo i860-stratus-sysv4
- exit 0 ;;
- *:VOS:*:*)
- # From Paul.Green@stratus.com.
- echo hppa1.1-stratus-vos
- exit 0 ;;
- mc68*:A/UX:*:*)
- echo m68k-apple-aux${UNAME_RELEASE}
- exit 0 ;;
- news*:NEWS-OS:6*:*)
- echo mips-sony-newsos6
- exit 0 ;;
- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
- if [ -d /usr/nec ]; then
- echo mips-nec-sysv${UNAME_RELEASE}
- else
- echo mips-unknown-sysv${UNAME_RELEASE}
- fi
- exit 0 ;;
- BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
- echo powerpc-be-beos
- exit 0 ;;
- BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
- echo powerpc-apple-beos
- exit 0 ;;
- BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
- echo i586-pc-beos
- exit 0 ;;
- SX-4:SUPER-UX:*:*)
- echo sx4-nec-superux${UNAME_RELEASE}
- exit 0 ;;
- SX-5:SUPER-UX:*:*)
- echo sx5-nec-superux${UNAME_RELEASE}
- exit 0 ;;
- SX-6:SUPER-UX:*:*)
- echo sx6-nec-superux${UNAME_RELEASE}
- exit 0 ;;
- Power*:Rhapsody:*:*)
- echo powerpc-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
- *:Rhapsody:*:*)
- echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
- *:Darwin:*:*)
- case `uname -p` in
- *86) UNAME_PROCESSOR=i686 ;;
- powerpc) UNAME_PROCESSOR=powerpc ;;
- esac
- echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
- exit 0 ;;
- *:procnto*:*:* | *:QNX:[0123456789]*:*)
- UNAME_PROCESSOR=`uname -p`
- if test "$UNAME_PROCESSOR" = "x86"; then
- UNAME_PROCESSOR=i386
- UNAME_MACHINE=pc
- fi
- echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
- exit 0 ;;
- *:QNX:*:4*)
- echo i386-pc-qnx
- exit 0 ;;
- NSR-?:NONSTOP_KERNEL:*:*)
- echo nsr-tandem-nsk${UNAME_RELEASE}
- exit 0 ;;
- *:NonStop-UX:*:*)
- echo mips-compaq-nonstopux
- exit 0 ;;
- BS2000:POSIX*:*:*)
- echo bs2000-siemens-sysv
- exit 0 ;;
- DS/*:UNIX_System_V:*:*)
- echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
- exit 0 ;;
- *:Plan9:*:*)
- # "uname -m" is not consistent, so use $cputype instead. 386
- # is converted to i386 for consistency with other x86
- # operating systems.
- if test "$cputype" = "386"; then
- UNAME_MACHINE=i386
- else
- UNAME_MACHINE="$cputype"
- fi
- echo ${UNAME_MACHINE}-unknown-plan9
- exit 0 ;;
- *:TOPS-10:*:*)
- echo pdp10-unknown-tops10
- exit 0 ;;
- *:TENEX:*:*)
- echo pdp10-unknown-tenex
- exit 0 ;;
- KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
- echo pdp10-dec-tops20
- exit 0 ;;
- XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
- echo pdp10-xkl-tops20
- exit 0 ;;
- *:TOPS-20:*:*)
- echo pdp10-unknown-tops20
- exit 0 ;;
- *:ITS:*:*)
- echo pdp10-unknown-its
- exit 0 ;;
- SEI:*:*:SEIUX)
- echo mips-sei-seiux${UNAME_RELEASE}
- exit 0 ;;
- *:DragonFly:*:*)
- echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
- exit 0 ;;
-esac
-
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <<EOF
-#ifdef _SEQUENT_
-# include <sys/types.h>
-# include <sys/utsname.h>
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
- I don't know.... */
- printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include <sys/param.h>
- printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
- "4"
-#else
- ""
-#endif
- ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
- printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
- int version;
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
- if (version < 4)
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
- else
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
- exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
- printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
- printf ("ns32k-encore-mach\n"); exit (0);
-#else
- printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
- printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
- printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
- printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
- struct utsname un;
-
- uname(&un);
-
- if (strncmp(un.version, "V2", 2) == 0) {
- printf ("i386-sequent-ptx2\n"); exit (0);
- }
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
- printf ("i386-sequent-ptx1\n"); exit (0);
- }
- printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-# include <sys/param.h>
-# if defined (BSD)
-# if BSD == 43
- printf ("vax-dec-bsd4.3\n"); exit (0);
-# else
-# if BSD == 199006
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# endif
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# else
- printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
- printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
- exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
- case `getsysinfo -f cpu_type` in
- c1*)
- echo c1-convex-bsd
- exit 0 ;;
- c2*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit 0 ;;
- c34*)
- echo c34-convex-bsd
- exit 0 ;;
- c38*)
- echo c38-convex-bsd
- exit 0 ;;
- c4*)
- echo c4-convex-bsd
- exit 0 ;;
- esac
-fi
-
-cat >&2 <<EOF
-$0: unable to guess system type
-
-This script, last modified $timestamp, has failed to recognize
-the operating system you are using. It is advised that you
-download the most up to date version of the config scripts from
-
- ftp://ftp.gnu.org/pub/gnu/config/
-
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <config-patches@gnu.org> in order to provide the needed
-information to handle your system.
-
-config.guess timestamp = $timestamp
-
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
-/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
-
-hostinfo = `(hostinfo) 2>/dev/null`
-/bin/universe = `(/bin/universe) 2>/dev/null`
-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
-/bin/arch = `(/bin/arch) 2>/dev/null`
-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
-
-UNAME_MACHINE = ${UNAME_MACHINE}
-UNAME_RELEASE = ${UNAME_RELEASE}
-UNAME_SYSTEM = ${UNAME_SYSTEM}
-UNAME_VERSION = ${UNAME_VERSION}
-EOF
-
-exit 1
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/mk/gnu-config/config.rpath b/mk/gnu-config/config.rpath
deleted file mode 100644
index cde64f52f6f..00000000000
--- a/mk/gnu-config/config.rpath
+++ /dev/null
@@ -1,523 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: config.rpath,v 1.2 2005/01/14 00:10:50 tv Exp $
-#
-# Output a system dependent set of variables, describing how to set the
-# run time search path of shared libraries in an executable.
-#
-# Copyright 1996-2002 Free Software Foundation, Inc.
-# Taken from GNU libtool, 2001
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-#
-# The first argument passed to this file is the canonical host specification,
-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or
-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
-# should be set by the caller.
-#
-# The set of defined variables is at the end of this script.
-
-# All known linkers require a `.a' archive for static linking (except M$VC,
-# which needs '.lib').
-libext=a
-shlibext=
-
-host="$1"
-host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-wl=
-if test "$GCC" = yes; then
- wl='-Wl,'
-else
- case "$host_os" in
- aix3* | aix4* | aix5*)
- wl='-Wl,'
- ;;
- hpux9* | hpux10* | hpux11*)
- wl='-Wl,'
- ;;
- irix5* | irix6*)
- wl='-Wl,'
- ;;
- linux*)
- echo '__INTEL_COMPILER' > conftest.$ac_ext
- if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null
- then
- :
- else
- # Intel icc
- wl='-Qoption,ld,'
- fi
- ;;
- osf3* | osf4* | osf5*)
- wl='-Wl,'
- ;;
- solaris*)
- wl='-Wl,'
- ;;
- sunos4*)
- wl='-Qoption ld '
- ;;
- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- if test "x$host_vendor" = xsni; then
- wl='-LD'
- else
- wl='-Wl,'
- fi
- ;;
- esac
-fi
-
-hardcode_libdir_flag_spec=
-hardcode_libdir_separator=
-hardcode_direct=no
-hardcode_minus_L=no
-
-case "$host_os" in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
-esac
-
-ld_shlibs=yes
-if test "$with_gnu_ld" = yes; then
- case "$host_os" in
- aix3* | aix4* | aix5*)
- # On AIX, the GNU linker is very broken
- ld_shlibs=no
- ;;
- amigaos*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can use
- # them.
- ld_shlibs=no
- ;;
- beos*)
- if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- :
- else
- ld_shlibs=no
- fi
- ;;
- cygwin* | mingw* | pw32*)
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec='-L$libdir'
- ;;
- solaris* | sysv5*)
- if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
- ld_shlibs=no
- elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- :
- else
- ld_shlibs=no
- fi
- ;;
- sunos4*)
- hardcode_direct=yes
- ;;
- *)
- if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- :
- else
- ld_shlibs=no
- fi
- ;;
- esac
- if test "$ld_shlibs" = yes; then
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- fi
-else
- case "$host_os" in
- aix3*)
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- hardcode_minus_L=yes
- if test "$GCC" = yes; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- hardcode_direct=unsupported
- fi
- ;;
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- else
- aix_use_runtimelinking=no
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[23]|aix4.[23].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- esac
- fi
- hardcode_direct=yes
- hardcode_libdir_separator=':'
- if test "$GCC" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- hardcode_direct=yes
- else
- # We have old collect2
- hardcode_direct=unsupported
- hardcode_minus_L=yes
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_libdir_separator=
- fi
- esac
- fi
- if test "$aix_use_runtimelinking" = yes; then
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
- else
- hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
- fi
- fi
- ;;
- amigaos*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # see comment about different semantics on the GNU ld section
- ld_shlibs=no
- ;;
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec=' '
- libext=lib
- ;;
- darwin* | rhapsody*)
- hardcode_direct=yes
- ;;
- freebsd1*)
- ld_shlibs=no
- ;;
- freebsd2.2*)
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- ;;
- freebsd2*)
- hardcode_direct=yes
- hardcode_minus_L=yes
- ;;
- freebsd*)
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- ;;
- hpux9* | hpux10* | hpux11*)
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_direct=yes
- hardcode_minus_L=yes # Not in the search PATH, but as the default
- # location of the library.
- ;;
- interix3*)
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- ;;
- irix5* | irix6*)
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
- netbsd*)
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- ;;
- newsos6)
- hardcode_direct=yes
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
- openbsd*)
- hardcode_direct=yes
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- else
- case "$host_os" in
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
- hardcode_libdir_flag_spec='-R$libdir'
- ;;
- *)
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- ;;
- os2*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- ;;
- osf3*)
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
- osf4* | osf5*)
- if test "$GCC" = yes; then
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- else
- # Both cc and cxx compiler support -rpath directly
- hardcode_libdir_flag_spec='-rpath $libdir'
- fi
- hardcode_libdir_separator=:
- ;;
- sco3.2v5*)
- ;;
- solaris*)
- hardcode_libdir_flag_spec='-R$libdir'
- ;;
- sunos4*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_direct=yes
- hardcode_minus_L=yes
- ;;
- sysv4)
- if test "x$host_vendor" = xsno; then
- hardcode_direct=yes # is this really true???
- else
- hardcode_direct=no # Motorola manual says yes, but my tests say they lie
- fi
- ;;
- sysv4.3*)
- ;;
- sysv5*)
- hardcode_libdir_flag_spec=
- ;;
- uts4*)
- hardcode_libdir_flag_spec='-L$libdir'
- ;;
- dgux*)
- hardcode_libdir_flag_spec='-L$libdir'
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- ld_shlibs=yes
- fi
- ;;
- sysv4.2uw2*)
- hardcode_direct=yes
- hardcode_minus_L=no
- ;;
- sysv5uw7* | unixware7*)
- ;;
- *)
- ld_shlibs=no
- ;;
- esac
-fi
-
-# Check dynamic linker characteristics
-libname_spec='lib$name'
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-case "$host_os" in
- aix3*)
- shlibext=so
- ;;
- aix4* | aix5*)
- shlibext=so
- ;;
- amigaos*)
- shlibext=ixlibrary
- ;;
- beos*)
- shlibext=so
- ;;
- bsdi4*)
- shlibext=so
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- ;;
- cygwin* | mingw* | pw32*)
- case $GCC,$host_os in
- yes,cygwin*)
- shlibext=dll.a
- ;;
- yes,mingw*)
- shlibext=dll
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
- ;;
- yes,pw32*)
- shlibext=dll
- ;;
- *)
- shlibext=dll
- ;;
- esac
- ;;
- darwin* | rhapsody*)
- shlibext=dylib
- ;;
- freebsd1*)
- ;;
- freebsd*)
- shlibext=so
- ;;
- gnu*)
- shlibext=so
- ;;
- hpux9* | hpux10* | hpux11*)
- shlibext=sl
- ;;
- interix3*)
- shlibext=so
- ;;
- irix5* | irix6*)
- shlibext=so
- case "$host_os" in
- irix5*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in
- *-32|*"-32 ") libsuff= shlibsuff= ;;
- *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 ;;
- *-64|*"-64 ") libsuff=64 shlibsuff=64 ;;
- *) libsuff= shlibsuff= ;;
- esac
- ;;
- esac
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- ;;
- linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
- ;;
- linux-gnu*)
- shlibext=so
- ;;
- netbsd*)
- shlibext=so
- ;;
- newsos6)
- shlibext=so
- ;;
- openbsd*)
- shlibext=so
- ;;
- os2*)
- libname_spec='$name'
- shlibext=dll
- ;;
- osf3* | osf4* | osf5*)
- shlibext=so
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
- sco3.2v5*)
- shlibext=so
- ;;
- solaris*)
- shlibext=so
- ;;
- sunos4*)
- shlibext=so
- ;;
- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- shlibext=so
- case "$host_vendor" in
- motorola)
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
- uts4*)
- shlibext=so
- ;;
- dgux*)
- shlibext=so
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- shlibext=so
- fi
- ;;
-esac
-
-sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
-escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
-escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
-escaped_sys_lib_search_path_spec=`echo "X$sys_lib_search_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
-escaped_sys_lib_dlsearch_path_spec=`echo "X$sys_lib_dlsearch_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
-
-sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
-
-# How to pass a linker flag through the compiler.
-wl="$escaped_wl"
-
-# Static library suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally "so").
-shlibext="$shlibext"
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator="$hardcode_libdir_separator"
-
-# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct="$hardcode_direct"
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L="$hardcode_minus_L"
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec="$escaped_sys_lib_search_path_spec"
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec="$escaped_sys_lib_dlsearch_path_spec"
-
-EOF
diff --git a/mk/gnu-config/config.sub b/mk/gnu-config/config.sub
deleted file mode 100755
index b9e9bc4860a..00000000000
--- a/mk/gnu-config/config.sub
+++ /dev/null
@@ -1,1555 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: config.sub,v 1.7 2004/08/14 19:14:42 schmonz Exp $
-#
-# Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-
-timestamp='2004-03-12'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine. It does not imply ALL GNU software can.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# Configuration subroutine to validate and canonicalize a configuration type.
-# Supply the specified configuration type as an argument.
-# If it is invalid, we print an error message on stderr and exit with code 1.
-# Otherwise, we print the canonical config type on stdout and succeed.
-
-# This file is supposed to be the same for all GNU packages
-# and recognize all the CPU types, system types and aliases
-# that are meaningful with *any* GNU software.
-# Each package is responsible for reporting which valid configurations
-# it does not support. The user should be able to distinguish
-# a failure to support a valid configuration from a meaningless
-# configuration.
-
-# The goal of this file is to map all the various variations of a given
-# machine specification into a single specification in the form:
-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or in some cases, the newer four-part form:
-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# It is wrong to echo any other type of specification.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
- $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
- --version | -v )
- echo "$version" ; exit 0 ;;
- --help | --h* | -h )
- echo "$usage"; exit 0 ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help"
- exit 1 ;;
-
- *local*)
- # First pass through any local machine types.
- echo $1
- exit 0;;
-
- * )
- break ;;
- esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
- exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
- exit 1;;
-esac
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
- kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
- os=-$maybe_os
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
- ;;
- *)
- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
- if [ $basic_machine != $1 ]
- then os=`echo $1 | sed 's/.*-/-/'`
- else os=; fi
- ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work. We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
- -sun*os*)
- # Prevent following clause from handling this invalid input.
- ;;
- -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
- -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
- -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis)
- os=
- basic_machine=$1
- ;;
- -sim | -cisco | -oki | -wec | -winbond)
- os=
- basic_machine=$1
- ;;
- -scout)
- ;;
- -wrs)
- os=-vxworks
- basic_machine=$1
- ;;
- -chorusos*)
- os=-chorusos
- basic_machine=$1
- ;;
- -chorusrdb)
- os=-chorusrdb
- basic_machine=$1
- ;;
- -hiux*)
- os=-hiuxwe2
- ;;
- -sco5)
- os=-sco3.2v5
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco4)
- os=-sco3.2v4
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2.[4-9]*)
- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2v[4-9]*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco*)
- os=-sco3.2v2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -udk*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -isc)
- os=-isc2.2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -clix*)
- basic_machine=clipper-intergraph
- ;;
- -isc*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -lynx*)
- os=-lynxos
- ;;
- -ptx*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
- ;;
- -windowsnt*)
- os=`echo $os | sed -e 's/windowsnt/winnt/'`
- ;;
- -psos*)
- os=-psos
- ;;
- -mint | -mint[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
-esac
-
-# Decode aliases for certain CPU-COMPANY combinations.
-case $basic_machine in
- # Recognize the basic CPU types without company name.
- # Some are omitted here because they have special meanings below.
- 1750a | 580 \
- | a29k \
- | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
- | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
- | am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
- | c4x | clipper \
- | d10v | d30v | dlx | dsp16xx \
- | fr30 | frv \
- | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
- | i370 | i860 | i960 | ia64 \
- | ip2k | iq2000 \
- | m32r | m32rle | m68000 | m68k | m88k | mcore \
- | mips | mipsbe | mipseb | mipsel | mipsle \
- | mips16 \
- | mips64 | mips64el \
- | mips64vr | mips64vrel \
- | mips64orion | mips64orionel \
- | mips64vr4100 | mips64vr4100el \
- | mips64vr4300 | mips64vr4300el \
- | mips64vr5000 | mips64vr5000el \
- | mipsisa32 | mipsisa32el \
- | mipsisa32r2 | mipsisa32r2el \
- | mipsisa64 | mipsisa64el \
- | mipsisa64r2 | mipsisa64r2el \
- | mipsisa64sb1 | mipsisa64sb1el \
- | mipsisa64sr71k | mipsisa64sr71kel \
- | mipstx39 | mipstx39el \
- | mn10200 | mn10300 \
- | msp430 \
- | ns16k | ns32k \
- | openrisc | or32 \
- | pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
- | pyramid \
- | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
- | sh64 | sh64le \
- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
- | strongarm \
- | tahoe | thumb | tic4x | tic80 | tron \
- | v850 | v850e \
- | we32k \
- | x86 | xscale | xstormy16 | xtensa \
- | z8k)
- basic_machine=$basic_machine-unknown
- ;;
- m6811 | m68hc11 | m6812 | m68hc12)
- # Motorola 68HC11/12.
- basic_machine=$basic_machine-unknown
- os=-none
- ;;
- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
- ;;
-
- # We use `pc' rather than `unknown'
- # because (1) that's what they normally are, and
- # (2) the word "unknown" tends to confuse beginning users.
- i*86 | x86_64)
- basic_machine=$basic_machine-pc
- ;;
- # Object if more than one company name word.
- *-*-*)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
- # Recognize the basic CPU types with company name.
- 580-* \
- | a29k-* \
- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
- | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
- | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
- | avr-* \
- | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
- | clipper-* | cydra-* \
- | d10v-* | d30v-* | dlx-* \
- | elxsi-* \
- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
- | h8300-* | h8500-* \
- | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
- | i*86-* | i860-* | i960-* | ia64-* \
- | ip2k-* | iq2000-* \
- | m32r-* | m32rle-* \
- | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | mcore-* \
- | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
- | mips16-* \
- | mips64-* | mips64el-* \
- | mips64vr-* | mips64vrel-* \
- | mips64orion-* | mips64orionel-* \
- | mips64vr4100-* | mips64vr4100el-* \
- | mips64vr4300-* | mips64vr4300el-* \
- | mips64vr5000-* | mips64vr5000el-* \
- | mipsisa32-* | mipsisa32el-* \
- | mipsisa32r2-* | mipsisa32r2el-* \
- | mipsisa64-* | mipsisa64el-* \
- | mipsisa64r2-* | mipsisa64r2el-* \
- | mipsisa64sb1-* | mipsisa64sb1el-* \
- | mipsisa64sr71k-* | mipsisa64sr71kel-* \
- | mipstx39-* | mipstx39el-* \
- | msp430-* \
- | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
- | orion-* \
- | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
- | pyramid-* \
- | romp-* | rs6000-* \
- | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
- | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
- | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
- | tahoe-* | thumb-* \
- | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
- | tron-* \
- | v850-* | v850e-* | vax-* \
- | we32k-* \
- | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
- | xtensa-* \
- | ymp-* \
- | z8k-*)
- ;;
- # Recognize the various machine names and aliases which stand
- # for a CPU type and a company and sometimes even an OS.
- 386bsd)
- basic_machine=i386-unknown
- os=-bsd
- ;;
- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
- basic_machine=m68000-att
- ;;
- 3b*)
- basic_machine=we32k-att
- ;;
- a29khif)
- basic_machine=a29k-amd
- os=-udi
- ;;
- abacus)
- basic_machine=abacus-unknown
- ;;
- adobe68k)
- basic_machine=m68010-adobe
- os=-scout
- ;;
- alliant | fx80)
- basic_machine=fx80-alliant
- ;;
- altos | altos3068)
- basic_machine=m68k-altos
- ;;
- am29k)
- basic_machine=a29k-none
- os=-bsd
- ;;
- amd64)
- basic_machine=x86_64-pc
- ;;
- amd64-*)
- basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- amdahl)
- basic_machine=580-amdahl
- os=-sysv
- ;;
- amiga | amiga-*)
- basic_machine=m68k-unknown
- ;;
- amigaos | amigados)
- basic_machine=m68k-unknown
- os=-amigaos
- ;;
- amigaunix | amix)
- basic_machine=m68k-unknown
- os=-sysv4
- ;;
- apollo68)
- basic_machine=m68k-apollo
- os=-sysv
- ;;
- apollo68bsd)
- basic_machine=m68k-apollo
- os=-bsd
- ;;
- aux)
- basic_machine=m68k-apple
- os=-aux
- ;;
- balance)
- basic_machine=ns32k-sequent
- os=-dynix
- ;;
- c90)
- basic_machine=c90-cray
- os=-unicos
- ;;
- convex-c1)
- basic_machine=c1-convex
- os=-bsd
- ;;
- convex-c2)
- basic_machine=c2-convex
- os=-bsd
- ;;
- convex-c32)
- basic_machine=c32-convex
- os=-bsd
- ;;
- convex-c34)
- basic_machine=c34-convex
- os=-bsd
- ;;
- convex-c38)
- basic_machine=c38-convex
- os=-bsd
- ;;
- cray | j90)
- basic_machine=j90-cray
- os=-unicos
- ;;
- cr16c)
- basic_machine=cr16c-unknown
- os=-elf
- ;;
- crds | unos)
- basic_machine=m68k-crds
- ;;
- cris | cris-* | etrax*)
- basic_machine=cris-axis
- ;;
- crx)
- basic_machine=crx-unknown
- os=-elf
- ;;
- da30 | da30-*)
- basic_machine=m68k-da30
- ;;
- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
- basic_machine=mips-dec
- ;;
- decsystem10* | dec10*)
- basic_machine=pdp10-dec
- os=-tops10
- ;;
- decsystem20* | dec20*)
- basic_machine=pdp10-dec
- os=-tops20
- ;;
- delta | 3300 | motorola-3300 | motorola-delta \
- | 3300-motorola | delta-motorola)
- basic_machine=m68k-motorola
- ;;
- delta88)
- basic_machine=m88k-motorola
- os=-sysv3
- ;;
- dpx20 | dpx20-*)
- basic_machine=rs6000-bull
- os=-bosx
- ;;
- dpx2* | dpx2*-bull)
- basic_machine=m68k-bull
- os=-sysv3
- ;;
- ebmon29k)
- basic_machine=a29k-amd
- os=-ebmon
- ;;
- elxsi)
- basic_machine=elxsi-elxsi
- os=-bsd
- ;;
- encore | umax | mmax)
- basic_machine=ns32k-encore
- ;;
- es1800 | OSE68k | ose68k | ose | OSE)
- basic_machine=m68k-ericsson
- os=-ose
- ;;
- fx2800)
- basic_machine=i860-alliant
- ;;
- genix)
- basic_machine=ns32k-ns
- ;;
- gmicro)
- basic_machine=tron-gmicro
- os=-sysv
- ;;
- go32)
- basic_machine=i386-pc
- os=-go32
- ;;
- h3050r* | hiux*)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- h8300hms)
- basic_machine=h8300-hitachi
- os=-hms
- ;;
- h8300xray)
- basic_machine=h8300-hitachi
- os=-xray
- ;;
- h8500hms)
- basic_machine=h8500-hitachi
- os=-hms
- ;;
- harris)
- basic_machine=m88k-harris
- os=-sysv3
- ;;
- hp300-*)
- basic_machine=m68k-hp
- ;;
- hp300bsd)
- basic_machine=m68k-hp
- os=-bsd
- ;;
- hp300hpux)
- basic_machine=m68k-hp
- os=-hpux
- ;;
- hp3k9[0-9][0-9] | hp9[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k2[0-9][0-9] | hp9k31[0-9])
- basic_machine=m68000-hp
- ;;
- hp9k3[2-9][0-9])
- basic_machine=m68k-hp
- ;;
- hp9k6[0-9][0-9] | hp6[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k7[0-79][0-9] | hp7[0-79][0-9])
- basic_machine=hppa1.1-hp
- ;;
- hp9k78[0-9] | hp78[0-9])
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][13679] | hp8[0-9][13679])
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][0-9] | hp8[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hppa-next)
- os=-nextstep3
- ;;
- hppaosf)
- basic_machine=hppa1.1-hp
- os=-osf
- ;;
- hppro)
- basic_machine=hppa1.1-hp
- os=-proelf
- ;;
- i370-ibm* | ibm*)
- basic_machine=i370-ibm
- ;;
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
- i*86v32)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv32
- ;;
- i*86v4*)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv4
- ;;
- i*86v)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv
- ;;
- i*86sol2)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-solaris2
- ;;
- i386mach)
- basic_machine=i386-mach
- os=-mach
- ;;
- i386-vsta | vsta)
- basic_machine=i386-unknown
- os=-vsta
- ;;
- iris | iris4d)
- basic_machine=mips-sgi
- case $os in
- -irix*)
- ;;
- *)
- os=-irix4
- ;;
- esac
- ;;
- isi68 | isi)
- basic_machine=m68k-isi
- os=-sysv
- ;;
- m88k-omron*)
- basic_machine=m88k-omron
- ;;
- magnum | m3230)
- basic_machine=mips-mips
- os=-sysv
- ;;
- merlin)
- basic_machine=ns32k-utek
- os=-sysv
- ;;
- mingw32)
- basic_machine=i386-pc
- os=-mingw32
- ;;
- miniframe)
- basic_machine=m68000-convergent
- ;;
- *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
- mips3*-*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
- ;;
- mips3*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
- ;;
- mmix*)
- basic_machine=mmix-knuth
- os=-mmixware
- ;;
- monitor)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- morphos)
- basic_machine=powerpc-unknown
- os=-morphos
- ;;
- msdos)
- basic_machine=i386-pc
- os=-msdos
- ;;
- mvs)
- basic_machine=i370-ibm
- os=-mvs
- ;;
- ncr3000)
- basic_machine=i486-ncr
- os=-sysv4
- ;;
- netbsd386)
- basic_machine=i386-unknown
- os=-netbsd
- ;;
- netwinder)
- basic_machine=armv4l-rebel
- os=-linux
- ;;
- news | news700 | news800 | news900)
- basic_machine=m68k-sony
- os=-newsos
- ;;
- news1000)
- basic_machine=m68030-sony
- os=-newsos
- ;;
- news-3600 | risc-news)
- basic_machine=mips-sony
- os=-newsos
- ;;
- necv70)
- basic_machine=v70-nec
- os=-sysv
- ;;
- next | m*-next )
- basic_machine=m68k-next
- case $os in
- -nextstep* )
- ;;
- -ns2*)
- os=-nextstep2
- ;;
- *)
- os=-nextstep3
- ;;
- esac
- ;;
- nh3000)
- basic_machine=m68k-harris
- os=-cxux
- ;;
- nh[45]000)
- basic_machine=m88k-harris
- os=-cxux
- ;;
- nindy960)
- basic_machine=i960-intel
- os=-nindy
- ;;
- mon960)
- basic_machine=i960-intel
- os=-mon960
- ;;
- nonstopux)
- basic_machine=mips-compaq
- os=-nonstopux
- ;;
- np1)
- basic_machine=np1-gould
- ;;
- nv1)
- basic_machine=nv1-cray
- os=-unicosmp
- ;;
- nsr-tandem)
- basic_machine=nsr-tandem
- ;;
- op50n-* | op60c-*)
- basic_machine=hppa1.1-oki
- os=-proelf
- ;;
- or32 | or32-*)
- basic_machine=or32-unknown
- os=-coff
- ;;
- os400)
- basic_machine=powerpc-ibm
- os=-os400
- ;;
- OSE68000 | ose68000)
- basic_machine=m68000-ericsson
- os=-ose
- ;;
- os68k)
- basic_machine=m68k-none
- os=-os68k
- ;;
- pa-hitachi)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- paragon)
- basic_machine=i860-intel
- os=-osf
- ;;
- pbd)
- basic_machine=sparc-tti
- ;;
- pbb)
- basic_machine=m68k-tti
- ;;
- pc532 | pc532-*)
- basic_machine=ns32k-pc532
- ;;
- pentium | p5 | k5 | k6 | nexgen | viac3)
- basic_machine=i586-pc
- ;;
- pentiumpro | p6 | 6x86 | athlon | athlon_*)
- basic_machine=i686-pc
- ;;
- pentiumii | pentium2 | pentiumiii | pentium3)
- basic_machine=i686-pc
- ;;
- pentium4)
- basic_machine=i786-pc
- ;;
- pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumpro-* | p6-* | 6x86-* | athlon-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentium4-*)
- basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pn)
- basic_machine=pn-gould
- ;;
- power) basic_machine=power-ibm
- ;;
- ppc) basic_machine=powerpc-unknown
- ;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppcle | powerpclittle | ppc-le | powerpc-little)
- basic_machine=powerpcle-unknown
- ;;
- ppcle-* | powerpclittle-*)
- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64) basic_machine=powerpc64-unknown
- ;;
- ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64le | powerpc64little | ppc64-le | powerpc64-little)
- basic_machine=powerpc64le-unknown
- ;;
- ppc64le-* | powerpc64little-*)
- basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ps2)
- basic_machine=i386-ibm
- ;;
- pw32)
- basic_machine=i586-unknown
- os=-pw32
- ;;
- rom68k)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- rm[46]00)
- basic_machine=mips-siemens
- ;;
- rtpc | rtpc-*)
- basic_machine=romp-ibm
- ;;
- s390 | s390-*)
- basic_machine=s390-ibm
- ;;
- s390x | s390x-*)
- basic_machine=s390x-ibm
- ;;
- sa29200)
- basic_machine=a29k-amd
- os=-udi
- ;;
- sb1)
- basic_machine=mipsisa64sb1-unknown
- ;;
- sb1el)
- basic_machine=mipsisa64sb1el-unknown
- ;;
- sei)
- basic_machine=mips-sei
- os=-seiux
- ;;
- sequent)
- basic_machine=i386-sequent
- ;;
- sh)
- basic_machine=sh-hitachi
- os=-hms
- ;;
- sh64)
- basic_machine=sh64-unknown
- ;;
- sparclite-wrs | simso-wrs)
- basic_machine=sparclite-wrs
- os=-vxworks
- ;;
- sps7)
- basic_machine=m68k-bull
- os=-sysv2
- ;;
- spur)
- basic_machine=spur-unknown
- ;;
- st2000)
- basic_machine=m68k-tandem
- ;;
- stratus)
- basic_machine=i860-stratus
- os=-sysv4
- ;;
- sun2)
- basic_machine=m68000-sun
- ;;
- sun2os3)
- basic_machine=m68000-sun
- os=-sunos3
- ;;
- sun2os4)
- basic_machine=m68000-sun
- os=-sunos4
- ;;
- sun3os3)
- basic_machine=m68k-sun
- os=-sunos3
- ;;
- sun3os4)
- basic_machine=m68k-sun
- os=-sunos4
- ;;
- sun4os3)
- basic_machine=sparc-sun
- os=-sunos3
- ;;
- sun4os4)
- basic_machine=sparc-sun
- os=-sunos4
- ;;
- sun4sol2)
- basic_machine=sparc-sun
- os=-solaris2
- ;;
- sun3 | sun3-*)
- basic_machine=m68k-sun
- ;;
- sun4)
- basic_machine=sparc-sun
- ;;
- sun386 | sun386i | roadrunner)
- basic_machine=i386-sun
- ;;
- sv1)
- basic_machine=sv1-cray
- os=-unicos
- ;;
- symmetry)
- basic_machine=i386-sequent
- os=-dynix
- ;;
- t3e)
- basic_machine=alphaev5-cray
- os=-unicos
- ;;
- t90)
- basic_machine=t90-cray
- os=-unicos
- ;;
- tic54x | c54x*)
- basic_machine=tic54x-unknown
- os=-coff
- ;;
- tic55x | c55x*)
- basic_machine=tic55x-unknown
- os=-coff
- ;;
- tic6x | c6x*)
- basic_machine=tic6x-unknown
- os=-coff
- ;;
- tx39)
- basic_machine=mipstx39-unknown
- ;;
- tx39el)
- basic_machine=mipstx39el-unknown
- ;;
- toad1)
- basic_machine=pdp10-xkl
- os=-tops20
- ;;
- tower | tower-32)
- basic_machine=m68k-ncr
- ;;
- tpf)
- basic_machine=s390x-ibm
- os=-tpf
- ;;
- udi29k)
- basic_machine=a29k-amd
- os=-udi
- ;;
- ultra3)
- basic_machine=a29k-nyu
- os=-sym1
- ;;
- v810 | necv810)
- basic_machine=v810-nec
- os=-none
- ;;
- vaxv)
- basic_machine=vax-dec
- os=-sysv
- ;;
- vms)
- basic_machine=vax-dec
- os=-vms
- ;;
- vpp*|vx|vx-*)
- basic_machine=f301-fujitsu
- ;;
- vxworks960)
- basic_machine=i960-wrs
- os=-vxworks
- ;;
- vxworks68)
- basic_machine=m68k-wrs
- os=-vxworks
- ;;
- vxworks29k)
- basic_machine=a29k-wrs
- os=-vxworks
- ;;
- w65*)
- basic_machine=w65-wdc
- os=-none
- ;;
- w89k-*)
- basic_machine=hppa1.1-winbond
- os=-proelf
- ;;
- xps | xps100)
- basic_machine=xps100-honeywell
- ;;
- ymp)
- basic_machine=ymp-cray
- os=-unicos
- ;;
- z8k-*-coff)
- basic_machine=z8k-unknown
- os=-sim
- ;;
- none)
- basic_machine=none-none
- os=-none
- ;;
-
-# Here we handle the default manufacturer of certain CPU types. It is in
-# some cases the only manufacturer, in others, it is the most popular.
- w89k)
- basic_machine=hppa1.1-winbond
- ;;
- op50n)
- basic_machine=hppa1.1-oki
- ;;
- op60c)
- basic_machine=hppa1.1-oki
- ;;
- romp)
- basic_machine=romp-ibm
- ;;
- rs6000)
- basic_machine=rs6000-ibm
- ;;
- vax)
- basic_machine=vax-dec
- ;;
- pdp10)
- # there are many clones, so DEC is not a safe bet
- basic_machine=pdp10-unknown
- ;;
- pdp11)
- basic_machine=pdp11-dec
- ;;
- we32k)
- basic_machine=we32k-att
- ;;
- sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
- basic_machine=sh-unknown
- ;;
- sh5el)
- basic_machine=sh5le-unknown
- ;;
- sh64)
- basic_machine=sh64-unknown
- ;;
- sparc | sparcv8 | sparcv9 | sparcv9b)
- basic_machine=sparc-sun
- ;;
- cydra)
- basic_machine=cydra-cydrome
- ;;
- orion)
- basic_machine=orion-highlevel
- ;;
- orion105)
- basic_machine=clipper-highlevel
- ;;
- mac | mpw | mac-mpw)
- basic_machine=m68k-apple
- ;;
- pmac | pmac-mpw)
- basic_machine=powerpc-apple
- ;;
- *-unknown)
- # Make sure to match an already-canonicalized machine name.
- ;;
- *)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
-esac
-
-# Here we canonicalize certain aliases for manufacturers.
-case $basic_machine in
- *-digital*)
- basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
- ;;
- *-commodore*)
- basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
- ;;
- *)
- ;;
-esac
-
-# Decode manufacturer-specific aliases for certain operating systems.
-
-if [ x"$os" != x"" ]
-then
-case $os in
- # First match some system type aliases
- # that might get confused with valid system types.
- # -solaris* is a basic system type, with this one exception.
- -solaris1 | -solaris1.*)
- os=`echo $os | sed -e 's|solaris1|sunos4|'`
- ;;
- -solaris)
- os=-solaris2
- ;;
- -svr4*)
- os=-sysv4
- ;;
- -unixware*)
- os=-sysv4.2uw
- ;;
- -gnu/linux*)
- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
- ;;
- # First accept the basic system types.
- # The portable systems comes first.
- # Each alternative MUST END IN A *, to match a version number.
- # -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
- | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* \
- | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
- | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
- | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
- | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* \
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
- | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
- | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
- # Remember, each alternative MUST END IN *, to match a version number.
- ;;
- -qnx*)
- case $basic_machine in
- x86-* | i*86-*)
- ;;
- *)
- os=-nto$os
- ;;
- esac
- ;;
- -nto-qnx*)
- ;;
- -nto*)
- os=`echo $os | sed -e 's|nto|nto-qnx|'`
- ;;
- -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
- | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
- ;;
- -mac*)
- os=`echo $os | sed -e 's|mac|macos|'`
- ;;
- -linux-dietlibc)
- os=-linux-dietlibc
- ;;
- -linux*)
- os=`echo $os | sed -e 's|linux|linux-gnu|'`
- ;;
- -sunos5*)
- os=`echo $os | sed -e 's|sunos5|solaris2|'`
- ;;
- -sunos6*)
- os=`echo $os | sed -e 's|sunos6|solaris3|'`
- ;;
- -opened*)
- os=-openedition
- ;;
- -os400*)
- os=-os400
- ;;
- -wince*)
- os=-wince
- ;;
- -osfrose*)
- os=-osfrose
- ;;
- -osf*)
- os=-osf
- ;;
- -utek*)
- os=-bsd
- ;;
- -dynix*)
- os=-bsd
- ;;
- -acis*)
- os=-aos
- ;;
- -atheos*)
- os=-atheos
- ;;
- -syllable*)
- os=-syllable
- ;;
- -386bsd)
- os=-bsd
- ;;
- -ctix* | -uts*)
- os=-sysv
- ;;
- -nova*)
- os=-rtmk-nova
- ;;
- -ns2 )
- os=-nextstep2
- ;;
- -nsk*)
- os=-nsk
- ;;
- # Preserve the version number of sinix5.
- -sinix5.*)
- os=`echo $os | sed -e 's|sinix|sysv|'`
- ;;
- -sinix*)
- os=-sysv4
- ;;
- -tpf*)
- os=-tpf
- ;;
- -triton*)
- os=-sysv3
- ;;
- -oss*)
- os=-sysv3
- ;;
- -svr4)
- os=-sysv4
- ;;
- -svr3)
- os=-sysv3
- ;;
- -sysvr4)
- os=-sysv4
- ;;
- # This must come after -sysvr4.
- -sysv*)
- ;;
- -ose*)
- os=-ose
- ;;
- -es1800*)
- os=-ose
- ;;
- -xenix)
- os=-xenix
- ;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- os=-mint
- ;;
- -aros*)
- os=-aros
- ;;
- -kaos*)
- os=-kaos
- ;;
- -none)
- ;;
- *)
- # Get rid of the `-' at the beginning of $os.
- os=`echo $os | sed 's/[^-]*-//'`
- echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
- exit 1
- ;;
-esac
-else
-
-# Here we handle the default operating systems that come with various machines.
-# The value should be what the vendor currently ships out the door with their
-# machine or put another way, the most popular os provided with the machine.
-
-# Note that if you're going to try to match "-MANUFACTURER" here (say,
-# "-sun"), then you have to tell the case statement up towards the top
-# that MANUFACTURER isn't an operating system. Otherwise, code above
-# will signal an error saying that MANUFACTURER isn't an operating
-# system, and we'll never get to this point.
-
-case $basic_machine in
- *-acorn)
- os=-riscix1.2
- ;;
- arm*-rebel)
- os=-linux
- ;;
- arm*-semi)
- os=-aout
- ;;
- c4x-* | tic4x-*)
- os=-coff
- ;;
- # This must come before the *-dec entry.
- pdp10-*)
- os=-tops20
- ;;
- pdp11-*)
- os=-none
- ;;
- *-dec | vax-*)
- os=-ultrix4.2
- ;;
- m68*-apollo)
- os=-domain
- ;;
- i386-sun)
- os=-sunos4.0.2
- ;;
- m68000-sun)
- os=-sunos3
- # This also exists in the configure program, but was not the
- # default.
- # os=-sunos4
- ;;
- m68*-cisco)
- os=-aout
- ;;
- mips*-cisco)
- os=-elf
- ;;
- mips*-*)
- os=-elf
- ;;
- or32-*)
- os=-coff
- ;;
- *-tti) # must be before sparc entry or we get the wrong os.
- os=-sysv3
- ;;
- sparc-* | *-sun)
- os=-sunos4.1.1
- ;;
- *-be)
- os=-beos
- ;;
- *-ibm)
- os=-aix
- ;;
- *-wec)
- os=-proelf
- ;;
- *-winbond)
- os=-proelf
- ;;
- *-oki)
- os=-proelf
- ;;
- *-hp)
- os=-hpux
- ;;
- *-hitachi)
- os=-hiux
- ;;
- i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
- os=-sysv
- ;;
- *-cbm)
- os=-amigaos
- ;;
- *-dg)
- os=-dgux
- ;;
- *-dolphin)
- os=-sysv3
- ;;
- m68k-ccur)
- os=-rtu
- ;;
- m88k-omron*)
- os=-luna
- ;;
- *-next )
- os=-nextstep
- ;;
- *-sequent)
- os=-ptx
- ;;
- *-crds)
- os=-unos
- ;;
- *-ns)
- os=-genix
- ;;
- i370-*)
- os=-mvs
- ;;
- *-next)
- os=-nextstep3
- ;;
- *-gould)
- os=-sysv
- ;;
- *-highlevel)
- os=-bsd
- ;;
- *-encore)
- os=-bsd
- ;;
- *-sgi)
- os=-irix
- ;;
- *-siemens)
- os=-sysv4
- ;;
- *-masscomp)
- os=-rtu
- ;;
- f30[01]-fujitsu | f700-fujitsu)
- os=-uxpv
- ;;
- *-rom68k)
- os=-coff
- ;;
- *-*bug)
- os=-coff
- ;;
- *-apple)
- os=-macos
- ;;
- *-atari*)
- os=-mint
- ;;
- *)
- os=-none
- ;;
-esac
-fi
-
-# Here we handle the case where we know the os, and the CPU type, but not the
-# manufacturer. We pick the logical manufacturer.
-vendor=unknown
-case $basic_machine in
- *-unknown)
- case $os in
- -riscix*)
- vendor=acorn
- ;;
- -sunos*)
- vendor=sun
- ;;
- -aix*)
- vendor=ibm
- ;;
- -beos*)
- vendor=be
- ;;
- -hpux*)
- vendor=hp
- ;;
- -mpeix*)
- vendor=hp
- ;;
- -hiux*)
- vendor=hitachi
- ;;
- -unos*)
- vendor=crds
- ;;
- -dgux*)
- vendor=dg
- ;;
- -luna*)
- vendor=omron
- ;;
- -genix*)
- vendor=ns
- ;;
- -mvs* | -opened*)
- vendor=ibm
- ;;
- -os400*)
- vendor=ibm
- ;;
- -ptx*)
- vendor=sequent
- ;;
- -tpf*)
- vendor=ibm
- ;;
- -vxsim* | -vxworks* | -windiss*)
- vendor=wrs
- ;;
- -aux*)
- vendor=apple
- ;;
- -hms*)
- vendor=hitachi
- ;;
- -mpw* | -macos*)
- vendor=apple
- ;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- vendor=atari
- ;;
- -vos*)
- vendor=stratus
- ;;
- esac
- basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
- ;;
-esac
-
-echo $basic_machine$os
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/mk/gnu-config/libtool-1.4.m4 b/mk/gnu-config/libtool-1.4.m4
deleted file mode 100644
index aa7e62a0e67..00000000000
--- a/mk/gnu-config/libtool-1.4.m4
+++ /dev/null
@@ -1,854 +0,0 @@
-## libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
-## Copyright 1996, 1997, 1998, 1999, 2000, 2001
-## Free Software Foundation, Inc.
-## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2 of the License, or
-## (at your option) any later version.
-##
-## This program is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## As a special exception to the GNU General Public License, if you
-## distribute this file as part of a program that contains a
-## configuration script generated by Autoconf, you may include it under
-## the same distribution terms that you use for the rest of that program.
-
-# serial 46 AC_PROG_LIBTOOL
-AC_DEFUN([AC_PROG_LIBTOOL],
-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
- AC_PROVIDE_IFELSE([AC_PROG_CXX],
- [AC_LIBTOOL_CXX],
- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
-])])
-
-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [ifdef([AC_PROG_GCJ],
- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ
-])])
- ifdef([A][M_PROG_GCJ],
- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ
-])])
- ifdef([LT_AC_PROG_GCJ],
- [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ
-])])])])])])
-
-AC_DEFUN([_AC_PROG_LIBTOOL],
-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
-
-# Save cache, so that ltconfig can load it
-AC_CACHE_SAVE
-
-# Actually configure libtool. ac_aux_dir is where install-sh is found.
-AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
-MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
-LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
-AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
-objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
-deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
-$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
-|| AC_MSG_ERROR([libtool configure failed])
-
-# Reload cache, that may have been modified by ltconfig
-AC_CACHE_LOAD
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-# Redirect the config.log output again, so that the ltconfig log is not
-# clobbered by the next message.
-exec 5>>./config.log
-])
-
-AC_DEFUN([AC_LIBTOOL_SETUP],
-[AC_PREREQ(2.13)dnl
-AC_REQUIRE([AC_ENABLE_SHARED])dnl
-AC_REQUIRE([AC_ENABLE_STATIC])dnl
-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_PROG_LD])dnl
-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
-AC_REQUIRE([AC_PROG_NM])dnl
-AC_REQUIRE([AC_PROG_LN_S])dnl
-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
-AC_REQUIRE([AC_OBJEXT])dnl
-AC_REQUIRE([AC_EXEEXT])dnl
-dnl
-
-# Only perform the check for file, if the check method requires it
-case $deplibs_check_method in
-file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- AC_PATH_MAGIC
- fi
- ;;
-esac
-
-AC_CHECK_TOOL(RANLIB, ranlib, :)
-AC_CHECK_TOOL(STRIP, strip, :)
-
-# Check for any special flags to pass to ltconfig.
-libtool_flags="--cache-file=$cache_file"
-test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
-test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
-test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
-test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
-test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
-ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
-[libtool_flags="$libtool_flags --enable-dlopen"])
-ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
-[libtool_flags="$libtool_flags --enable-win32-dll"])
-AC_ARG_ENABLE(libtool-lock,
- [ --disable-libtool-lock avoid locking (might break parallel builds)])
-test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
-test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
-
-AC_ARG_WITH(pic,
- [ --with-pic try to use only PIC/non-PIC objects [default=use both]],
- pic_mode="$withval", pic_mode=default)
-test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
-test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
-
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-*-*-irix6*)
- # Find out which ABI we are using.
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-
-*-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
- [AC_LANG_SAVE
- AC_LANG_C
- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
- AC_LANG_RESTORE])
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
- ;;
-
-ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- AC_CHECK_TOOL(AS, as, false)
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
-
- # recent cygwin and mingw systems supply a stub DllMain which the user
- # can override, but on older systems we have to supply one
- AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
- [AC_TRY_LINK([],
- [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
- DllMain (0, 0, 0);],
- [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
-
- case $host/$CC in
- *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
- # old mingw systems require "-dll" to link a DLL, while more recent ones
- # require "-mdll"
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -mdll"
- AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
- [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
- CFLAGS="$SAVE_CFLAGS" ;;
- *-*-cygwin* | *-*-pw32*)
- # cygwin systems need to pass --dll to the linker, and not link
- # crt.o which will require a WinMain@16 definition.
- lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
- esac
- ;;
- ])
-esac
-])
-
-# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
-AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
-
-# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
-AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
-
-# AC_ENABLE_SHARED - implement the --enable-shared flag
-# Usage: AC_ENABLE_SHARED[(DEFAULT)]
-# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
-# `yes'.
-AC_DEFUN([AC_ENABLE_SHARED],
-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE(shared,
-changequote(<<, >>)dnl
-<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
-changequote([, ])dnl
-[p=${PACKAGE-default}
-case $enableval in
-yes) enable_shared=yes ;;
-no) enable_shared=no ;;
-*)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac],
-enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
-])
-
-# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
-AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_SHARED(no)])
-
-# AC_ENABLE_STATIC - implement the --enable-static flag
-# Usage: AC_ENABLE_STATIC[(DEFAULT)]
-# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
-# `yes'.
-AC_DEFUN([AC_ENABLE_STATIC],
-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE(static,
-changequote(<<, >>)dnl
-<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
-changequote([, ])dnl
-[p=${PACKAGE-default}
-case $enableval in
-yes) enable_static=yes ;;
-no) enable_static=no ;;
-*)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac],
-enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
-])
-
-# AC_DISABLE_STATIC - set the default static flag to --disable-static
-AC_DEFUN([AC_DISABLE_STATIC],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_STATIC(no)])
-
-
-# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
-# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
-# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
-# `yes'.
-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE(fast-install,
-changequote(<<, >>)dnl
-<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
-changequote([, ])dnl
-[p=${PACKAGE-default}
-case $enableval in
-yes) enable_fast_install=yes ;;
-no) enable_fast_install=no ;;
-*)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
- for pkg in $enableval; do
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$ac_save_ifs"
- ;;
-esac],
-enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
-])
-
-# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_FAST_INSTALL(no)])
-
-# AC_LIBTOOL_PICMODE - implement the --with-pic flag
-# Usage: AC_LIBTOOL_PICMODE[(MODE)]
-# Where MODE is either `yes' or `no'. If omitted, it defaults to
-# `both'.
-AC_DEFUN([AC_LIBTOOL_PICMODE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-pic_mode=ifelse($#,1,$1,default)])
-
-
-# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
-AC_DEFUN([AC_PATH_TOOL_PREFIX],
-[AC_MSG_CHECKING([for $1])
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
-[case $MAGIC_CMD in
- /*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
- ?:/*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
- ;;
- *)
- ac_save_MAGIC_CMD="$MAGIC_CMD"
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
-dnl $ac_dummy forces splitting on constant user-supplied paths.
-dnl POSIX.2 word splitting is done only on the output of word expansions,
-dnl not every word. This closes a longstanding sh security hole.
- ac_dummy="ifelse([$2], , $PATH, [$2])"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$1; then
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- egrep "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$ac_save_ifs"
- MAGIC_CMD="$ac_save_MAGIC_CMD"
- ;;
-esac])
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- AC_MSG_RESULT($MAGIC_CMD)
-else
- AC_MSG_RESULT(no)
-fi
-])
-
-
-# AC_PATH_MAGIC - find a file program which can recognise a shared library
-AC_DEFUN([AC_PATH_MAGIC],
-[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
-AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
-if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
- else
- MAGIC_CMD=:
- fi
-fi
-])
-
-
-# AC_PROG_LD - find the path to the GNU or non-GNU linker
-AC_DEFUN([AC_PROG_LD],
-[AC_ARG_WITH(gnu-ld,
-[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
-test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-ac_prog=ld
-if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- AC_MSG_CHECKING([for ld used by GCC])
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [[\\/]* | [A-Za-z]:[\\/]*)]
- re_direlt=['/[^/][^/]*/\.\./']
- # Canonicalize the path of ld
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
-elif test "$with_gnu_ld" = yes; then
- AC_MSG_CHECKING([for GNU ld])
-else
- AC_MSG_CHECKING([for non-GNU ld])
-fi
-AC_CACHE_VAL(lt_cv_path_LD,
-[if test -z "$LD"; then
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- test "$with_gnu_ld" != no && break
- else
- test "$with_gnu_ld" != yes && break
- fi
- fi
- done
- IFS="$ac_save_ifs"
-else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi])
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
- AC_MSG_RESULT($LD)
-else
- AC_MSG_RESULT(no)
-fi
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
-AC_PROG_LD_GNU
-])
-
-AC_DEFUN([AC_PROG_LD_GNU],
-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
- lt_cv_prog_gnu_ld=yes
-else
- lt_cv_prog_gnu_ld=no
-fi])
-with_gnu_ld=$lt_cv_prog_gnu_ld
-])
-
-# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
-# -- PORTME Some linkers may need a different reload flag.
-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
-[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
-[lt_cv_ld_reload_flag='-r'])
-reload_flag=$lt_cv_ld_reload_flag
-test -n "$reload_flag" && reload_flag=" $reload_flag"
-])
-
-# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
-# -- PORTME fill in with the dynamic library characteristics
-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
-[AC_CACHE_CHECK([how to recognise dependant libraries],
-lt_cv_deplibs_check_method,
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [regex]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given egrep regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-
-case $host_os in
-aix*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-beos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-bsdi4*)
- lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
- ;;
-
-cygwin* | mingw* |pw32*)
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- lt_cv_file_magic_cmd='$OBJDUMP -f'
- ;;
-
-darwin* | rhapsody*)
- lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- case "$host_os" in
- rhapsody* | darwin1.[012])
- lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
- ;;
- *) # Darwin 1.3 on
- lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
- ;;
- esac
- ;;
-
-freebsd* )
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- case $host_cpu in
- i*86 )
- # Not sure whether the presence of OpenBSD here was a mistake.
- # Let's accept both of them until this is cleared up.
- lt_cv_deplibs_check_method=['file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- ;;
- esac
- else
- lt_cv_deplibs_check_method=pass_all
- fi
- ;;
-
-gnu*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-hpux10.20*|hpux11*)
- lt_cv_deplibs_check_method=['file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
-
-irix5* | irix6*)
- case $host_os in
- irix5*)
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
- ;;
- *)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
- esac
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method=["file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
- ;;
- esac
- lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-# This must be Linux ELF.
-linux-gnu*)
- case $host_cpu in
- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
- lt_cv_deplibs_check_method=pass_all ;;
- *)
- # glibc up to 2.1.1 does not perform some relocations on ARM
- lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;;
- esac
- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
- ;;
-
-netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
- else
- [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
- fi
- ;;
-
-newsos6)
- [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
- ;;
-
-osf3* | osf4* | osf5*)
- # this will be overridden with pass_all, but let us keep it just in case
- lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
- lt_cv_file_magic_test_file=/shlib/libc.so
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sco3.2v5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-solaris*)
- lt_cv_deplibs_check_method=pass_all
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
-
-[sysv5uw[78]* | sysv4*uw2*)]
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- case $host_vendor in
- ncr)
- lt_cv_deplibs_check_method=pass_all
- ;;
- motorola)
- lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- ;;
- esac
- ;;
-esac
-])
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-])
-
-
-# AC_PROG_NM - find the path to a BSD-compatible name lister
-AC_DEFUN([AC_PROG_NM],
-[AC_MSG_CHECKING([for BSD-compatible nm])
-AC_CACHE_VAL(lt_cv_path_NM,
-[if test -n "$NM"; then
- # Let the user override the test.
- lt_cv_path_NM="$NM"
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
- test -z "$ac_dir" && ac_dir=.
- tmp_nm=$ac_dir/${ac_tool_prefix}nm
- if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- # Tru64's nm complains that /dev/null is an invalid object file
- if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
- lt_cv_path_NM="$tmp_nm -B"
- break
- elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- lt_cv_path_NM="$tmp_nm -p"
- break
- else
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- fi
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
-fi])
-NM="$lt_cv_path_NM"
-AC_MSG_RESULT([$NM])
-])
-
-# AC_CHECK_LIBM - check for math library
-AC_DEFUN([AC_CHECK_LIBM],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-LIBM=
-case $host in
-*-*-beos* | *-*-cygwin* | *-*-pw32*)
- # These system don't have libm
- ;;
-*-ncr-sysv4.3*)
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
- AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
- ;;
-*)
- AC_CHECK_LIB(m, main, LIBM="-lm")
- ;;
-esac
-])
-
-# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
-# the libltdl convenience library and INCLTDL to the include flags for
-# the libltdl header and adds --enable-ltdl-convenience to the
-# configure arguments. Note that LIBLTDL and INCLTDL are not
-# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
-# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
-# with '${top_builddir}/' and INCLTDL will be prefixed with
-# '${top_srcdir}/' (note the single quotes!). If your package is not
-# flat and you're not using automake, define top_builddir and
-# top_srcdir appropriately in the Makefiles.
-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- case $enable_ltdl_convenience in
- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
- "") enable_ltdl_convenience=yes
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
- esac
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
- INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
-])
-
-# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
-# the libltdl installable library and INCLTDL to the include flags for
-# the libltdl header and adds --enable-ltdl-install to the configure
-# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
-# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
-# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
-# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
-# with '${top_srcdir}/' (note the single quotes!). If your package is
-# not flat and you're not using automake, define top_builddir and
-# top_srcdir appropriately in the Makefiles.
-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_CHECK_LIB(ltdl, main,
- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
- [if test x"$enable_ltdl_install" = xno; then
- AC_MSG_WARN([libltdl not installed, but installation disabled])
- else
- enable_ltdl_install=yes
- fi
- ])
- if test x"$enable_ltdl_install" = x"yes"; then
- ac_configure_args="$ac_configure_args --enable-ltdl-install"
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
- INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- else
- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
- LIBLTDL="-lltdl"
- INCLTDL=
- fi
-])
-
-# If this macro is not defined by Autoconf, define it here.
-ifdef([AC_PROVIDE_IFELSE],
- [],
- [define([AC_PROVIDE_IFELSE],
- [ifdef([AC_PROVIDE_$1],
- [$2], [$3])])])
-
-# AC_LIBTOOL_CXX - enable support for C++ libraries
-AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])])
-
-AC_DEFUN([_AC_LIBTOOL_CXX],
-[AC_REQUIRE([AC_PROG_CXX])
-AC_REQUIRE([AC_PROG_CXXCPP])
-LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
-lt_save_CC="$CC"
-lt_save_CFLAGS="$CFLAGS"
-dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
-dnl is set to the C++ compiler.
-AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
-MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
-LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
-AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
-objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
-deplibs_check_method="$deplibs_check_method" \
-file_magic_cmd="$file_magic_cmd" \
-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
---build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
-|| AC_MSG_ERROR([libtool tag configuration failed])
-CC="$lt_save_CC"
-CFLAGS="$lt_save_CFLAGS"
-
-# Redirect the config.log output again, so that the ltconfig log is not
-# clobbered by the next message.
-exec 5>>./config.log
-])
-
-# AC_LIBTOOL_GCJ - enable support for GCJ libraries
-AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])])
-
-AC_DEFUN([_AC_LIBTOOL_GCJ],
-[AC_REQUIRE([AC_PROG_LIBTOOL])
-AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
-LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
-lt_save_CC="$CC"
-lt_save_CFLAGS="$CFLAGS"
-dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
-dnl is set to the C++ compiler.
-AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
-MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
-LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
-AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
-objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
-deplibs_check_method="$deplibs_check_method" \
-file_magic_cmd="$file_magic_cmd" \
-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
---build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
-|| AC_MSG_ERROR([libtool tag configuration failed])
-CC="$lt_save_CC"
-CFLAGS="$lt_save_CFLAGS"
-
-# Redirect the config.log output again, so that the ltconfig log is not
-# clobbered by the next message.
-exec 5>>./config.log
-])
-
-dnl old names
-AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
-AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
-AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
-AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
-AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
-AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
-AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
-
-dnl This is just to silence aclocal about the macro not being used
-ifelse([AC_DISABLE_FAST_INSTALL])dnl
-
-AC_DEFUN([LT_AC_PROG_GCJ],
-[AC_CHECK_TOOL(GCJ, gcj, no)
- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
- AC_SUBST(GCJFLAGS)
-])
diff --git a/mk/gnu-config/missing b/mk/gnu-config/missing
deleted file mode 100755
index 0874cdfc852..00000000000
--- a/mk/gnu-config/missing
+++ /dev/null
@@ -1,339 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: missing,v 1.1 2002/11/21 00:13:34 jlam Exp $
-
-# Common stub for a few missing GNU programs while installing.
-# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
-fi
-
-run=:
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
- configure_ac=configure.ac
-else
- configure_ac=configure.in
-fi
-
-case "$1" in
---run)
- # Try to run requested program, and just exit if it succeeds.
- run=
- shift
- "$@" && exit 0
- ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case "$1" in
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
- --run try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
- aclocal touch file \`aclocal.m4'
- autoconf touch file \`configure'
- autoheader touch file \`config.h.in'
- automake touch all \`Makefile.in' files
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
- flex create \`lex.yy.c', if possible, from existing .c
- help2man touch the output file
- lex create \`lex.yy.c', if possible, from existing .c
- makeinfo touch the output file
- tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing 0.4 - GNU automake"
- ;;
-
- -*)
- echo 1>&2 "$0: Unknown \`$1' option"
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
- ;;
-
- aclocal*)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
- to install the \`Automake' and \`Perl' packages. Grab them from
- any GNU archive site."
- touch aclocal.m4
- ;;
-
- autoconf)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`${configure_ac}'. You might want to install the
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
- archive site."
- touch configure
- ;;
-
- autoheader)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
- from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
- test -z "$files" && files="config.h"
- touch_files=
- for f in $files; do
- case "$f" in
- *:*) touch_files="$touch_files "`echo "$f" |
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
- *) touch_files="$touch_files $f.in";;
- esac
- done
- touch $touch_files
- ;;
-
- automake*)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
- You might want to install the \`Automake' and \`Perl' packages.
- Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print |
- sed 's/\.am$/.in/' |
- while read f; do touch "$f"; done
- ;;
-
- autom4te)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
- echo 1>&2 "\
-WARNING: \`$1' is needed, and you do not seem to have it handy on your
- system. You might have modified some files without having the
- proper tools for further handling them.
- You can get \`$1Help2man' as part of \`Autoconf' from any GNU
- archive site."
-
- file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
- test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo "#! /bin/sh"
- echo "# Created by GNU Automake missing as a replacement of"
- echo "# $ $@"
- echo "exit 0"
- chmod +x $file
- exit 1
- fi
- ;;
-
- bison|yacc)
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified a \`.y' file. You may need the \`Bison' package
- in order for those modifications to take effect. You can get
- \`Bison' from any GNU archive site."
- rm -f y.tab.c y.tab.h
- if [ $# -ne 1 ]; then
- eval LASTARG="\${$#}"
- case "$LASTARG" in
- *.y)
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
- if [ -f "$SRCFILE" ]; then
- cp "$SRCFILE" y.tab.c
- fi
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
- if [ -f "$SRCFILE" ]; then
- cp "$SRCFILE" y.tab.h
- fi
- ;;
- esac
- fi
- if [ ! -f y.tab.h ]; then
- echo >y.tab.h
- fi
- if [ ! -f y.tab.c ]; then
- echo 'main() { return 0; }' >y.tab.c
- fi
- ;;
-
- lex|flex)
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified a \`.l' file. You may need the \`Flex' package
- in order for those modifications to take effect. You can get
- \`Flex' from any GNU archive site."
- rm -f lex.yy.c
- if [ $# -ne 1 ]; then
- eval LASTARG="\${$#}"
- case "$LASTARG" in
- *.l)
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
- if [ -f "$SRCFILE" ]; then
- cp "$SRCFILE" lex.yy.c
- fi
- ;;
- esac
- fi
- if [ ! -f lex.yy.c ]; then
- echo 'main() { return 0; }' >lex.yy.c
- fi
- ;;
-
- help2man)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- fi
-
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified a dependency of a manual page. You may need the
- \`Help2man' package in order for those modifications to take
- effect. You can get \`Help2man' from any GNU archive site."
-
- file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
- if test -z "$file"; then
- file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
- fi
- if [ -f "$file" ]; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo ".ab help2man is required to generate this page"
- exit 1
- fi
- ;;
-
- makeinfo)
- if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
- # We have makeinfo, but it failed.
- exit 1
- fi
-
- echo 1>&2 "\
-WARNING: \`$1' is missing on your system. You should only need it if
- you modified a \`.texi' or \`.texinfo' file, or any other file
- indirectly affecting the aspect of the manual. The spurious
- call might also be the consequence of using a buggy \`make' (AIX,
- DU, IRIX). You might want to install the \`Texinfo' package or
- the \`GNU make' package. Grab either from any GNU archive site."
- file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
- if test -z "$file"; then
- file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
- fi
- touch $file
- ;;
-
- tar)
- shift
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- fi
-
- # We have already tried tar in the generic part.
- # Look for gnutar/gtar before invocation to avoid ugly error
- # messages.
- if (gnutar --version > /dev/null 2>&1); then
- gnutar "$@" && exit 0
- fi
- if (gtar --version > /dev/null 2>&1); then
- gtar "$@" && exit 0
- fi
- firstarg="$1"
- if shift; then
- case "$firstarg" in
- *o*)
- firstarg=`echo "$firstarg" | sed s/o//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- case "$firstarg" in
- *h*)
- firstarg=`echo "$firstarg" | sed s/h//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- fi
-
- echo 1>&2 "\
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
- You may want to install GNU tar or Free paxutils, or check the
- command line arguments."
- exit 1
- ;;
-
- *)
- echo 1>&2 "\
-WARNING: \`$1' is needed, and you do not seem to have it handy on your
- system. You might have modified some files without having the
- proper tools for further handling them. Check the \`README' file,
- it often tells you about the needed prerequirements for installing
- this package. You may also peek at any GNU archive site, in case
- some other package would contain this missing \`$1' program."
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/mk/install/bsd.pkginstall.mk b/mk/install/bsd.pkginstall.mk
deleted file mode 100644
index c479f796077..00000000000
--- a/mk/install/bsd.pkginstall.mk
+++ /dev/null
@@ -1,710 +0,0 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.29 2005/10/28 20:09:38 joerg Exp $
-#
-# This Makefile fragment is included by bsd.pkg.mk to use the common
-# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
-#
-# (1) Set the variables to customize the install scripts to the package, and
-# (2) Set USE_PKGINSTALL to YES in the package Makefile.
-
-.if defined(BSD_PKG_INSTALL_MK)
-PKG_FAIL_REASON+= "[bsd.pkginstall.mk] Must not be included directly."
-
-.else
-BSD_PKG_INSTALL_MK= 1
-
-.include "../../mk/bsd.prefs.mk"
-
-# The Solaris /bin/sh does not know the ${foo#bar} shell substitution.
-# This shell function serves a similar purpose, but is specialized on
-# stripping ${PREFIX}/ from a pathname.
-_FUNC_STRIP_PREFIX= \
- strip_prefix() { \
- ${AWK} 'END { \
- plen = length(prefix); \
- if (substr(s, 1, plen) == prefix) { \
- s = substr(s, 1 + plen, length(s) - plen); \
- } \
- print s; \
- }' s="$$1" prefix=${PREFIX:Q}/ /dev/null; \
- }
-
-DEINSTALL_FILE= ${PKG_DB_TMPDIR}/+DEINSTALL
-INSTALL_FILE= ${PKG_DB_TMPDIR}/+INSTALL
-
-# These are the template scripts for the INSTALL/DEINSTALL scripts. Packages
-# may do additional work in the INSTALL/DEINSTALL scripts by overriding the
-# variables DEINSTALL_EXTRA_TMPL and INSTALL_EXTRA_TMPL to point to
-# additional script fragments. These bits are included after the main
-# install/deinstall script fragments. Packages may also override the
-# variables DEINSTALL_TMPL and INSTALL_TMPL to completely customize the
-# install/deinstall logic.
-#
-_HEADER_TMPL?= ${.CURDIR}/../../mk/install/header
-.if !defined(HEADER_EXTRA_TMPL) && exists(${.CURDIR}/HEADER)
-HEADER_EXTRA_TMPL?= ${.CURDIR}/HEADER
-.else
-HEADER_EXTRA_TMPL?= # empty
-.endif
-DEINSTALL_PRE_TMPL?= ${.CURDIR}/../../mk/install/deinstall-pre
-DEINSTALL_EXTRA_TMPL?= # empty
-DEINSTALL_TMPL?= ${.CURDIR}/../../mk/install/deinstall
-INSTALL_UNPACK_TMPL?= # empty
-INSTALL_TMPL?= ${.CURDIR}/../../mk/install/install
-INSTALL_EXTRA_TMPL?= # empty
-INSTALL_POST_TMPL?= ${.CURDIR}/../../mk/install/install-post
-_FOOTER_TMPL?= ${.CURDIR}/../../mk/install/footer
-
-# DEINSTALL_TEMPLATES and INSTALL_TEMPLATES are the default list of source
-# files that are concatenated to form the DEINSTALL/INSTALL scripts.
-#
-DEINSTALL_TEMPLATES= ${_HEADER_TMPL}
-DEINSTALL_TEMPLATES+= ${HEADER_EXTRA_TMPL}
-DEINSTALL_TEMPLATES+= ${DEINSTALL_PRE_TMPL}
-DEINSTALL_TEMPLATES+= ${DEINSTALL_EXTRA_TMPL}
-DEINSTALL_TEMPLATES+= ${DEINSTALL_TMPL}
-DEINSTALL_TEMPLATES+= ${_FOOTER_TMPL}
-INSTALL_TEMPLATES= ${_HEADER_TMPL}
-INSTALL_TEMPLATES+= ${HEADER_EXTRA_TMPL}
-INSTALL_TEMPLATES+= ${INSTALL_UNPACK_TMPL}
-INSTALL_TEMPLATES+= ${INSTALL_TMPL}
-INSTALL_TEMPLATES+= ${INSTALL_EXTRA_TMPL}
-INSTALL_TEMPLATES+= ${INSTALL_POST_TMPL}
-INSTALL_TEMPLATES+= ${_FOOTER_TMPL}
-
-# These are the list of source files that are concatenated to form the
-# INSTALL/DEINSTALL scripts.
-#
-DEINSTALL_SRC?= ${DEINSTALL_TEMPLATES}
-INSTALL_SRC?= ${INSTALL_TEMPLATES}
-
-# FILES_SUBST lists what to substitute in DEINSTALL/INSTALL scripts and in
-# rc.d scripts.
-#
-FILES_SUBST+= PREFIX=${PREFIX}
-FILES_SUBST+= LOCALBASE=${LOCALBASE}
-FILES_SUBST+= X11BASE=${X11BASE}
-FILES_SUBST+= DEPOTBASE=${DEPOTBASE}
-FILES_SUBST+= VARBASE=${VARBASE}
-FILES_SUBST+= PKG_SYSCONFBASE=${PKG_SYSCONFBASE}
-FILES_SUBST+= PKG_SYSCONFDEPOTBASE=${PKG_SYSCONFDEPOTBASE}
-FILES_SUBST+= PKG_SYSCONFBASEDIR=${PKG_SYSCONFBASEDIR}
-FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
-FILES_SUBST+= CONF_DEPENDS=${CONF_DEPENDS:C/:.*//:Q}
-FILES_SUBST+= PKGBASE=${PKGBASE}
-FILES_SUBST+= PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}
-
-# PKG_USERS represents the users to create for the package. It is a
-# space-separated list of elements of the form
-#
-# user:group[:[userid][:[descr][:[home][:shell]]]]
-#
-# Only the user and group are required; everything else is optional,
-# but the colons must be in the right places when specifying optional
-# bits. Note that if the description contains spaces, they must
-# be escaped as usual, e.g.
-#
-# foo:foogrp::The\ Foomister
-#
-# PKG_GROUPS represents the groups to create for the package. It is a
-# space-separated list of elements of the form
-#
-# group[:groupid]
-#
-# Only the group is required; the groupid is optional.
-#
-PKG_GROUPS?= # empty
-PKG_USERS?= # empty
-_PKG_USER_HOME?= /nonexistent
-_PKG_USER_SHELL?= ${NOLOGIN}
-FILES_SUBST+= PKG_USER_HOME=${_PKG_USER_HOME}
-FILES_SUBST+= PKG_USER_SHELL=${_PKG_USER_SHELL}
-
-# REMOVE: after 2005Q4
-.if !empty(PKG_USERS:M*\\\\*)
-PKG_FAIL_REASON+= "[bsd.pkginstall.mk] PKG_USERS must not contain double backslashes."
-.endif
-
-# Interix is very special in that users are groups cannot have the
-# same name. Interix.mk tries to work around this by overriding
-# some specific package defaults. If we get here and there's still a
-# conflict, add a breakage indicator to make sure the package won't
-# compile without changing something.
-#
-.if !empty(OPSYS:MInterix)
-. for user in ${PKG_USERS:C/\\\\//g:C/:.*//}
-. if !empty(PKG_GROUPS:M${user})
-PKG_FAIL_REASON+= "User and group '${user}' cannot have the same name on Interix"
-. endif
-. endfor
-.endif
-
-.if !empty(PKG_USERS) || !empty(PKG_GROUPS)
-DEPENDS+= ${_USER_DEPENDS}
-.endif
-
-INSTALL_USERGROUP_FILE= ${WRKDIR}/.install-usergroup
-.if exists(../../mk/install/usergroupfuncs.${OPSYS})
-INSTALL_USERGROUPFUNCS_FILE?= ../../mk/install/usergroupfuncs.${OPSYS}
-.else
-INSTALL_USERGROUPFUNCS_FILE?= ../../mk/install/usergroupfuncs
-.endif
-INSTALL_USERGROUP_MEMBERS= ${PKG_USERS} ${PKG_GROUPS}
-INSTALL_UNPACK_TMPL+= ${INSTALL_USERGROUP_FILE}
-
-.if empty(INSTALL_USERGROUP_MEMBERS:M*)
-${INSTALL_USERGROUP_FILE}:
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-.else
-${INSTALL_USERGROUP_FILE}: \
- ../../mk/install/usergroup \
- ${INSTALL_USERGROUPFUNCS_FILE}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${RM} -f ${.TARGET} ${.TARGET}.tmp; \
- exec 1>>${.TARGET}.tmp; \
- ${ECHO} "# start of install-usergroup"; \
- ${ECHO} "#"; \
- ${ECHO} "# Generate a +USERGROUP script that reference counts users"; \
- ${ECHO} "# and groups that are required for the proper functioning"; \
- ${ECHO} "# of the package."; \
- ${ECHO} "#"; \
- ${ECHO} "case \$${STAGE} in"; \
- ${ECHO} "PRE-INSTALL|UNPACK)"; \
- ${ECHO} " \$${CAT} > ./+USERGROUP << 'EOF_USERGROUP'"; \
- ${SED} -e "/^# platform-specific adduser\/addgroup functions/r${INSTALL_USERGROUPFUNCS_FILE}" ../../mk/install/usergroup | \
- ${SED} ${FILES_SUBST_SED}; \
- ${ECHO} ""; \
- set -- dummy ${PKG_GROUPS}; shift; \
- while ${TEST} $$# -gt 0; do \
- i="$$1"; shift; \
- ${ECHO} "# GROUP: $$i"; \
- done; \
- set -- dummy ${PKG_USERS}; shift; \
- while ${TEST} $$# -gt 0; do \
- i="$$1"; shift; \
- ${ECHO} "# USER: $$i"; \
- done; \
- ${ECHO} "EOF_USERGROUP"; \
- ${ECHO} " \$${CHMOD} +x ./+USERGROUP"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-usergroup"; \
- exec 1>/dev/null; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-.endif
-
-# SPECIAL_PERMS are lists that look like:
-# file user group mode
-# At post-install time, file (it may be a directory) is changed to be
-# owned by user:group with mode permissions. If a file pathname
-# is relative, then it is taken to be relative to ${PREFIX}.
-#
-# SPECIAL_PERMS should be used primarily to change permissions of files or
-# directories listed in the PLIST. This may be used to make certain files
-# set-uid or to change the ownership or a directory.
-#
-# SETUID_ROOT_PERMS is a convenience definition to note an executable is
-# meant to be setuid-root, and should be used as follows:
-#
-# SPECIAL_PERMS+= /path/to/suidroot ${SETUID_ROOT_PERMS}
-#
-SPECIAL_PERMS?= # empty
-SETUID_ROOT_PERMS?= ${ROOT_USER} ${ROOT_GROUP} 4711
-
-INSTALL_PERMS_FILE= ${WRKDIR}/.install-perms
-INSTALL_PERMS_MEMBERS= ${SPECIAL_PERMS}
-INSTALL_UNPACK_TMPL+= ${INSTALL_PERMS_FILE}
-
-.if empty(INSTALL_PERMS_MEMBERS:M*)
-${INSTALL_PERMS_FILE}:
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-.else
-${INSTALL_PERMS_FILE}: ../../mk/install/perms
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET} ${.TARGET}.tmp
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${_FUNC_STRIP_PREFIX}; \
- exec 1>>${.TARGET}.tmp; \
- ${ECHO} "# start of install-perms"; \
- ${ECHO} "#"; \
- ${ECHO} "# Generate a +PERMS script that sets the special"; \
- ${ECHO} "# permissions on files and directories used by the"; \
- ${ECHO} "# package."; \
- ${ECHO} "#"; \
- ${ECHO} "case \$${STAGE} in"; \
- ${ECHO} "PRE-INSTALL|UNPACK)"; \
- ${ECHO} " \$${CAT} > ./+PERMS << 'EOF_PERMS'"; \
- ${SED} ${FILES_SUBST_SED} ../../mk/install/perms; \
- ${ECHO} ""; \
- set -- dummy ${SPECIAL_PERMS}; shift; \
- while ${TEST} $$# -gt 0; do \
- file="$$1"; owner="$$2"; group="$$3"; mode="$$4"; \
- shift; shift; shift; shift; \
- file=`strip_prefix "$$file"`; \
- ${ECHO} "# PERMS: $$file $$mode $$owner $$group"; \
- done; \
- ${ECHO} "EOF_PERMS"; \
- ${ECHO} " \$${CHMOD} +x ./+PERMS"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-perms"; \
- exec 1>/dev/null; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-.endif
-
-# CONF_FILES are pairs of example and true config files, used much like
-# MLINKS in the base system. At post-install time, if the true config
-# file doesn't exist, then the example one is copied into place. At
-# deinstall time, the true one is removed if it doesn't differ from the
-# example one. REQD_FILES is the same as CONF_FILES but the value
-# of PKG_CONFIG is ignored; however, all files listed in REQD_FILES
-# should be under ${PREFIX}.
-#
-# CONF_FILES_MODE and REQD_FILES_MODE are the file permissions for the
-# files in CONF_FILES and REQD_FILES, respectively.
-#
-# CONF_FILES_PERMS are lists that look like:
-#
-# example_file config_file user group mode
-#
-# and works like CONF_FILES, except the config files are owned by
-# user:group have mode permissions. REQD_FILES_PERMS is the same
-# as CONF_FILES_PERMS but the value of PKG_CONFIG is ignored;
-# however, all files listed in REQD_FILES_PERMS should be under
-# ${PREFIX}.
-#
-# RCD_SCRIPTS works lists the basenames of the rc.d scripts. They are
-# expected to be found in ${PREFIX}/share/examples/rc.d, and
-# the scripts will be copied into ${RCD_SCRIPTS_DIR} with
-# ${RCD_SCRIPTS_MODE} permissions.
-#
-# If any file pathnames are relative, then they are taken to be relative
-# to ${PREFIX}.
-#
-CONF_FILES?= # empty
-CONF_FILES_MODE?= 0644
-CONF_FILES_PERMS?= # empty
-RCD_SCRIPTS?= # empty
-RCD_SCRIPTS_MODE?= 0755
-RCD_SCRIPTS_EXAMPLEDIR= share/examples/rc.d
-RCD_SCRIPTS_SHELL?= ${SH}
-FILES_SUBST+= RCD_SCRIPTS_SHELL=${RCD_SCRIPTS_SHELL}
-MESSAGE_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR}
-MESSAGE_SUBST+= RCD_SCRIPTS_EXAMPLEDIR=${RCD_SCRIPTS_EXAMPLEDIR}
-
-INSTALL_FILES_FILE= ${WRKDIR}/.install-files
-INSTALL_FILES_MEMBERS= ${RCD_SCRIPTS} ${CONF_FILES} ${REQD_FILES} \
- ${CONF_FILES_PERMS} ${REQD_FILES_PERMS}
-INSTALL_UNPACK_TMPL+= ${INSTALL_FILES_FILE}
-
-.if empty(INSTALL_FILES_MEMBERS:M*)
-${INSTALL_FILES_FILE}:
- ${_PKG_DEBUG}${_PKG_SILENT}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-.else
-${INSTALL_FILES_FILE}: ../../mk/install/files
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET} ${.TARGET}.tmp
- ${_PKG_SILENT}${_PKG_DEBUG} \
- exec 1>>${.TARGET}.tmp; \
- ${ECHO} "# start of install-files"; \
- ${ECHO} "#"; \
- ${ECHO} "# Generate a +FILES script that reference counts config"; \
- ${ECHO} "# files that are required for the proper functioning"; \
- ${ECHO} "# of the package."; \
- ${ECHO} "#"; \
- ${ECHO} "case \$${STAGE} in"; \
- ${ECHO} "PRE-INSTALL|UNPACK)"; \
- ${ECHO} " \$${CAT} > ./+FILES << 'EOF_FILES'"; \
- ${SED} ${FILES_SUBST_SED} ../../mk/install/files; \
- ${ECHO} ""
- ${_PKG_SILENT}${_PKG_DEBUG}${_FUNC_STRIP_PREFIX}; \
- set -- dummy ${RCD_SCRIPTS}; shift; \
- exec 1>>${.TARGET}.tmp; \
- while ${TEST} $$# -gt 0; do \
- script="$$1"; shift; \
- file="${RCD_SCRIPTS_DIR:S/^${PREFIX}\///}/$$script"; \
- egfile="${RCD_SCRIPTS_EXAMPLEDIR}/$$script"; \
- ${ECHO} "# FILE: $$file cr $$egfile ${RCD_SCRIPTS_MODE}"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG}${_FUNC_STRIP_PREFIX}; \
- set -- dummy ${CONF_FILES}; shift; \
- exec 1>>${.TARGET}.tmp; \
- while ${TEST} $$# -gt 0; do \
- egfile="$$1"; file="$$2"; \
- shift; shift; \
- egfile=`strip_prefix "$$egfile"`; \
- file=`strip_prefix "$$file"`; \
- ${ECHO} "# FILE: $$file c $$egfile ${CONF_FILES_MODE}"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG}${_FUNC_STRIP_PREFIX}; \
- set -- dummy ${REQD_FILES}; shift; \
- exec 1>>${.TARGET}.tmp; \
- while ${TEST} $$# -gt 0; do \
- egfile="$$1"; file="$$2"; \
- shift; shift; \
- egfile=`strip_prefix "$$egfile"`; \
- file=`strip_prefix "$$file"`; \
- ${ECHO} "# FILE: $$file cf $$egfile ${REQD_FILES_MODE}"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG}${_FUNC_STRIP_PREFIX}; \
- set -- dummy ${CONF_FILES_PERMS}; shift; \
- exec 1>>${.TARGET}.tmp; \
- while ${TEST} $$# -gt 0; do \
- egfile="$$1"; file="$$2"; \
- owner="$$3"; group="$$4"; mode="$$5"; \
- shift; shift; shift; shift; shift; \
- egfile=`strip_prefix "$$egfile"`; \
- file=`strip_prefix "$$file"`; \
- ${ECHO} "# FILE: $$file c $$egfile $$mode $$owner $$group"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG}${_FUNC_STRIP_PREFIX}; \
- set -- dummy ${REQD_FILES_PERMS}; shift; \
- exec 1>>${.TARGET}.tmp; \
- while ${TEST} $$# -gt 0; do \
- egfile="$$1"; file="$$2"; \
- owner="$$3"; group="$$4"; mode="$$5"; \
- shift; shift; shift; shift; shift; \
- egfile=`strip_prefix "$$egfile"`; \
- file=`strip_prefix "$$file"`; \
- ${ECHO} "# FILE: $$file cf $$egfile $$mode $$owner $$group"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG} \
- exec 1>>${.TARGET}.tmp; \
- ${ECHO} "EOF_FILES"; \
- ${ECHO} " \$${CHMOD} +x ./+FILES"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-files"; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-.endif
-
-# OWN_DIRS contains a list of directories for this package that should be
-# created and should attempt to be destroyed by the INSTALL/DEINSTALL
-# scripts. MAKE_DIRS is used the same way, but the package admin
-# isn't prompted to remove the directory at post-deinstall time if it
-# isn't empty. REQD_DIRS is like MAKE_DIRS but the value of PKG_CONFIG
-# is ignored; however, all directories listed in REQD_DIRS should
-# be under ${PREFIX}.
-#
-# OWN_DIRS_PERMS contains a list of "directory owner group mode" sublists
-# representing directories for this package that should be
-# created/destroyed by the INSTALL/DEINSTALL scripts. MAKE_DIRS_PERMS
-# is used the same way but the package admin isn't prompted to remove
-# the directory at post-deinstall time if it isn't empty.
-# REQD_DIRS_PERMS is like MAKE_DIRS but the value of PKG_CONFIG is
-# ignored; however, all directories listed in REQD_DIRS should be
-# under ${PREFIX}.
-#
-# If any directory pathnames are relative, then they are taken to be
-# relative to ${PREFIX}.
-#
-MAKE_DIRS?= # empty
-MAKE_DIRS_PERMS?= # empty
-REQD_DIRS?= # empty
-REQD_DIRS_PERMS?= # empty
-OWN_DIRS?= # empty
-OWN_DIRS_PERMS?= # empty
-
-INSTALL_DIRS_FILE= ${WRKDIR}/.install-dirs
-INSTALL_DIRS_MEMBERS= ${PKG_SYSCONFSUBDIR} ${RCD_SCRIPTS} \
- ${CONF_FILES} ${CONF_FILES_PERMS} \
- ${MAKE_DIRS} ${MAKE_DIRS_PERMS} \
- ${REQD_DIRS} ${REDQ_DIRS_PERMS} \
- ${OWN_DIRS} ${OWN_DIRS_PERMS}
-INSTALL_UNPACK_TMPL+= ${INSTALL_DIRS_FILE}
-
-.if empty(INSTALL_DIRS_MEMBERS:M*)
-${INSTALL_DIRS_FILE}:
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-.else
-${INSTALL_DIRS_FILE}: ../../mk/install/dirs
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET} ${.TARGET}.tmp
- ${_PKG_SILENT}${_PKG_DEBUG} \
- exec 1>>${.TARGET}.tmp; \
- ${ECHO} "# start of install-dirs"; \
- ${ECHO} "#"; \
- ${ECHO} "# Generate a +DIRS script that reference counts directories"; \
- ${ECHO} "# that are required for the proper functioning of the"; \
- ${ECHO} "# package."; \
- ${ECHO} "#"; \
- ${ECHO} "case \$${STAGE} in"; \
- ${ECHO} "PRE-INSTALL|UNPACK)"; \
- ${ECHO} " \$${CAT} > ./+DIRS << 'EOF_DIRS'"; \
- ${SED} ${FILES_SUBST_SED} ../../mk/install/dirs; \
- ${ECHO} ""
- ${_PKG_SILENT}${_PKG_DEBUG} \
- exec 1>>${.TARGET}.tmp; \
- case ${PKG_SYSCONFSUBDIR:M*:Q}${CONF_FILES:M*:Q}${CONF_FILES_PERMS:M*:Q}"" in \
- "") ;; \
- *) ${ECHO} "# DIR: ${PKG_SYSCONFDIR:S/${PREFIX}\///} m" ;; \
- esac; \
- case ${RCD_SCRIPTS:M*:Q}"" in \
- "") ;; \
- *) ${ECHO} "# DIR: ${RCD_SCRIPTS_DIR:S/${PREFIX}\///} m" ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG}${_FUNC_STRIP_PREFIX}; \
- exec 1>>${.TARGET}.tmp; \
- set -- dummy ${MAKE_DIRS}; shift; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; shift; \
- dir=`strip_prefix "$$dir"`; \
- ${ECHO} "# DIR: $$dir m"; \
- done; \
- set -- dummy ${REQD_DIRS}; shift; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; shift; \
- dir=`strip_prefix "$$dir"`; \
- ${ECHO} "# DIR: $$dir fm"; \
- done; \
- set -- dummy ${OWN_DIRS}; shift; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; shift; \
- dir=`strip_prefix "$$dir"`; \
- ${ECHO} "# DIR: $$dir mo"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG}${_FUNC_STRIP_PREFIX}; \
- exec 1>>${.TARGET}.tmp; \
- set -- dummy ${MAKE_DIRS_PERMS}; shift; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; owner="$$2"; group="$$3"; mode="$$4"; \
- shift; shift; shift; shift; \
- dir=`strip_prefix "$$dir"`; \
- ${ECHO} "# DIR: $$dir m $$owner $$group $$mode"; \
- done; \
- set -- dummy ${REQD_DIRS_PERMS}; shift; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; owner="$$2"; group="$$3"; mode="$$4"; \
- shift; shift; shift; shift; \
- dir=`strip_prefix "$$dir"`; \
- ${ECHO} "# DIR: $$dir fm $$owner $$group $$mode"; \
- done; \
- set -- dummy ${OWN_DIRS_PERMS}; shift; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; owner="$$2"; group="$$3"; mode="$$4"; \
- shift; shift; shift; shift; \
- dir=`strip_prefix "$$dir"`; \
- ${ECHO} "# DIR: $$dir mo $$owner $$group $$mode"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG} \
- exec 1>>${.TARGET}.tmp; \
- ${ECHO} "EOF_DIRS"; \
- ${ECHO} " \$${CHMOD} +x ./+DIRS"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-dirs"; \
- exec 1>/dev/null; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-.endif
-
-# PKG_SHELL contains the pathname of the shell that should be added or
-# removed from the shell database, /etc/shells. If a pathname
-# is relative, then it is taken to be relative to ${PREFIX}.
-#
-PKG_SHELL?= # empty
-
-INSTALL_SHELL_FILE= ${WRKDIR}/.install-shell
-INSTALL_SHELL_MEMBERS= ${PKG_SHELL}
-INSTALL_UNPACK_TMPL+= ${INSTALL_SHELL_FILE}
-
-.if empty(INSTALL_SHELL_MEMBERS:M*)
-${INSTALL_SHELL_FILE}:
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-.else
-${INSTALL_SHELL_FILE}: ../../mk/install/shell
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET} ${.TARGET}.tmp
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${_FUNC_STRIP_PREFIX}; \
- exec 1>>${.TARGET}.tmp; \
- ${ECHO} "# start of install-shell"; \
- ${ECHO} "#"; \
- ${ECHO} "# Generate a +SHELL script that handles shell registration."; \
- ${ECHO} "#"; \
- ${ECHO} "case \$${STAGE} in"; \
- ${ECHO} "PRE-INSTALL|UNPACK)"; \
- ${ECHO} " \$${CAT} > ./+SHELL << 'EOF_SHELL'"; \
- ${SED} ${FILES_SUBST_SED} ../../mk/install/shell; \
- ${ECHO} ""; \
- set -- dummy ${PKG_SHELL}; shift; \
- while ${TEST} $$# -gt 0; do \
- shell="$$1"; shift; \
- shell=`strip_prefix "$$shell"`; \
- ${ECHO} "# SHELL: $$shell"; \
- done; \
- ${ECHO} "EOF_SHELL"; \
- ${ECHO} " \$${CHMOD} +x ./+SHELL"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-shell"; \
- exec 1>/dev/null; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-.endif
-
-# PKG_CREATE_USERGROUP indicates whether the INSTALL script should
-# automatically add any needed users/groups to the system using
-# useradd/groupadd. It is either YES or NO and defaults to YES.
-#
-# PKG_CONFIG indicates whether the INSTALL/DEINSTALL scripts should do
-# automatic config file and directory handling, or if it should
-# merely inform the admin of the list of required files and
-# directories needed to use the package. It is either YES or NO
-# and defaults to YES.
-#
-# PKG_RCD_SCRIPTS indicates whether to automatically install rc.d scripts
-# to ${RCD_SCRIPTS_DIR}. It is either YES or NO and defaults to
-# NO. This variable only takes effect if ${PKG_CONFIG} == "YES".
-#
-# PKG_REGISTER_SHELLS indicates whether to automatically register shells
-# in /etc/shells. It is either YES or NO and defaults to YES.
-#
-# These values merely set the defaults for INSTALL/DEINSTALL scripts, but
-# they may be overridden by resetting them in the environment.
-#
-PKG_CREATE_USERGROUP?= YES
-PKG_CONFIG?= YES
-PKG_RCD_SCRIPTS?= NO
-PKG_REGISTER_SHELLS?= YES
-FILES_SUBST+= PKG_CREATE_USERGROUP=${PKG_CREATE_USERGROUP}
-FILES_SUBST+= PKG_CONFIG=${PKG_CONFIG}
-FILES_SUBST+= PKG_RCD_SCRIPTS=${PKG_RCD_SCRIPTS}
-FILES_SUBST+= PKG_REGISTER_SHELLS=${PKG_REGISTER_SHELLS}
-
-# Substitute for various programs used in the DEINSTALL/INSTALL scripts and
-# in the rc.d scripts.
-#
-FILES_SUBST+= AWK=${AWK:Q}
-FILES_SUBST+= BASENAME=${BASENAME:Q}
-FILES_SUBST+= CAT=${CAT:Q}
-FILES_SUBST+= CHGRP=${CHGRP:Q}
-FILES_SUBST+= CHMOD=${CHMOD:Q}
-FILES_SUBST+= CHOWN=${CHOWN:Q}
-FILES_SUBST+= CMP=${CMP:Q}
-FILES_SUBST+= CP=${CP:Q}
-FILES_SUBST+= DIRNAME=${DIRNAME:Q}
-FILES_SUBST+= ECHO=${ECHO:Q}
-FILES_SUBST+= ECHO_N=${ECHO_N:Q}
-FILES_SUBST+= EGREP=${EGREP:Q}
-FILES_SUBST+= EXPR=${EXPR:Q}
-FILES_SUBST+= FALSE=${FALSE:Q}
-FILES_SUBST+= FIND=${FIND:Q}
-FILES_SUBST+= GREP=${GREP:Q}
-FILES_SUBST+= GROUPADD=${GROUPADD:Q}
-FILES_SUBST+= GTAR=${GTAR:Q}
-FILES_SUBST+= HEAD=${HEAD:Q}
-FILES_SUBST+= ID=${ID:Q}
-FILES_SUBST+= INSTALL_INFO=${INSTALL_INFO:Q}
-FILES_SUBST+= LINKFARM=${LINKFARM:Q}
-FILES_SUBST+= LN=${LN:Q}
-FILES_SUBST+= LS=${LS:Q}
-FILES_SUBST+= MKDIR=${MKDIR:Q}
-FILES_SUBST+= MV=${MV:Q}
-FILES_SUBST+= PERL5=${PERL5:Q}
-FILES_SUBST+= PKG_ADMIN=${PKG_ADMIN_CMD:Q}
-FILES_SUBST+= PKG_INFO=${PKG_INFO_CMD:Q}
-FILES_SUBST+= PW=${PW:Q}
-FILES_SUBST+= PWD_CMD=${PWD_CMD:Q}
-FILES_SUBST+= RM=${RM:Q}
-FILES_SUBST+= RMDIR=${RMDIR:Q}
-FILES_SUBST+= SED=${SED:Q}
-FILES_SUBST+= SETENV=${SETENV:Q}
-FILES_SUBST+= SH=${SH:Q}
-FILES_SUBST+= SORT=${SORT:Q}
-FILES_SUBST+= SU=${SU:Q}
-FILES_SUBST+= TEST=${TEST:Q}
-FILES_SUBST+= TOUCH=${TOUCH:Q}
-FILES_SUBST+= TR=${TR:Q}
-FILES_SUBST+= TRUE=${TRUE:Q}
-FILES_SUBST+= USERADD=${USERADD:Q}
-FILES_SUBST+= XARGS=${XARGS:Q}
-
-FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
-
-PKG_REFCOUNT_DBDIR?= ${PKG_DBDIR}.refcount
-
-INSTALL_SCRIPTS_ENV= PKG_PREFIX=${PREFIX}
-INSTALL_SCRIPTS_ENV+= PKG_METADATA_DIR=${_PKG_DBDIR}/${PKGNAME}
-INSTALL_SCRIPTS_ENV+= PKG_REFCOUNT_DBDIR=${PKG_REFCOUNT_DBDIR}
-
-.PHONY: pre-install-script post-install-script
-
-pre-install-script: generate-install-scripts
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${PKG_DB_TMPDIR} && \
- ${SETENV} ${INSTALL_SCRIPTS_ENV} \
- ${_PKG_DEBUG_SCRIPT} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
-
-post-install-script:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${PKG_DB_TMPDIR} && \
- ${SETENV} ${INSTALL_SCRIPTS_ENV} \
- ${_PKG_DEBUG_SCRIPT} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
-
-.PHONY: generate-install-scripts
-post-build: generate-install-scripts
-generate-install-scripts: # do nothing
-
-.if !empty(DEINSTALL_SRC)
-generate-install-scripts: ${DEINSTALL_FILE}
-${DEINSTALL_FILE}: ${DEINSTALL_SRC}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} | \
- ${SED} ${FILES_SUBST_SED} > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-.endif
-
-.if !empty(INSTALL_SRC)
-generate-install-scripts: ${INSTALL_FILE}
-${INSTALL_FILE}: ${INSTALL_SRC}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} | \
- ${SED} ${FILES_SUBST_SED} > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-.endif
-
-# rc.d scripts are automatically generated and installed into the rc.d
-# scripts example directory at the post-install step. The following
-# variables are relevent to this process:
-#
-# RCD_SCRIPTS lists the basenames of the rc.d scripts
-#
-# RCD_SCRIPT_SRC.<script> the source file for <script>; this will
-# be run through FILES_SUBST to generate
-# the rc.d script (defaults to
-# ${FILESDIR}/<script>.sh)
-#
-# If the source rc.d script is not present, then the automatic handling
-# doesn't occur.
-
-.PHONY: generate-rcd-scripts
-post-build: generate-rcd-scripts
-generate-rcd-scripts: # do nothing
-
-.PHONY: install-rcd-scripts
-post-install: install-rcd-scripts
-install-rcd-scripts: # do nothing
-
-.for _script_ in ${RCD_SCRIPTS}
-RCD_SCRIPT_SRC.${_script_}?= ${FILESDIR}/${_script_}.sh
-RCD_SCRIPT_WRK.${_script_}?= ${WRKDIR}/${_script_}
-
-. if !empty(RCD_SCRIPT_SRC.${_script_})
-. if exists(${RCD_SCRIPT_SRC.${_script_}})
-generate-rcd-scripts: ${RCD_SCRIPT_WRK.${_script_}}
-${RCD_SCRIPT_WRK.${_script_}}: ${RCD_SCRIPT_SRC.${_script_}}
- @${ECHO_MSG} "${_PKGSRC_IN}> Creating ${.TARGET}"
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} | \
- ${SED} ${FILES_SUBST_SED} > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-
-install-rcd-scripts: install-rcd-${_script_}
-install-rcd-${_script_}: ${RCD_SCRIPT_WRK.${_script_}}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -f ${RCD_SCRIPT_WRK.${_script_}} ]; then \
- ${MKDIR} ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}; \
- ${INSTALL_SCRIPT} ${RCD_SCRIPT_WRK.${_script_}} \
- ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/${_script_}; \
- fi
-. endif
-. endif
-.endfor
-
-.endif # BSD_PKG_INSTALL_MK
diff --git a/mk/install/deinstall b/mk/install/deinstall
deleted file mode 100644
index fb451e9907f..00000000000
--- a/mk/install/deinstall
+++ /dev/null
@@ -1,71 +0,0 @@
-# -*- sh -*-
-# start of deinstall
-#
-# $NetBSD: deinstall,v 1.36 2005/08/19 22:24:10 jlam Exp $
-
-case ${STAGE} in
-VIEW-DEINSTALL)
- case ${_PKG_CONFIG} in
- yes)
- case ${PKG_SYSCONFDEPOTBASE} in
- "")
- ${TEST} ! -x ./+FILES ||
- ./+FILES VIEW-REMOVE ${PREFIX} ${PKG_PREFIX}
- ;;
- *)
- ${SETENV} PLIST_IGNORE_FILES="${CONF_IGNORE_FILES}" \
- ${LINKFARM} -D -t ${PKG_SYSCONFVIEWBASE} -d ${PKG_SYSCONFDEPOTBASE} ${PKGNAME}
- ${RMDIR} -p ${PKG_SYSCONFVIEWBASE} 2>/dev/null || ${TRUE}
- ;;
- esac
- ;;
- esac
- #
- # Remove shells from /etc/shells.
- #
- ${TEST} ! -x ./+SHELL ||
- ./+SHELL REMOVE ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+SHELL ||
- ./+SHELL CHECK-REMOVE ${PKG_METADATA_DIR}
- ;;
-
-DEINSTALL)
- # Remove configuration files if they don't differ from the default
- # config file.
- #
- ${TEST} ! -x ./+FILES ||
- ./+FILES REMOVE ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+RCD_SCRIPTS ||
- ./+RCD_SCRIPTS REMOVE ${PKG_METADATA_DIR}
- ;;
-
-POST-DEINSTALL)
- if [ "${PKG_INSTALLATION_TYPE}" = "pkgviews" -a \
- "${_PKG_CONFIG}" = "yes" -a -n "${CONF_DEPENDS}" ]; then
- if [ -h ${PKG_SYSCONFDIR} ]; then
- ${RM} -f ${PKG_SYSCONFDIR}
- fi
- ${RMDIR} -p `${DIRNAME} ${PKG_SYSCONFDIR}` 2>/dev/null || ${TRUE}
- fi
- #
- # Remove empty directories and unused users/groups.
- #
- ${TEST} ! -x ./+DIRS ||
- ./+DIRS REMOVE ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+USERGROUP ||
- ./+USERGROUP REMOVE ${PKG_METADATA_DIR}
- #
- # Check for any existing bits after we're finished de-installing.
- #
- ${TEST} ! -x ./+USERGROUP ||
- ./+USERGROUP CHECK-REMOVE ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+FILES ||
- ./+FILES CHECK-REMOVE ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+RCD_SCRIPTS ||
- ./+RCD_SCRIPTS CHECK-REMOVE ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+DIRS ||
- ./+DIRS CHECK-REMOVE ${PKG_METADATA_DIR}
- ;;
-esac
-
-# end of deinstall
diff --git a/mk/install/deinstall-pre b/mk/install/deinstall-pre
deleted file mode 100644
index b3656bdf4e5..00000000000
--- a/mk/install/deinstall-pre
+++ /dev/null
@@ -1,18 +0,0 @@
-# start of deinstall-pre
-#
-# $NetBSD: deinstall-pre,v 1.1 2003/11/23 07:14:43 jlam Exp $
-
-# Ensure that the VIEW-DEINSTALL action is called for overwrite packages.
-# This is here to ensure that it's the first DEINSTALL action (before
-# any DEINSTALL_EXTRA_TMPL DEINSTALL actions).
-#
-case ${STAGE} in
-DEINSTALL)
- if [ "${PKG_INSTALLATION_TYPE}" = "overwrite" ]; then
- ${SETENV} PKG_PREFIX="${PKG_PREFIX}" \
- $0 ${PKGNAME} VIEW-DEINSTALL
- fi
- ;;
-esac
-
-# end of deinstall-pre
diff --git a/mk/install/dirs b/mk/install/dirs
deleted file mode 100644
index b7b660a095c..00000000000
--- a/mk/install/dirs
+++ /dev/null
@@ -1,236 +0,0 @@
-#!@SH@
-#
-# $NetBSD: dirs,v 1.8 2005/08/19 22:24:10 jlam Exp $
-#
-# +DIRS - reference-counted directory management script
-#
-# Usage: ./+DIRS ADD|REMOVE [metadatadir]
-# ./+DIRS CHECK-ADD|CHECK-REMOVE [metadatadir]
-#
-# This script supports two actions, ADD and REMOVE, that will add or
-# remove the directories needed by the package associated with
-# <metadatadir>. The CHECK-ADD action will check whether any directories
-# needed by the package are missing, and print an informative message
-# noting those directories. The CHECK-REMOVE action will check whether
-# any directories needed by the package still exist, and print an
-# informative message noting those directories. The CHECK-ADD and
-# CHECK-REMOVE actions return non-zero if they detect either missing
-# or existing directories, respectively.
-#
-# Lines starting with "# DIR: " are data read by this script that
-# name the directories that this package requires to exist to function
-# correctly, e.g.
-#
-# # DIR: /etc/foo m
-# # DIR: /var/log/foo/tmp mo foo-user foo-group 0700
-# # DIR: share/foo-plugins fm
-#
-# For each DIR entry, if the directory path is relative, then it is taken
-# to be relative to ${PKG_PREFIX}.
-#
-# The second field in each DIR entry is a set of flags with the following
-# meanings:
-#
-# f ignore ${PKG_CONFIG}
-# m create (make) the directory when ADDing
-# o directory is owned by the package
-#
-CAT="@CAT@"
-CHGRP="@CHGRP@"
-CHMOD="@CHMOD@"
-CHOWN="@CHOWN@"
-ECHO="@ECHO@"
-GREP="@GREP@"
-MKDIR="@MKDIR@"
-MV="@MV@"
-PWD_CMD="@PWD_CMD@"
-RM="@RM@"
-RMDIR="@RMDIR@"
-SED="@SED@"
-SORT="@SORT@"
-TEST="@TEST@"
-TRUE="@TRUE@"
-
-SELF=$0
-ACTION=$1
-PKG_METADATA_DIR="${2-`${PWD_CMD}`}"
-: ${PKGNAME=${PKG_METADATA_DIR##*/}}
-: ${PKG_DBDIR=${PKG_METADATA_DIR%/*}}
-: ${PKG_REFCOUNT_DBDIR=${PKG_DBDIR}.refcount}
-: ${PKG_PREFIX=@PREFIX@}
-
-PKG_REFCOUNT_DIRS_DBDIR="${PKG_REFCOUNT_DBDIR}/dirs"
-
-case "${PKG_CONFIG:-@PKG_CONFIG@}" in
-[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
- _PKG_CONFIG=yes
- ;;
-[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
- _PKG_CONFIG=no
- ;;
-esac
-
-exitcode=0
-case $ACTION in
-ADD)
- ${SED} -n "/^\# DIR: /{s/^\# DIR: //;p;}" ${SELF} | ${SORT} -u |
- while read dir d_flags d_user d_group d_mode; do
- case $dir in
- "") continue ;;
- [!/]*) dir="${PKG_PREFIX}/$dir" ;;
- esac
- case $d_flags in
- *m*) ;;
- *) continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_DIRS_DBDIR}$dir"
- perms="$shadow_dir/+PERMISSIONS"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- if ${TEST} ! -d "$shadow_dir"; then
- ${MKDIR} $shadow_dir
- ${TEST} ! -d "$dir" ||
- ${ECHO} "${PKGNAME}" > $preexist
- fi
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- :
- else
- ${ECHO} "${PKG_METADATA_DIR}" >> $token
- fi
- case $d_user/$d_group/$d_mode in
- [!/]*/[!/]*/[!/]*)
- ${ECHO} "$d_user $d_group $d_mode" > $perms
- ;;
- esac
- case $d_flags/$_PKG_CONFIG in
- *f*/*|*/yes)
- ${MKDIR} $dir
- case $d_user/$d_group/$d_mode in
- [!/]*/[!/]*/[!/]*)
- ${CHOWN} $d_user $dir
- ${CHGRP} $d_group $dir
- ${CHMOD} $d_mode $dir
- ;;
- esac
- ;;
- esac
- done
- ;;
-
-REMOVE)
- ${SED} -n "/^\# DIR: /{s/^\# DIR: //;p;}" ${SELF} | ${SORT} -ru |
- while read dir d_flags d_user d_group d_mode; do
- case $dir in
- "") continue ;;
- [!/]*) dir="${PKG_PREFIX}/$dir" ;;
- esac
- case $d_flags in
- *m*) ;;
- *) continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_DIRS_DBDIR}$dir"
- perms="$shadow_dir/+PERMISSIONS"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- tokentmp="$token.tmp.$$"
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- ${CAT} "$token" | ${GREP} -v "^${PKG_METADATA_DIR}$" > $tokentmp
- case `${CAT} $tokentmp | ${SED} -n "$="` in
- "")
- ${TEST} -f "$preexist" ||
- { case $d_flags/$_PKG_CONFIG in
- *f*/*|*/yes)
- ${RMDIR} -p $dir 2>/dev/null || ${TRUE};
- ;;
- esac; }
- ${RM} -f $perms $preexist $token $token.tmp.*
- ${RMDIR} -p $shadow_dir 2>/dev/null || ${TRUE}
- ;;
- *)
- ${MV} -f $tokentmp $token
- ;;
- esac
- fi
- done
- ;;
-
-CHECK-ADD)
- ${SED} -n "/^\# DIR: /{s/^\# DIR: //;p;}" ${SELF} | ${SORT} -u |
- { while read dir d_flags d_user d_group d_mode; do
- case $dir in
- "") continue ;;
- [!/]*) dir="${PKG_PREFIX}/$dir" ;;
- esac
- ${TEST} ! -d "$dir" || continue
- case $d_flags in
- *m*) ;;
- *) continue ;;
- esac
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following directories should be created for ${PKGNAME}:"
- ${ECHO} ""
- ;;
- esac
- case $d_user/$d_group/$d_mode in
- [!/]*/[!/]*/[!/]*)
- ${ECHO} " $dir (o=$d_user, g=$d_group, m=$d_mode)"
- ;;
- *)
- ${ECHO} " $dir"
- ;;
- esac
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-CHECK-REMOVE)
- ${SED} -n "/^\# DIR: /{s/^\# DIR: //;p;}" ${SELF} | ${SORT} -ru |
- { while read dir d_flags d_user d_group d_mode; do
- case $dir in
- "") continue ;;
- [!/]*) dir="${PKG_PREFIX}/$dir" ;;
- esac
- ${TEST} -d "$dir" || continue
- case $d_flags in
- *o*) ;;
- *) continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_DIRS_DBDIR}$dir"
- ${TEST} ! -d "$shadow_dir" || continue # refcount isn't zero
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following directories are no longer being used by ${PKGNAME},"
- ${ECHO} "and they can be removed if no other packages are using them:"
- ${ECHO} ""
- ;;
- esac
- ${ECHO} " $dir"
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-*)
- ${ECHO} "Usage: ./+DIRS ADD|REMOVE [metadatadir]"
- ${ECHO} " ./+DIRS CHECK-ADD|CHECK-REMOVE [metadatadir]"
- ;;
-esac
-exit $exitcode
diff --git a/mk/install/files b/mk/install/files
deleted file mode 100644
index c73c584446f..00000000000
--- a/mk/install/files
+++ /dev/null
@@ -1,325 +0,0 @@
-#!@SH@
-#
-# $NetBSD: files,v 1.8 2005/08/19 22:24:10 jlam Exp $
-#
-# +FILES - reference-counted configuration file management script
-#
-# Usage: ./+FILES ADD|REMOVE [metadatadir]
-# ./+FILES VIEW-REMOVE depotdir viewdir
-# ./+FILES CHECK-ADD|CHECK-REMOVE [metadatadir]
-#
-# This script supports two actions, ADD and REMOVE, that will add or
-# remove the configuration files needed by the package associated with
-# <metadatadir>. The CHECK-ADD action will check whether any files
-# needed by the package are missing, and print an informative message
-# noting those files. The CHECK-REMOVE action will check whether
-# any files needed by the package still exist, and print an informative
-# message noting those files. The CHECK-ADD and CHECK-REMOVE actions
-# return non-zero if they detect either missing or existing files,
-# respectively. The VIEW-REMOVE action will remove from <viewdir> the
-# links to the configuration files in <depotdir>.
-#
-# Lines starting with "# FILE: " are data read by this script that
-# name the files that this package requires to exist to function
-# correctly, along with the locations of the example files, e.g.
-#
-# # FILE: /etc/bar.conf c /example/bar.conf
-# # FILE: /etc/baz/conf c /example/baz.conf 0600 foo-user foo-group
-#
-# For each FILE entry, if the file path is relative, then it is taken to
-# be relative to ${PKG_PREFIX}.
-#
-# The second field in each FILE entry is a set of flags with the following
-# meaning:
-#
-# c file is copied into place
-# f ignore ${PKG_CONFIG}
-# r file is an rc.d script (consider ${PKG_RCD_SCRIPTS})
-#
-CAT="@CAT@"
-CP="@CP@"
-CHGRP="@CHGRP@"
-CHMOD="@CHMOD@"
-CHOWN="@CHOWN@"
-CMP="@CMP@"
-ECHO="@ECHO@"
-GREP="@GREP@"
-MKDIR="@MKDIR@"
-MV="@MV@"
-PWD_CMD="@PWD_CMD@"
-RM="@RM@"
-RMDIR="@RMDIR@"
-SED="@SED@"
-SORT="@SORT@"
-TEST="@TEST@"
-TRUE="@TRUE@"
-
-SELF=$0
-ACTION=$1
-
-: ${PKG_PREFIX=@PREFIX@}
-
-case "${PKG_CONFIG:-@PKG_CONFIG@}" in
-[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
- _PKG_CONFIG=yes
- ;;
-[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
- _PKG_CONFIG=no
- ;;
-esac
-case "${PKG_RCD_SCRIPTS:-@PKG_RCD_SCRIPTS@}" in
-[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
- _PKG_RCD_SCRIPTS=yes
- ;;
-[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
- _PKG_RCD_SCRIPTS=no
- ;;
-esac
-
-case $ACTION in
-VIEW-REMOVE)
- DEPOTDIR="$2"
- VIEWDIR="$3"
- ${TEST} -n "${DEPOTDIR}" -a -n "${VIEWDIR}" || exit 0
- ;;
-*)
- PKG_METADATA_DIR="${2-`${PWD_CMD}`}"
- : ${PKGNAME=${PKG_METADATA_DIR##*/}}
- : ${PKG_DBDIR=${PKG_METADATA_DIR%/*}}
- : ${PKG_REFCOUNT_DBDIR=${PKG_DBDIR}.refcount}
- PKG_REFCOUNT_FILES_DBDIR="${PKG_REFCOUNT_DBDIR}/files"
- ;;
-esac
-
-exitcode=0
-case $ACTION in
-ADD)
- ${SED} -n "/^\# FILE: /{s/^\# FILE: //;p;}" ${SELF} | ${SORT} -u |
- { while read file f_flags f_eg f_mode f_user f_group; do
- case $file in
- "") continue ;;
- [!/]*) file="${PKG_PREFIX}/$file" ;;
- esac
- case $f_flags in
- *c*) ;;
- *) continue ;;
- esac
- case $f_eg in
- "") continue ;;
- [!/]*) f_eg="${PKG_PREFIX}/$f_eg" ;;
- esac
-
- shadow_dir="${PKG_REFCOUNT_FILES_DBDIR}$file"
- perms="$shadow_dir/+PERMISSIONS"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- if ${TEST} ! -d "$shadow_dir"; then
- ${MKDIR} $shadow_dir
- ${TEST} ! -f "$file" ||
- ${ECHO} "${PKGNAME}" > $preexist
- fi
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- :
- else
- ${ECHO} "${PKG_METADATA_DIR}" >> $token
- fi
-
- case $f_mode$f_user$f_group in
- "") ;;
- *) ${ECHO} "$f_mode $f_user $f_group" > $perms ;;
- esac
- if ${TEST} ! -f "$file" -a ! -f "$f_eg"; then
- :
- else
- case "$f_flags/$_PKG_CONFIG/$_PKG_RCD_SCRIPTS" in
- *f*/*/*|[!r]/yes/*|[!r][!r]/yes/*|[!r][!r][!r]/yes/*|*r*/yes/yes)
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "Installing files needed by ${PKGNAME}:"
- ;;
- esac
- if ${TEST} -f "$file"; then
- ${ECHO} ""
- ${ECHO} " $file already exists."
- elif ${TEST} -f "$f_eg"; then
- ${ECHO} ""
- ${ECHO} " $file"
- ${ECHO} " [$f_eg]"
- ${CP} $f_eg $file
- case $f_user in
- "") ;;
- *) ${CHOWN} $f_user $file ;;
- esac
- case $f_group in
- "") ;;
- *) ${CHGRP} $f_group $file ;;
- esac
- case $f_mode in
- "") ;;
- *) ${CHMOD} $f_mode $file ;;
- esac
- fi
- ;;
- esac
- fi
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- ;;
- esac; }
- ;;
-
-REMOVE)
- ${SED} -n "/^\# FILE: /{s/^\# FILE: //;p;}" ${SELF} | ${SORT} -ru |
- while read file f_flags f_eg f_mode f_user f_group; do
- case $file in
- "") continue ;;
- [!/]*) file="${PKG_PREFIX}/$file" ;;
- esac
- case $f_flags in
- *c*) ;;
- *) continue ;;
- esac
- case $f_eg in
- "") continue ;;
- [!/]*) f_eg="${PKG_PREFIX}/$f_eg" ;;
- esac
-
- shadow_dir="${PKG_REFCOUNT_FILES_DBDIR}$file"
- perms="$shadow_dir/+PERMISSIONS"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- tokentmp="$token.tmp.$$"
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- ${CAT} "$token" | ${GREP} -v "^${PKG_METADATA_DIR}$" > $tokentmp
- case `${CAT} $tokentmp | ${SED} -n "$="` in
- "")
- if ${TEST} -f "$preexist"; then
- :
- elif ${TEST} -f "$file" -a -f "$f_eg" && \
- ${CMP} -s "$file" "$f_eg"; then
- case "$f_flags/$_PKG_CONFIG/$_PKG_RCD_SCRIPTS" in
- *f*/*/*|[!r]/yes/*|[!r][!r]/yes/*|[!r][!r][!r]/yes/*|*r*/yes/yes)
- ${RM} -f "$file"
- ;;
- esac
- fi
- ${RM} -f $perms $preexist $token $token.tmp.*
- ${RMDIR} -p $shadow_dir 2>/dev/null || ${TRUE}
- ;;
- *)
- ${MV} -f $tokentmp $token
- ;;
- esac
- fi
- done
- ;;
-
-VIEW-REMOVE)
- ${SED} -n "/^\# FILE: /{s/^\# FILE: //;p;}" ${SELF} | ${SORT} -ru |
- while read file f_flags f_eg f_mode f_user f_group; do
- case $file in
- ${DEPOTDIR}/*) link="${VIEWDIR}/${file#${DEPOTDIR}/}" ;;
- [!/]*) link="${VIEWDIR}/$file" ;;
- *) continue ;;
- esac
- dir="${link%[^/]*}"
- if ${TEST} -h "$link"; then
- ${RM} -f $link
- ${RMDIR} -p $dir 2>/dev/null || ${TRUE}
- fi
- done
- ;;
-
-CHECK-ADD)
- ${SED} -n "/^\# FILE: /{s/^\# FILE: //;p;}" ${SELF} | ${SORT} -ru |
- { while read file f_flags f_eg f_mode f_user f_group; do
- case $file in
- "") continue ;;
- [!/]*) file="${PKG_PREFIX}/$file" ;;
- esac
- ${TEST} ! -f "$file" || continue
- case $f_flags in
- *c*) ;;
- *) continue ;;
- esac
- case $f_eg in
- "") continue ;;
- [!/]*) f_eg="${PKG_PREFIX}/$f_eg" ;;
- esac
-
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following files should be created for ${PKGNAME}:"
- ;;
- esac
- ${ECHO} ""
- case $f_mode/$f_user/$f_group in
- //)
- ${ECHO} " $file"
- ;;
- [!/]*//)
- ${ECHO} " $file (m=$f_mode)"
- ;;
- [!/]*/[!/]*/)
- ${ECHO} " $file (o=$f_user, m=$f_mode)"
- ;;
- [!/]*/[!/]*/[!/]*)
- ${ECHO} " $file (o=$f_user, g=$f_group, m=$f_mode)"
- ;;
- esac
- ${TEST} ! -f "$f_eg" || ${ECHO} " [$f_eg]"
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-CHECK-REMOVE)
- ${SED} -n "/^\# FILE: /{s/^\# FILE: //;p;}" ${SELF} | ${SORT} -ru |
- { while read file f_flags f_eg f_mode f_user f_group; do
- case $file in
- "") continue ;;
- [!/]*) file="${PKG_PREFIX}/$file" ;;
- esac
- ${TEST} -f "$file" || continue
- shadow_dir="${PKG_REFCOUNT_FILES_DBDIR}$file"
- ${TEST} ! -d "$shadow_dir" || continue # refcount isn't zero
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following files are no longer being used by ${PKGNAME},"
- ${ECHO} "and they can be removed if no other packages are using them:"
- ${ECHO} ""
- ;;
- esac
- ${ECHO} " $file"
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-*)
- ${ECHO} "Usage: ./+FILES ADD|REMOVE [metadatadir]"
- ${ECHO} " ./+FILES VIEW-REMOVE depotdir viewdir"
- ${ECHO} " ./+FILES CHECK-ADD|CHECK-REMOVE [metadatadir]"
- ;;
-esac
-exit $exitcode
diff --git a/mk/install/fonts b/mk/install/fonts
deleted file mode 100644
index 1ec70710f90..00000000000
--- a/mk/install/fonts
+++ /dev/null
@@ -1,47 +0,0 @@
-# $NetBSD: fonts,v 1.6 2004/12/28 14:38:03 wiz Exp $
-#
-# Handle font databases; used by fonts.mk.
-#
-
-FONTS_TTF="@FONTS_TTF@"
-FONTS_TTF_DIRS="@FONTS_TTF_DIRS@"
-FONTS_TYPE1="@FONTS_TYPE1@"
-FONTS_TYPE1_DIRS="@FONTS_TYPE1_DIRS@"
-FONTS_X11="@FONTS_X11@"
-FONTS_X11_DIRS="@FONTS_X11_DIRS@"
-TTMKFDIR="@TTMKFDIR@"
-TYPE1INST="@TYPE1INST@"
-MKFONTDIR="@MKFONTDIR@"
-
-case ${STAGE} in
-POST-INSTALL|POST-DEINSTALL)
- ${ECHO} "===> Updating font databases"
- if [ "${FONTS_TTF}" = "YES" ]; then
- for d in ${FONTS_TTF_DIRS}; do
- if [ -z "`cd $d ; ${LS} | ${GREP} -v .pkgsrc | ${GREP} -v ^fonts | ${GREP} -v ^Fontmap`" ]; then
- ${RM} -f $d/fonts* $d/Fontmap*
- else
- ( cd $d && ${TTMKFDIR} >/dev/null 2>&1 )
- fi
- done
- fi
- if [ "${FONTS_TYPE1}" = "YES" ]; then
- for d in ${FONTS_TYPE1_DIRS}; do
- if [ -z "`cd $d ; ${LS} | ${GREP} -v .pkgsrc | ${GREP} -v ^fonts | ${GREP} -v ^Fontmap`" ]; then
- ${RM} -f $d/fonts* $d/Fontmap*
- else
- ( cd $d && ${TYPE1INST} >/dev/null 2>&1 )
- fi
- done
- fi
- if [ "${FONTS_X11}" = "YES" ]; then
- for d in ${FONTS_X11_DIRS}; do
- if [ -z "`cd $d ; ${LS} | ${GREP} -v .pkgsrc | ${GREP} -v ^fonts | ${GREP} -v ^Fontmap`" ]; then
- ${RM} -f $d/fonts* $d/Fontmap*
- else
- ${MKFONTDIR} $d >/dev/null 2>&1
- fi
- done
- fi
- ;;
-esac
diff --git a/mk/install/footer b/mk/install/footer
deleted file mode 100644
index 44719cce24c..00000000000
--- a/mk/install/footer
+++ /dev/null
@@ -1,7 +0,0 @@
-# start of footer
-#
-# $NetBSD: footer,v 1.1 2001/11/19 16:18:44 jlam Exp $
-
-exit 0
-
-# end of footer
diff --git a/mk/install/header b/mk/install/header
deleted file mode 100644
index e2783116dc6..00000000000
--- a/mk/install/header
+++ /dev/null
@@ -1,87 +0,0 @@
-#!@SH@
-#
-# start of header
-#
-# $NetBSD: header,v 1.34 2005/08/19 22:24:10 jlam Exp $
-
-PKGNAME=$1
-STAGE=$2
-
-AWK="@AWK@"
-BASENAME="@BASENAME@"
-CAT="@CAT@"
-CHGRP="@CHGRP@"
-CHMOD="@CHMOD@"
-CHOWN="@CHOWN@"
-CMP="@CMP@"
-CP="@CP@"
-DIRNAME="@DIRNAME@"
-ECHO="@ECHO@"
-ECHO_N="@ECHO_N@"
-EGREP="@EGREP@"
-EXPR="@EXPR@"
-FALSE="@FALSE@"
-FIND="@FIND@"
-GREP="@GREP@"
-GTAR="@GTAR@"
-HEAD="@HEAD@"
-ID="@ID@"
-LINKFARM="@LINKFARM@"
-LN="@LN@"
-LS="@LS@"
-MKDIR="@MKDIR@"
-MV="@MV@"
-PERL5="@PERL5@"
-PKG_ADMIN="@PKG_ADMIN@"
-PKG_INFO="@PKG_INFO@"
-PWD_CMD="@PWD_CMD@"
-RM="@RM@"
-RMDIR="@RMDIR@"
-SED="@SED@"
-SETENV="@SETENV@"
-SH="@SH@"
-SORT="@SORT@"
-SU="@SU@"
-TEST="@TEST@"
-TOUCH="@TOUCH@"
-TR="@TR@"
-TRUE="@TRUE@"
-XARGS="@XARGS@"
-
-: ${PKG_METADATA_DIR=`${PWD_CMD}`}
-PKGBASE="@PKGBASE@"
-
-LOCALBASE="@LOCALBASE@"
-X11BASE="@X11BASE@"
-DEPOTBASE="@DEPOTBASE@"
-PREFIX="@PREFIX@"
-case ${PKG_PREFIX} in
-${LOCALBASE}/*) VIEW="${PKG_PREFIX#${LOCALBASE}/}" ;;
-*) VIEW="" ;;
-esac
-
-PKG_SYSCONFBASE="@PKG_SYSCONFBASE@"
-PKG_SYSCONFDEPOTBASE="@PKG_SYSCONFDEPOTBASE@"
-PKG_SYSCONFBASEDIR="@PKG_SYSCONFBASEDIR@"
-PKG_SYSCONFDIR="@PKG_SYSCONFDIR@"
-CONF_DEPENDS="@CONF_DEPENDS@"
-
-case ${VIEW} in
-"") PKG_SYSCONFVIEWBASE="${PKG_SYSCONFBASE}" ;;
-*) PKG_SYSCONFVIEWBASE="${PKG_SYSCONFBASE}/${VIEW}" ;;
-esac
-
-CONF_IGNORE_FILES="*[~#] *.OLD *.orig *,v .pkgsrc */.pkgsrc"
-
-PKG_INSTALLATION_TYPE="@PKG_INSTALLATION_TYPE@"
-
-case "${PKG_CONFIG:-@PKG_CONFIG@}" in
-[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
- _PKG_CONFIG=yes
- ;;
-[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
- _PKG_CONFIG=yes
- ;;
-esac
-
-# end of header
diff --git a/mk/install/install b/mk/install/install
deleted file mode 100644
index 3fa0182ed9c..00000000000
--- a/mk/install/install
+++ /dev/null
@@ -1,83 +0,0 @@
-# -*- sh -*-
-# start of install
-#
-# $NetBSD: install,v 1.41 2005/08/19 22:24:10 jlam Exp $
-
-case ${STAGE} in
-PRE-INSTALL)
- #
- # Require that necessary users and groups exist or else fail the
- # installation of the package.
- #
- ${TEST} ! -x ./+USERGROUP ||
- { ./+USERGROUP ADD ${PKG_METADATA_DIR}
- if ./+USERGROUP CHECK-ADD ${PKG_METADATA_DIR}; then
- :
- else
- exit 1
- fi; }
- #
- # Create package directories at pre-install time.
- #
- if [ "${PKG_INSTALLATION_TYPE}" = "pkgviews" -a \
- "${_PKG_CONFIG}" = "yes" -a -n "${CONF_DEPENDS}" ]; then
- pkg=`${PKG_ADMIN} -b -d ${DEPOTBASE} -s "" lsbest "${CONF_DEPENDS}"`
- sysconfdir=`${PKG_INFO} -B -K ${DEPOTBASE} $pkg | \
- ${AWK} '/^PKG_SYSCONFDIR=/ { \
- gsub("^PKG_SYSCONFDIR=[ ]*", ""); \
- print; \
- }' \
- `
- if [ -d $sysconfdir -a ! -d ${PKG_SYSCONFDIR} ]; then
- ${MKDIR} -p `${DIRNAME} ${PKG_SYSCONFDIR}`
- ${LN} -sf $sysconfdir ${PKG_SYSCONFDIR}
- fi
- fi
- ${TEST} ! -x ./+DIRS ||
- ./+DIRS ADD ${PKG_METADATA_DIR}
- ;;
-
-POST-INSTALL)
- #
- # Copy configuration/support files into place.
- #
- ${TEST} ! -x ./+FILES ||
- ./+FILES ADD ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+RCD_SCRIPTS ||
- ./+RCD_SCRIPTS ADD ${PKG_METADATA_DIR}
- #
- # Set special permissions on any files/directories that need them.
- #
- ${TEST} ! -x ./+PERMS ||
- ./+PERMS ${PKG_METADATA_DIR}
-
- # Check for any missing bits after we're finished installing.
- #
- ${TEST} ! -x ./+DIRS ||
- ./+DIRS CHECK-ADD ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+FILES ||
- ./+FILES CHECK-ADD ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+RCD_SCRIPTS ||
- ./+RCD_SCRIPTS CHECK-ADD ${PKG_METADATA_DIR}
- ;;
-
-VIEW-INSTALL)
- #
- # Register shells in /etc/shells.
- #
- ${TEST} ! -x ./+SHELL ||
- ./+SHELL ADD ${PKG_METADATA_DIR}
- ${TEST} ! -x ./+SHELL ||
- ./+SHELL CHECK-ADD ${PKG_METADATA_DIR}
-
- # If ${PKG_SYSCONFBASE} points outside of ${PREFIX}, then add the
- # package config files to the proper view.
- #
- if [ "${_PKG_CONFIG}" = "yes" -a -n "${PKG_SYSCONFDEPOTBASE}" ]; then
- ${SETENV} PLIST_IGNORE_FILES="${CONF_IGNORE_FILES}" \
- ${LINKFARM} -t ${PKG_SYSCONFVIEWBASE} -d ${PKG_SYSCONFDEPOTBASE} ${PKGNAME}
- fi
- ;;
-esac
-
-# end of install
diff --git a/mk/install/install-info b/mk/install/install-info
deleted file mode 100644
index 76ba6d0b1d6..00000000000
--- a/mk/install/install-info
+++ /dev/null
@@ -1,37 +0,0 @@
-# $NetBSD: install-info,v 1.7 2003/11/23 07:03:07 jlam Exp $
-#
-# Handle registration of Info files; used by texinfo.mk.
-#
-
-INFO_FILES="@INFO_FILES@"
-INSTALL_INFO="@INSTALL_INFO@"
-INFO_DIR="@INFO_DIR@"
-
-case ${STAGE} in
-VIEW-INSTALL)
- if [ -f ${PKG_PREFIX}/${INFO_DIR}/dir ]; then
- _nentries="`${GREP} -c '^\*' ${PKG_PREFIX}/${INFO_DIR}/dir 2>/dev/null`"
- if [ x"${_nentries}" != x -a "${_nentries}" -lt 1 ]; then
- ${RM} ${PKG_PREFIX}/${INFO_DIR}/dir
- fi
-
- fi
- for f in ${INFO_FILES}; do
- ${INSTALL_INFO} --delete --info-dir=${PKG_PREFIX}/${INFO_DIR} \
- ${PKG_PREFIX}/${INFO_DIR}/${f} 1>/dev/null 2>&1
- ${INSTALL_INFO} --info-dir=${PKG_PREFIX}/${INFO_DIR} \
- ${PKG_PREFIX}/${INFO_DIR}/${f}
- done
- ;;
-
-VIEW-DEINSTALL)
- for f in ${INFO_FILES}; do
- ${INSTALL_INFO} --delete --info-dir=${PKG_PREFIX}/${INFO_DIR} \
- ${PKG_PREFIX}/${INFO_DIR}/${f} 1>/dev/null 2>&1
- done
- _nentries="`${GREP} -c '^\*' ${PKG_PREFIX}/${INFO_DIR}/dir 2>/dev/null`"
- if [ x"${_nentries}" != x -a "${_nentries}" -le 1 ]; then
- ${RM} ${PKG_PREFIX}/${INFO_DIR}/dir
- fi
- ;;
-esac
diff --git a/mk/install/install-post b/mk/install/install-post
deleted file mode 100644
index d8b25c5a021..00000000000
--- a/mk/install/install-post
+++ /dev/null
@@ -1,18 +0,0 @@
-# start of install-post
-#
-# $NetBSD: install-post,v 1.1 2003/11/23 07:14:43 jlam Exp $
-
-# Ensure that the VIEW-INSTALL action is called for overwrite packages.
-# This is here to ensure that it's the final POST-INSTALL action (after
-# any INSTALL_EXTRA_TMPL POST-INSTALL actions).
-#
-case ${STAGE} in
-POST-INSTALL)
- if [ "${PKG_INSTALLATION_TYPE}" = "overwrite" ]; then
- ${SETENV} PKG_PREFIX="${PKG_PREFIX}" \
- $0 ${PKGNAME} VIEW-INSTALL
- fi
- ;;
-esac
-
-# end of install-post
diff --git a/mk/install/perms b/mk/install/perms
deleted file mode 100644
index a7e632afa77..00000000000
--- a/mk/install/perms
+++ /dev/null
@@ -1,83 +0,0 @@
-#!@SH@
-#
-# $NetBSD: perms,v 1.3 2005/07/29 21:41:04 jlam Exp $
-#
-# +PERMS - special file and directory permissions management script
-#
-# Usage: ./+PERMS [metadatadir]
-#
-# This script sets special permissions on files and directories needed
-# by the package associated with <metadatadir>.
-#
-# Lines starting with "# PERMS: " are data read by this script that
-# name the files and directories required to have special permissions
-# in order for this package to function correctly.
-#
-# # PERMS: /usr/pkg/bin/lppasswd 4711 lp sys
-# # PERMS: /usr/pkg/etc/pwd.db 0600
-#
-# For each PERMS entry, if the file path is relative, then it is taken to
-# be relative to ${PKG_PREFIX}.
-#
-CHGRP="@CHGRP@"
-CHMOD="@CHMOD@"
-CHOWN="@CHOWN@"
-ECHO="@ECHO@"
-PWD_CMD="@PWD_CMD@"
-SED="@SED@"
-SORT="@SORT@"
-TEST="@TEST@"
-
-SELF=$0
-PKG_METADATA_DIR="${1-`${PWD_CMD}`}"
-: ${PKGNAME=${PKG_METADATA_DIR##*/}}
-: ${PKG_PREFIX=@PREFIX@}
-
-${SED} -n "/^\# PERMS: /{s/^\# PERMS: //;p;}" ${SELF} | ${SORT} -u |
-{ while read file f_mode f_user f_group; do
- case $file in
- "") continue ;;
- [!/]*) file="${PKG_PREFIX}/$file" ;;
- esac
- ${TEST} -f "$file" || continue
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following files and directories needed by ${PKGNAME}"
- ${ECHO} "have special permissions:"
- ${ECHO} ""
- ;;
- esac
- case $f_mode/$f_user/$f_group in
- //)
- ${ECHO} " $file"
- ;;
- [!/]*//)
- ${ECHO} " $file (m=$f_mode)"
- ;;
- [!/]*/[!/]*/)
- ${ECHO} " $file (o=$f_user, m=$f_mode)"
- ;;
- [!/]*/[!/]*/[!/]*)
- ${ECHO} " $file (o=$f_user, g=$f_group, m=$f_mode)"
- ;;
- esac
- case $f_user in
- "") ;;
- *) ${CHOWN} $f_user $file ;;
- esac
- case $f_group in
- "") ;;
- *) ${CHGRP} $f_group $file ;;
- esac
- case $f_mode in
- "") ;;
- *) ${CHMOD} $f_mode $file ;;
- esac
-done
-case "$printed_header" in
-yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- ;;
-esac; }
diff --git a/mk/install/shell b/mk/install/shell
deleted file mode 100644
index 3e7ec9fb54b..00000000000
--- a/mk/install/shell
+++ /dev/null
@@ -1,221 +0,0 @@
-#!@SH@
-#
-# $NetBSD: shell,v 1.4 2005/09/20 04:23:49 jlam Exp $
-#
-# +SHELL - shell registration script
-#
-# Usage: ./+SHELL ADD|REMOVE [metadatadir]
-# ./+SHELL CHECK-ADD|CHECK-REMOVE [metadatadir]
-#
-# This script supports two actions, ADD and REMOVE, that will add or
-# remove shell paths from the shell database in /etc/shells. The
-# CHECK-ADD action will check whether shell paths provided by the
-# package are missing from the shell database, and print an informative
-# message noting those shell paths. The CHECK-REMOVE action will check
-# whether shell paths provided by the package are still present in the
-# shell database, and print an informative message noting those shell
-# paths. The CHECK-ADD and CHECK-REMOVE actions return non-zero if
-# they detect either missing or existing paths, respectively.
-#
-# Lines starting with "# SHELL: " are data read by this script that
-# name the shell paths that should be added or removed from the shell
-# database. If the path is relative, then it is taken to be relative
-# to ${PKG_PREFIX}.
-#
-# # SHELL: bin/pdksh
-#
-CAT="@CAT@"
-CP="@CP@"
-ECHO="@ECHO@"
-GREP="@GREP@"
-PWD_CMD="@PWD_CMD@"
-RM="@RM@"
-SED="@SED@"
-SORT="@SORT@"
-TEST="@TEST@"
-TRUE="@TRUE@"
-TOUCH="@TOUCH@"
-
-SELF=$0
-ACTION=$1
-
-PKG_METADATA_DIR="${2-`${PWD_CMD}`}"
-: ${PKG_PREFIX=@PREFIX@}
-: ${PKGNAME=${PKG_METADATA_DIR##*/}}
-
-case "${PKG_REGISTER_SHELLS:-@PKG_REGISTER_SHELLS@}" in
-[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
- _PKG_REGISTER_SHELLS=yes
- ;;
-[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
- _PKG_REGISTER_SHELLS=no
- ;;
-esac
-
-exitcode=0
-case $ACTION in
-ADD)
- ${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
- { while read shell; do
- case ${_PKG_REGISTER_SHELLS} in
- no) continue ;;
- esac
- case $shell in
- /*) continue ;;
- *) if [ ${PKG_PREFIX} = / ] ; then
- shell="/$shell"
- else
- shell="${PKG_PREFIX}/$shell"
- fi ;;
- esac
- ${TEST} -f "$shell" || continue
-
- shelldb="/etc/shells"
- ${TEST} -f "$shelldb" || continue
- if ${TEST} -f "$shelldb" && \
- ${GREP} "^$shell" $shelldb >/dev/null; then
- :
- else
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "Adding shells from ${PKGNAME} to $shelldb:"
- ${ECHO} ""
- ;;
- esac
- ${ECHO} " $shell"
- ${TOUCH} $shelldb
- ${CP} $shelldb $shelldb.pkgsrc."$$"
- { ${CAT} $shelldb.pkgsrc."$$"; ${ECHO} "$shell"; } > $shelldb
- ${RM} $shelldb.pkgsrc."$$"
- fi
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- ;;
- esac; }
- ;;
-
-REMOVE)
- ${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
- { while read shell; do
- case ${_PKG_REGISTER_SHELLS} in
- no) continue ;;
- esac
- case $shell in
- /*) continue ;;
- *) if [ ${PKG_PREFIX} = / ] ; then
- shell="/$shell"
- else
- shell="${PKG_PREFIX}/$shell"
- fi ;;
- esac
- ${TEST} -f "$shell" || continue
-
- shelldb="/etc/shells"
- if ${TEST} -f "$shelldb" && \
- ${GREP} "^$shell" $shelldb >/dev/null; then
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "Removing shells from ${PKGNAME} to $shelldb:"
- ${ECHO} ""
- ;;
- esac
- ${ECHO} " $shell"
- ${TOUCH} $shelldb
- ${CP} $shelldb $shelldb.pkgsrc."$$"
- { ${GREP} -v "^$shell" $shelldb.pkgsrc."$$" || ${TRUE}; } > $shelldb
- ${RM} $shelldb.pkgsrc."$$"
- fi
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- ;;
- esac; }
- ;;
-
-CHECK-ADD)
- ${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
- { while read shell; do
- case $shell in
- /*) continue ;;
- *) if [ ${PKG_PREFIX} = / ] ; then
- shell="/$shell"
- else
- shell="${PKG_PREFIX}/$shell"
- fi ;;
- esac
- ${TEST} -f "$shell" || continue
-
- shelldb="/etc/shells"
- if ${TEST} -f "$shelldb" && \
- ${GREP} "^$shell" $shelldb >/dev/null; then
- :
- else
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following lines can be added to $shelldb:"
- ${ECHO} ""
- ;;
- esac
- ${ECHO} " $shell"
- fi
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-CHECK-REMOVE)
- ${SED} -n "/^\# SHELL: /{s/^\# SHELL: //;p;}" ${SELF} | ${SORT} -u |
- { while read shell; do
- case $shell in
- /*) continue ;;
- *) if [ ${PKG_PREFIX} = / ] ; then
- shell="/$shell"
- else
- shell="${PKG_PREFIX}/$shell"
- fi ;;
- esac
- ${TEST} -f "$shell" || continue
-
- shelldb="/etc/shells"
- if ${TEST} -f "$shelldb" && \
- ${GREP} "^$shell" $shelldb >/dev/null; then
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following lines can be removed from $shelldb:"
- ${ECHO} ""
- ;;
- esac
- ${ECHO} " $shell"
- fi
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-*)
- ${ECHO} "Usage: ./+SHELL ADD|REMOVE [metadatadir]"
- ${ECHO} " ./+SHELL CHECK-ADD|CHECK-REMOVE [metadatadir]"
- ;;
-esac
-exit $exitcode
diff --git a/mk/install/usergroup b/mk/install/usergroup
deleted file mode 100644
index 90b0b9e08df..00000000000
--- a/mk/install/usergroup
+++ /dev/null
@@ -1,393 +0,0 @@
-#!@SH@
-#
-# $NetBSD: usergroup,v 1.11 2005/09/26 22:12:35 jlam Exp $
-#
-# +USERGROUP - users and groups management script
-#
-# Usage: ./+USERGROUP ADD|REMOVE [metadatadir]
-# ./+USERGROUP CHECK-ADD|CHECK-REMOVE [metadatadir]
-#
-# This script supports two actions, ADD and REMOVE, that will add or
-# remove the users and groups needed by the package associated with
-# <metadatadir>. The CHECK-ADD action will check whether any users or
-# groups needed by the package are missing, and print an informative
-# message noting those users and groups. The CHECK-REMOVE action will
-# check whether any users and groups needed by the package still exist,
-# and print an informative message noting those users and groups. The
-# CHECK-ADD and CHECK-REMOVE actions return non-zero if they detect
-# either missing or existing users/groups, respectively.
-#
-# Lines starting with "# USER: " or "# GROUP: " are data read by this
-# script that name the users and groups that this package requires to
-# exist to function correctly, e.g.
-#
-# # USER: foo:foogrp::The Foomister
-# # GROUP: foogrp
-#
-# The USER lines are of the form:
-#
-# user:group[:[userid][:[descr][:[home][:shell]]]]
-#
-# Only the user and group are required; everything else is optional,
-# but the colons must be in the right places when specifying optional
-# bits.
-#
-# The GROUP lines are of the form:
-#
-# group[:groupid]
-#
-# Only the group is required; the groupid is optional.
-#
-CAT="@CAT@"
-CHGRP="@CHGRP@"
-ECHO="@ECHO@"
-GREP="@GREP@"
-ID="@ID@"
-MKDIR="@MKDIR@"
-PWD_CMD="@PWD_CMD@"
-RM="@RM@"
-RMDIR="@RMDIR@"
-SED="@SED@"
-SORT="@SORT@"
-TEST="@TEST@"
-TRUE="@TRUE@"
-
-SELF=$0
-ACTION=$1
-PKG_METADATA_DIR="${2-`${PWD_CMD}`}"
-: ${PKGNAME=${PKG_METADATA_DIR##*/}}
-: ${PKG_DBDIR=${PKG_METADATA_DIR%/*}}
-: ${PKG_REFCOUNT_DBDIR=${PKG_DBDIR}.refcount}
-
-PKG_REFCOUNT_USERS_DBDIR="${PKG_REFCOUNT_DBDIR}/users"
-PKG_REFCOUNT_GROUPS_DBDIR="${PKG_REFCOUNT_DBDIR}/groups"
-
-case "${PKG_CREATE_USERGROUP:-@PKG_CREATE_USERGROUP@}" in
-[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
- _PKG_CREATE_USERGROUP=yes
- ;;
-[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
- _PKG_CREATE_USERGROUP=no
- ;;
-esac
-
-group_exists()
-{
- _group="$1"
- case $_group in
- "") return 2 ;;
- esac
- # Check using chgrp to work properly in an NIS environment.
- testfile="./grouptest.tmp.$$"
- ${ECHO} > $testfile
- if ${CHGRP} $_group $testfile >/dev/null 2>&1; then
- ${RM} -f $testfile
- return 0
- fi
- ${RM} -f $testfile
- return 1
-}
-
-user_exists()
-{
- _user="$1"
- case $_user in
- "") return 2 ;;
- esac
- # Check using id to work properly in an NIS environment.
- if ${ID} $_user >/dev/null 2>&1; then
- return 0
- fi
- return 1
-}
-
-listwrap()
-{
- _length=$1
- _buffer=
- while read _line; do
- set -- $_line
- for _word; do
- case $_buffer in
- "") _buffer="$_word" ;;
- *) _buffer="$_buffer $_word" ;;
- esac
- if ${TEST} ${#_buffer} -gt $_length; then
- ${ECHO} " $_buffer"
- _buffer=
- fi
- done
- done
- case $_buffer in
- "") ;;
- *) ${ECHO} " $_buffer" ;;
- esac
-}
-
-# DO NOT CHANGE THE FOLLOWING LINE!
-# platform-specific adduser/addgroup functions
-
-exitcode=0
-case $ACTION in
-ADD)
- ${SED} -n "/^\# GROUP: /{s/^\# GROUP: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- group="$1"; groupid="$2"
- IFS="$SAVEIFS"
- case $group in
- "") continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_GROUPS_DBDIR}/$group"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- if ${TEST} ! -d "$shadow_dir"; then
- ${MKDIR} $shadow_dir
- group_exists $group &&
- ${ECHO} "${PKGNAME}" > $preexist
- fi
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- :
- else
- ${ECHO} "${PKG_METADATA_DIR}" >> $token
- fi
- case ${_PKG_CREATE_USERGROUP} in
- yes)
- if group_exists $group; then
- :
- else
- addgroup "$group" "$groupid"
- fi
- ;;
- esac
- done; }
- ${SED} -n "/^\# USER: /{s/^\# USER: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- user="$1"; group="$2"; userid="$3"
- descr="$4"; home="$5" shell="$6"
- IFS="$SAVEIFS"
- case $user in
- "") continue ;;
- esac
- case $group in
- "") continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_USERS_DBDIR}/$user"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- if ${TEST} ! -d "$shadow_dir"; then
- ${MKDIR} $shadow_dir
- user_exists $user &&
- ${ECHO} "${PKGNAME}" > $preexist
- fi
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- :
- else
- ${ECHO} "${PKG_METADATA_DIR}" >> $token
- fi
- case ${_PKG_CREATE_USERGROUP} in
- yes)
- if user_exists $user && group_exists $group; then
- :
- else
- adduser "$user" "$group" "$userid" \
- "$descr" "$home" "$shell"
- fi
- ;;
- esac
- done; }
- ;;
-
-REMOVE)
- ${SED} -n "/^\# USER: /{s/^\# USER: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- user="$1"; group="$2"; userid="$3"
- descr="$4"; home="$5" shell="$6"
- IFS="$SAVEIFS"
- case $user in
- "") continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_USERS_DBDIR}/$user"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- tokentmp="$token.tmp.$$"
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- ${CAT} "$token" | ${GREP} -v "^${PKG_METADATA_DIR}$" > $tokentmp
- case `${CAT} $tokentmp | ${SED} -n "$="` in
- "")
- ${RM} -f $preexist $token $token.tmp.*
- ${RMDIR} -p $shadow_dir 2>/dev/null || ${TRUE}
- ;;
- *)
- ${MV} -f $tokentmp $token
- ;;
- esac
- fi
- done; }
- ${SED} -n "/^\# GROUP: /{s/^\# GROUP: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- group="$1"; groupid="$2"
- IFS="$SAVEIFS"
- case $group in
- "") continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_GROUPS_DBDIR}/$group"
- preexist="$shadow_dir/+PREEXISTING"
- token="$shadow_dir/${PKGNAME}"
- tokentmp="$token.tmp.$$"
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- ${CAT} "$token" | ${GREP} -v "^${PKG_METADATA_DIR}$" > $tokentmp
- case `${CAT} $tokentmp | ${SED} -n "$="` in
- "")
- ${RM} -f $preexist $token $token.tmp.*
- ${RMDIR} -p $shadow_dir 2>/dev/null || ${TRUE}
- ;;
- *)
- ${MV} -f $tokentmp $token
- ;;
- esac
- fi
- done; }
- ;;
-
-CHECK-ADD)
- ${SED} -n "/^\# GROUP: /{s/^\# GROUP: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- group="$1"; groupid="$2"
- IFS="$SAVEIFS"
- case $group in
- "") continue ;;
- *) group_exists $group && continue ;;
- esac
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following groups need to be created for ${PKGNAME}:"
- ${ECHO} ""
- ;;
- esac
- case $groupid in
- "") ${ECHO} " $group" ;;
- *) ${ECHO} " $group ($groupid)" ;;
- esac
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ${SED} -n "/^\# USER: /{s/^\# USER: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- user="$1"; group="$2"; userid="$3"
- descr="$4"; home="$5" shell="$6"
- IFS="$SAVEIFS"
- case $user in
- "") continue ;;
- *) user_exists $user && continue ;;
- esac
- case "$printed_header" in
- yes) ;;
- *) printed_header=yes
- ${ECHO} "==========================================================================="
- ${ECHO} "The following users need to be created for ${PKGNAME}:"
- ${ECHO} ""
- ;;
- esac
- : ${home:="${PKG_USER_HOME}"}
- : ${shell:="${PKG_USER_SHELL}"}
- case $userid in
- "") ${ECHO} " $user: $group, $home, $shell" ;;
- *) ${ECHO} " $user ($userid): $group, $home, $shell" ;;
- esac
- done
- case "$printed_header" in
- yes) ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-CHECK-REMOVE)
- ${SED} -n "/^\# USER: /{s/^\# USER: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- user="$1"; group="$2"; userid="$3"
- descr="$4"; home="$5" shell="$6"
- IFS="$SAVEIFS"
- case $user in
- "") continue ;;
- *) user_exists $user || continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_USERS_DBDIR}/$user"
- ${TEST} ! -d "$shadow_dir" || continue # refcount isn't zero
- existing_users="$existing_users $user"
- done
- case $existing_users in
- "") ;;
- *) ${ECHO} "==========================================================================="
- ${ECHO} "The following users are no longer being used by ${PKGNAME},"
- ${ECHO} "and they can be removed if no other packages are using them:"
- ${ECHO} ""
- ${ECHO} "$existing_users" | listwrap 40
- ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ${SED} -n "/^\# GROUP: /{s/^\# GROUP: //;p;}" ${SELF} | ${SORT} -u |
- { while read line; do
- SAVEIFS="$IFS"; IFS=":"
- set -- $line
- group="$1"; groupid="$2"
- IFS="$SAVEIFS"
- case $group in
- "") continue ;;
- *) group_exists $group || continue ;;
- esac
- shadow_dir="${PKG_REFCOUNT_GROUPS_DBDIR}/$group"
- ${TEST} ! -d "$shadow_dir" || continue # refcount isn't zero
- existing_groups="$existing_groups $group"
- done
- case $existing_groups in
- "") ;;
- *) ${ECHO} "==========================================================================="
- ${ECHO} "The following groups are no longer being used by ${PKGNAME},"
- ${ECHO} "and they can be removed if no other packages are using them:"
- ${ECHO} ""
- ${ECHO} "$existing_groups" | listwrap 40
- ${ECHO} ""
- ${ECHO} "==========================================================================="
- exit 1
- ;;
- esac; }
- ${TEST} $? -eq 0 || exitcode=1
- ;;
-
-*)
- ${ECHO} "Usage: ./+USERGROUP ADD|REMOVE [metadatadir]"
- ${ECHO} " ./+USERGROUP CHECK-ADD|CHECK-REMOVE [metadatadir]"
- ;;
-esac
-exit $exitcode
diff --git a/mk/install/usergroupfuncs b/mk/install/usergroupfuncs
deleted file mode 100644
index 364ca4f2a69..00000000000
--- a/mk/install/usergroupfuncs
+++ /dev/null
@@ -1,63 +0,0 @@
-# $NetBSD: usergroupfuncs,v 1.3 2005/10/28 20:05:46 jlam Exp $
-#
-# Default implementation of adduser() and addgroup() shell functions
-# for adding users and groups. This implementation assumes there are
-# NetBSD/Solaris-compatible versions of useradd(8) and groupadd(8)
-# available through ${USERADD} and ${GROUPADD}, respectively.
-#
-# Platform-specific replacements for this file should be located at:
-#
-# pkgsrc/mk/install/usergroupfuncs.${OPSYS}
-#
-
-# adduser user group [userid] [descr] [home] [shell]
-adduser()
-{
- user="$1"; group="$2"; userid="$3"
- descr="$4"; home="$5" shell="$6"
- ${TEST} $# -eq 6 || return 1
- ${TEST} -n "$user" || return 2
- ${TEST} -n "$group" || return 2
-
- USERADD="@USERADD@"
-
- : ${descr:="${PKGNAME%-[0-9]*} $user user"}
- : ${home:="@PKG_USER_HOME@"}
- : ${shell:="@PKG_USER_SHELL@"}
-
- if ${TEST} -n "${USERADD}" -a -x "${USERADD}"; then
- ${ECHO} "Creating user: $user"
- case $userid in
- "")
- ${USERADD} \
- -c "$descr" -d "$home" -s "$shell" \
- -g $group $user
- ;;
- *)
- ${USERADD} \
- -c "$descr" -d "$home" -s "$shell" \
- -g $group -u $userid $user
- ;;
- esac
- fi
- return 0
-}
-
-# adduser group [groupid]
-addgroup()
-{
- group="$1"; groupid="$2"
- ${TEST} $# -eq 2 || return 1
- ${TEST} -n "$group" || return 2
-
- GROUPADD="@GROUPADD@"
-
- if ${TEST} -n "${GROUPADD}" -a -x "${GROUPADD}"; then
- ${ECHO} "Creating group: $group";
- case $groupid in
- "") ${GROUPADD} $group ;;
- *) ${GROUPADD} -g $groupid $group ;;
- esac
- fi
- return 0
-}
diff --git a/mk/install/usergroupfuncs.DragonFly b/mk/install/usergroupfuncs.DragonFly
deleted file mode 100644
index 193be31b42b..00000000000
--- a/mk/install/usergroupfuncs.DragonFly
+++ /dev/null
@@ -1,58 +0,0 @@
-# $NetBSD: usergroupfuncs.DragonFly,v 1.1 2005/10/28 20:09:38 joerg Exp $
-#
-# Platform-specific adduser and addgroup functionality
-# on top of pw(8).
-
-# adduser user group [userid] [descr] [home] [shell]
-adduser()
-{
- user="$1"; group="$2"; userid="$3"
- descr="$4"; home="$5" shell="$6"
- ${TEST} $# -eq 6 || return 1
- ${TEST} -n "$user" || return 2
- ${TEST} -n "$group" || return 2
-
- PW="@PW@"
-
- : ${descr:="${PKGNAME%-[0-9]*} $user user"}
- : ${home:="@PKG_USER_HOME@"}
- : ${shell:="@PKG_USER_SHELL@"}
-
- if ${TEST} -n "${PW}" -a -x "${PW}"; then
- ${ECHO} "Creating user: $user"
- case $userid in
- "")
- ${PW} useradd \
- $user \
- -c "$descr" -d "$home" -s "$shell" \
- -g $group
- ;;
- *)
- ${PW} useradd \
- $user \
- -c "$descr" -d "$home" -s "$shell" \
- -g $group -u $userid
- ;;
- esac
- fi
- return 0
-}
-
-# adduser group [groupid]
-addgroup()
-{
- group="$1"; groupid="$2"
- ${TEST} $# -eq 2 || return 1
- ${TEST} -n "$group" || return 2
-
- PW="@PW@"
-
- if ${TEST} -n "${PW}" -a -x "${PW}"; then
- ${ECHO} "Creating group: $group";
- case $groupid in
- "") ${PW} groupadd $group ;;
- *) ${PW} groupadd $group -g $groupid ;;
- esac
- fi
- return 0
-}
diff --git a/mk/install/usergroupfuncs.FreeBSD b/mk/install/usergroupfuncs.FreeBSD
deleted file mode 100644
index e5b0ee0e465..00000000000
--- a/mk/install/usergroupfuncs.FreeBSD
+++ /dev/null
@@ -1,58 +0,0 @@
-# $NetBSD: usergroupfuncs.FreeBSD,v 1.1 2005/11/06 19:45:08 joerg Exp $
-#
-# Platform-specific adduser and addgroup functionality
-# on top of pw(8).
-
-# adduser user group [userid] [descr] [home] [shell]
-adduser()
-{
- user="$1"; group="$2"; userid="$3"
- descr="$4"; home="$5" shell="$6"
- ${TEST} $# -eq 6 || return 1
- ${TEST} -n "$user" || return 2
- ${TEST} -n "$group" || return 2
-
- PW="@PW@"
-
- : ${descr:="${PKGNAME%-[0-9]*} $user user"}
- : ${home:="@PKG_USER_HOME@"}
- : ${shell:="@PKG_USER_SHELL@"}
-
- if ${TEST} -n "${PW}" -a -x "${PW}"; then
- ${ECHO} "Creating user: $user"
- case $userid in
- "")
- ${PW} useradd \
- $user \
- -c "$descr" -d "$home" -s "$shell" \
- -g $group
- ;;
- *)
- ${PW} useradd \
- $user \
- -c "$descr" -d "$home" -s "$shell" \
- -g $group -u $userid
- ;;
- esac
- fi
- return 0
-}
-
-# adduser group [groupid]
-addgroup()
-{
- group="$1"; groupid="$2"
- ${TEST} $# -eq 2 || return 1
- ${TEST} -n "$group" || return 2
-
- PW="@PW@"
-
- if ${TEST} -n "${PW}" -a -x "${PW}"; then
- ${ECHO} "Creating group: $group";
- case $groupid in
- "") ${PW} groupadd $group ;;
- *) ${PW} groupadd $group -g $groupid ;;
- esac
- fi
- return 0
-}
diff --git a/mk/java-env.mk b/mk/java-env.mk
deleted file mode 100644
index 4f19de5cba1..00000000000
--- a/mk/java-env.mk
+++ /dev/null
@@ -1,87 +0,0 @@
-# $NetBSD: java-env.mk,v 1.6 2005/08/20 19:16:21 jlam Exp $
-#
-# This Makefile fragment handles Java wrappers and is meant to be included
-# by packages that provide a Java build-time and/or run-time environment.
-#
-# The following variables can be defined in package Makefiles to tune the
-# behavior of this file:
-#
-# JAVA_CLASSPATH Classpath that will be prepended on all invocations
-# to this implementation. Optional.
-#
-# JAVA_HOME Path to the directory holding the Java implementation.
-# Required.
-#
-# JAVA_NAME Base name of the Java implementation. This will be
-# used as part of wrappers' names. Required.
-#
-# JAVA_UNLIMIT List of resources to be unlimited at runtime.
-# Can include any of cmdsize, datasize and stacksize.
-# Optional.
-#
-# JAVA_WRAPPERS List of wrappers to be created under ${PREFIX}/bin,
-# pointing to binaries under ${JAVA_HOME}/bin. The
-# names must match files in the later directory.
-# Required (if empty, the inclusion of this file is
-# useless).
-#
-
-.if !defined(JAVA_ENV_MK)
-JAVA_ENV_MK= # defined
-
-JAVA_NAME?= # undefined
-JAVA_HOME?= # undefined
-JAVA_CLASSPATH?= # empty
-JAVA_UNLIMIT?= # empty
-JAVA_WRAPPERS?= # empty
-
-.if !empty(JAVA_WRAPPERS)
-INSTALLATION_DIRS+= bin
-
-ALTERNATIVES_SRC= ${WRKDIR}/.ALTERNATIVES
-${WRKDIR}/.ALTERNATIVES:
-. for w in ${JAVA_WRAPPERS}
- @${ECHO} 'bin/${w} ${PREFIX}/bin/${JAVA_NAME}-${w}' \
- >>${WRKDIR}/.ALTERNATIVES
-. endfor
-
-. for w in ${JAVA_WRAPPERS}
-
-JAVA_WRAPPER_BIN.${w}?= ${JAVA_HOME}/bin/${w}
-
-post-build: ${WRKDIR}/${w}
-
-.PHONY: install-java-wrapper-${w}
-post-install: install-java-wrapper-${w}
-
-. if !target(${WRKDIR}/${w})
-${WRKDIR}/${w}:
- @${ECHO} 'Generating ${w} wrapper...'
- @${ECHO} '#! ${SH}' >${WRKDIR}/${w}
- @${ECHO} 'PATH=${JAVA_HOME}/bin:$${PATH}; export PATH' >>${WRKDIR}/${w}
- @${ECHO} 'JAVA_HOME=${JAVA_HOME}; export JAVA_HOME' >>${WRKDIR}/${w}
- @${ECHO} 'JVM_HOME=${JAVA_HOME}; export JVM_HOME' >>${WRKDIR}/${w}
-. if !empty(JAVA_CLASSPATH)
- @${ECHO} 'CLASSPATH=${JAVA_CLASSPATH}:$${CLASSPATH}; export CLASSPATH' \
- >>${WRKDIR}/${w}
-. endif
-. for f in ${JAVA_UNLIMIT}
- @${ECHO} '${ULIMIT_CMD_${f}}' >>${WRKDIR}/${w}
-. endfor
-. undef f
- @${ECHO} '${JAVA_WRAPPER_BIN.${w}} "$$@"' >>${WRKDIR}/${w}
-. endif
-
-install-java-wrapper-${w}:
- ${INSTALL_SCRIPT} ${WRKDIR}/${w} ${PREFIX}/bin/${JAVA_NAME}-${w}
-
-. endfor
-. undef w
-.endif
-
-# Handle the ${PREFIX}/java shared directory automatically.
-USE_PKGINSTALL= YES
-REQD_DIRS+= ${PREFIX}/java
-PRINT_PLIST_AWK+= /^@dirrm java$$/ { next; }
-
-.endif # JAVA_ENV_MK
diff --git a/mk/java-vm.mk b/mk/java-vm.mk
deleted file mode 100644
index 87679bf3d8b..00000000000
--- a/mk/java-vm.mk
+++ /dev/null
@@ -1,316 +0,0 @@
-# $NetBSD: java-vm.mk,v 1.42 2005/06/02 10:07:48 abs Exp $
-#
-# This Makefile fragment handles Java dependencies and make variables,
-# and is meant to be included by packages that require Java either at
-# build-time or at run-time. java-vm.mk will:
-#
-# * set PKG_JVM and PKG_JAVA_HOME to the name of the JVM used and
-# to the directory in which the JVM is installed, respectively;
-#
-# * add a full dependency on the JRE and possibly a build dependency
-# on the JDK.
-#
-# There are four variables used to tweak the JVM selection:
-#
-# USE_JAVA is used to note whether a build-time dependency on the JDK is
-# added (the default). If USE_JAVA is set to "run", then we _don't_
-# add the dependency on the JDK. The default value is "yes".
-#
-# USE_JAVA2 is used to note that the package requires a Java2 implementation.
-# It's undefined by default, but may be set to "yes" or to one of
-# 1.4 or 1.5
-#
-# PKG_JVM_DEFAULT is a user-settable variable whose value is the default
-# JVM to use.
-#
-# PKG_JVMS_ACCEPTED is a package-settable list of JVMs that may be used as
-# possible dependencies for the package.
-
-.if !defined(JAVA_VM_MK)
-JAVA_VM_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-# By default, assume we need the JDK.
-USE_JAVA?= yes
-.if !empty(USE_JAVA:M[rR][uU][nN])
-USE_JAVA= run
-.endif
-
-PKG_JVM_DEFAULT?= # empty
-PKG_JVMS_ACCEPTED?= ${_PKG_JVMS}
-
-# This is a list of all of the JVMs that may be used with java-vm.mk.
-#
-.if defined(USE_JAVA2) && ${USE_JAVA2} == "1.5"
-_PKG_JVMS?= sun-jdk15
-.elif defined(USE_JAVA2) && ${USE_JAVA2} == "1.4"
-_PKG_JVMS?= sun-jdk14 sun-jdk15 jdk14
-.elif defined(USE_JAVA2) && !empty(USE_JAVA2:M[yY][eE][sS])
-_PKG_JVMS?= sun-jdk13 sun-jdk14 blackdown-jdk13 kaffe \
- sun-jdk15 jdk14 # win32-jdk
-.else
-_PKG_JVMS?= jdk sun-jdk13 sun-jdk14 blackdown-jdk13 kaffe \
- sun-jdk15 jdk14 # win32-jdk
-.endif
-
-# To be deprecated: if PKG_JVM is explicitly set, then use it as the
-# default JVM. Note that this has lower precedence than PKG_JVM_DEFAULT.
-#
-.if defined(PKG_JVM)
-. if !empty(PKG_JVM)
-_PKG_JVM_DEFAULT:= ${PKG_JVM}
-. endif
-.endif
-
-# Set the default JVM for this platform.
-#
-.if !empty(PKG_JVM_DEFAULT)
-_PKG_JVM_DEFAULT= ${PKG_JVM_DEFAULT}
-.endif
-.if !defined(_PKG_JVM_DEFAULT)
-. if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || \
- !empty(MACHINE_PLATFORM:MLinux-*-i[3456]86)
-_PKG_JVM_DEFAULT?= jdk
-. elif !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
-_PKG_JVM_DEFAULT?= blackdown-jdk13
-. elif !empty(MACHINE_PLATFORM:MDarwin-*-*)
-_PKG_JVM_DEFAULT?= sun-jdk
-#. elif !empty(MACHINE_PLATFORM:MInterix-*-*)
-#_PKG_JVM_DEFAULT?= win32-jdk
-. else
-_PKG_JVM_DEFAULT?= kaffe
-. endif
-.endif
-
-# These lists are copied from the JVM package Makefiles.
-_ONLY_FOR_PLATFORMS.blackdown-jdk13= \
- NetBSD-*-i386 NetBSD-*-powerpc NetBSD-*-sparc \
- Linux-*-i[3-6]86 Linux-*-powerpc Linux-*-sparc
-.if !empty(USE_JAVA:M[rR][uU][nN])
-_ONLY_FOR_PLATFORMS.blackdown-jdk13+= \
- NetBSD-*-arm Linux-*-arm
-.endif
-_ONLY_FOR_PLATFORMS.jdk= \
- NetBSD-*-i386 Linux-*-i[3-6]86
-_ONLY_FOR_PLATFORMS.jdk14= \
- NetBSD-[2-9].*-i386
-_ONLY_FOR_PLATFORMS.kaffe= \
- *-*-alpha *-*-arm *-*-arm32 *-*-i386 *-*-m68k *-*-mips* *-*-sparc *-*-powerpc
-_ONLY_FOR_PLATFORMS.sun-jdk13= \
- NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-*
-_ONLY_FOR_PLATFORMS.sun-jdk14= \
- NetBSD-1.5Z[A-Z]-i386 NetBSD-1.[6-9]*-i386 NetBSD-[2-9].*-i386 \
- Linux-*-i[3-6]86
-_ONLY_FOR_PLATFORMS.sun-jdk15= \
- NetBSD-1.5Z[A-Z]-i386 NetBSD-1.[6-9]*-i386 NetBSD-[2-9].*-i386 \
- Linux-*-i[3-6]86
-#_ONLY_FOR_PLATFORMS.win32-jdk= \
-# Interix-*-*
-
-# Set the accepted JVMs for this platform.
-.for _jvm_ in ${_PKG_JVMS}
-. for _pattern_ in ${_ONLY_FOR_PLATFORMS.${_jvm_}}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-_PKG_JVMS_ACCEPTED+= ${PKG_JVMS_ACCEPTED:M${_jvm_}}
-. endif
-. endfor
-.endfor
-
-_JAVA_PKGBASE.blackdown-jdk13= blackdown-jdk13
-_JAVA_PKGBASE.jdk= jdk
-_JAVA_PKGBASE.jdk14= jdk14
-_JAVA_PKGBASE.kaffe= kaffe
-_JAVA_PKGBASE.sun-jdk13= sun-jre13
-_JAVA_PKGBASE.sun-jdk14= sun-jre14
-_JAVA_PKGBASE.sun-jdk15= sun-jre15
-#_JAVA_PKGBASE.win32-jdk= win32-jdk
-
-# Mark the acceptable JVMs and check which JVM packages are installed.
-.for _jvm_ in ${_PKG_JVMS_ACCEPTED}
-_PKG_JVM_OK.${_jvm_}= yes
-_PKG_JVM_INSTALLED.${_jvm_}!= \
- if ${PKG_INFO} -qe ${_JAVA_PKGBASE.${_jvm_}}; then \
- ${ECHO} yes; \
- else \
- ${ECHO} no; \
- fi
-.endfor
-
-# Convert "sun-jdk" into "sun-jdk1[345]" depending on the
-# platform. Recent versions of NetBSD and Linux can use the 1.3-1.5
-# versions of the Sun JDK, so default to the newer installed one.
-#
-.if ${_PKG_JVM_DEFAULT} == "sun-jdk"
-. if !empty(MACHINE_PLATFORM:MNetBSD-1.6[M-Z]*-i386) || \
- !empty(MACHINE_PLATFORM:MNetBSD-[2-9].*-i386) || \
- !empty(MACHINE_PLATFORM:MLinux-*-i[3456]86)
-. if defined(_PKG_JVM_INSTALLED.sun-jdk15) && \
- (${_PKG_JVM_INSTALLED.sun-jdk15} == "yes")
-_PKG_JVM_DEFAULT= sun-jdk15
-. elif defined(_PKG_JVM_INSTALLED.sun-jdk14) && \
- (${_PKG_JVM_INSTALLED.sun-jdk14} == "yes")
-_PKG_JVM_DEFAULT= sun-jdk14
-. elif defined(_PKG_JVM_INSTALLED.sun-jdk13) && \
- (${_PKG_JVM_INSTALLED.sun-jdk13} == "yes")
-_PKG_JVM_DEFAULT= sun-jdk13
-. else
-_PKG_JVM_DEFAULT= sun-jdk15
-. endif
-. elif !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || \
- !empty(MACHINE_PLATFORM:MDarwin-*-*)
-_PKG_JVM_DEFAULT= sun-jdk13
-. endif
-.endif
-
-# Use one of the installed JVMs,...
-#
-.if !defined(_PKG_JVM)
-. for _jvm_ in ${_PKG_JVMS_ACCEPTED}
-. if !empty(_PKG_JVM_INSTALLED.${_jvm_}:M[yY][eE][sS])
-_PKG_JVM?= ${_jvm_}
-. else
-_PKG_JVM_FIRSTACCEPTED?= ${_jvm_}
-. endif
-. endfor
-#
-# ...otherwise, prefer the default one if it's accepted,...
-#
-. if defined(_PKG_JVM_OK.${_PKG_JVM_DEFAULT}) && \
- !empty(_PKG_JVM_OK.${_PKG_JVM_DEFAULT}:M[yY][eE][sS])
-_PKG_JVM= ${_PKG_JVM_DEFAULT}
-. endif
-.endif
-#
-# ...otherwise, just use the first accepted JVM.
-#
-.if !defined(_PKG_JVM)
-. if defined(_PKG_JVM_FIRSTACCEPTED)
-_PKG_JVM= ${_PKG_JVM_FIRSTACCEPTED}
-. endif
-.endif
-#
-# If there are no acceptable JVMs, then generate an error.
-#
-.if !defined(_PKG_JVM)
-# force an error
-PKG_SKIP_REASON= "no acceptable JVM found"
-_PKG_JVM= "none"
-.endif
-
-BUILDLINK_DEPENDS.blackdown-jdk13?= blackdown-jdk13-[0-9]*
-BUILDLINK_DEPENDS.blackdown-jre13?= blackdown-jre13-[0-9]*
-BUILDLINK_DEPENDS.jdk?= jdk-[0-9]*
-BUILDLINK_DEPENDS.jdk14?= jdk14-[0-9]*
-BUILDLINK_DEPENDS.kaffe?= kaffe>=1.1.4
-BUILDLINK_DEPENDS.sun-jdk13?= sun-jdk13-[0-9]*
-BUILDLINK_DEPENDS.sun-jre13?= sun-jre13-[0-9]*
-BUILDLINK_DEPENDS.sun-jdk14?= sun-jdk14-[0-9]*
-BUILDLINK_DEPENDS.sun-jre14?= sun-jre14-[0-9]*
-BUILDLINK_DEPENDS.sun-jdk15?= sun-jdk15-[0-9]*
-BUILDLINK_DEPENDS.sun-jre15?= sun-jre15-[0-9]*
-#BUILDLINK_DEPENDS.win32-jdk?= win32-jdk>=0.1
-
-_JRE.blackdown-jdk13= blackdown-jre13
-_JRE.jdk= jdk
-_JRE.jdk14= jdk14
-_JRE.kaffe= kaffe
-_JRE.sun-jdk13= sun-jre13
-_JRE.sun-jdk14= sun-jre14
-_JRE.sun-jdk15= sun-jre15
-#_JRE.win32-jdk= win32-jdk
-
-_JAVA_BASE_CLASSES= classes.zip
-
-.if ${_PKG_JVM} == "blackdown-jdk13"
-_JDK_PKGSRCDIR= ../../lang/blackdown-jdk13
-_JRE_PKGSRCDIR= ../../lang/blackdown-jre13
-_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/blackdown-1.3.1
-. if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
-MAKE_ENV+= THREADS_FLAG="green"
-CONFIGURE_ENV+= THREADS_FLAG="green"
-SCRIPTS_ENV+= THREADS_FLAG="green"
-. endif
-.elif ${_PKG_JVM} == "jdk"
-_JDK_PKGSRCDIR= ../../lang/jdk
-_JRE_PKGSRCDIR= ${_JDK_PKGSRCDIR}
-_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/jdk-1.1.8
-.elif ${_PKG_JVM} == "jdk14"
-_JDK_PKGSRCDIR= ../../wip/jdk14
-_JRE_PKGSRCDIR= ${_JDK_PKGSRCDIR}
-_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/jdk-1.4.2
-.elif ${_PKG_JVM} == "kaffe"
-_JDK_PKGSRCDIR= ../../lang/kaffe
-_JRE_PKGSRCDIR= ${_JDK_PKGSRCDIR}
-_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/kaffe
-.elif ${_PKG_JVM} == "sun-jdk13"
-_JDK_PKGSRCDIR= ../../lang/sun-jdk13
-_JRE_PKGSRCDIR= ../../lang/sun-jre13
-_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/sun-1.3.1
-.elif ${_PKG_JVM} == "sun-jdk14"
-_JDK_PKGSRCDIR= ../../lang/sun-jdk14
-_JRE_PKGSRCDIR= ../../lang/sun-jre14
-_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/sun-1.4
-.elif ${_PKG_JVM} == "sun-jdk15"
-_JDK_PKGSRCDIR= ../../lang/sun-jdk15
-_JRE_PKGSRCDIR= ../../lang/sun-jre15
-_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/sun-1.5
-UNLIMIT_RESOURCES+= datasize
-#.elif ${_PKG_JVM} == "win32-jdk"
-#_JDK_PKGSRCDIR= ../../lang/win32-jdk
-#_JRE_PKGSRCDIR= ${_JDK_PKGSRCDIR}
-#_JAVA_HOME_DEFAULT= ${LOCALBASE}/java/win32
-.endif
-
-.if defined(_JAVA_HOME_DEFAULT)
-_JAVA_HOME= ${_JAVA_HOME_DEFAULT}
-.else
-EVAL_PREFIX+= _JAVA_HOME=${_JAVA_PKGBASE.${_PKG_JVM}}
-.endif
-
-# We always need a run-time dependency on the JRE.
-.if defined(_JRE_PKGSRCDIR)
-. if exists(${_JRE_PKGSRCDIR}/buildlink3.mk)
-. include "${_JRE_PKGSRCDIR}/buildlink3.mk"
-. endif
-.endif
-
-# If we are building Java software, then we need a build-time dependency on
-# the JDK.
-#
-.if empty(USE_JAVA:M[rR][uU][nN])
-. if defined(_JDK_PKGSRCDIR)
-. if exists(${_JDK_PKGSRCDIR}/buildlink3.mk)
-. include "${_JDK_PKGSRCDIR}/buildlink3.mk"
-. endif
-. endif
-.endif
-
-# PKG_JVM is a publicly readable variable containing the name of the JVM
-# we will be using.
-#
-# PKG_JAVA_HOME is a publicly readable variable containing ${JAVA_HOME}
-# for the PKG_JVM described above.
-#
-PKG_JVM:= ${_PKG_JVM}
-.if defined(BUILDLINK_JAVA_PREFIX.${_PKG_JVM})
-PKG_JAVA_HOME?= ${BUILDLINK_JAVA_PREFIX.${_PKG_JVM}}
-.else
-PKG_JAVA_HOME?= ${_JAVA_HOME}
-.endif
-.if !defined(CLASSPATH)
-CLASSPATH_cmd= ${ECHO} `for p in \
- ${PKG_JAVA_HOME}/lib/${_JAVA_BASE_CLASSES} \
- ${PKG_JAVA_HOME}/lib/tools.jar; do \
- ${TEST} ! -f $$p || ${ECHO} $$p; done` \
- . | ${TR} ' ' :
-CLASSPATH?= ${CLASSPATH_cmd:sh}
-.endif
-
-ALL_ENV+= CLASSPATH=${CLASSPATH:Q}
-ALL_ENV+= JAVA_HOME=${PKG_JAVA_HOME}
-BUILD_DEFS+= PKG_JVM PKG_JAVA_HOME
-MAKEFLAGS+= PKG_JVM=${PKG_JVM}
-PREPEND_PATH+= ${PKG_JAVA_HOME}/bin
-
-.endif # JAVA_VM_MK
diff --git a/mk/krb5.buildlink3.mk b/mk/krb5.buildlink3.mk
deleted file mode 100644
index fa0c1225418..00000000000
--- a/mk/krb5.buildlink3.mk
+++ /dev/null
@@ -1,60 +0,0 @@
-# $NetBSD: krb5.buildlink3.mk,v 1.8 2005/01/09 23:59:26 jlam Exp $
-#
-# This Makefile fragment is meant to be included by packages that
-# require a Kerberos 5 implementation. krb5.buildlink3.mk will:
-#
-# * set KRB5BASE to the base directory of the Kerberos 5 files;
-# * set KRB5_TYPE to the Kerberos 5 implementation used.
-#
-# There are two variables that can be used to tweak the selection of
-# the Kerberos 5 implementation:
-#
-# KRB5_DEFAULT is a user-settable variable whose value is the default
-# Kerberos 5 implementation to use.
-#
-# KRB5_ACCEPTED is a package-settable list of Kerberos 5 implementations
-# that may be used by the package.
-
-KRB5_BUILDLINK3_MK:= ${KRB5_BUILDLINK3_MK}+
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(KRB5_BUILDLINK3_MK:M+)
-KRB5_DEFAULT?= heimdal
-KRB5_ACCEPTED?= ${_KRB5_PKGS}
-
-# This is an exhaustive list of all of the Kerberos 5 implementations
-# that may be used with krb5.buildlink3.mk, in order of precedence.
-#
-_KRB5_PKGS?= heimdal mit-krb5
-
-_KRB5_DEFAULT= ${KRB5_DEFAULT}
-_KRB5_ACCEPTED= ${KRB5_ACCEPTED}
-
-_KRB5_TYPE?= ${_KRB5_DEFAULT}
-
-. if !empty(_KRB5_ACCEPTED:M${_KRB5_TYPE})
-KRB5_TYPE= ${_KRB5_TYPE}
-. else
-KRB5_TYPE= none
-. endif
-KRB5BASE= ${BUILDLINK_PREFIX.${KRB5_TYPE}}
-
-BUILD_DEFS+= KRB5_TYPE
-BUILD_DEFS+= KRB5BASE
-
-# Packages that use Kerberos are automatically categorized as restricted
-# packages.
-#
-CRYPTO+= uses Kerberos encryption code
-
-.endif # KRB5_BUILDLINK3_MK
-
-.if ${KRB5_TYPE} == "none"
-PKG_FAIL_REASON= \
- "${_KRB5_TYPE} is not an acceptable Kerberos 5 type for ${PKGNAME}."
-.elif ${KRB5_TYPE} == "heimdal"
-. include "../../security/heimdal/buildlink3.mk"
-.elif ${KRB5_TYPE} == "mit-krb5"
-. include "../../security/mit-krb5/buildlink3.mk"
-.endif
diff --git a/mk/motif.buildlink3.mk b/mk/motif.buildlink3.mk
deleted file mode 100644
index e0ce5b10f33..00000000000
--- a/mk/motif.buildlink3.mk
+++ /dev/null
@@ -1,102 +0,0 @@
-# $NetBSD: motif.buildlink3.mk,v 1.9 2005/11/04 15:29:21 rillig Exp $
-#
-# Package-settable variables:
-#
-# MOTIFBASE
-# choose the Motif-2.0 installation at the named location.
-#
-# MOTIF_TYPE
-# choose a specific Motif-2.0 package.
-#
-# Result variables:
-#
-# MOTIFBASE
-# The chosen Motif installation.
-#
-# MOTIF_TYPE
-# The chosen Motif package.
-
-.if !defined(MOTIF_BUILDLINK3_MK)
-MOTIF_BUILDLINK3_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-#
-# If /usr/dt is a valid Motif-2.0 installation, then use it. Otherwise,
-# check to see if a pkgsrc Motif-2.0 is installed and valid, then use it.
-# Otherwise, if ${X11BASE} is valid, then use it. Otherwise, use the
-# Motif-2.0 specified by ${MOTIF_TYPE_DEFAULT}.
-#
-.if exists(/usr/dt/include/Xm/Xm.h) && \
- exists(/usr/dt/include/Xm/Gadget.h)
-_MOTIF_TYPE= dt
-.elif exists(${X11BASE}/lib/X11/config/OpenMotif.tmpl) || \
- exists(${LOCALBASE}/lib/X11/config/OpenMotif.tmpl)
-_MOTIF_TYPE= openmotif
-.elif exists(${X11BASE}/lib/X11/config/LessTif.tmpl) || \
- exists(${LOCALBASE}/lib/X11/config/LessTif.tmpl)
-_MOTIF_TYPE= lesstif
-.elif exists(${X11BASE}/include/Xm.h) && \
- exists(${X11BASE}/include/Xm/Gadget.h)
-_MOTIF_TYPE= none
-.else
-_MOTIF_TYPE= ${MOTIF_TYPE_DEFAULT}
-.endif
-
-# If MOTIF_TYPE is set, then let that override the Motif-discovery just
-# performed. We only recognize the tested strings as proper values for
-# MOTIF_TYPE.
-#
-.if defined(MOTIF_TYPE)
-. if (${MOTIF_TYPE} == "dt") || \
- (${MOTIF_TYPE} == "lesstif") || \
- (${MOTIF_TYPE} == "openmotif")
-_MOTIF_TYPE= ${MOTIF_TYPE}
-. endif
-.endif
-
-#
-# If MOTIFBASE is set, then let that override all other Motif-2.0
-# discovery just performed.
-#
-.if defined(MOTIFBASE)
-_MOTIF_TYPE= none
-_MOTIFBASE= ${MOTIFBASE}
-.else
-. if ${_MOTIF_TYPE} == "dt"
-_MOTIFBASE= /usr/dt
-. elif ${_MOTIF_TYPE} == "none"
-_MOTIFBASE= ${X11BASE}
-. endif
-.endif
-
-.if ${_MOTIF_TYPE} == "openmotif"
-. include "../../x11/openmotif/buildlink3.mk"
-_MOTIFBASE= ${BUILDLINK_PREFIX.openmotif}
-.elif ${_MOTIF_TYPE} == "lesstif"
-. include "../../x11/lesstif/buildlink3.mk"
-_MOTIFBASE= ${BUILDLINK_PREFIX.lesstif}
-.else
-#
-# Link the pre-existing Motif libraries and headers in ${_MOTIFBASE} into
-# ${BUILDLINK_DIR}.
-#
-BUILDLINK_PREFIX.motif= ${_MOTIFBASE}
-.endif
-
-.if !defined(MOTIFBASE)
-MOTIF_TYPE:= ${_MOTIF_TYPE}
-MOTIFBASE= ${_MOTIFBASE}
-.endif
-
-.include "../../mk/x11.buildlink3.mk"
-
-MAKE_ENV+= MOTIFLIB="${MOTIFLIB}"
-MAKE_ENV+= MOTIFBASE="${_MOTIFBASE}"
-CPPFLAGS+= -I${_MOTIFBASE}/include
-LDFLAGS+= -L${_MOTIFBASE}/lib
-LDFLAGS+= ${COMPILER_RPATH_FLAG}${_MOTIFBASE}/lib
-MOTIFLIB?= ${COMPILER_RPATH_FLAG}${_MOTIFBASE}/lib \
- -L${_MOTIFBASE}/lib -lXm -lXp
-
-.endif # MOTIF_BUILDLINK3_MK
diff --git a/mk/mysql.buildlink3.mk b/mk/mysql.buildlink3.mk
deleted file mode 100644
index 22f81c53639..00000000000
--- a/mk/mysql.buildlink3.mk
+++ /dev/null
@@ -1,79 +0,0 @@
-# $NetBSD: mysql.buildlink3.mk,v 1.4 2005/10/31 09:25:00 xtraeme Exp $
-
-.if !defined(MYSQL_VERSION_MK)
-MYSQL_VERSION_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-MYSQL_VERSION_DEFAULT?= 41
-MYSQL_VERSIONS_ACCEPTED?= 50 41 40
-
-# transform the list into individual variables
-.for mv in ${MYSQL_VERSIONS_ACCEPTED}
-_MYSQL_VERSION_${mv}_OK= yes
-.endfor
-
-# check what is installed
-.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.15)
-_MYSQL_VERSION_50_INSTALLED= yes
-.endif
-
-.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14)
-_MYSQL_VERSION_41_INSTALLED= yes
-.endif
-
-.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.12)
-_MYSQL_VERSION_40_INSTALLED= yes
-.endif
-
-# if a version is explicitely required, take it
-.if defined(MYSQL_VERSION_REQD)
-_MYSQL_VERSION= ${MYSQL_VERSION_REQD}
-.endif
-# if the default is already installed, it is first choice
-.if !defined(_MYSQL_VERSION)
-. if defined(_MYSQL_VERSION_${MYSQL_VERSION_DEFAULT}_OK)
-. if defined(_MYSQL_VERSION_${MYSQL_VERSION_DEFAULT}_INSTALLED)
-_MYSQL_VERSION= ${MYSQL_VERSION_DEFAULT}
-. endif
-. endif
-.endif
-# prefer an already installed version, in order of "accepted"
-.if !defined(_MYSQL_VERSION)
-. for mv in ${MYSQL_VERSIONS_ACCEPTED}
-. if defined(_MYSQL_VERSION_${mv}_INSTALLED)
-_MYSQL_VERSION?= ${mv}
-. else
-# keep information as last resort - see below
-_MYSQL_VERSION_FIRSTACCEPTED?= ${mv}
-. endif
-. endfor
-.endif
-# if the default is OK for the addon pkg, take this
-.if !defined(_MYSQL_VERSION)
-. if defined(_MYSQL_VERSION_${MYSQL_VERSION_DEFAULT}_OK)
-_MYSQL_VERSION= ${MYSQL_VERSION_DEFAULT}
-. endif
-.endif
-# take the first one accepted by the package
-.if !defined(_MYSQL_VERSION)
-_MYSQL_VERSION= ${_MYSQL_VERSION_FIRSTACCEPTED}
-.endif
-
-#
-# set variables for the version we decided to use:
-#
-.if ${_MYSQL_VERSION} == "50"
-MYSQL_PKGSRCDIR= ../../databases/mysql5-client
-.elif ${_MYSQL_VERSION} == "41"
-MYSQL_PKGSRCDIR= ../../databases/mysql4-client
-.elif ${_MYSQL_VERSION} == "40"
-MYSQL_PKGSRCDIR= ../../databases/mysql-client
-.else
-# force an error
-PKG_SKIP_REASON+= "${_MYSQL_VERSION} is not a valid mysql package."
-.endif
-
-.include "${MYSQL_PKGSRCDIR}/buildlink3.mk"
-
-.endif # MYSQL_VERSION_MK
diff --git a/mk/ossaudio.buildlink3.mk b/mk/ossaudio.buildlink3.mk
deleted file mode 100644
index 1946d8f1ae4..00000000000
--- a/mk/ossaudio.buildlink3.mk
+++ /dev/null
@@ -1,84 +0,0 @@
-# $NetBSD: ossaudio.buildlink3.mk,v 1.3 2004/11/18 04:00:50 xtraeme Exp $
-#
-# This file should be included by Makefiles for packages that use OSS.
-# By checking the value of HAVE_OSS after including this file, it's possible
-# to check whether audio/oss is installed, or if ossaudio OSS emulation
-# should be used instead:
-#
-# .include "../../mk/ossaudio.buildlink3.mk"
-#
-# .if defined(HAVE_OSS) && (${HAVE_OSS} == "YES")
-# CONFIGURE_ENV+= ac_cv_libossaudio__oss_ioctl=no
-# .endif
-#
-OSSAUDIO_BUILDLINK3_MK:= ${OSSAUDIO_BUILDLINK3_MK}+
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(OSSAUDIO_BUILDLINK3_MK:M+)
-. if defined(USE_OSS)
-BUILD_DEFS+= USE_OSS
-. endif
-. if !defined(_HAVE_OSS)
-_HAVE_OSS!= if ${PKG_INFO} -qe oss; then ${ECHO} YES; else ${ECHO} NO; fi
-MAKEFLAGS+= _HAVE_OSS=${_HAVE_OSS}
-. endif
-HAVE_OSS?= ${_HAVE_OSS}
-.endif # OSSAUDIO_BUILDLINK3_MK
-
-.if defined(HAVE_OSS) && (${HAVE_OSS} == "YES")
-. include "../../audio/oss/buildlink3.mk"
-.else
-BUILDLINK_PREFIX.oss= /usr
-. if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
-LIBOSSAUDIO?= -lossaudio
-DEVOSSAUDIO?= /dev/audio
-DEVOSSSOUND?= /dev/sound
-. elif ${OPSYS} == "Linux"
-LIBOSSAUDIO?= # empty
-DEVOSSAUDIO?= /dev/dsp
-DEVOSSSOUND?= /dev/dsp
-. else
-LIBOSSAUDIO?= # empty
-DEVOSSAUDIO?= /dev/audio
-DEVOSSSOUND?= /dev/sound
-. endif
-.endif
-
-.if !empty(OSSAUDIO_BUILDLINK3_MK:M+)
-CONFIGURE_ENV+= LIBOSSAUDIO="${LIBOSSAUDIO}"
-CONFIGURE_ENV+= DEVOSSAUDIO="${DEVOSSAUDIO}"
-CONFIGURE_ENV+= DEVOSSSOUND="${DEVOSSSOUND}"
-
-MAKE_ENV+= LIBOSSAUDIO="${LIBOSSAUDIO}"
-MAKE_ENV+= DEVOSSAUDIO="${DEVOSSAUDIO}"
-MAKE_ENV+= DEVOSSSOUND="${DEVOSSSOUND}"
-
-BUILDLINK_TARGETS+= buildlink-ossaudio-soundcard-h
-
-# Many programs expect <soundcard.h> to be found as <sys/soundcard.h>.
-# Also include <sys/ioctl.h> prior to include <soundcard.h> since we need
-# definitions for _IOWR and friends.
-#
-.PHONY: buildlink-ossaudio-soundcard-h
-buildlink-ossaudio-soundcard-h:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- sys_soundcard_h=${BUILDLINK_DIR}/include/sys/soundcard.h; \
- soundcard_h=${BUILDLINK_PREFIX.oss}/include/soundcard.h; \
- if [ ! -f $${sys_soundcard_h} -a -f $${soundcard_h} ]; then \
- ${ECHO_BUILDLINK_MSG} "Creating $${sys_soundcard_h}."; \
- ${MKDIR} `${DIRNAME} $${sys_soundcard_h}`; \
- ( ${ECHO} "#ifndef BUILDLINK_SYS_SOUNDCARD_H"; \
- ${ECHO} "#define BUILDLINK_SYS_SOUNDCARD_H"; \
- ${ECHO} "#include <sys/ioctl.h>"; \
- ${ECHO} "#include <soundcard.h>"; \
- ${ECHO} "#endif"; \
- ) > $${sys_soundcard_h}; \
- fi; \
- mach_soundcard_h=${BUILDLINK_DIR}/include/machine/soundcard.h; \
- if [ ! -f $${mach_soundcard_h} -a -f $${sys_soundcard_h} ]; then \
- ${ECHO_BUILDLINK_MSG} "Creating $${mach_soundcard_h}."; \
- ${MKDIR} `${DIRNAME} $${mach_soundcard_h}`; \
- ${LN} -s $${sys_soundcard_h} $${mach_soundcard_h}; \
- fi
-.endif # OSSAUDIO_BUILDLINK3_MK
diff --git a/mk/pam.buildlink3.mk b/mk/pam.buildlink3.mk
deleted file mode 100644
index 478f7b848bc..00000000000
--- a/mk/pam.buildlink3.mk
+++ /dev/null
@@ -1,89 +0,0 @@
-# $NetBSD: pam.buildlink3.mk,v 1.5 2005/06/16 17:40:56 salo Exp $
-#
-# This Makefile fragment is meant to be included by packages that
-# require a PAM implementation. pam.buildlink3.mk will:
-#
-# * set PAMBASE to the base directory of the PAM files;
-# * set PAM_TYPE to the PAM implementation used.
-#
-# There are two variables that can be used to tweak the selection of
-# the PAM implementation:
-#
-# PAM_DEFAULT is a user-settable variable whose value is the default
-# PAM implementation to use.
-#
-# PAM_ACCEPTED is a package-settable list of PAM implementations
-# that may be used by the package.
-#
-
-PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(PAM_BUILDLINK3_MK:M+)
-#
-# This is an exhaustive list of all of the PAM implementations
-# that may be used with PAM.buildlink3.mk, in order of precedence.
-#
-# OS conditionals can exclude implementations not available on
-# some platforms.
-#
-.if ${OPSYS} != "Interix"
-_PAM_PKGS+= linux-pam
-.endif
-
-.if ${OPSYS} != "Interix"
-_PAM_PKGS+= openpam
-.endif
-
-# builtin only, so no conditional needed
-_PAM_PKGS+= solaris-pam
-
-BUILDLINK_BUILTIN_MK.linux-pam= ../../security/PAM/builtin.mk
-BUILDLINK_BUILTIN_MK.openpam= ../../security/openpam/builtin.mk
-BUILDLINK_BUILTIN_MK.solaris-pam= ../../mk/solaris-pam.builtin.mk
-
-# If we have a particular PAM implementation in the base system, then
-# default to using that PAM type. Otherwise, default to "linux-pam".
-#
-. for _pam_ in ${_PAM_PKGS}
-. if exists(${BUILDLINK_BUILTIN_MK.${_pam_}})
-CHECK_BUILTIN.${_pam_}:= yes
-. include "${BUILDLINK_BUILTIN_MK.${_pam_}}"
-. if defined(IS_BUILTIN.${_pam_}) && \
- !empty(IS_BUILTIN.${_pam_}:M[yY][eE][sS])
-PAM_DEFAULT?= ${_pam_}
-. endif
-CHECK_BUILTIN.${_pam_}:= no
-. endif
-. endfor
-PAM_DEFAULT?= linux-pam
-PAM_ACCEPTED?= ${_PAM_PKGS}
-
-_PAM_DEFAULT= ${PAM_DEFAULT}
-_PAM_ACCEPTED= ${PAM_ACCEPTED}
-
-_PAM_TYPE?= ${_PAM_DEFAULT}
-
-. if !empty(_PAM_ACCEPTED:M${_PAM_TYPE})
-PAM_TYPE= ${_PAM_TYPE}
-. else
-PAM_TYPE= none
-. endif
-PAMBASE= ${BUILDLINK_PREFIX.${PAM_TYPE}}
-
-BUILD_DEFS+= PAM_TYPE
-BUILD_DEFS+= PAMBASE
-.endif # PAM_BUILDLINK3_MK
-
-.if ${PAM_TYPE} == "none"
-PKG_FAIL_REASON= \
- "${_PAM_TYPE} is not an acceptable PAM type for ${PKGNAME}."
-.elif ${PAM_TYPE} == "linux-pam"
-. include "../../security/PAM/buildlink3.mk"
-.elif ${PAM_TYPE} == "openpam"
-. include "../../security/openpam/buildlink3.mk"
-.elif ${PAM_TYPE} == "solaris-pam"
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nsolaris-pam}
-BUILDLINK_PACKAGES+= solaris-pam
-.endif
diff --git a/mk/pgsql.buildlink3.mk b/mk/pgsql.buildlink3.mk
deleted file mode 100644
index be5a000bd26..00000000000
--- a/mk/pgsql.buildlink3.mk
+++ /dev/null
@@ -1,102 +0,0 @@
-# $NetBSD: pgsql.buildlink3.mk,v 1.12 2005/08/06 23:01:19 abs Exp $
-
-.if !defined(PGVERSION_MK)
-PGVERSION_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-PGSQL_VERSION_DEFAULT?= 74
-PGSQL_VERSIONS_ACCEPTED?= 80 74 73
-
-# transform the list into individual variables
-.for pv in ${PGSQL_VERSIONS_ACCEPTED}
-_PGSQL_VERSION_${pv}_OK= yes
-.endfor
-
-.if ${_OPSYS_SHLIB_TYPE} == "dylib"
-PG_LIB_EXT=dylib
-.else
-PG_LIB_EXT=so
-.endif
-
-# check what is installed
-.if ${OPSYS} == "Darwin"
-.if exists(${LOCALBASE}/lib/libecpg.5.0.dylib)
-_PGSQL_VERSION_80_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.4.1.dylib)
-_PGSQL_VERSION_74_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.3.dylib)
-_PGSQL_VERSION_73_INSTALLED=yes
-.endif
-.else
-.if exists(${LOCALBASE}/lib/libecpg.so.5.0.0)
-_PGSQL_VERSION_80_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.so.4.1)
-_PGSQL_VERSION_74_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.so.3)
-_PGSQL_VERSION_73_INSTALLED=yes
-.endif
-.endif
-
-# if a version is explicitely required, take it
-.if defined(PGSQL_VERSION_REQD)
-_PGSQL_VERSION= ${PGSQL_VERSION_REQD}
-.endif
-# if the default is already installed, it is first choice
-.if !defined(_PGSQL_VERSION)
-.if defined(_PGSQL_VERSION_${PGSQL_VERSION_DEFAULT}_OK)
-.if defined(_PGSQL_VERSION_${PGSQL_VERSION_DEFAULT}_INSTALLED)
-_PGSQL_VERSION= ${PGSQL_VERSION_DEFAULT}
-.endif
-.endif
-.endif
-# prefer an already installed version, in order of "accepted"
-.if !defined(_PGSQL_VERSION)
-.for pv in ${PGSQL_VERSIONS_ACCEPTED}
-.if defined(_PGSQL_VERSION_${pv}_INSTALLED)
-_PGSQL_VERSION?= ${pv}
-.else
-# keep information as last resort - see below
-_PGSQL_VERSION_FIRSTACCEPTED?= ${pv}
-.endif
-.endfor
-.endif
-# if the default is OK for the addon pkg, take this
-.if !defined(_PGSQL_VERSION)
-.if defined(_PGSQL_VERSION_${PGSQL_VERSION_DEFAULT}_OK)
-_PGSQL_VERSION= ${PGSQL_VERSION_DEFAULT}
-.endif
-.endif
-# take the first one accepted by the package
-.if !defined(_PGSQL_VERSION)
-_PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED}
-.endif
-
-#
-# set variables for the version we decided to use:
-#
-.if ${_PGSQL_VERSION} == "80"
-PGSQL_TYPE= postgresql80-client
-PGPKGSRCDIR= ../../databases/postgresql80-client
-.elif ${_PGSQL_VERSION} == "74"
-PGSQL_TYPE= postgresql74-lib
-PGPKGSRCDIR= ../../databases/postgresql74-lib
-.elif ${_PGSQL_VERSION} == "73"
-PGSQL_TYPE= postgresql73-lib
-PGPKGSRCDIR= ../../databases/postgresql73-lib
-.else
-# force an error
-PGSQL_TYPE= none
-PKG_SKIP_REASON+= "${_PGSQL_VERSION} is not a valid package"
-.endif
-
-.include "${PGPKGSRCDIR}/buildlink3.mk"
-PGSQL_PREFIX= ${BUILDLINK_PREFIX.${PGSQL_TYPE}}
-
-PGSQL_VERSION= ${_PGSQL_VERSION}
-
-.endif # PGVERSION_MK
diff --git a/mk/platform/AIX.mk b/mk/platform/AIX.mk
deleted file mode 100644
index ac5cee699b2..00000000000
--- a/mk/platform/AIX.mk
+++ /dev/null
@@ -1,94 +0,0 @@
-# $NetBSD: AIX.mk,v 1.20 2005/08/02 03:38:09 reed Exp $
-#
-# Variable definitions for the AIX operating system.
-
-CPP?= ${LOCALBASE}/bin/cpp
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from defaults/mk.conf. Verify/correct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-# AIX strip fails too easily. Use a wrapper script instead
-.if exists(${LOCALBASE}/bin/strip)
-STRIP?= ${LOCALBASE}/bin/strip
-.endif
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 0022
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /sbin/nologin
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= ${SU} - root -c
-ROOT_USER?= root
-ROOT_GROUP?= system
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-# imake installs manpages in weird places
-# these values from /usr/X11R6/lib/X11/config/NetBSD.cf
-IMAKE_MAN_SOURCE_PATH= man/cat
-IMAKE_MAN_SUFFIX= 1
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_FILEMAN_SUFFIX= 5
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-IMAKE_MANNEWSUFFIX= 0
-
-_DO_SHLIB_CHECKS= yes
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= aixlib # type of shared lib
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-# for programs which use dlopen()
-# not necessary since 1.6 (shared libs are linked against libgcc_pic)
-.if !empty(OS_VERSION:M1.5*)
-LINK_ALL_LIBGCC_HACK= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
-.endif
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-DEFAULT_SERIAL_DEVICE?= /dev/tty0
-SERIAL_DEVICES?= /dev/tty0 \
- /dev/tty
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-# FIXME: Adjust to work on this system and enable the lines below.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/AIX.pkg.dist b/mk/platform/AIX.pkg.dist
deleted file mode 100644
index 1652726e65f..00000000000
--- a/mk/platform/AIX.pkg.dist
+++ /dev/null
@@ -1,1131 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: AIX.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=system mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/BSDOS.mk b/mk/platform/BSDOS.mk
deleted file mode 100644
index 361ec1601a8..00000000000
--- a/mk/platform/BSDOS.mk
+++ /dev/null
@@ -1,96 +0,0 @@
-# $NetBSD: BSDOS.mk,v 1.15 2005/08/02 03:38:09 reed Exp $
-#
-# Variable definitions for the BSD/OS operating system.
-
-#CPP= /usr/bin/cpp
-# BSD/OS doesn't have c++ command
-.if !exists(${CXX})
-CXX= /usr/bin/g++
-.endif
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from defaults/mk.conf. Verify/correct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-# sh doesn't have built-in type
-TYPE?= which
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 0022
-.if ${OBJECT_FMT} == "ELF"
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
-.else
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
-.endif
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /sbin/nologin
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= ${SU} - root -c
-ROOT_USER?= root
-ROOT_GROUP?= wheel
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-# imake installs manpages in weird places
-# XXX: assume NetBSD defaults until somebody determines correct values
-IMAKE_MAN_SOURCE_PATH= man/cat
-IMAKE_MANNEWSUFFIX= 0
-IMAKE_MAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_LIBMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_FILEMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-# XXX need to check this for Java
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-# XXX need to check this for libossaudio
-_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -V simple -b -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-DEFAULT_SERIAL_DEVICE?= /dev/null
-SERIAL_DEVICES?= /dev/null
-
-PKG_CREATE_USERGROUP= NO # until it works
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-# FIXME: Adjust to work on this system and enable the lines below.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/BSDOS.pkg.dist b/mk/platform/BSDOS.pkg.dist
deleted file mode 100644
index 94bf46ed626..00000000000
--- a/mk/platform/BSDOS.pkg.dist
+++ /dev/null
@@ -1,1131 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: BSDOS.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
deleted file mode 100644
index 1a6b81f5a75..00000000000
--- a/mk/platform/Darwin.mk
+++ /dev/null
@@ -1,106 +0,0 @@
-# $NetBSD: Darwin.mk,v 1.14 2005/08/02 03:38:09 reed Exp $
-#
-# Variable definitions for the Darwin operating system.
-
-.if !defined(CPP) || ${CPP} == "cpp"
-CPP= ${CC} -E ${CPP_PRECOMP_FLAGS}
-.endif
-ECHO_N?= ${ECHO} -n
-LDD?= /usr/bin/otool -L
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from defaults/mk.conf. Verify/correct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-
-.if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc)
-CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp
-.endif
-DEF_UMASK?= 0022
-DEFAULT_SERIAL_DEVICE?= /dev/null
-EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= ${FALSE}
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= /usr/bin/sudo ${SH} -c
-ROOT_GROUP?= wheel
-ROOT_USER?= root
-SERIAL_DEVICES?= /dev/null
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-GROUPADD?= ${LOCALBASE}/sbin/groupadd
-USERADD?= ${LOCALBASE}/sbin/useradd
-_PKG_USER_HOME?= /var/empty # to match other system accounts
-_PKG_USER_SHELL?= /usr/bin/false # to match other system accounts
-_USER_DEPENDS= user>=20040801:../../sysutils/user_darwin
-
-# imake installs manpages in weird places
-# these values from /usr/X11R6/lib/X11/config/Imake.tmpl
-IMAKE_MAN_SOURCE_PATH= man/man
-IMAKE_MAN_SUFFIX= 1
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_FILEMAN_SUFFIX= 5
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
-
-_DO_SHLIB_CHECKS= yes # on installation, fixup PLIST for shared libs
-.if ${OS_VERSION:R} >= 6
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= yes # Java is standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_PERL_REQD= 5.8.0 # base version of perl required
-_OPSYS_PTHREAD_AUTO= yes # -lpthread not needed for pthreads
-_OPSYS_LINKER_RPATH_FLAG= -L # darwin has no rpath, use -L instead
-_OPSYS_COMPILER_RPATH_FLAG= -L # compiler flag to pass rpaths to linker
-_OPSYS_SHLIB_TYPE= dylib # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -V simple -b -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= no # don't add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-Wl,-x} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-LOCALBASE?= ${DESTDIR}/usr/pkg
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-_OPSYS_MAX_CMDLEN_CMD= /usr/sbin/sysctl -n kern.argmax
-
-# Darwin 7.7.x has poll() in libc, but no poll.h. Try to help GNU
-# configure packages that break because of this by pretending that
-# there is no poll().
-.if defined(GNU_CONFIGURE)
-. if !exists(/usr/include/poll.h) && !exists(/usr/include/sys/poll.h)
-CONFIGURE_ENV+= ac_cv_func_poll=no
-. endif
-.endif
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/Darwin.pkg.dist b/mk/platform/Darwin.pkg.dist
deleted file mode 100644
index 22da71bb40d..00000000000
--- a/mk/platform/Darwin.pkg.dist
+++ /dev/null
@@ -1,1181 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: Darwin.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/Darwin.x11.dist b/mk/platform/Darwin.x11.dist
deleted file mode 100644
index 94a07327627..00000000000
--- a/mk/platform/Darwin.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: Darwin.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/DragonFly.mk b/mk/platform/DragonFly.mk
deleted file mode 100644
index 55c2a5fba7b..00000000000
--- a/mk/platform/DragonFly.mk
+++ /dev/null
@@ -1,96 +0,0 @@
-# $NetBSD: DragonFly.mk,v 1.22 2005/11/09 01:08:58 reed Exp $
-#
-# Variable definitions for the DragonFly operating system.
-
-BRANDELF?= /usr/bin/brandelf # used by linux compat layer
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-PW?= /usr/sbin/pw
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 0022
-.if ${OBJECT_FMT} == "ELF"
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
-.else
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
-.endif
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /sbin/nologin
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= ${SU} - root -c
-ROOT_USER?= root
-ROOT_GROUP?= wheel
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-# DragonFly does not provide an X11, so default to X.org's X11
-X11_TYPE?= xorg
-
-# imake installs manpages in weird places
-IMAKE_MAN_SOURCE_PATH= man/man
-IMAKE_MAN_SUFFIX= 1
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_KERNMAN_SUFFIX= 4
-IMAKE_FILEMAN_SUFFIX= 5
-IMAKE_MISCMAN_SUFFIX= 7
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_KERNMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
-IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-DEFAULT_SERIAL_DEVICE?= /dev/cuaa0
-SERIAL_DEVICES?= /dev/cuaa0
-
-# check for kqueue(2) support
-.if exists(/usr/include/sys/event.h)
-PKG_HAVE_KQUEUE= # defined
-.endif
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-GAMEOWN= games
-GAMEGRP= games
-GAMEMODE= 2555
-.endif
diff --git a/mk/platform/DragonFly.pkg.dist b/mk/platform/DragonFly.pkg.dist
deleted file mode 100644
index 923105e8b23..00000000000
--- a/mk/platform/DragonFly.pkg.dist
+++ /dev/null
@@ -1,1180 +0,0 @@
-# $NetBSD: DragonFly.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/DragonFly.x11.dist b/mk/platform/DragonFly.x11.dist
deleted file mode 100644
index 806ddaafcae..00000000000
--- a/mk/platform/DragonFly.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: DragonFly.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/FreeBSD.mk b/mk/platform/FreeBSD.mk
deleted file mode 100644
index 640f6f94e64..00000000000
--- a/mk/platform/FreeBSD.mk
+++ /dev/null
@@ -1,92 +0,0 @@
-# $NetBSD: FreeBSD.mk,v 1.14 2005/11/06 19:45:08 joerg Exp $
-#
-# Variable definitions for the FreeBSD operating system.
-
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-PW?= /usr/sbin/pw
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 0022
-.if ${OBJECT_FMT} == "ELF"
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
-.else
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
-.endif
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /sbin/nologin
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= ${SU} - root -c
-ROOT_USER?= root
-ROOT_GROUP?= wheel
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-# imake installs manpages in weird places
-IMAKE_MAN_SOURCE_PATH= man/man
-IMAKE_MAN_SUFFIX= 1
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_KERNMAN_SUFFIX= 4
-IMAKE_FILEMAN_SUFFIX= 5
-IMAKE_MISCMAN_SUFFIX= 7
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_KERNMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
-IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-DEFAULT_SERIAL_DEVICE?= /dev/cuaa0
-SERIAL_DEVICES?= /dev/cuaa0
-
-# check for kqueue(2) support
-.if exists(/usr/include/sys/event.h)
-PKG_HAVE_KQUEUE= # defined
-.endif
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-GAMEOWN= games
-GAMEGRP= games
-GAMEMODE= 2555
-.endif
diff --git a/mk/platform/FreeBSD.pkg.dist b/mk/platform/FreeBSD.pkg.dist
deleted file mode 100644
index 76acc023097..00000000000
--- a/mk/platform/FreeBSD.pkg.dist
+++ /dev/null
@@ -1,1180 +0,0 @@
-# $NetBSD: FreeBSD.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/FreeBSD.x11.dist b/mk/platform/FreeBSD.x11.dist
deleted file mode 100644
index c6fef987e0a..00000000000
--- a/mk/platform/FreeBSD.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: FreeBSD.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/IRIX.mk b/mk/platform/IRIX.mk
deleted file mode 100644
index 2828ecc21d8..00000000000
--- a/mk/platform/IRIX.mk
+++ /dev/null
@@ -1,101 +0,0 @@
-# $NetBSD: IRIX.mk,v 1.17 2005/10/16 19:38:05 schwarz Exp $
-#
-# Variable definitions for the IRIX operating system.
-
-ECHO_N?= ${ECHO} -n
-.if exists(/usr/bin/X11/imake)
-IMAKE?= /usr/bin/X11/imake # IRIX 5.3 location
-.endif
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-IMAKEOPTS+= -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE}
-IMAKEOPTS+= -DManUsr=${PREFIX}
-PKGLOCALEDIR?= share
-PS?= /sbin/ps
-RSH?= /usr/bsd/rsh
-SU?= /sbin/su
-TYPE?= /sbin/type
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 022
-DEFAULT_SERIAL_DEVICE?= /dev/null
-EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
-MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
-NOLOGIN?= ${FALSE}
-ROOT_CMD?= ${SU} - root -c
-ROOT_GROUP?= sys
-ROOT_USER?= root
-SERIAL_DEVICES?= /dev/null
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
-
-# imake installs manpages in weird places
-IMAKE_MAN_SOURCE_PATH?= catman/u_man/cat
-IMAKE_MAN_SUFFIX?= 1
-IMAKE_LIBMAN_SUFFIX?= 3
-IMAKE_FILEMAN_SUFFIX?= 5
-IMAKE_MAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}1/X11
-IMAKE_LIBMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}3/X11
-IMAKE_FILEMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}5/X11
-IMAKE_MANNEWSUFFIX?= z
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_NEEDS_XPKGWEDGE= yes # xpkgwedge is required for X11
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF # shared lib type
-.if defined(_OPSYS_GPATCH_REQD) && ${_OPSYS_GPATCH_REQD} == "YES"
-_PATCH_CAN_BACKUP= yes # patch(1) can make backups
-_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
-.else
-_PATCH_CAN_BACKUP= no # native patch(1) can make backups
-.endif
-_PREFORMATTED_MAN_DIR= man # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# XXX:
-# These flags are for the IRIX linker. If GNU ld is used, these would need
-# to be set to --{no-}whole-archive. So, ugh, let's say we only do
-# IRIX tools for the time being.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-all
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,-none
-
-# IRIX has /usr/include/iconv.h, but it's not GNU iconv, so mark it
-# incompatible.
-_INCOMPAT_ICONV= IRIX-*-*
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-LOCALBASE?= ${DESTDIR}/usr/pkg
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-
-CONFIGURE_ENV+= ABI=${ABI}
-MAKE_ENV+= ABI=${ABI}
-
-LIBABISUFFIX?= ${ABI}
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-_OPSYS_MAX_CMDLEN_CMD= /usr/sbin/sysconf ARG_MAX
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/IRIX.pkg.dist b/mk/platform/IRIX.pkg.dist
deleted file mode 100644
index 16c248dd901..00000000000
--- a/mk/platform/IRIX.pkg.dist
+++ /dev/null
@@ -1,1180 +0,0 @@
-# $NetBSD: IRIX.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/IRIX.x11.dist b/mk/platform/IRIX.x11.dist
deleted file mode 100644
index 9478ba6628a..00000000000
--- a/mk/platform/IRIX.x11.dist
+++ /dev/null
@@ -1,639 +0,0 @@
-# $NetBSD: IRIX.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- catman
- u_man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- ..
- p_man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- ..
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- u_man
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- ..
- p_man
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/Interix.mk b/mk/platform/Interix.mk
deleted file mode 100644
index a083a332c3b..00000000000
--- a/mk/platform/Interix.mk
+++ /dev/null
@@ -1,182 +0,0 @@
-# $NetBSD: Interix.mk,v 1.46 2005/11/09 18:05:56 tv Exp $
-#
-# Variable definitions for the Interix operating system.
-
-# SHLIB BASE ADDRESSES:
-#
-# [tv] For reference, here's a list of shared library base address ranges used
-# throughout pkgsrc to cope with the fact that Interix has no proper PIC
-# support in the compiler. This list will be kept updated for any new packages
-# also needing special handling.
-#
-# Fortunately, libtool covers most of this, and uses a randomized base address
-# selection as described below. This randomized base address concept is used
-# again in a couple other places.
-#
-# * = currently uses fixed default of 0x10000000 and needs something better
-# (this base address restricts how far sbrk() can go in memory, and of
-# course, collides with everything else, requiring runtime text relocs)
-#
-# pkg start end slotsize #slots
-#
-# <bsd.lib.mk> 0x50000000 0x6fffffff 0x00040000 2048
-# libtool-base 0x50000000 0x6fffffff 0x00040000 2048
-# netpbm 0x6b000000 0x6cffffff 0x00100000 32
-# openssl 0x5e000000 0x5fffffff 0x00100000 32
-# perl5 *
-# python22 *
-# python23 *
-# python24 *
-# ruby16 0x50000000 0x6fffffff 0x00040000 2048
-# (main lib) 0x48000000
-# ruby18 0x50000000 0x6fffffff 0x00040000 2048
-# (main lib) 0x48000000
-# zsh *
-
-# ADDITIONAL NOTES:
-#
-# * It appears that www/curl 1.15.0+ has support for SIOCGIFADDR via
-# an undocumented ioctl interface. It may be worthwhile to look at
-# adding that hack into a more proper <net/if.h> to be supplied by
-# pkgsrc's compiler wrappers. [tv]
-
-###
-### Overrides to standard BSD .mk files
-###
-
-# "catinstall" not yet supported as there's no shipped [gn]roff
-MANINSTALL= maninstall
-MAKE_FLAGS+= MKCATPAGES=no NOLINT=1
-
-###
-### Alternate defaults to global pkgsrc settings, to help avoid
-### some of the excessive Interix fork(2) overhead, and reduce the
-### amount of settings required in the user's mk.conf
-###
-
-# NetBSD's faster, vfork-capable shell (not yet in pkgsrc)
-#BULK_PREREQ+= shells/nbsh
-.if exists(${PREFIX}/bin/nbsh)
-TOOLS_SHELL?= ${PREFIX}/bin/nbsh
-WRAPPER_SHELL?= ${PREFIX}/bin/nbsh
-.endif
-
-INSTALL?= ${PREFIX}/bin/install-sh
-PAX?= ${PREFIX}/bin/pax
-SED?= ${PREFIX}/bin/nbsed
-
-GCC_USE_SYMLINKS?= yes
-WRAPPER_DEBUG?= no
-
-.if defined(BATCH)
-BULK_PREREQ+= lang/perl5
-USE_BULK_BROKEN_CHECK?= no
-USE_BULK_TIMESTAMPS?= no
-.endif
-
-###
-### Platform definitions common to pkgsrc/mk/platform/*.mk
-###
-
-ECHO_N?= /bin/printf %s # does not support "echo -n"
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-RSH?= /usr/bin/rsh
-SU?= /bin/su
-TYPE?= type # Shell builtin
-
-USERADD?= ${LOCALBASE}/sbin/useradd
-GROUPADD?= ${LOCALBASE}/sbin/groupadd
-_PKG_USER_HOME?= # empty by default
-_USER_DEPENDS= user>=20040426:../../sysutils/user_interix
-
-CPP_PRECOMP_FLAGS?= # unset
-CONFIG_RPATH_OVERRIDE?= config.rpath */config.rpath */*/config.rpath
-DEF_UMASK?= 002
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
-
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /bin/false
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-PKGDIRMODE?= 775
-# ROOT_USER might be numeric in the special case of Administrator; canonify it:
-ROOT_CMD?= ${SU} - "$$(id -un ${ROOT_USER})" -c
-ROOT_USER?= ${BINOWN}
-ROOT_GROUP?= 131616 # +Administrators or native language equivalent
-TOUCH_FLAGS?=
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
-
-# imake installs manpages in weird places
-IMAKE_MAN_SOURCE_PATH= man/man
-IMAKE_MAN_SUFFIX= n
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_KERNMAN_SUFFIX= 4
-IMAKE_FILEMAN_SUFFIX= 5
-IMAKE_MISCMAN_SUFFIX= 7
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}n
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_KERNMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
-IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_LIBTOOL_REQD= 1.5.18nb6
-_OPSYS_PERL_REQD= 5.8.3nb1 # base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF # shared lib type - not exactly true, but near enough
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= yes # gettext not in base system
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# Ensure that USE_X11BASE programs get an xpkgwedge new enough to work.
-_OPSYS_NEEDS_XPKGWEDGE= yes # xpkgwedge is required for X11
-_XPKGWEDGE_DEPENDS= xpkgwedge>=1.10:../../pkgtools/xpkgwedge
-BUILD_DEPENDS+= ${USE_X11BASE:D${_XPKGWEDGE_DEPENDS}}
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-DEFAULT_SERIAL_DEVICE?= /dev/tty00
-SERIAL_DEVICES?= /dev/tty00 /dev/tty01 /dev/tty02 /dev/tty03
-
-# poll(2) is broken; try to work around it by making autoconf believe
-# it's missing. (Packages without autoconf will need explicit fixing.)
-CONFIGURE_ENV+= ${GNU_CONFIGURE:Dac_cv_header_poll_h=no ac_cv_func_poll=no}
-
-# Interix has a hstrerror(3), but it's a macro, not a function.
-CONFIGURE_ENV+= ${GNU_CONFIGURE:Dac_cv_func_hstrerror=yes}
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-_OPSYS_MAX_CMDLEN_CMD= ${ECHO} 262144
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/Interix.pkg.dist b/mk/platform/Interix.pkg.dist
deleted file mode 100644
index 4e5e75f77b6..00000000000
--- a/mk/platform/Interix.pkg.dist
+++ /dev/null
@@ -1,1177 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: Interix.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uid=197108 gid=131616 mode=0775
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/Interix.x11.dist b/mk/platform/Interix.x11.dist
deleted file mode 100644
index b2f1a503308..00000000000
--- a/mk/platform/Interix.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: Interix.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uid=197108 gid=131616 mode=0775
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk
deleted file mode 100644
index 1f6f139e2e9..00000000000
--- a/mk/platform/Linux.mk
+++ /dev/null
@@ -1,91 +0,0 @@
-# $NetBSD: Linux.mk,v 1.18 2005/08/02 03:38:09 reed Exp $
-#
-# Variable definitions for the Linux operating system.
-
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= ${GMAKE} # program which gets invoked by imake
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from defaults/mk.conf. Verify/correct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /bin/su
-TYPE?= type # Shell builtin
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 022
-DEFAULT_SERIAL_DEVICE?= /dev/null
-EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
-GROUPADD?= /usr/sbin/groupadd
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /bin/false
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= ${SU} - root -c
-ROOT_GROUP?= root
-ROOT_USER?= root
-SERIAL_DEVICES?= /dev/null
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-USERADD?= /usr/sbin/useradd
-
-# imake installs manpages in weird places
-# these values from /usr/X11R6/lib/X11/config/linux.cf
-IMAKE_MAN_SOURCE_PATH= man/man
-IMAKE_MAN_SUFFIX= 1x
-IMAKE_LIBMAN_SUFFIX= 3x
-IMAKE_KERNMAN_SUFFIX= 4
-IMAKE_FILEMAN_SUFFIX= 5x
-IMAKE_MISCMAN_SUFFIX= 7
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_KERNMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
-IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
-
-IMAKE_TOOLS= gmake # extra tools required when we use imake
-_DO_SHLIB_CHECKS= no # on installation, fixup PLIST for shared libs
-.if exists(/usr/include/netinet6) || exists(/usr/include/linux/in6.h)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-LOCALBASE?= ${DESTDIR}/usr/pkg
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-# FIXME: Adjust to work on this system and enable the lines below.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/Linux.pkg.dist b/mk/platform/Linux.pkg.dist
deleted file mode 100644
index 2b64daa3c71..00000000000
--- a/mk/platform/Linux.pkg.dist
+++ /dev/null
@@ -1,1181 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: Linux.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/Linux.x11.dist b/mk/platform/Linux.x11.dist
deleted file mode 100644
index b7981f481d8..00000000000
--- a/mk/platform/Linux.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: Linux.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk
deleted file mode 100644
index 3b033519f86..00000000000
--- a/mk/platform/NetBSD.mk
+++ /dev/null
@@ -1,144 +0,0 @@
-# $NetBSD: NetBSD.mk,v 1.16 2005/08/02 00:23:31 reed Exp $
-#
-# Variable definitions for the NetBSD operating system.
-
-# Needed for 1.6.1 and earlier due to rpcgen bugs and paths
-.if defined(CPP) && ${CPP} == "cpp"
-CPP= /usr/bin/cpp
-.endif
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-.if exists(/usr/sbin/user)
-USERADD?= /usr/sbin/useradd
-GROUPADD?= /usr/sbin/groupadd
-.else
-USERADD?= ${LOCALBASE}/sbin/useradd
-GROUPADD?= ${LOCALBASE}/sbin/groupadd
-_USER_DEPENDS= user>=20000313:../../sysutils/user
-.endif
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 0022
-.if ${OBJECT_FMT} == "ELF"
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
-.else
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
-.endif
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /sbin/nologin
-.if exists(${LOCALBASE}/sbin/pkg_info)
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-.else
-PKG_TOOLS_BIN?= /usr/sbin
-.endif
-ROOT_CMD?= ${SU} - root -c
-ROOT_USER?= root
-ROOT_GROUP?= wheel
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-# imake installs manpages in weird places
-# these values from /usr/X11R6/lib/X11/config/NetBSD.cf
-IMAKE_MAN_SOURCE_PATH= man/cat
-IMAKE_MANNEWSUFFIX= 0
-IMAKE_MAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_LIBMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_KERNMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_FILEMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_MISCMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_KERNMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-# for programs which use dlopen()
-# not necessary since 1.6 (shared libs are linked against libgcc_pic)
-.if !empty(OS_VERSION:M1.5*)
-LINK_ALL_LIBGCC_HACK= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
-.endif
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-.if (${MACHINE_ARCH} == alpha)
-DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
-SERIAL_DEVICES?= /dev/ttyC0 \
- /dev/ttyC1
-.elif (${MACHINE_ARCH} == "i386")
-DEFAULT_SERIAL_DEVICE?= /dev/tty00
-SERIAL_DEVICES?= /dev/tty00 \
- /dev/tty01
-.elif (${MACHINE_ARCH} == m68k)
-DEFAULT_SERIAL_DEVICE?= /dev/tty00
-SERIAL_DEVICES?= /dev/tty00 \
- /dev/tty01
-.elif (${MACHINE_ARCH} == mipsel)
-DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
-SERIAL_DEVICES?= /dev/ttyC0 \
- /dev/ttyC1
-.elif (${MACHINE_ARCH} == "sparc")
-DEFAULT_SERIAL_DEVICE?= /dev/ttya
-SERIAL_DEVICES?= /dev/ttya \
- /dev/ttyb
-.else
-DEFAULT_SERIAL_DEVICE?= /dev/null
-SERIAL_DEVICES?= /dev/null
-.endif
-
-# Add -mieee to CFLAGS and FFLAGS for NetBSD->=1.5V-alpha
-.for __tmp__ in 1.5[V-Z] 1.5[A-Z][A-Z]* 1.[6-9]* [2-9].*
-. if ${MACHINE_PLATFORM:MNetBSD-${__tmp__}-alpha} != ""
-CFLAGS+= -mieee
-FFLAGS+= -mieee
-. endif # MACHINE_PLATFORM
-.endfor # __tmp__
-
-# check for kqueue(2) support, added in NetBSD-1.6J
-.if exists(/usr/include/sys/event.h)
-PKG_HAVE_KQUEUE= # defined
-.endif
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-GAMEOWN= games
-GAMEGRP= games
-GAMEMODE= 2555
-.endif
diff --git a/mk/platform/NetBSD.pkg.dist b/mk/platform/NetBSD.pkg.dist
deleted file mode 100644
index d506e06c22a..00000000000
--- a/mk/platform/NetBSD.pkg.dist
+++ /dev/null
@@ -1,1177 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: NetBSD.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/NetBSD.x11.dist b/mk/platform/NetBSD.x11.dist
deleted file mode 100644
index 56464c6ba42..00000000000
--- a/mk/platform/NetBSD.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: NetBSD.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/OSF1.mk b/mk/platform/OSF1.mk
deleted file mode 100644
index 1678e668b1f..00000000000
--- a/mk/platform/OSF1.mk
+++ /dev/null
@@ -1,80 +0,0 @@
-# $NetBSD: OSF1.mk,v 1.9 2005/06/04 23:33:50 markd Exp $
-#
-# Variable definitions for the OSF1 operating system.
-
-# current bmake is broken, see pkg/25559
-
-#.SHELL: name=ksh path=/bin/ksh hasErrCtl=true \
-# check="set -e" ignore="set +e" \
-# echo="set -v" quiet="set +v" filter="set +v" \
-# echoFlag=v errFlag=e
-
-CPP?= /usr/bin/cpp
-ECHO_N?= ${SETENV} CMD_ENV=bsd /usr/bin/echo -n
-FETCH_CMD?= ${LOCALBASE}/bin/ftp
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-PKGLOCALEDIR= share
-PS?= /bin/ps
-STRIP?= /usr/bin/strip
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-USERADD?= /usr/sbin/useradd
-GROUPADD?= /usr/sbin/groupadd
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 0022
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-non_hidden # add symbols to the dynamic symbol table
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type
-NOLOGIN?= /etc/nologin
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= ${SU} - root -c
-ROOT_USER?= root
-ROOT_GROUP?= system
-ULIMIT_CMD_datasize?= echo ULIMIT_CMD_datasize_FIXME
-ULIMIT_CMD_stacksize?= echo ULIMIT_CMD_stacksize_FIXME
-ULIMIT_CMD_memorysize?= echo ULIMIT_CMD_memorysize_FIXME
-# imake installs manpages in weird places
-# these values from /usr/X11R6/lib/X11/config/NetBSD.cf
-IMAKE_MAN_SOURCE_PATH= man/cat
-IMAKE_MAN_SUFFIX= 1
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_FILEMAN_SUFFIX= 4
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_MANNEWSUFFIX= 1
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST
-.if exists(/usr/include/netinet/ip6.h)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= yes # Java is standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_RPATH_NAME= -rpath, # name of symbol in rpath directive to linker
-_OPSYS_SHLIB_TYPE= COFF # type of shared lib
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= yes # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-all
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,-none
-
-DEFAULT_SERIAL_DEVICE?= /dev/tty00
-SERIAL_DEVICES?= /dev/tty00 \
- /dev/tty01
-
-_INCOMPAT_ICONV= OSF1-*-*
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip
diff --git a/mk/platform/OSF1.pkg.dist b/mk/platform/OSF1.pkg.dist
deleted file mode 100644
index 324b57c154e..00000000000
--- a/mk/platform/OSF1.pkg.dist
+++ /dev/null
@@ -1,1180 +0,0 @@
-# $NetBSD: OSF1.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=system mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/OpenBSD.mk b/mk/platform/OpenBSD.mk
deleted file mode 100644
index 8317f4e3e8b..00000000000
--- a/mk/platform/OpenBSD.mk
+++ /dev/null
@@ -1,112 +0,0 @@
-# $NetBSD: OpenBSD.mk,v 1.19 2005/08/02 03:38:09 reed Exp $
-#
-# Variable definitions for the OpenBSD operating system.
-
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from defaults/mk.conf. Verify/correct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-.if exists(/usr/sbin/user)
-USERADD?= /usr/sbin/useradd
-GROUPADD?= /usr/sbin/groupadd
-.endif
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 0022
-.if ${OBJECT_FMT} == "ELF"
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
-.else
-EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
-.endif
-MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
-NOLOGIN?= /sbin/nologin
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-ROOT_CMD?= ${SU} - root -c
-ROOT_USER?= root
-ROOT_GROUP?= wheel
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-# imake installs manpages in weird places
-# these values from /usr/X11R6/lib/X11/config/OpenBSD.cf
-IMAKE_MAN_SOURCE_PATH= man/cat
-IMAKE_MANNEWSUFFIX= 0
-IMAKE_MAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_LIBMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_FILEMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs/run ldconfig
-.if exists(/usr/include/netinet6)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-.if ${OS_VERSION} >= 3.4
-_PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
-.else
-_PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
-.endif
-_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
-_USE_GNU_GETTEXT= no # Don't use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-.if (${MACHINE_ARCH} == alpha)
-DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
-SERIAL_DEVICES?= /dev/ttyC0 \
- /dev/ttyC1
-.elif (${MACHINE_ARCH} == "i386")
-DEFAULT_SERIAL_DEVICE?= /dev/tty00
-SERIAL_DEVICES?= /dev/tty00 \
- /dev/tty01
-.elif (${MACHINE_ARCH} == m68k)
-DEFAULT_SERIAL_DEVICE?= /dev/tty00
-SERIAL_DEVICES?= /dev/tty00 \
- /dev/tty01
-.elif (${MACHINE_ARCH} == "sparc")
-DEFAULT_SERIAL_DEVICE?= /dev/ttya
-SERIAL_DEVICES?= /dev/ttya \
- /dev/ttyb
-.else
-DEFAULT_SERIAL_DEVICE?= /dev/null
-SERIAL_DEVICES?= /dev/null
-.endif
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/OpenBSD.pkg.dist b/mk/platform/OpenBSD.pkg.dist
deleted file mode 100644
index e8a3c34f85b..00000000000
--- a/mk/platform/OpenBSD.pkg.dist
+++ /dev/null
@@ -1,1180 +0,0 @@
-# $NetBSD: OpenBSD.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/OpenBSD.x11.dist b/mk/platform/OpenBSD.x11.dist
deleted file mode 100644
index 7938e9e83e1..00000000000
--- a/mk/platform/OpenBSD.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: OpenBSD.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# OpenBSD: BSD.x11.dist,v 1.4 2002/06/09 06:15:15 todd Exp
-# FreeBSD: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-
-/set type=dir uname=root gname=wheel mode=0755
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- ..
-..
diff --git a/mk/platform/SunOS.mk b/mk/platform/SunOS.mk
deleted file mode 100644
index bf50dc9855b..00000000000
--- a/mk/platform/SunOS.mk
+++ /dev/null
@@ -1,132 +0,0 @@
-# $NetBSD: SunOS.mk,v 1.19 2005/08/02 03:38:09 reed Exp $
-#
-# Variable definitions for the SunOS/Solaris operating system.
-
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= /usr/ccs/bin/make # program which gets invoked by imake
-PKGLOCALEDIR?= lib
-PS?= /bin/ps
-# XXX: default from defaults/mk.conf. Verify/correct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= /usr/bin/type
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 022
-DEFAULT_SERIAL_DEVICE?= /dev/null
-EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
-GROUPADD?= /usr/sbin/groupadd
-MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
-NOLOGIN?= ${FALSE}
-ROOT_CMD?= ${SU} - root -c
-ROOT_GROUP?= root
-ROOT_USER?= root
-SERIAL_DEVICES?= /dev/null
-ULIMIT_CMD_datasize?= ulimit -d `${SETENV} LC_MESSAGES=C ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `${SETENV} LC_MESSAGES=C ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -v `${SETENV} LC_MESSAGES=C ulimit -H -v`
-USERADD?= /usr/sbin/useradd
-
-# imake installs manpages in weird places
-.if !defined(X11_TYPE) || defined(X11_TYPE) && !empty(X11_TYPE:Mnative)
-# openwindows
-IMAKE_MAN_SOURCE_PATH= share/man/man
-IMAKE_MAN_SUFFIX= 1
-IMAKE_LIBMAN_SUFFIX= 3
-.else
-# xfree86, xorg
-IMAKE_MAN_SOURCE_PATH= man/man
-IMAKE_MAN_SUFFIX= 1x
-IMAKE_LIBMAN_SUFFIX= 3x
-.endif
-IMAKE_FILEMAN_SUFFIX= 4
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs
-.if exists(/usr/include/netinet/ip6.h)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= man # directory where catman pages are
-_USE_GNU_GETTEXT= yes # Use GNU gettext
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU
-# ld is not currently supported.
-_OPSYS_WHOLE_ARCHIVE_FLAG= -z allextract
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -z defaultextract
-
-# Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it
-# incompatible.
-_INCOMPAT_ICONV= SunOS-*-*
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-# Migration aid for old /usr/local LOCALBASE
-.if !defined(LOCALBASE) && exists(${DESTDIR}/usr/local/libexec/cgi-bin) && \
- !exists(${DESTDIR}/usr/pkg/libexec/cgi-bin)
-.BEGIN:
- @echo "On Solaris and /usr/local/libexec/cgi-bin found:"
- @echo "- If you have an existing pkgsrc installation & wish to continue"
- @echo " using /usr/local, append LOCALBASE=/usr/local to /etc/mk.conf."
- @echo "- Otherwise set LOCALBASE=/usr/pkg in your environment for the"
- @echo " first package install."
- @false
-.endif
-
-.if !exists(${SED}) || ${SED} == "/usr/xpg4/bin/sed"
-.BEGIN:
- @echo ""
- @echo "==========================================================================="
- @echo ""
- @echo "ERROR: pkgsrc now requires a more functional sed(1) than Solaris provides."
- @echo "you can satisfy this requirement by running:"
- @echo ""
- @echo " cd ${PKGSRCDIR}/textproc/nbsed; ${MAKE} install"
- @echo ""
- @echo "this will install ${LOCALBASE}/bin/nbsed and eliminate this message."
- @echo "(nbsed is already installed by recent bootstrap-pkgsrc)."
- @echo ""
- @echo "==========================================================================="
- @echo ""
- @false
-.endif
-
-LOCALBASE?= ${DESTDIR}/usr/pkg
-
-.if exists(${LOCALBASE}/sbin/pkg_info)
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-.else
-PKG_TOOLS_BIN?= ${LOCALBASE}/bin
-.endif
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-# FIXME: Adjust to work on this system and enable the lines below.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/SunOS.pkg.dist b/mk/platform/SunOS.pkg.dist
deleted file mode 100644
index 8b408e7c2c0..00000000000
--- a/mk/platform/SunOS.pkg.dist
+++ /dev/null
@@ -1,1185 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: SunOS.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- lib
- terminfo
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/platform/SunOS.x11.dist b/mk/platform/SunOS.x11.dist
deleted file mode 100644
index d98cabfaf8a..00000000000
--- a/mk/platform/SunOS.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: SunOS.x11.dist,v 1.1 2005/06/23 18:41:57 jlam Exp $
-# FreeBSD Id: BSD.x11.dist,v 1.2 1997/06/10 07:55:10 asami Exp
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- etc
- rc.d
- ..
- ..
- include
- X11
- ICE
- ..
- PEX5
- ..
- PM
- ..
- SM
- ..
- Xaw
- ..
- Xmu
- ..
- bitmaps
- ..
- extensions
- ..
- fonts
- ..
- pixmaps
- ..
- ..
- ..
- info
- ..
- lib
- X11
- XF86Setup
- pics
- ..
- scripts
- ..
- tcllib
- ..
- ..
- app-defaults
- ..
- config
- ..
- doc
- ..
- etc
- ..
- fonts
- 100dpi
- ..
- 75dpi
- ..
- PEX
- ..
- Speedo
- ..
- Type1
- ..
- cyrillic
- ..
- local
- ..
- misc
- ..
- ..
- fs
- ..
- lbxproxy
- ..
- locale
- C
- ..
- en_US.utf
- ..
- iso8859-1
- ..
- iso8859-2
- ..
- iso8859-3
- ..
- iso8859-4
- ..
- iso8859-5
- ..
- iso8859-6
- ..
- iso8859-7
- ..
- iso8859-8
- ..
- iso8859-9
- ..
- ja
- ..
- ja.JIS
- ..
- ja.SJIS
- ..
- ko
- ..
- koi8-r
- ..
- tbl_data
- ..
- th_TH.TACTIS
- ..
- zh
- ..
- zh_TW
- ..
- ..
- proxymngr
- ..
- rstart
- commands
- x11r6
- ..
- ..
- contexts
- ..
- ..
- twm
- ..
- x11perfcomp
- ..
- xdm
- ..
- xinit
- ..
- xkb
- compat
- ..
- compiled
- ..
- geometry
- digital
- ..
- sgi
- ..
- ..
- keycodes
- digital
- ..
- sgi
- ..
- ..
- keymap
- digital
- ..
- sgi
- ..
- sun
- ..
- ..
- rules
- ..
- semantics
- ..
- symbols
- digital
- ..
- fujitsu
- ..
- nec
- ..
- sony
- ..
- sun
- ..
- ..
- ..
- xserver
- ..
- xsm
- ..
- ..
- locale
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- modules
- ..
- ..
- libexec
- ..
- man
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- share
- doc
- html
- ..
- ..
- examples
- ..
- fonts
- ..
- ..
-..
diff --git a/mk/platform/UnixWare.mk b/mk/platform/UnixWare.mk
deleted file mode 100644
index 5134b62fc69..00000000000
--- a/mk/platform/UnixWare.mk
+++ /dev/null
@@ -1,96 +0,0 @@
-# $NetBSD: UnixWare.mk,v 1.17 2005/10/27 22:39:08 tv Exp $
-#
-# Variable definitions for the UnixWare 7 operating system.
-
-ECHO_N?= ${ECHO} -n
-IMAKE_MAKE?= /usr/ccs/bin/make # program which gets invoked by imake
-PKGLOCALEDIR?= lib
-PS?= /usr/bin/ps
-# XXX: default from defaults/mk.conf. Verify/correct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= /usr/bin/type
-
-CPP_PRECOMP_FLAGS?= # unset
-DEF_UMASK?= 022
-DEFAULT_SERIAL_DEVICE?= /dev/null
-EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
-GROUPADD?= /usr/sbin/groupadd
-MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
-NOLOGIN?= ${FALSE}
-ROOT_CMD?= ${SU} - root -c
-ROOT_GROUP?= root
-ROOT_USER?= root
-SERIAL_DEVICES?= /dev/null
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
-USERADD?= /usr/sbin/useradd
-
-# imake installs manpages in weird places
-IMAKE_MAN_SOURCE_PATH= share/man/man
-IMAKE_MAN_SUFFIX= 1
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_FILEMAN_SUFFIX= 4
-IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST for shared libs
-.if exists(/usr/include/netinet/in6.h)
-_OPSYS_HAS_INET6= yes # IPv6 is standard
-.else
-_OPSYS_HAS_INET6= no # IPv6 is not standard
-.endif
-_OPSYS_HAS_JAVA= no # Java is not standard
-_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
-_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
-_OPSYS_PERL_REQD= # no base version of perl required
-_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-_OPSYS_SHLIB_TYPE= ELF # shared lib type
-_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
-_PREFORMATTED_MAN_DIR= man # directory where catman pages are
-_USE_GNU_GETTEXT= yes # Use GNU gettext
-#
-# The native linker for UnixWare doesn't really support an option to pass
-# rpath directives, but pretend it does anyway since the wrapper scripts
-# will correctly convert it into the proper LD_RUN_PATH variable.
-#
-_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU
-# ld is not currently supported.
-# XXX is this needed for UnixWare?
-_OPSYS_WHOLE_ARCHIVE_FLAG=
-_OPSYS_NO_WHOLE_ARCHIVE_FLAG=
-
-# UnixWare has /usr/include/iconv.h, but it's not GNU iconv, so mark it
-# incompatible.
-_INCOMPAT_ICONV= UnixWare-*-*
-
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip
-
-LOCALBASE?= ${DESTDIR}/usr/pkg
-
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-# FIXME: Adjust to work on this system and enable the lines below.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
-# FIXME: Adjust to work on this system and enable the lines below.
-#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-#GAMEOWN= games
-#GAMEGRP= games
-#GAMEMODE= 2555
-#.endif
diff --git a/mk/platform/UnixWare.pkg.dist b/mk/platform/UnixWare.pkg.dist
deleted file mode 100644
index c116260230a..00000000000
--- a/mk/platform/UnixWare.pkg.dist
+++ /dev/null
@@ -1,1186 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# NetBSD: SunOS.pkg.dist,v 1.64 2004/04/01 12:19:09 jmmv Exp
-# $NetBSD: UnixWare.pkg.dist,v 1.6 2005/10/14 16:46:17 jmmv Exp $
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- locale
- aa
- LC_MESSAGES
- ..
- ..
- af
- LC_MESSAGES
- ..
- ..
- am
- LC_MESSAGES
- ..
- ..
- ang
- LC_MESSAGES
- ..
- ..
- ar
- LC_MESSAGES
- ..
- ..
- as
- LC_MESSAGES
- ..
- ..
- az
- LC_MESSAGES
- ..
- ..
- az_IR
- LC_MESSAGES
- ..
- ..
- be
- LC_MESSAGES
- ..
- ..
- bg
- LC_MESSAGES
- ..
- ..
- bn
- LC_MESSAGES
- ..
- ..
- br
- LC_MESSAGES
- ..
- ..
- bs
- LC_MESSAGES
- ..
- ..
- byn
- LC_MESSAGES
- ..
- ..
- ca
- LC_MESSAGES
- ..
- ..
- cs
- LC_MESSAGES
- ..
- ..
- cy
- LC_MESSAGES
- ..
- ..
- da
- LC_MESSAGES
- ..
- ..
- de
- LC_MESSAGES
- ..
- ..
- de_AT
- LC_MESSAGES
- ..
- ..
- de_DE
- LC_MESSAGES
- ..
- ..
- dk
- LC_MESSAGES
- ..
- ..
- dv
- LC_MESSAGES
- ..
- ..
- ee
- LC_MESSAGES
- ..
- ..
- el
- LC_MESSAGES
- ..
- ..
- el_GR
- LC_MESSAGES
- ..
- ..
- en
- LC_MESSAGES
- ..
- ..
- en@boldquot
- LC_MESSAGES
- ..
- ..
- en@quot
- LC_MESSAGES
- ..
- ..
- en_AU
- LC_MESSAGES
- ..
- ..
- en_CA
- LC_MESSAGES
- ..
- ..
- en_GB
- LC_MESSAGES
- ..
- ..
- en_US
- LC_MESSAGES
- ..
- ..
- en@IPA
- LC_MESSAGES
- ..
- ..
- eo
- LC_MESSAGES
- ..
- ..
- es
- LC_MESSAGES
- ..
- ..
- es_AR
- LC_MESSAGES
- ..
- ..
- es_ES
- LC_MESSAGES
- ..
- ..
- es_MX
- LC_MESSAGES
- ..
- ..
- et
- LC_MESSAGES
- ..
- ..
- et_EE
- LC_MESSAGES
- ..
- ..
- eu
- LC_MESSAGES
- ..
- ..
- fa
- LC_MESSAGES
- ..
- ..
- fi
- LC_MESSAGES
- ..
- ..
- fo
- LC_MESSAGES
- ..
- ..
- fr
- LC_MESSAGES
- ..
- ..
- fy
- LC_MESSAGES
- ..
- ..
- ga
- LC_MESSAGES
- ..
- ..
- gd
- LC_MESSAGES
- ..
- ..
- gez
- LC_MESSAGES
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- gv
- LC_MESSAGES
- ..
- ..
- haw
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- hy
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- iu
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kk
- LC_MESSAGES
- ..
- ..
- kl
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- LC_MESSAGES
- ..
- ..
- kok
- LC_MESSAGES
- ..
- ..
- ku
- LC_MESSAGES
- ..
- ..
- kw
- LC_MESSAGES
- ..
- ..
- ky
- LC_MESSAGES
- ..
- ..
- li
- LC_MESSAGES
- ..
- ..
- lt
- LC_MESSAGES
- ..
- ..
- lv
- LC_MESSAGES
- ..
- ..
- mi
- LC_MESSAGES
- ..
- ..
- mk
- LC_MESSAGES
- ..
- ..
- ml
- LC_MESSAGES
- ..
- ..
- mn
- LC_MESSAGES
- ..
- ..
- mr
- LC_MESSAGES
- ..
- ..
- ms
- LC_MESSAGES
- ..
- ..
- mt
- LC_MESSAGES
- ..
- ..
- my_MM
- LC_MESSAGES
- ..
- ..
- nb
- LC_MESSAGES
- ..
- ..
- nds
- LC_MESSAGES
- ..
- ..
- ne
- LC_MESSAGES
- ..
- ..
- nl
- LC_MESSAGES
- ..
- ..
- nl_NL
- LC_MESSAGES
- ..
- ..
- nn
- LC_MESSAGES
- ..
- ..
- no
- LC_MESSAGES
- ..
- ..
- no@nynorsk
- LC_MESSAGES
- ..
- ..
- no_NO
- LC_MESSAGES
- ..
- ..
- no_NY
- LC_MESSAGES
- ..
- ..
- nso
- LC_MESSAGES
- ..
- ..
- oc
- LC_MESSAGES
- ..
- ..
- om
- LC_MESSAGES
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- ps
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- sa
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sid
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- LC_MESSAGES
- ..
- ..
- so
- LC_MESSAGES
- ..
- ..
- sp
- LC_MESSAGES
- ..
- ..
- sq
- LC_MESSAGES
- ..
- ..
- sq_AL
- LC_MESSAGES
- ..
- ..
- sr
- LC_MESSAGES
- ..
- ..
- sr@Latn
- LC_MESSAGES
- ..
- ..
- sr@ije
- LC_MESSAGES
- ..
- ..
- sv
- LC_MESSAGES
- ..
- ..
- sw
- LC_MESSAGES
- ..
- ..
- syr
- LC_MESSAGES
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- te
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- ti
- LC_MESSAGES
- ..
- ..
- tig
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- tt
- LC_MESSAGES
- ..
- ..
- ug
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- ur
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ve
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- LC_MESSAGES
- ..
- ..
- wal
- LC_MESSAGES
- ..
- ..
- wo
- LC_MESSAGES
- ..
- ..
- xh
- LC_MESSAGES
- ..
- ..
- xx
- LC_MESSAGES
- ..
- ..
- yi
- LC_MESSAGES
- ..
- ..
- yo
- LC_MESSAGES
- ..
- ..
- zh
- LC_MESSAGES
- ..
- ..
- zh_CN
- LC_MESSAGES
- ..
- ..
- zh_CN.GB2312
- LC_MESSAGES
- ..
- ..
- zh_TW
- LC_MESSAGES
- ..
- ..
- zh_TW.Big5
- LC_MESSAGES
- ..
- ..
- zu
- LC_MESSAGES
- ..
- ..
- ..
- pkgconfig
- ..
- ..
- libdata
- tcl
- ..
- ..
- libexec
- cgi-bin
- ..
- ..
- man
- bg
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- cs
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- de
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- es
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fi
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- fr
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- ja_JP.EUC
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- pl
- cat1
- ..
- cat2
- ..
- cat3
- ..
- cat4
- ..
- cat5
- ..
- cat6
- ..
- cat7
- ..
- cat8
- ..
- cat9
- ..
- catl
- ..
- catn
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- man1
- ..
- man2
- ..
- man3
- ..
- man4
- ..
- man5
- ..
- man6
- ..
- man7
- ..
- man8
- ..
- man9
- ..
- manl
- ..
- mann
- ..
- ..
- sbin
- ..
- share
- aclocal
- ..
- dict
- ..
- doc
- html
- ..
- ..
- examples
- rc.d
- ..
- ..
- games
- ..
- lib
- terminfo
- ..
- ..
- misc
- ..
- mk
- ..
- nls
- C
- ..
- da_DK.ISO_8859-1
- ..
- de_AT.ISO_8859-1
- ..
- de_CH.ISO_8859-1
- ..
- de_DE.ISO_8859-1
- ..
- el_GR.ISO_8859-7
- ..
- en_AU.ISO_8859-1
- ..
- en_CA.ISO_8859-1
- ..
- en_GB.ISO_8859-1
- ..
- en_US.ISO_8859-1
- ..
- es_ES.ISO_8859-1
- ..
- et_EE.ISO_8859-15
- ..
- fi_FI.ISO_8859-1
- ..
- fr_BE.ISO_8859-1
- ..
- fr_CA.ISO_8859-1
- ..
- fr_CH.ISO_8859-1
- ..
- fr_FR.ISO_8859-1
- ..
- hr_HR.ISO_8859-2
- ..
- is_IS.ISO_8859-1
- ..
- it_CH.ISO_8859-1
- ..
- it_IT.ISO_8859-1
- ..
- ja_JP.EUC
- ..
- ko_KR.EUC
- ..
- lt_LN.ASCII
- ..
- lt_LN.ISO_8859-1
- ..
- lt_LN.ISO_8859-2
- ..
- nl_BE.ISO_8859-1
- ..
- nl_NL.ISO_8859-1
- ..
- no_NO.ISO_8859-1
- ..
- pl_PL.ISO_8859-2
- ..
- pt_PT.ISO_8859-1
- ..
- ru_RU.KOI8-R
- ..
- ru_SU.CP866
- ..
- ru_SU.KOI8-R
- ..
- sv_SE.ISO_8859-1
- ..
- uk_UA.KOI8-U
- ..
- ..
- skel
- ..
- ..
-..
diff --git a/mk/pthread.buildlink3.mk b/mk/pthread.buildlink3.mk
deleted file mode 100644
index 1eccb987cd9..00000000000
--- a/mk/pthread.buildlink3.mk
+++ /dev/null
@@ -1,156 +0,0 @@
-# $NetBSD: pthread.buildlink3.mk,v 1.21 2005/11/04 14:36:23 rillig Exp $
-#
-# The pthreads strategy for pkgsrc is to "bless" a particular pthread
-# package as the Official Pthread Replacement (OPR). The following
-# variables may be set before including this file:
-#
-# PTHREAD_OPTS?= # empty
-# A list of options to configure the search for a suitable pthreads
-# implementation.
-#
-# "native" means that only a native pthreads implementation is
-# acceptable.
-#
-# "optional" will override the effects of any instance of
-# "require". This should _only_ be used by those packages
-# that can be built with or without pthreads independently
-# of whether any of its dependencies need pthreads.
-# Currently, this is only www/mozilla, which uses its own
-# threading library if native pthreads are unavailable,
-# despite that it uses GTK+, which _does_ need pthreads.
-#
-# "require" means that the package is skipped silently when no
-# implementation can be found.
-#
-# By default, the native pthreads implementation is used if it's
-# available. Otherwise the OPR is used.
-#
-# PTHREAD_AUTO_VARS?= no
-# This variable specifies whether the values of the variables
-# PTHREAD_{CFLAGS,CPPFLAGS,LDFLAGS,LIBS} should be automatically
-# added to their respective variables.
-#
-# After inclusion of this file, the following variables may be examined:
-#
-# PTHREAD_TYPE
-# The type of pthreads implementation that has been found.
-#
-# "native" means that the native pthreads implementation is used.
-#
-# "none" means that no suitable pthreads implementation could be
-# found.
-#
-# Any other value is the name of the package that is used as the
-# pthread implementation.
-#
-# Note that it's only safe to check and use the value of PTHREAD_TYPE
-# after all other buildlink3.mk files have been included.
-#
-# The case where a package must use either the native pthread library or
-# some pthread package aside from the OPR (e.g. "ptl2") can be solved as
-# follows:
-#
-# PTHREAD_OPTS+= native
-# #
-# # more package Makefile stuff...
-# #
-# .include "../../mk/pthread.buildlink3.mk"
-#
-# .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
-# . include "../../devel/ptl2/buildlink3.mk"
-# .endif
-#
-# .include "../../mk/bsd.pkg.mk"
-
-PTHREAD_BUILDLINK3_MK:= ${PTHREAD_BUILDLINK3_MK}+
-
-# The fall-back package pthread implementation
-_PKG_PTHREAD?= pth
-_PKG_PTHREAD_DEPENDS?= pth>=2.0.0
-_PKG_PTHREAD_PKGSRCDIR?= ../../devel/${_PKG_PTHREAD}
-_PKG_PTHREAD_BUILDLINK3_MK?= ${_PKG_PTHREAD_PKGSRCDIR}/buildlink3.mk
-
-# _PKG_PTHREAD_COMPAT_PATTERNS matches the ONLY_FOR_PLATFORMS from the
-# Makefile for ${_PKG_PTHREAD}. It is used to see if ${_PKG_PTHREADS}
-# can actually be used to replace a native pthreads.
-_PKG_PTHREAD_COMPAT_PATTERNS= *-*-*
-
-.include "../../mk/bsd.prefs.mk"
-
-PTHREAD_OPTS?= # empty
-#
-# We check for a native pthreads implementation by checking for the presence
-# of /usr/include/pthread.h (we might want to make this check stricter).
-#
-.undef PTHREAD_TYPE
-.if exists(/usr/include/pthread.h) && \
- !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
-PTHREAD_TYPE= native
-.else
-. if !empty(PTHREAD_OPTS:Mnative)
-PTHREAD_TYPE= none
-. if !empty(PTHREAD_OPTS:Mrequire) && empty(PTHREAD_OPTS:Moptional)
-PKG_SKIP_REASON= "${PKGNAME} requires a native pthreads implementation."
-. endif
-. else
-PTHREAD_TYPE= none
-. for _pattern_ in ${_PKG_PTHREAD_COMPAT_PATTERNS}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-PTHREAD_TYPE= ${_PKG_PTHREAD}
-. endif
-. endfor
-. if ${PTHREAD_TYPE} == "none" && \
- !empty(PTHREAD_OPTS:Mrequire) && empty(PTHREAD_OPTS:Moptional)
-PKG_SKIP_REASON= "${PKGNAME} requires a working pthreads implementation."
-. endif
-. endif
-.endif
-
-PTHREAD_AUTO_VARS?= no
-
-.if ${PTHREAD_TYPE} == "native"
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npthread}
-BUILDLINK_PACKAGES+= pthread
-BUILDLINK_BUILTIN_MK.pthread= ../../mk/pthread.builtin.mk
-BUILDLINK_AUTO_VARS.pthread?= ${PTHREAD_AUTO_VARS}
-.elif ${PTHREAD_TYPE} == "${_PKG_PTHREAD}"
-. if exists(${_PKG_PTHREAD_BUILDLINK3_MK})
-. if !empty(_PKG_PTHREAD_DEPENDS)
-BUILDLINK_DEPENDS.${_PKG_PTHREAD}+= ${_PKG_PTHREAD_DEPENDS}
-. endif
-. include "${_PKG_PTHREAD_BUILDLINK3_MK}"
-BUILDLINK_PREFIX.pthread= ${BUILDLINK_PREFIX.${_PKG_PTHREAD}}
-BUILDLINK_CFLAGS.pthread= ${BUILDLINK_CFLAGS.${_PKG_PTHREAD}}
-BUILDLINK_CPPFLAGS.${_PKG_PTHREAD}?= -D_REENTRANT
-BUILDLINK_CPPFLAGS.pthread= ${BUILDLINK_CPPFLAGS.${_PKG_PTHREAD}}
-BUILDLINK_LDFLAGS.pthread= ${BUILDLINK_LDFLAGS.${_PKG_PTHREAD}}
-BUILDLINK_LIBS.${_PKG_PTHREAD}?= -lpthread
-BUILDLINK_LIBS.pthread= ${BUILDLINK_LIBS.${_PKG_PTHREAD}}
-BUILDLINK_AUTO_VARS.${_PKG_PTHREAD}?= ${PTHREAD_AUTO_VARS}
-BUILDLINK_AUTO_VARS.pthread= ${BUILDLINK_AUTO_VARS.${_PKG_PTHREAD}}
-. else
-PKG_SKIP_REASON= ${PKGNAME:Q}" needs pthreads, but "${_PKG_PTHREAD_BUILDLINK3_MK:Q}" is missing."
-. endif
-.endif
-
-.if !empty(PTHREAD_BUILDLINK3_MK:M+)
-#
-# Define user-visible PTHREAD_{CFLAGS,LDFLAGS,LIBS} as compiler options
-# used to compile/link pthreaded code.
-#
-PTHREAD_CFLAGS= ${BUILDLINK_CFLAGS.pthread}
-PTHREAD_CFLAGS+= ${BUILDLINK_CPPFLAGS.pthread}
-PTHREAD_LDFLAGS= ${BUILDLINK_LDFLAGS.pthread}
-PTHREAD_LIBS= ${BUILDLINK_LIBS.pthread}
-CONFIGURE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS:Q}
-CONFIGURE_ENV+= PTHREAD_LDFLAGS=${PTHREAD_LDFLAGS:Q}
-CONFIGURE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS:Q}
-MAKE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS:Q}
-MAKE_ENV+= PTHREAD_LDFLAGS=${PTHREAD_LDFLAGS:Q}
-MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS:Q}
-
-PTHREADBASE= ${BUILDLINK_PREFIX.pthread}
-CONFIGURE_ENV+= PTHREADBASE=${PTHREADBASE:Q}
-MAKE_ENV+= PTHREADBASE=${PTHREADBASE:Q}
-
-.endif # PTHREAD_BUILDLINK3_MK
diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk
deleted file mode 100644
index 8d047b2b1d2..00000000000
--- a/mk/pthread.builtin.mk
+++ /dev/null
@@ -1,86 +0,0 @@
-# $NetBSD: pthread.builtin.mk,v 1.9 2005/06/09 06:03:40 jlam Exp $
-
-BUILTIN_PKG:= pthread
-
-BUILTIN_FIND_LIBS:= pthread c_r rt
-BUILTIN_FIND_FILES_VAR= H_PTHREAD
-BUILTIN_FIND_FILES.H_PTHREAD= /usr/include/pthread.h
-
-.include "../../mk/buildlink3/bsd.builtin.mk"
-
-###
-### Determine if there is a built-in implementation of the package and
-### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
-###
-.if !defined(IS_BUILTIN.pthread)
-IS_BUILTIN.pthread= no
-. if empty(H_PTHREAD:M${LOCALBASE}/*) && exists(${H_PTHREAD})
-IS_BUILTIN.pthread= yes
-. endif
-.endif
-MAKEVARS+= IS_BUILTIN.pthread
-
-###
-### Determine whether we should use the built-in implementation if it
-### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
-###
-#
-# We ignore the value of PREFER_PKGSRC and PREFER_NATIVE. Whether we
-# prefer one or the other is dependent on the value of
-# PREFER_NATIVE_PTHREADS, which is yes/no.
-#
-.if !defined(USE_BUILTIN.pthread)
-USE_BUILTIN.pthread= ${IS_BUILTIN.pthread}
-. if !empty(PREFER_NATIVE_PTHREADS:M[nN][oO])
-USE_BUILTIN.pthread= no
-. endif
-.endif
-MAKEVARS+= USE_BUILTIN.pthread
-
-###
-### The section below only applies if we are not including this file
-### solely to determine whether a built-in implementation exists.
-###
-CHECK_BUILTIN.pthread?= no
-.if !empty(CHECK_BUILTIN.pthread:M[nN][oO])
-
-. if !empty(USE_BUILTIN.pthread:M[yY][eE][sS])
-BUILDLINK_PREFIX.pthread= /usr
-BUILDLINK_CFLAGS.pthread= # empty
-BUILDLINK_LDFLAGS.pthread= # empty
-
-# only pass -pthread on platforms known to support it.
-# XXX
-# XXX This should really be a check for GCC!
-# XXX
-BUILDLINK_OPSYS_SUPPORT_PTHREAD= DragonFly FreeBSD Linux NetBSD
-. if !empty(BUILDLINK_OPSYS_SUPPORT_PTHREAD:M${OPSYS})
-BUILDLINK_CFLAGS.pthread+= -pthread
-BUILDLINK_LDFLAGS.pthread+= -pthread
-. elif ${OPSYS} == "OSF1"
-BUILDLINK_CFLAGS.pthread+= -pthread
-. else
-BUILDLINK_CPPFLAGS.pthread+= -D_REENTRANT
-. endif
-. if ${OPSYS} == "FreeBSD"
-BUILDLINK_CPPFLAGS.pthread+= -D_THREAD_SAFE
-. endif
-
-# Handle systems which have pthreads functions in libc_r such as
-# FreeBSD 5.x, or fall back to libc if we don't find libc_r.
-#
-. if ${OPSYS} == "NetBSD"
-BUILDLINK_LIBS.pthread= # empty
-. elif !empty(BUILTIN_LIB_FOUND.pthread:M[yY][eE][sS])
-BUILDLINK_LIBS.pthread= -lpthread
-. if !empty(BUILTIN_LIB_FOUND.rt:M[yY][eE][sS])
-BUILDLINK_LIBS.pthread+= -lrt
-. endif
-. elif !empty(BUILTIN_LIB_FOUND.c_r:M[yY][eE][sS])
-BUILDLINK_LIBS.pthread= -lc_r
-. else
-BUILDLINK_LIBS.pthread= # empty
-. endif
-. endif
-
-.endif # CHECK_BUILTIN.pthread
diff --git a/mk/reduce-depends.mk b/mk/reduce-depends.mk
deleted file mode 100644
index 28cd8d929c1..00000000000
--- a/mk/reduce-depends.mk
+++ /dev/null
@@ -1,128 +0,0 @@
-# $NetBSD: reduce-depends.mk,v 1.3 2005/10/09 08:48:44 rillig Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-# This Makefile fragment takes the dependencies listed in ${DEPENDS} and
-# creates a smaller set of dependencies in ${REDUCED_DEPENDS} that imply
-# the same dependency relationships as ${DEPENDS}.
-
-# We skip the dependency calculation for some phases since they never
-# use the dependency information. In these cases, ${REDUCED_DEPENDS}
-# is simply empty.
-#
-_PHASES_SKIP_DEPENDS= fetch patch tools wrapper configure build test
-.if !empty(_PHASES_SKIP_DEPENDS:M${PKG_PHASE})
-_DEPENDS= # empty
-.else
-_DEPENDS= ${DEPENDS}
-.endif
-
-# _DEPENDS_PKGPATHS contains the full physical paths to the pkgsrc
-# directories for dependencies.
-# _DEPENDS_PKGPATH.<relpkgpath> maps <relpkgpath> to the full physical path.
-# _DEPENDS.<physpkgpath> is a list of the wildcard dependencies associated
-# with <physpkgpath>.
-#
-_DEPENDS_PKGPATHS= # empty
-.for _dep_ in ${_DEPENDS}
-. for _depdir_ in ${_dep_:C/^[^:]*://:C/:.*$//}
-. if !defined(_DEPENDS_PKGPATH.${_depdir_})
-. if exists(${_depdir_})
-_DEPENDS_PKGPATH.${_depdir_}!= cd ${_depdir_:Q} && ${PWD_CMD}
-. else
-PKG_FAIL_REASON+= "[reduce-depends.mk] "${PKGPATH:Q}" depends on "${_depdir_:Q}", but the latter does not exist."
-. endif
-. endif
-_DEPENDS_PKGPATH.${_DEPENDS_PKGPATH.${_depdir_}}?= ${_depdir_}
-_DEPENDS.${_DEPENDS_PKGPATH.${_depdir_}}+= ${_dep_:C/:.*$//}
-. if empty(_DEPENDS_PKGPATHS:M${_DEPENDS_PKGPATH.${_depdir_}})
-_DEPENDS_PKGPATHS+= ${_DEPENDS_PKGPATH.${_depdir_}}
-. endif
-. endfor
-.endfor
-
-# This next block of code sets REDUCED_DEPENDS to the strictest set of
-# dependencies it can derive from all of ${_DEPENDS.<path>}. It only
-# understands dependencies of the form foo>=1.0, and leaves the other
-# dependencies undisturbed.
-#
-# The algorithm takes dependencies of the form foo>=1.0 and converts
-# them to foo-1.0. It then compares this pkg name against each
-# dependency to see if it satisfies them all. The key fact is the
-# the strictest dependency, when converted to a pkg name, will satisfy
-# every dependency.
-#
-REDUCED_DEPENDS= # empty
-.for _path_ in ${_DEPENDS_PKGPATHS}
-_GE_DEPENDS.${_path_}= ${_DEPENDS.${_path_}:N*\{*:M*>=[0-9]*}
-_STRICTEST_DEPENDS.${_path_}?= none
-. for _depend_ in ${_GE_DEPENDS.${_path_}}
-. for _dep2pkg_ in ${_depend_:S/>=/-/}
-. if ${_STRICTEST_DEPENDS.${_path_}} == "none"
-_SATISFIES_DEPENDS.${_path_}= YES
-. for _dep_ in ${_GE_DEPENDS.${_path_}}
-. if !empty(_SATISFIES_DEPENDS.${_path_}:M[yY][eE][sS])
-_SATISFIES_DEPENDS.${_path_}!= \
- if ${PKG_ADMIN} pmatch '${_dep_}' ${_dep2pkg_}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-. endfor
-. if !empty(_SATISFIES_DEPENDS.${_path_}:M[yY][eE][sS])
-_STRICTEST_DEPENDS.${_path_}= ${_depend_}
-. endif
-. endif
-. endfor
-. endfor
-. if ${_STRICTEST_DEPENDS.${_path_}} == "none"
-#
-# The dependencies simply conflict, so just pass them on through to the
-# normal dependency handling code.
-#
-. for _depend_ in ${_DEPENDS.${_path_}}
-REDUCED_DEPENDS+= ${_depend_}:${_DEPENDS_PKGPATH.${_path_}}
-. endfor
-. else
-. for _depend_ in ${_DEPENDS.${_path_}}
-. if empty(_GE_DEPENDS.${_path_}:M${_depend_})
-REDUCED_DEPENDS+= ${_depend_}:${_DEPENDS_PKGPATH.${_path_}}
-. endif
-. endfor
-REDUCED_DEPENDS+= ${_STRICTEST_DEPENDS.${_path_}}:${_DEPENDS_PKGPATH.${_path_}}
-. endif
-.endfor
diff --git a/mk/scripts/binpkg-cache b/mk/scripts/binpkg-cache
deleted file mode 100755
index 81d0d0f3398..00000000000
--- a/mk/scripts/binpkg-cache
+++ /dev/null
@@ -1,362 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: binpkg-cache,v 1.6 2005/05/24 21:48:22 dmcmahill Exp $
-#
-# Script for generating a cache file with information about
-# all binary packages contained in a directory.
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Dan McMahill.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-
-TMPDIR=${TMPDIR:-/tmp}
-PACKAGES=${PACKAGES:-/usr/pkgsrc/packages/}
-AWK=${AWK:-awk}
-CMP=${CMP:-cmp}
-FIND=${FIND:-find}
-GREP=${GREP:-grep}
-PKG_INFO=${PKG_INFO:-pkg_info}
-PKG_SUFX=${PKG_SUFX:-.tgz}
-SED=${SED:-sed}
-SORT=${SORT:-sort}
-STAT=${STAT:-stat}
-
-cachefile=.pkgcache
-cacheversion=20050428
-
-prompt="----> "
-tab=" "
-
-tmpd=${TMPDIR}/pkg-cache.$$
-mkdir -m 0700 ${tmpd}
-if test $? -ne 0 ; then
- echo "ERROR: Could not create temporary directory ${tmpd}"
- echo "Either you do not have write permission to ${tmpd} or"
- echo "${tmpd} already exists"
- exit 1
-fi
-
-prog=$0
-
-usage(){
- echo "$prog - Generates cache files for each directory containing binary"
- echo " packages. This cache file can then be used by the README.html"
- echo " generation code to avoid having to call pkg_info(1) over and over"
- echo " on the same binary package."
- echo " "
- echo "Usage: $prog [-d|--debug] [-v|--verbose] [-p|--packages <dir>]"
- echo " "
- echo " $prog -h|--help"
- echo " "
- echo " $prog -V|--version"
- echo " "
- echo "The options supported by $prog are: "
- echo " "
- echo " -d|--debug Enables debugging output"
- echo " "
- echo " -f|--database <file> Writes the database into file specified by <file>"
- echo " "
- echo " -h|--help Displays this help message"
- echo " "
- echo " -p|--packages <dir> Specifies the top level directory to be searched"
- echo " for binary packages."
- echo " "
- echo " -v|--version Displays the version of this script and exits."
- echo " "
- echo "Example: $prog -v --packages /usr/pkgsrc/packages"
- echo " "
-}
-
-clean_and_exit0(){
- rm -fr ${tmpd}
- exit 0
-}
-
-clean_and_exit1(){
- rm -fr ${tmpd}
- exit 1
-}
-
-all_cache_files=""
-
-#############################################################################
-#
-# process_binpkg_dir()
-#
-# Process a directory by checking to see if a cache file exists. If the
-# cache file exists, make sure it is up to date. If the file does not
-# exist, create one.
-#
-# also keep track of this directory so it can be added to the master
-# cache.
-#
-
-process_binpkg_dir(){
- need_update=no
- if test -f ${d}/${cachefile} ; then
- stale_entries=`${FIND} ${d} -type f -name \*${PKG_SUFX} -newer ${d}/${cachefile} -print`
-
- # FIX_ME
- #
- # We also should find cache entries for files which no longer exist
- # and nuke them. Right now we simply declare the entire cache out
- # of date. Once we implement incremental updates to the cache,
- # we need to remove the entries but not mark the entire cache as
- # bad.
- if test "X${DEBUG}" = "Xyes" ; then
- echo " Checking for cache entries with no corresponding pkg."
- fi
- # get the list of what pkgs belong in the cache
- rm -f ${tmpd}/pkg_list ${tmpd}/cache_pkg_list
- ${FIND} ${d}/ -name \*${PKG_SUFX} -print | \
- ${SED} -e "s;^${PACKAGES}/*;;g" -e 's;//;/;g' | \
- ${SORT} > ${tmpd}/pkg_list
-
- # and get the list of what is in the cache
- ${AWK} '/pkgcache_begin/ {gsub(/pkgcache_begin[ \t]*/, ""); print}' \
- ${d}/${cachefile} | ${SORT} > ${tmpd}/cache_pkg_list
-
- if ${CMP} -s ${tmpd}/pkg_list ${tmpd}/cache_pkg_list ; then
- if test "X${DEBUG}" = "Xyes" ; then
- echo " No extra cache entries in ${d}/${cachefile}"
- fi
- else
- echo " Entries found in ${d}/${cachefile} but no packages found"
- need_update=yes
- fi
- else
- stale_entries=""
- fi
-
- if test "X${force}" = "Xyes" -o "X${need_update}" = "Xyes" ; then
- need_update=yes
- echo "${tab}Forcing rebuild of cache ${d}/${cachefile}."
- elif test ! -f ${d}/${cachefile} ; then
- need_update=yes
- echo "${tab}Missing cache file. ${d}/${cachefile} will be generated."
- elif test -n "${stale_entries}" ; then
- need_update=yes
- echo "${tab}Stale cache file. ${d}/${cachefile} will be regenerated."
- else
- ${GREP} "pkgcache_version ${cacheversion}" ${d}/${cachefile} >/dev/null 2>&1
- if test $? -ne 0 ; then
- need_update=yes
- echo "${tab}Invalid version cache file. ${d}/${cachefile} will be regenerated."
- echo "Need version ${cacheversion} but the file has"
- ${GREP} "^pkgcache_version " ${d}/${cachefile}
- else
- echo "${tab}Cache file ${d}/${cachefile} is up to date."
- fi
- fi
-
- # FIX_ME
- # We should use stale_entries in a way where we only update the
- # cache file entries corresponding to these if we're rebuilding
- # due to stale entries. That should save a good bit of time.
- #
- if test "X${need_update}" = "Xyes" ; then
- echo "pkgcache_version ${cacheversion}" > ${tmpd}/${cachefile}
- for f in ${d}/*${PKG_SUFX} ; do
- fn=`echo $f | ${SED} "s;^${PACKAGES}/*;;g"`
- if test "X${DEBUG}" = "Xyes" ; then
- echo " Adding ${fn} (${f}) to the cache"
- fi
- echo " " >> ${tmpd}/${cachefile}
- # stat(1) needs to be added to the bootstrap kit
- # first if we want to use it here
- #eval $(${STAT} -s ${f} 2>/dev/null)
- echo "pkgcache_begin ${fn}" >> ${tmpd}/${cachefile}
- #echo "pkgcache_mtime=${st_mtime}" >> ${tmpd}/${cachefile}
- if test "X${DEBUG}" = "Xyes" ; then
- echo "${PKG_INFO} -q -B ${f}"
- fi
- ${PKG_INFO} -q -B ${f} >> ${tmpd}/${cachefile}
- echo "pkgcache_end ${fn}" >> ${tmpd}/${cachefile}
- done
- mv -f ${tmpd}/${cachefile} ${d}/${cachefile}
- if test $? -ne 0 ; then
- echo "********** WARNING **********"
- echo "move of ${tmpd}/${cachefile} to ${d}/${cachefile} failed!"
- echo "Perhaps you do not have write permissions to ${d}?"
- echo "This directory will be dropped from the master cache file."
- echo "********** WARNING **********"
- return
- fi
- fi
-
- # if we got here, then this directory should have a good cache file in
- # it and we should be able to add it to the master cache file
- all_cache_files="${all_cache_files} ${d}/${cachefile}"
-
-}
-
-process_cache_files(){
- echo "${prompt}Checking master cache file ${PACKAGES}/${cachefile}"
- echo "pkgcache_version ${cacheversion}" > ${tmpd}/${cachefile}
- if test -n "${all_cache_files}" ; then
- for c in ${all_cache_files} ; do
- echo "pkgcache_cachefile ${c}" >> ${tmpd}/${cachefile}
- done
- fi
- if test ! -f ${PACKAGES}/${cachefile} ; then
- echo "${tab}Creating master cache file ${PACKAGES}/${cachefile}"
- mv -f ${tmpd}/${cachefile} ${PACKAGES}/${cachefile}
- if test $? -ne 0 ; then
- echo "********** ERROR **********"
- echo "move of ${tmpd}/${cachefile} to ${PACKAGES}/${cachefile} failed!"
- echo "Perhaps you do not have write permissions to ${PACKAGES}?"
- echo "********** ERROR **********"
- clean_and_exit1
- fi
- elif ${CMP} -s ${tmpd}/${cachefile} ${PACKAGES}/${cachefile} ; then
- echo "${tab}Master cache file ${PACKAGES}/${cachefile} is up to date"
- else
- echo "${tab}Updating master cache file ${PACKAGES}/${cachefile}"
- mv -f ${tmpd}/${cachefile} ${PACKAGES}/${cachefile}
- if test $? -ne 0 ; then
- echo "********** ERROR **********"
- echo "move of ${tmpd}/${cachefile} to ${PACKAGES}/${cachefile} failed!"
- echo "Perhaps you do not have write permissions to ${PACKAGES}?"
- echo "********** ERROR **********"
- clean_and_exit1
- fi
- fi
-}
-
-######################################################################
-#
-# Handle command line options
-#
-######################################################################
-
-DEBUG=no
-verbose=no
-force=no
-
-while
- test -n "$1"
-do
- case "$1" in
-
- # Turn on debugging
- -d|--debug)
- DEBUG=yes
- verbose=yes
- shift
- ;;
-
- # Force a rebuilde of the cache
- -F|--force)
- force=yes
- shift
- ;;
- # Help
- -h|--help)
- usage
- exit 0
- ;;
-
- # Use the specified packages directory
- -p|--packages)
- PACKAGES=$2
- shift 2
- ;;
-
- # Version
- -V|--version)
- ${AWK} '/^#[ \t]*\$NetBSD/ {gsub(/,v/,"",$3);printf("%s: Version %s, %s\n",$3,$4,$5); exit 0;}' $prog
- exit 0
- ;;
-
- # Turn on verbose output, but not as noisy as DEBUG
- -v|--verbose)
- verbose=yes
- shift
- ;;
-
- -*) echo "$prog: ERROR: $1 is not a valid option"
- usage
- clean_and_exit1
- ;;
-
- *)
- break
- ;;
-
- esac
-done
-
-if test $# -ne 0 ; then
- echo "$0: $* is invalid"
- usage
- clean_and_exit1
-fi
-
-if test ! -d ${PACKAGES} ; then
- echo "Packages directory ${PACKAGES} seems to be missing"
- clean_and_exit1
-fi
-
-# put a trailing / after ${PACKAGES} in case ${PACKAGES} is
-# a link.
-for d in `${FIND} ${PACKAGES}/ -type d -print` ; do
- if test "X${DEBUG}" = "Xyes" ; then
- echo "${prompt}Processing directory ${d}"
- fi
- is_pkg_dir=no
- for f in ${d}/*${PKG_SUFX} ; do
- if test -f "${f}" -a ! -h "${f}" ; then
- ${PKG_INFO} ${f} >/dev/null 2>&1
- if test $? -eq 0 ; then
- is_pkg_dir=yes
- break
- fi
- fi
- done
- if test "X${is_pkg_dir}" = "Xyes" ; then
- echo "${prompt}Checking cache in ${d}"
- process_binpkg_dir
- else
- if test "X${DEBUG}" = "Xyes" ; then
- echo "${prompt}no binary packages in ${d}"
- fi
- fi
-
-done
-
-process_cache_files
-
-clean_and_exit0
-
diff --git a/mk/scripts/chkdatabase.awk b/mk/scripts/chkdatabase.awk
deleted file mode 100755
index c751f9201bc..00000000000
--- a/mk/scripts/chkdatabase.awk
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/usr/bin/awk -f
-#
-# $NetBSD: chkdatabase.awk,v 1.2 2003/05/06 17:42:04 jmmv Exp $
-#
-# Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Dan McMahill.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-# This script reads a pkgsrc database created with the 'print-summary-data'
-# target and returns a lists of packages which are listed as DEPENDS and/or
-# BUILD_DEPENDS but do not have their own dependencies recorded yet.
-# This can be used as part of a loop which makes several passes to record
-# the complete dependency tree for a package in the database
-#
-
-BEGIN {
- if(debug) {
- printf("Reading database file\n") > "/dev/stderr";
- fflush("/dev/stderr");
- }
-}
-
-/^(build_)?depends / {
-#
-# Read in the entire depends tree
-# These lines look like:
-#
-#depends /usr/pkgsrc/math/scilab xless-[0-9]*:../../x11/xless pvm-3.4.3:../../parallel/pvm3
-#build_depends /usr/pkgsrc/math/scilab libtool-base>=1.4.20010614nb9:../../devel/libtool-base
-#
- pkg = $2;
-
-# mark this package as having its depencencies listed
- depended_pkgs[pkg] = 1;
-
-# now go through the dependency lists and pull out all pkg directories that
-# we will need to examine to ensure they have been depended.
- for(i=3; i<=NF; i++) {
- split($i,a,":");
- pkgpat=a[1];
- pkgdir=a[2];
- sub(/[\.\/]*/,"",pkgdir);
- if(pkgdir !~ /\//) {
- pkgcat=pkg;
- gsub(/\/.*/,"",pkgcat);
- pkgdir=pkgcat "/" pkgdir;
- if(debug) printf("Corrected missing category directory to get \"%s\"\n",pkgdir) > "/dev/stderr";
- }
- if(debug){
- printf("package in directory %s %s on:\n",pkg,deptype) > "/dev/stderr";
- printf("\tpkgpat = %s\n",pkgpat) > "/dev/stderr";
- printf("\tpkgdir = %s\n",pkgdir) > "/dev/stderr";
- }
-
-# mark this package directory as being one which is depended upon
- depended_on_pkgs[pkgdir] = 1;
-
- }
- next;
-}
-
-
-END {
- i=0;
- for(pkg in depended_on_pkgs) {
- if(pkg in depended_pkgs) {
- if(debug) printf("Package: %s is already depended\n",pkg) > "/dev/stderr";
- }
- else {
- if(debug)printf("Package: %s is NOT depended\n",pkg) > "/dev/stderr";
- not_depended[i]=pkg;
- i++;
- }
- }
-
- i=0;
- while(i in not_depended) {
- printf("%s\n",not_depended[i]);
- i++;
- }
- close("/dev/stderr");
-
- exit(0);
-}
diff --git a/mk/scripts/genindex.awk b/mk/scripts/genindex.awk
deleted file mode 100755
index 0e109955939..00000000000
--- a/mk/scripts/genindex.awk
+++ /dev/null
@@ -1,389 +0,0 @@
-#!/usr/bin/awk -f
-# $NetBSD: genindex.awk,v 1.4 2003/09/02 07:00:08 jlam Exp $
-#
-# Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Dan McMahill.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-
-# Global variables
-#-----------------
-# The following associative arrays are used for storing the dependency
-# information and other information for the packages
-#
-# topdepends[] : index=pkgdir (math/scilab)
-# List of explicitly listed depencencies by name.
-# I.e. "xless-[0-9]* pvm-3.4.3"
-#
-# alldepends[] : index=pkgdir (math/scilab)
-# Flattened dependency list by name.
-#
-#
-
-
-BEGIN {
- debug = 0;
- printf("Reading database file\n");
-}
-
-#conflicts /usr/pkgsrc/math/scilab
-#depends /usr/pkgsrc/math/scilab xless-[0-9]*:../../x11/xless pvm-3.4.3:../../parallel/pvm3
-#
-
-/^(build_)?depends / {
-#
-# Read in the entire depends tree
-# These lines look like:
-#
-#depends /usr/pkgsrc/math/scilab xless-[0-9]*:../../x11/xless pvm-3.4.3:../../parallel/pvm3
-#build_depends /usr/pkgsrc/math/scilab libtool-base>=1.4.20010614nb9:../../devel/libtool-base
-#
- deptype=$1;
-# pkg=fulldir2pkgdir($2);
- pkg = $2;
- if (pkg in topdepends) {}
- else {topdepends[pkg] = "";}
- if (pkg in topbuilddepends) {}
- else {topbuilddepends[pkg] = "";}
-
- for (i = 3; i <= NF; i++) {
- split($i, a,":");
- pkgpat = a[1];
- pkgdir = a[2];
- sub(/[\.\/]*/, "", pkgdir);
- if (pkgdir !~ /\//) {
- pkgcat = pkg;
- gsub(/\/.*/, "", pkgcat);
- pkgdir=pkgcat "/" pkgdir;
- if (debug)
- printf("Corrected missing category directory to get \"%s\"\n",
- pkgdir);
- }
- if (debug){
- printf("package in directory %s %s on:\n",
- pkg, deptype);
- printf("\tpkgpat = %s\n", pkgpat);
- printf("\tpkgdir = %s\n", pkgdir);
- }
-
-
-#
-# store the package directory in a associative array with the wildcard
-# pattern as the index since we will need to be able to look this up later
-#
- pat2dir[pkgpat] = pkgdir;
-
- if (deptype == "depends") {
- topdepends[pkg] = topdepends[pkg] " " pkgpat " " ;
- if (debug) {
- printf("Appending %s to topdepends[%s] (%s)\n",
- pkgpat, pkg, topdepends[pkg]);
- }
- }
- else {
- if (debug) {
- printf("Appending %s to topbuilddepends[%s] (%s)\n",
- pkgpat, pkg, topbuilddepends[pkg]);
- }
- topbuilddepends[pkg] = topbuilddepends[pkg] " " pkgpat " " ;
- }
- }
-
- next;
-}
-
-/^categories /{
- # note: we pick out the categories slightly differently than the comment
- # and homepage because the category name will be included in the directory
- # name and hence the index() call points to the wrong location
- categories[$2] = $3;
- for(i = 4; i <= NF; i = i + 1) {
- categories[$2] = categories[$2] " " $i;
- }
- next;
-}
-
-/^comment /{
- comment[$2] = substr($0, index($0, $3));
- next;
-}
-
-/^descr /{
- descr[$2] = substr($0, index($0, $3));
- next;
-}
-
-/^homepage /{
- if( NF>=3 ) {
- homepage[$2] = substr($0, index($0, $3));
- } else {
- homepage[$2] = "";
- }
- next;
-}
-
-/^index / {
-#
-# read lines like:
-#index /usr/pkgsrc/math/scilab scilab-2.6nb3
-# and store the directory name in a associative array where the index
-# is the package name and in a associative array that lets us lookup
-# name from directory. We use fuldir2pkgdir to get "math/scilab"
-# and drop the /usr/pkgsrc part.
-#
-# pkgname2dir[$3] = fulldir2pkgdir($2);
-# pkgdir2name[fulldir2pkgdir($2)] = $3;
- pkgname2dir[$3] = $2;
- pkgdir2name[$2] = $3;
- next;
-}
-
-/^license /{
- license[$2] = substr($0, index($0, $3));
- next;
-}
-
-/^maintainer /{
- maintainer[$2] = substr($0, index($0, $3));
- next;
-}
-
-/^notfor /{
- notfor[$2] = substr($0, index($0, $3));
- next;
-}
-
-/^onlyfor /{
- onlyfor[$2] = substr($0, index($0, $3));
- next;
-}
-
-/^prefix /{
- prefix[$2] = substr($0, index($0, $3));
- next;
-}
-
-/^wildcard /{
- wildcard[$2] = substr($0, index($0, $3));
- next;
-}
-
-#
-# Now recurse the tree to give a flattened depends list for each pkg
-#
-
-END {
- if( SORT == "" ) { SORT = "sort"; }
- indexf = SORT " > INDEX";
- if ( dependsfile == "" ) dependsfile = "/dev/null";
- if ( builddependsfile == "" ) builddependsfile = "/dev/null";
-
- printf("Flattening dependencies\n");
- printf("") > dependsfile;
- for (toppkg in topdepends){
- if (debug) printf("calling find_all_depends(%s, run)\n", toppkg);
- find_all_depends(toppkg, "run");
- if (debug) printf("%s depends on: %s, topdepends on %s\n",
- toppkg, alldepends[toppkg],
- topdepends[toppkg]);
- printf("%s depends on: %s\n",
- toppkg, alldepends[toppkg]) >> dependsfile;
- flatdepends[toppkg] = alldepends[toppkg];
- }
- close(dependsfile);
-
-
-# clear out the flattened depends list and repeat for the build depends
- for( pkg in alldepends) {
- delete alldepends[pkg];
- }
-
- printf("Flattening build dependencies\n");
- printf("") > builddependsfile;
- for (toppkg in topbuilddepends){
- find_all_depends(toppkg, "build");
- printf("%s build_depends on: %s\n",
- toppkg, alldepends[toppkg]) >> builddependsfile;
- }
- close(builddependsfile);
-
- printf("Generating INDEX file\n");
-
-# Output format:
-# package-name|package-path|installation-prefix|comment| \
-# description-file|maintainer|categories|build deps|run deps|for arch| \
-# not for opsys|homepage
-
- pkgcnt = 0;
- for (toppkg in topdepends){
- pkgcnt++;
- printf("%s|", pkgdir2name[toppkg]) | indexf;
- printf("%s|", toppkg) | indexf;
- printf("%s|", prefix[toppkg]) | indexf;
- printf("%s|", comment[toppkg]) | indexf;
- printf("%s|", descr[toppkg]) | indexf;
- printf("%s|", maintainer[toppkg]) | indexf;
- printf("%s|", categories[toppkg]) | indexf;
- gsub(/^ /, "", alldepends[toppkg]);
- gsub(/ $/, "", alldepends[toppkg]);
- printf("%s|", alldepends[toppkg]) | indexf;
- gsub(/^ /, "", flatdepends[toppkg]);
- gsub(/ $/, "", flatdepends[toppkg]);
- printf("%s|", flatdepends[toppkg]) | indexf;
- printf("%s|", onlyfor[toppkg]) | indexf;
- printf("%s|", notfor[toppkg]) | indexf;
- printf("%s", homepage[toppkg]) | indexf;
- printf("\n") | indexf;
- }
- close(indexf);
- printf("Indexed %d packages\n", pkgcnt);
- exit 0;
-}
-
-function find_all_depends(pkg, type, pkgreg, i, deps, depdir, topdep){
-# pkg is the package directory, like math/scilab
-
-# printf("find_all_depends(%s, %s)\n", pkg, type);
-# if we find the package already has been fully depended
-# then return the depends list
- if (pkg in alldepends){
- if (debug) printf("\t%s is allready depended. Returning %s\n",
- pkg, alldepends[pkg]);
- return(alldepends[pkg]);
- }
-
-# if this package has no top dependencies, enter an empty flat dependency
-# list for it.
- if( type == "run" ) {
-# we only want DEPENDS
- topdep = topdepends[pkg];
- } else {
-# we want BUILD_DEPENDS and DEPENDS
- topdep = topdepends[pkg] " " topbuilddepends[pkg];
- }
- if (topdep ~ "^[ \t]*$") {
- alldepends[pkg] = " ";
- if (debug) printf("\t%s has no depends(%s). Returning %s\n",
- pkg, topdep, alldepends[pkg]);
- return(alldepends[pkg]);
- }
-
-# recursively gather depends that each of the depends has
- pkgreg = reg2str(pkg);
- split(topdep, deps);
- i = 1;
- alldepends[pkg] = " ";
- while ( i in deps ) {
-
-# figure out the directory name associated with the package hame
-# in (wild card/dewey) version form
- depdir = pat2dir[deps[i]];
- if (debug) printf("\tadding dependency #%d on \"%s\" (%s)\n",
- i, deps[i], depdir);
-
-# do not add ourselves to the list (should not happen, but
-# we would like to not get stuck in a loop if one exists)
-# if (" "deps[i]" " !~ pkgreg){
-
-# if we do not already have this dependency (deps[i]) listed, then add
-# it. However, we may have already added it because another package
-# we depend on may also have depended on
-# deps[i].
- if (alldepends[pkg] !~ reg2str(deps[i])){
- alldepends[pkg] = alldepends[pkg] " " deps[i] " " find_all_depends(depdir, type);
- }
- else {
- if (debug) printf("\t%s is already listed in %s\n",
- deps[i], alldepends[pkg]);
- }
-
- i = i + 1;
- } # while i
-
- if (debug) printf("\tcalling uniq() on alldepends[%s] = %s\n",
- pkg, alldepends[pkg]);
- alldepends[pkg] = uniq(alldepends[pkg]);
- if (debug) printf("\tuniq() output alldepends[%s] = %s\n",
- pkg, alldepends[pkg]);
- return(alldepends[pkg]);
-}
-
-#
-# take a string which has special characters like '+' in it and
-# escape them. Also put a space before and after since that's how
-# we'll distinguish things like gnome from gnome-libs
-#
-function reg2str(reg){
- gsub(/\./, "\\\.", reg);
- gsub(/\+/, "\\\+", reg);
- gsub(/\*/, "\\\*", reg);
- gsub(/\?/, "\\\?", reg);
- gsub(/\[/, "\\\[", reg);
- gsub(/\]/, "\\\]", reg);
- reg = " "reg" ";
- return(reg);
-}
-
-#
-# accepts a full path to a package directory, like "/usr/pkgsrc/math/scilab"
-# and returns just the last 2 directories, like "math/scilab"
-#
-function fulldir2pkgdir(d, i){
- i = match(d, /\/[^\/]+\/[^\/]+$/);
- return substr(d, i + 1);
-}
-
-#
-# take the depends lists and uniq them.
-#
-function uniq(list, deps, i, ulist){
-
-# split out the depends
- split(list, deps);
-
- i = 1;
- ulist = " ";
- while (i in deps){
-# printf("uniq(): Checking \"%s\"\n", ulist);
-# printf(" for \"%s\"\n", reg2str(deps[i]));
- if (ulist !~reg2str(deps[i])){
- ulist = ulist deps[i]" ";
- }
- i++;
- }
- return(ulist);
-}
-
-
-
diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk
deleted file mode 100755
index 567833f1fc5..00000000000
--- a/mk/scripts/genreadme.awk
+++ /dev/null
@@ -1,867 +0,0 @@
-#!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.19 2005/05/22 01:37:31 dmcmahill Exp $
-#
-# Copyright (c) 2002, 2003, 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Dan McMahill.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-
-# Global variables
-#-----------------
-# The following associative arrays are used for storing the dependency
-# information and other information for the packages
-#
-# topdepends[] : index=pkgdir (math/scilab)
-# List of explicitly listed depencencies by name.
-# I.e. "xless-[0-9]* pvm-3.4.3"
-#
-# alldepends[] : index=pkgdir (math/scilab)
-# Flattened dependency list by name.
-#
-BEGIN {
- do_pkg_readme=1;
-# set to 1 to use "README-new.html" as the name
- use_readme_new=0;
- if (use_readme_new) {
- readme_name = "README-new.html";
- }
- else {
- readme_name = "README.html";
- }
- printf("Reading database file\n");
-}
-
-#conflicts /usr/pkgsrc/math/scilab
-#depends /usr/pkgsrc/math/scilab xless-[0-9]*:../../x11/xless pvm-3.4.3:../../parallel/pvm3
-#
-
-/^(build_)?depends / {
-#
-# Read in the entire depends tree
-# These lines look like:
-#
-#depends /usr/pkgsrc/math/scilab xless-[0-9]*:../../x11/xless pvm-3.4.3:../../parallel/pvm3
-#build_depends /usr/pkgsrc/math/scilab libtool-base>=1.4.20010614nb9:../../devel/libtool-base
-#
- deptype=$1;
-# pkg=fulldir2pkgdir($2);
- pkg = $2;
- if (pkg in topdepends) {}
- else {topdepends[pkg] = "";}
- if (pkg in topbuilddepends) {}
- else {topbuilddepends[pkg] = "";}
-
- for (i = 3; i <= NF; i++) {
- split($i, a,":");
- pkgpat = a[1];
- pkgdir = a[2];
- sub(/[\.\/]*/, "", pkgdir);
- if (pkgdir !~ /\//) {
- pkgcat = pkg;
- gsub(/\/.*/, "", pkgcat);
- pkgdir=pkgcat "/" pkgdir;
- if (debug)
- printf("Corrected missing category directory to get \"%s\"\n",
- pkgdir);
- }
- if (debug){
- printf("package in directory %s %s on:\n",
- pkg, deptype);
- printf("\tpkgpat = %s\n", pkgpat);
- printf("\tpkgdir = %s\n", pkgdir);
- }
-
-
-#
-# store the package directory in a associative array with the wildcard
-# pattern as the index since we will need to be able to look this up later
-#
- pat2dir[pkgpat] = pkgdir;
-
- if (deptype == "depends") {
- topdepends[pkg] = topdepends[pkg] " " pkgpat " " ;
- if (debug) {
- printf("Appending %s to topdepends[%s] (%s)\n",
- pkgpat, pkg, topdepends[pkg]);
- }
- }
- else {
- if (debug) {
- printf("Appending %s to topbuilddepends[%s] (%s)\n",
- pkgpat, pkg, topbuilddepends[pkg]);
- }
- topbuilddepends[pkg] = topbuilddepends[pkg] " " pkgpat " " ;
- }
- }
-
- next;
-}
-
-/^comment /{
- dir = $2;
- gsub(/^comment[ \t]*/, "");
- tmp = substr($0, length($1) + 1);
- gsub(/^[ \t]*/, "", tmp);
- gsub(/&/, "\\\\\\&amp;", tmp);
- comment[dir] = tmp;
- next;
-}
-
-/^homepage /{
- homepage[$2] = $3;
- gsub(/&/, "\\\\&", homepage[$2]);
- next;
-}
-
-
-/^htmlname / {
-#
-# read lines like:
-# htmlname /usr/pkgsrc/archivers/arc <a href=../../archivers/arc/README.html>arc-5.21e</A>
-#
-# dir=fulldir2pkgdir($2);
- dir = $2;
- htmlname = $3;
- for (i = 4; i <= NF; i++){
- htmlname = htmlname " " $i;
- }
- # If we are using a name other than README.html, change it
- # here. This avoids having to process a huge line later which
- # makes lesser awks puke.
- gsub(/README.html/, readme_name, htmlname);
- dir2htmlname[dir] = htmlname;
- if (debug) printf("added dir2htmlname[%s]=%s\n", dir, htmlname);
- next;
-}
-
-/^index / {
-#
-# read lines like:
-#index /usr/pkgsrc/math/scilab scilab-2.6nb3
-# and store the directory name in a associative array where the index
-# is the package name and in a associative array that lets us lookup
-# name from directory. We use fuldir2pkgdir to get "math/scilab"
-# and drop the /usr/pkgsrc part.
-#
-# pkgname2dir[$3] = fulldir2pkgdir($2);
-# pkgdir2name[fulldir2pkgdir($2)] = $3;
- pkgname2dir[$3] = $2;
- pkgdir2name[$2] = $3;
- next;
-}
-
-/^license /{
- license[$2] = $3;
- next;
-}
-
-/^wildcard /{
- wildcard[$2] = $3;
-}
-
-#
-# Now recurse the tree to give a flattened depends list for each pkg
-#
-
-END {
- readme = TMPDIR "/" readme_name;
-
- if ( dependsfile == "" ) dependsfile = "/dev/stdout";
- if ( builddependsfile == "" ) builddependsfile = "/dev/stdout";
-
- printf("Making sure binary package cache file is up to date...\n");
- cmd = sprintf("%s AWK=%s CMP=%s FIND=%s GREP=%s PKG_INFO=\"%s\" PKG_SUFX=%s SED=%s SORT=%s %s/mk/scripts/binpkg-cache --packages %s",
- SETENV, AWK, CMP, FIND, GREP, PKG_INFO, PKG_SUFX, SED, SORT, PKGSRCDIR, PACKAGES);
- if (debug) printf("\nExecute: %s\n",cmd);
- rc = system(cmd);
-
- if (rc != 0) {
- printf("\n**** WARNING ****\n") > "/dev/stderr";
- printf("Command: %s\nfailed.", cmd) > "/dev/stderr";
- printf("**** ------- ****\n") > "/dev/stderr";
- exit(1);
- }
-
- printf("Loading binary package cache file...\n");
- load_cache_file( PACKAGES "/.pkgcache" );
- if(pkg_count["unknown"] > 0 ) {
- printf(" Loaded %d binary packages with unknown PKGPATH\n", pkg_count["unknown"]);
- }
-
- printf("Flattening dependencies\n");
- printf("") > dependsfile;
- for (toppkg in topdepends){
- if (debug) printf("calling find_all_depends(%s, run)\n", toppkg);
- find_all_depends(toppkg, "run");
- if (debug) printf("%s depends on: %s, topdepends on %s\n",
- toppkg, alldepends[toppkg],
- topdepends[toppkg]);
- printf("%s depends on: %s\n",
- toppkg, alldepends[toppkg]) >> dependsfile;
- flatdepends[toppkg] = alldepends[toppkg];
- }
- close(dependsfile);
-
-
-# clear out the flattened depends list and repeat for the build depends
- for( key in alldepends ) {
- delete alldepends[key];
- }
- printf("Flattening build dependencies\n");
- printf("") > builddependsfile;
- for (toppkg in topbuilddepends){
- find_all_depends(toppkg, "build");
- printf("%s build_depends on: %s\n",
- toppkg, alldepends[toppkg]) >> builddependsfile;
- }
- close(builddependsfile);
-
- vfile = DISTDIR "/pkg-vulnerabilities";
-
-# extract date for vulnerabilities file
- cmd = "ls -l " vfile;
- if ((cmd | getline) > 0) {
- vuldate = sprintf("at %s %s %s\n",$6,$7,$8);
-# read the vulnerabilities file
- printf("Reading vulnerability file \"%s\"\n which was updated %s\n",
- vfile, vuldate);
- i = 1;
- while((getline < vfile) > 0) {
- if ($0 !~ /^\#/) {
- vulpkg[i] = $1;
- vultype[i] = $2;
- vulref[i] = $3;
- i = i + 1;
- }
- }
- printf(" Loaded %d vulnerabilities\n", i - 1);
- close(vfile);
- have_vfile = 1;
- } else {
- vuldate="<TR><TD><I>(no vulnerabilities list available)</I>";
- printf("No vulnerability file found (%s).\n", vfile);
- have_vfile = 0;
- }
- close(cmd);
-
- if (SINGLEPKG != "" ) {
- printf("Only creating README for %s\n",SINGLEPKG);
- for( key in topdepends ) {
- delete topdepends[key];
- }
- topdepends[SINGLEPKG] = "yes";
- }
-
- printf("Generating README.html files\n");
- pkgcnt = 0;
- if (do_pkg_readme) {
- templatefile = PKGSRCDIR "/templates/README.pkg";
- fatal_check_file(templatefile);
- for (toppkg in topdepends){
- pkgcnt++;
- pkgdir = PKGSRCDIR "/" toppkg;
- readmenew=pkgdir "/" readme_name;
-
- if (debug) printf("Creating %s for %s\n",
- readme, readmenew);
- printf(".");
- if ((pkgcnt % 100) == 0) {
- printf("\n%d\n", pkgcnt);
- }
- printf("") > readme;
- htmldeps = "";
- for( key in dpkgs ) {
- delete dpkgs[key];
- }
- split(alldepends[toppkg], dpkgs);
- i = 1;
- htmldeps_file = TMPDIR "/htmldep";
- printf("") > htmldeps_file;
- while(i in dpkgs){
- if (debug) {
- printf("\tdpkg=%s, pat2dir[%s] = %s\n",
- dpkgs[i],
- dpkgs[i],
- pat2dir[dpkgs[i]]);
- }
- nm=dpkgs[i];
-
- gsub(/&/, "\\&amp;", nm);
- gsub(/</, "\\&lt;", nm);
- gsub(/>/, "\\&gt;", nm);
-# htmldeps=sprintf("%s<a href=\"../../%s/%s\">%s</a>\n",
-# htmldeps,
-# pat2dir[dpkgs[i]],
-# readme_name, nm);
-# We use a temp file to hold the html dependencies because for
-# packages like gnome, this list can get very very large and
-# become larger than what some awk implementations can deal
-# with. The nawk shipped with solaris 9 is an example of
-# such a limited awk.
- printf("%s<a href=\"../../%s/%s\">%s</a>\n",
- htmldeps,
- pat2dir[dpkgs[i]],
- readme_name, nm) >> htmldeps_file;
- i = i + 1;
- }
- if ( i == 1 ) {
- printf("<EM>none</EM>") >> htmldeps_file;
- }
- close(htmldeps_file);
- if (debug) printf("wrote = %d entries to \"%s\"\n",
- i-1, htmldeps_file);
-
- vul = "";
- if (have_vfile) {
- i = 1;
- pkgbase = pkgdir2name[toppkg];
- gsub(/-[^-]*$/, "", pkgbase);
- if (debug) {
- printf("Checking for %s (%s) vulnerabilities\n",
- toppkg, pkgbase);
- }
- while(i in vulpkg) {
- nm = vulpkg[i];
- gsub(/&/, "\\\\\\&amp;", nm);
- gsub(/</, "\\\\\\&lt;", nm);
- gsub(/>/, "\\\\\\&gt;", nm);
- url = vulref[i];
- gsub(/&/, "\\\\\\&", url);
- printurl = vulref[i];
- gsub(/&/, "\\\\\\&amp;", printurl);
- gsub(/</, "\\\\\\&lt;", printurl);
- gsub(/>/, "\\\\\\&gt;", printurl);
- if (vulpkg[i] ~ "^" pkgbase"[-<>=]+[0-9]") {
- vul = sprintf("%s<LI><STRONG> %s has a %s exploit (see <a href=\"%s\">%s</a> for more details)</STRONG></LI>\n",
- vul, nm,
- vultype[i],
- url, printurl);
- }
- i = i + 1;
- }
- if ( vul == "" ){
- vul="<I>(no vulnerabilities known)</I>";
- }
- }
-
-
- if (debug) {
- printf("Checking for binary package with lookup_cache( %s)\n",
- toppkg);
- }
-# lookup_cache( wildcard ) will produce HTML for the packages which are found
- lookup_cache( toppkg );
-
-
-
- if ( flatdepends[toppkg] ~ /^[ \t]*$/ ) {
- rundeps = "<EM>none</EM>";
- } else {
- rundeps = flatdepends[toppkg];
- }
-
- while((getline < templatefile) > 0){
- gsub(/%%PORT%%/, toppkg);
- gsub(/%%PKG%%/, pkgdir2name[toppkg]);
- gsub(/%%COMMENT%%/, comment[toppkg]);
- if (homepage[toppkg] == "") {
- gsub(/%%HOMEPAGE%%/, "");
- } else {
- gsub(/%%HOMEPAGE%%/,
- "<p>This package has a home page at <a HREF=\"" homepage[toppkg] "\">" homepage[toppkg] "</a>.</p>");
- }
- if (license[toppkg] == "") {
- gsub(/%%LICENSE%%/, "");
- } else {
- gsub(/%%LICENSE%%/,
- "<p>Please note that this package has a " license[toppkg] " license.</p>");
- }
- gsub(/%%VULNERABILITIES%%/, ""vul"");
- gsub(/%%VULDATE%%/, ""vuldate"");
- gsub(/%%RUN_DEPENDS%%/, ""rundeps"");
-
- line = $0;
-
- if( line ~/%%BIN_PKGS%%/ ) {
- gsub(/%%BIN_PKGS%%/, "", line);
- while((getline < binpkgs_file) > 0) {
- print >> readme;
- }
- close( binpkgs_file );
- }
-
- if( line ~/%%BUILD_DEPENDS%%/ ) {
- gsub(/%%BUILD_DEPENDS%%/, "", line);
- while((getline < htmldeps_file) > 0) {
- print >> readme;
- }
- close( htmldeps_file );
- }
-
- print line >> readme;
- }
- close(readme);
- close(templatefile);
- cmd = "if [ ! -d " pkgdir " ]; then exit 1 ; fi";
- if (debug) printf("Execute: %s\n",cmd);
- rc = system(cmd);
- if (rc != 0) {
- printf("\n**** WARNING ****\nPackage directory %s\n",
- pkgdir) > "/dev/stderr";
- printf("Does not exist. This is probably ") > "/dev/stderr";
- printf("due to an incorrect DEPENDS line.\n") > "/dev/stderr";
- printf("Try running: grep %s */*/Makefile\n", fulldir2pkgdir(pkgdir)) > "/dev/stderr";
- printf("or: grep %s */*/buildlink3.mk\n", fulldir2pkgdir(pkgdir)) > "/dev/stderr";
- printf("to find the problem\n", pkgdir) > "/dev/stderr";
- printf("**** ------- ****\n") > "/dev/stderr";
- } else {
- copy_readme(readmenew, readme);
- }
- }
- printf("\n");
- } # if (do_pkg_readme)
- printf("\n");
- if (SINGLEPKG != "" ) {
- close("/dev/stderr");
- exit 0;
- }
- printf("Generating category readmes\n");
- templatefile = PKGSRCDIR "/templates/README.category";
- fatal_check_file(templatefile);
-
-# string with URLs for all categories (used by the top README.html)
- allcat = "";
-# string with URLs for all pkgs (used by the top README-all.html)
- tot_numpkg = 0;
- top_make = PKGSRCDIR"/Makefile";
- while((getline < top_make) > 0){
- if ($0 ~ /^[ \t]*SUBDIR.*=[^\$]*$/) {
- category = $0;
- gsub(/^[ \t]*SUBDIR.*=[ \t]*/, "", category);
- catdir = PKGSRCDIR"/"category;
- readmenew = catdir"/"readme_name;
- printf("Category = %s\n", category);
- cat_make = catdir"/Makefile";
- pkgs = "";
- pkgs_file = TMPDIR "/pkgs_file";
- printf("") > pkgs_file;
- numpkg = 0;
- print "" > readme;
- while((getline < cat_make) > 0){
- if ($0 ~ /^[ \t]*SUBDIR.*=[^\$]*$/) {
- pkg = $0;
- gsub(/^[ \t]*SUBDIR.*=[ \t]*/, "",
- pkg);
- dir = category"/"pkg;
- numpkg++;
- tot_numpkg++;
- if (debug) {
- printf("\tAdding %s (%s : %s)\n",
- dir,
- pkgdir2name[dir],
- comment[dir]);
- }
-# pkgs = sprintf("%s<TR><TD VALIGN=TOP><a href=\"%s/%s\">%s</a>: %s<TD>\n",
-# pkgs, pkg, readme_name,
-# pkgdir2name[dir],
-# comment[dir]);
-# We use a temp file to hold the list of all packages because
-# this list can get very very large and
-# become larger than what some awk implementations can deal
-# with. The nawk shipped with solaris 9 is an example of
-# such a limited awk.
- printf("<TR><TD VALIGN=TOP><a href=\"%s/%s\">%s</a>: %s<TD>\n",
- pkg, readme_name,
- pkgdir2name[dir],
- comment[dir]) >> pkgs_file;
- allpkg[tot_numpkg] = sprintf("<!-- %s (for sorting) --><TR VALIGN=TOP><TD><a href=\"%s/%s/%s\">%s</a>: <TD>(<a href=\"%s/%s\">%s</a>) <td>%s\n",
- pkgdir2name[dir],
- category, pkg,
- readme_name,
- pkgdir2name[dir],
- category,
- readme_name,
- category,
- comment[dir]);
-# we need slightly fewer escapes here since we are not gsub()-ing
-# allpkg[] into the output files but just printf()-ing it.
- gsub(/\\&/, "\\&", allpkg[tot_numpkg]);
- } else if ($0 ~ /^[ \t]*COMMENT/) {
- descr = $0;
- gsub(/^[ \t]*COMMENT.*=[ \t]*/, "",
- descr);
- }
- }
- while ((getline < templatefile) > 0){
- gsub(/%%CATEGORY%%/, category);
- gsub(/%%NUMITEMS%%/, numpkg);
- gsub(/%%DESCR%%/, descr);
-
- line = $0
-
- if( $0 ~/%%SUBDIR%%/ ) {
- gsub(/%%SUBDIR%%/, "", line);
- while((getline < pkgs_file) > 0) {
- gsub(/README.html/, readme_name);
- print >> readme;
- }
- close( pkgs_file );
- }
-
- print line >> readme;
- }
- close(readme);
- close(templatefile);
- copy_readme(readmenew, readme);
-
- gsub(/href=\"/, "href=\""category"/", pkgs);
- allcat = sprintf("%s<TR><TD VALIGN=TOP><a href=\"%s/%s\">%s</a>: %s<TD>\n",
- allcat, category, readme_name,
- category, descr);
- close(cat_make);
- }
- }
- close(top_make);
-
- printf("Generating toplevel readmes:\n");
- templatefile = PKGSRCDIR "/templates/README.top";
- fatal_check_file(templatefile);
- readmenew = PKGSRCDIR "/"readme_name;
- printf("\t%s\n", readmenew);
- print "" > readme;
- while((getline < templatefile) > 0){
- gsub(/%%DESCR%%/, "");
- gsub(/%%SUBDIR%%/, allcat);
- gsub(/README.html/, readme_name);
- print >> readme;
- }
- close(readme);
- close(templatefile);
- copy_readme(readmenew, readme);
-
- templatefile = PKGSRCDIR "/templates/README.all";
- fatal_check_file(templatefile);
- readmenew = PKGSRCDIR "/README-all.html";
- printf("\t%s\n", readmenew);
-# sort the pkgs
- sfile = TMPDIR"/unsorted";
- spipe = "sort " sfile;
- i = 1;
- print "" >sfile;
- while(i in allpkg) {
- printf("%s",allpkg[i]) >> sfile;
- i++;
- }
- close(sfile);
-
- print "" > readme;
- while((getline < templatefile) > 0){
- line = $0;
- if ($0 ~ /%%PKGS%%/) {
- while((spipe | getline) > 0) {
- print >> readme;
- }
- close(spipe);
- } else {
- gsub(/%%DESCR%%/, "", line);
- gsub(/%%NPKGS%%/, tot_numpkg, line);
- gsub(/README.html/, readme_name, line);
- print line >> readme;
- }
- }
- close(readme);
- close(templatefile);
- copy_readme(readmenew, readme);
-
- close("/dev/stderr");
- exit 0;
-}
-
-function find_all_depends(pkg, type, pkgreg, i, deps, depdir, topdep){
-# pkg is the package directory, like math/scilab
-
-# printf("find_all_depends(%s, %s)\n", pkg, type);
-# if we find the package already has been fully depended
-# then return the depends list
- if (pkg in alldepends){
- if (debug) printf("\t%s is allready depended. Returning %s\n",
- pkg, alldepends[pkg]);
- return(alldepends[pkg]);
- }
-
-# if this package has no top dependencies, enter an empty flat dependency
-# list for it.
- if( type == "run" ) {
-# we only want DEPENDS
- topdep = topdepends[pkg];
- } else {
-# we want BUILD_DEPENDS and DEPENDS
- topdep = topdepends[pkg] " " topbuilddepends[pkg];
- }
- if (topdep ~ "^[ \t]*$") {
- alldepends[pkg] = " ";
- if (debug) printf("\t%s has no depends(%s). Returning %s\n",
- pkg, topdep, alldepends[pkg]);
- return(alldepends[pkg]);
- }
-
-# recursively gather depends that each of the depends has
- pkgreg = reg2str(pkg);
- split(topdep, deps);
- i = 1;
- alldepends[pkg] = " ";
- while ( i in deps ) {
-
-# figure out the directory name associated with the package hame
-# in (wild card/dewey) version form
- depdir = pat2dir[deps[i]];
- if (debug) printf("\tadding dependency #%d on \"%s\" (%s)\n",
- i, deps[i], depdir);
-
-# do not add ourselves to the list (should not happen, but
-# we would like to not get stuck in a loop if one exists)
-# if (" "deps[i]" " !~ pkgreg){
-
-# if we do not already have this dependency (deps[i]) listed, then add
-# it. However, we may have already added it because another package
-# we depend on may also have depended on
-# deps[i].
- if (alldepends[pkg] !~ reg2str(deps[i])){
- alldepends[pkg] = alldepends[pkg] " " deps[i] " " find_all_depends(depdir, type);
- }
- else {
- if (debug) printf("\t%s is already listed in %s\n",
- deps[i], alldepends[pkg]);
- }
-
- i = i + 1;
- } # while i
-
- if (debug) printf("\tcalling uniq() on alldepends[%s] = %s\n",
- pkg, alldepends[pkg]);
- alldepends[pkg] = uniq(alldepends[pkg]);
- if (debug) printf("\tuniq() output alldepends[%s] = %s\n",
- pkg, alldepends[pkg]);
- return(alldepends[pkg]);
-}
-
-#
-# take a string which has special characters like '+' in it and
-# escape them. Also put a space before and after since that's how
-# we'll distinguish things like gnome from gnome-libs
-#
-function reg2str(reg){
- gsub(/\./, "\\\.", reg);
- gsub(/\+/, "\\\+", reg);
- gsub(/\*/, "\\\*", reg);
- gsub(/\?/, "\\\?", reg);
- gsub(/\[/, "\\\[", reg);
- gsub(/\]/, "\\\]", reg);
- reg = " "reg" ";
- return(reg);
-}
-
-#
-# take a string which has a shell glob pattern and turn it into
-# an awk regular expression.
-#
-function glob2reg(reg){
- gsub(/\./, "\\\.", reg);
- gsub(/\+/, "\\\+", reg);
- gsub(/\*/, ".*", reg);
- gsub(/\?/, ".?", reg);
- return(reg);
-}
-
-#
-# accepts a full path to a package directory, like "/usr/pkgsrc/math/scilab"
-# and returns just the last 2 directories, like "math/scilab"
-#
-function fulldir2pkgdir(d, i){
- i = match(d, /\/[^\/]+\/[^\/]+$/);
- return substr(d, i + 1);
-}
-
-#
-# take the depends lists and uniq them.
-#
-function uniq(list, deps, i, ulist){
-
-# split out the depends
- split(list, deps);
-
- i = 1;
- ulist = " ";
- while (i in deps){
-# printf("uniq(): Checking \"%s\"\n", ulist);
-# printf(" for \"%s\"\n", reg2str(deps[i]));
- if (ulist !~reg2str(deps[i])){
- ulist = ulist deps[i]" ";
- }
- i++;
- }
- return(ulist);
-}
-
-function fatal_check_file(file, cmd){
- cmd="test -f " file ;
- if (debug) printf("Execute: %s\n",cmd);
- if (system(cmd) != 0) {
- printf("**** FATAL ****\nRequired file %s does not exist\n",
- file) > "/dev/stderr";
- printf("**** ------- ****\n") > "/dev/stderr";
- close("/dev/stderr");
- exit(1);
- }
-}
-
-# 'new' is the newly created README.html file
-# 'old' is the existing (possibly not present) README.html file
-#
-# This function copies over the 'new' file if the 'old' one does
-# not exist or if they are different. In addition, the 'new' one
-# which is a temporary file is removed at the end
-
-function copy_readme(old, new, cmd, rc) {
-
-# if the README.html file does not exist at all then copy over
-# the one we created
-
- cmd = "if [ ! -f "old" ]; then cp " new " " old " ; fi";
- if (debug) printf("copy_readme() execute: %s\n",cmd);
- rc = system(cmd);
- if (rc != 0) {
- printf("**** WARNING ****\nThe command\n %s\n", cmd) > "/dev/stderr";
- printf("failed with result code %d\n", rc) > "/dev/stderr";
- printf("**** ------- ****\n") > "/dev/stderr";
- }
-
-# Compare the existing README.html file to the one we created. If they are
-# not the same, then copy over the one we created
-
- cmd = sprintf("%s -s %s %s ; if test $? -ne 0 ; then mv -f %s %s ; fi",
- CMP, new, old, new, old);
- if (debug) printf("copy_readme() execute: %s\n",cmd);
- rc = system(cmd);
- if (rc != 0) {
- printf("**** WARNING ****\nThe command\n %s\n", cmd) > "/dev/stderr";
- printf("failed with result code %d\n", rc) > "/dev/stderr";
- printf("**** ------- ****\n") > "/dev/stderr";
- }
-
-# If the temp file still exists, then delete it
- cmd = " if [ -f "new" ]; then rm -f "new" ; fi";
- if (debug) printf("copy_readme() execute: %s\n",cmd);
- rc = system(cmd);
- if (rc != 0) {
- printf("**** WARNING ****\nThe command\n %s\n", cmd) > "/dev/stderr";
- printf("failed with result code %d\n", rc) > "/dev/stderr";
- printf("**** ------- ****\n") > "/dev/stderr";
- }
-
-}
-
-
-function load_cache_file( file, pkgfile, opsys, osver, march, wk, rx ) {
- printf(" * %s\n", file);
- fatal_check_file( file );
-
- # read the cache file
- while( getline < file ) {
-
- # if this line points to another cache file, then recursively
- # load it
- if( $0 ~ /^pkgcache_cachefile/ ) {
- if( debug ) printf("\tFound pkgcache_cachefile line.\n");
- load_cache_file( $2 );
- } else if( $0 ~/^pkgcache_begin /) {
- pkgfile = $2;
- if( debug ) printf("\tStarting %s\n", pkgfile);
- opsys = "unknown";
- osver = "unknown";
- march = "unknown";
- pkgpath = "unknown";
- } else if( $0 ~/^PKGPATH=/ ) {
- pkgpath = $0;
- gsub(/PKGPATH=[ \t]*/, "", pkgpath);
- } else if( $0 ~/^OPSYS=/ ) {
- opsys = $0;
- gsub(/OPSYS=[ \t]*/, "", opsys);
- } else if( $0 ~/^OS_VERSION=/ ) {
- osver = $0;
- gsub(/OS_VERSION=[ \t]*/, "", osver);
- } else if( $0 ~/^MACHINE_ARCH=/ ) {
- march = $0;
- gsub(/MACHINE_ARCH=[ \t]*/, "", march);
- } else if( $0 ~/^pkgcache_end /) {
- if( debug ) printf("\t%s, OPSYS=%s, OS_VERSION=%s, MACHINE_ARCH=%s, PKGPATH=%s\n",
- pkgfile, opsys, osver, march, pkpath);
-
- pkg_count[pkgpath] = pkg_count[pkgpath] + 1;
-
- opsys_list[pkgpath, pkg_count[pkgpath]] = opsys;
- osver_list[pkgpath, pkg_count[pkgpath]] = osver;
- march_list[pkgpath, pkg_count[pkgpath]] = march;
- pkgfile_list[pkgpath, pkg_count[pkgpath]] = pkgfile;
- gsub(/.*\//, "", pkgfile);
- pkgnm_list[pkgpath, pkg_count[pkgpath]] = pkgfile;
-
- } else {
- # skip this line
- }
- }
-
- # close the cache file
- close( file );
-}
-
-function lookup_cache( d, binpkgs) {
- if( debug ) printf("lookup_cache( %s ): pkg_count = %d\n",
- d, pkg_count[d]);
-
- binpkgs_file = TMPDIR "/binpkgs";
- spipe = SORT " > " binpkgs_file;
- for(i=1 ; i<=pkg_count[d]; i=i+1) {
- printf("<TR><TD>%s:<TD><a href=\"%s/%s\">%s</a><TD>(%s %s)\n",
- march_list[d, i], PKG_URL, pkgfile_list[d, i], pkgnm_list[d, i],
- opsys_list[d, i], osver_list[d, i]) | spipe;
- }
- if( pkg_count[d] == 0 ) {
- printf("<TR><TD><EM>none</EM></TD></TR>\n") | spipe;
- }
-
- close( spipe );
-}
-
-
diff --git a/mk/scripts/mkdatabase b/mk/scripts/mkdatabase
deleted file mode 100755
index 739464e8e7b..00000000000
--- a/mk/scripts/mkdatabase
+++ /dev/null
@@ -1,212 +0,0 @@
-#!/bin/sh
-# $NetBSD: mkdatabase,v 1.4 2003/05/06 17:42:05 jmmv Exp $
-#
-# Script for generating a database with complete dependency information
-# for a particular package
-#
-# Copyright (c) 2003 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Dan McMahill.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-
-TMPDIR=${TMPDIR:-/tmp}
-BMAKE=${BMAKE:-make}
-AWK=${AWK:-/usr/bin/awk}
-DATABASE=${DATABASE:-${TMPDIR}/pkgdb.$$}
-EXPR=${EXPR:-expr}
-
-# as of 2003-01-04, metapkgs/gnome gets to pass #6 so
-# it is very likely that if you reach 25, something is broken
-MAX_PASS=${MAX_PASS:-25}
-
-prog=$0
-
-usage(){
- echo "$prog - Generates a complete dependency tree for a particular package"
- echo "Usage: $prog [-a|--append] [-d|--debug] [-f|--database database]"
- echo " "
- echo " $prog -h|--help"
- echo " "
- echo " $prog -v|--version"
- echo " "
- echo "The options supported by $prog are: "
- echo " "
- echo " -a|--append Append to the database rather than overwriting it"
- echo " "
- echo " -d|--debug Enables debugging output"
- echo " "
- echo " -f|--database <file> Writes the database into file specified by <file>"
- echo " "
- echo " -h|--help Displays this help message"
- echo " "
- echo " -v|--version Displays the version of this script and exits."
- echo " "
- echo "Example: cd /usr/pkgsrc/graphics/gimp && $prog -d /tmp/gimp_database"
- echo " "
-}
-
-clean_and_exit(){
- exit 1
-}
-
-
-######################################################################
-#
-# Handle command line options
-#
-######################################################################
-
-DEBUG=
-append=no
-
-while
- test -n "$1"
-do
- case "$1"
- in
-
- # Append to the database
- -a|--append)
- append=yes
- shift
- ;;
-
- # Turn on debugging
- -d|--debug)
- DEBUG=yes
- shift
- ;;
-
- # Use the specified database file
- -f|--database)
- DATABASE=$2
- shift 2
- ;;
-
- # Help
- -h|--help)
- usage
- exit 0
- ;;
-
- # Version
- -v|--version)
- ${AWK} '/^#[ \t]*\$NetBSD/ {gsub(/,v/,"",$3);printf("%s: Version %s, %s\n",$3,$4,$5); exit 0;}' $prog
- exit 0
- ;;
-
- -*) echo "$prog: ERROR: $1 is not a valid option"
- usage
- clean_and_exit
- ;;
-
- *)
- break
- ;;
-
- esac
-done
-
-if [ "x$DEBUG" = "xyes" ]; then
- set -v
-fi
-
-if [ ! -d $TMPDIR ]; then
- mkdir -p $TMPDIR
-fi
-
-prompt="----> "
-
-case ${DATABASE} in
- /*)
- # we already have the absolute path to the database file
- # so do nothing
- ;;
-
- *)
- # make sure we have the full path to the database file
- DATABASE=`pwd`/${DATABASE}
- ;;
-esac
-
-
-if [ "X$append" = "Xyes" ]; then
- echo "$prompt Appending to database in ${DATABASE}"
- if [ ! -f ${DATABASE} ]; then
- touch ${DATABASE}
- fi
- # make sure we haven't already been listed before
- # appending ourselves.
- here=`pwd`
- tmp1=`dirname $here`
- pkgcat=`basename $tmp1`
- pkg=`basename $here`
- pkgpath=$pkgcat/$pkg
- if [ "x$DEBUG" = "xyes" ]; then
- echo "Looking for $pkgpath before appending"
- fi
- if grep "^index $pkgpath " ${DATABASE} >/dev/null 2>&1 ; then
- echo "$prompt $pkgpath has already been depended. Skipping..."
- exit 0
- else
- ${BMAKE} print-summary-data >> ${DATABASE} || exit 1
- fi
-else
- echo "$prompt Creating new database in ${DATABASE}"
- ${BMAKE} print-summary-data > ${DATABASE} || exit 1
-fi
-here=`pwd`
-echo "$prompt Depending in $here (pass #1)"
-dirs=`${AWK} -f ../../mk/scripts/chkdatabase.awk debug=${DEBUG} ${DATABASE}`
-pass=2
-while [ ! -z "$dirs" -a $pass -lt ${MAX_PASS} ]; do
- for d in $dirs ; do
- echo "$prompt Depending in ../../$d (pass #$pass)" ;\
- cd ../../$d && ${BMAKE} print-summary-data >> ${DATABASE} || exit 1
- cd $here
- done
- dirs=`${AWK} -f ../../mk/scripts/chkdatabase.awk debug=${DEBUG} ${DATABASE}`
- pass=`${EXPR} $pass + 1`
-done
-
-if [ $pass -eq ${MAX_PASS} ]; then
- echo "ERROR: You have reached $pass times through the dependency tree"
- echo " and _still_ not finished. This is probably due to a broken"
- echo " set of dependencies. You may wish to examine the partial"
- echo " database left in ${DATABASE}"
- exit 1
-else
- echo "Complete dependency database left in ${DATABASE}"
-fi
-
diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme
deleted file mode 100755
index 4dbc37b8b8e..00000000000
--- a/mk/scripts/mkreadme
+++ /dev/null
@@ -1,472 +0,0 @@
-#!/bin/sh
-# $NetBSD: mkreadme,v 1.8 2005/06/01 18:16:20 wiz Exp $
-#
-# Script for README.html generation
-#
-# Copyright (c) 2002, 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Dan McMahill.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-
-TMPDIR=${TMPDIR:-/tmp/mkreadme}
-PKGSRCDIR=${PKGSRCDIR:-/usr/pkgsrc}
-AWK=${AWK:-/usr/bin/awk}
-
-opsys=`uname -s`
-case "$opsys" in
- *BSD)
- makeprog=make
- ;;
-
- *)
- makeprog=bmake
- ;;
-esac
-
-BMAKE=${BMAKE:-${makeprog}}
-
-usage(){
- echo "$prog - Generates README.html files for a pkgsrc tree"
- echo "Usage: $prog [-c|--cdrom] [-C|--prune] [-d|--debug] [-f|--ftp] "
- echo " [-p|--pkgsrc directory] "
- echo " [-P|--packages directory] [-r|--restart] "
- echo " [-S|--save-database]"
- echo " "
- echo " $prog -h|--help"
- echo " "
- echo " $prog -v|--version"
- echo " "
- echo "The options supported by $prog are: "
- echo " "
- echo " -C|--prune Prune unused README.html files which may exist in"
- echo " pkg directories which have been removed from CVS."
- echo " "
- echo " -c|--cdrom Generates CD-ROM README.html files"
- echo " "
- echo " -d|--debug Enables (extremely verbose) debug output"
- echo " "
- echo " -f|--ftp Generates FTP README.html files"
- echo " "
- echo " -h|--help Displays this help message"
- echo " "
- echo " -p|--pkgsrc dir Specifies the pkgsrc directory. Defaults to"
- echo " The value of the PKGSRCDIR environment variable"
- echo " if set or /usr/pkgsrc otherwise."
- echo " "
- echo " -P|--packages dir Specifies the packages directory."
- echo " "
- echo " -r|--restart Restart. This option assumes that the database file"
- echo " from a previous run still exists and that the script"
- echo " should use that instead of recreating the database."
- echo " "
- echo " -S|--save-database Does not delete the database file after the run."
- echo " This is useful for debugging or re-running this script"
- echo " with the -r option."
- echo " "
- echo " -v|--version Displays the version of this script and exits."
- echo " "
- echo "Example: $prog -p /pub/NetBSD/packages/pkgsrc -P /pub/NetBSD/packages -m -f"
- echo " "
-}
-
-clean_and_exit(){
- if [ "x$DEBUG" = "xno" -a "x$restart" = "xno" -a "x$save" = "xno" ]; then
- rm -fr $TMPDIR
- else
- echo "Debugging output left in $TMP"
- fi
- exit 1
-}
-
-prog=$0
-
-
-######################################################################
-#
-# Handle command line options
-#
-######################################################################
-
-cmdline=$*
-
-ftp_readme=no
-restart=no
-prune=no
-DEBUG=no
-save=no
-
-while
- test -n "$1"
-do
- case "$1"
- in
-
- # We're generating README.html's for a CD-ROM
- -c|--cdrom)
- ftp_readme=no
- shift
- ;;
-
- # Prune old README.html files from pkgs which no longer exist
- -C|--prune)
- prune=yes
- shift
- ;;
-
- # Turn on debugging
- -d|--debug)
- DEBUG=yes
- shift
- ;;
-
- # We're generating README.html's for a CD-ROM
- -f|--ftp)
- ftp_readme=yes
- shift
- ;;
-
-
- # Help
- -h|--help)
- usage
- exit 0
- ;;
-
- # Specify pkgsrc directory
- -p|--pkgsrc)
- PKGSRCDIR=$2
- shift 2
- ;;
-
- # Specify PACKAGES directory
- -P|--packages)
- PKGDIR=$2
- shift 2
- ;;
-
- # Restart (ie, don't re-generate the database file)
- -r|--restart)
- restart=yes
- shift
- ;;
-
- # Save the database files
- -S|--save-database)
- save=yes
- shift
- ;;
-
- # Version
- -v|--version)
- ${AWK} '/^#[ \t]*\$NetBSD/ {gsub(/,v/,"",$3);printf("%s: Version %s, %s\n",$3,$4,$5); exit 0;}' $prog
- exit 0
- ;;
-
- -*) echo "$prog: ERROR: $1 is not a valid option"
- usage
- clean_and_exit
- ;;
-
- *)
- break
- ;;
-
- esac
-done
-
-if [ "x$DEBUG" = "xyes" ]; then
- set -v
-fi
-
-if [ ! -d ${PKGSRCDIR} ]; then
- echo "ERROR: package source directory ${PKGSRCDIR} does not exist"
- echo ""
- clean_and_exit
-fi
-
-if [ ! -d $TMPDIR ]; then
- mkdir -p $TMPDIR
-fi
-
-DEPENDSTREEFILE=$TMPDIR/dependstree
-export DEPENDSTREEFILE
-DEPENDSFILE=$TMPDIR/depends
-export DEPENDSFILE
-SUPPORTSFILE=$TMPDIR/supports
-export SUPPORTSFILE
-INDEXFILE=$TMPDIR/index
-export SUPPORTSFILE
-ORDERFILE=$TMPDIR/order
-export ORDERFILE
-DATABASEFILE=$TMPDIR/database
-export DATABASEFILE
-BINPKGFILE=$TMPDIR/binpkglist
-
-echo "Starting README.html generation: `date`"
-
-######################################################################
-#
-# Extract key pkgsrc configuration variables
-#
-######################################################################
-
-echo " "
-echo "Extracting tool variables:"
-echo " "
-if [ -d ${PKGSRCDIR}/pkgtools/prereq-readme ]; then
- cd ${PKGSRCDIR}/pkgtools/prereq-readme
- eval "`${BMAKE} show-tools`"
- for v in AWK CMP ECHO EXPR FGREP FIND GREP SED SETENV SORT
- do
- eval "echo '---->' ${v}=\"\${${v}}\""
- done
-else
- echo "Error: ${PKGSRCDIR}/pkgtools/prereq-readme does not seem to exist"
- exit 1
-fi
-
-echo " "
-echo "Extracting configuration variables:"
-echo " "
-if [ -d ${PKGSRCDIR}/pkgtools/prereq-readme ]; then
- cd ${PKGSRCDIR}/pkgtools/prereq-readme
- for v in CDROM_PKG_URL_HOST CDROM_PKG_URL_DIR DISTDIR \
- FTP_PKG_URL_HOST FTP_PKG_URL_DIR PACKAGES PKG_INFO PKG_SUFX
- do
- val=`${BMAKE} show-var VARNAME=${v}`
- if [ $? != 0 ]; then
- echo "Error: make show-var VARNAME=${v} in `pwd` "
- echo "Failed. This is a fatal error"
- clean_and_exit
- fi
- echo "----> ${v}=\"${val}\""
- eval "${v}=\"${val}\""
- done
-else
- echo "Error: ${PKGSRCDIR}/pkgtools/prereq-readme does not seem to exist"
- exit 1
-fi
-
-######################################################################
-#
-# Decide on FTP vs CDROM README.html files
-#
-######################################################################
-
-if [ "$ftp_readme" = "yes" ]; then
- PKG_URL=${FTP_PKG_URL_HOST}${FTP_PKG_URL_DIR}
- echo "Will generate FTP readme files with PKG_URL=$PKG_URL"
-else
- PKG_URL=${CDROM_PKG_URL_HOST}${CDROM_PKG_URL_DIR}
- echo "Will generate CD-ROM readme files with PKG_URL=$PKG_URL"
-fi
-
-######################################################################
-#
-# Check for command line switch for packages directory
-#
-######################################################################
-
-# we've been given the directory as a command line switch
-if [ ! -z "$PKGDIR" ]; then
- PACKAGES=$PKGDIR
- echo "PACKAGES specified on command line to be $PKGDIR"
-fi
-
-
-######################################################################
-#
-# Extract Database for All Packages (longest step)
-#
-######################################################################
-
-if [ "x$restart" = "xno" ] ; then
- echo " "
- echo "Extracting data. This could take a while"
- echo "Started at: `date` "
- echo " "
- npkg=1
-
- # make sure we don't have an old database lying around
- rm -fr $DATABASEFILE
-
- cd ${PKGSRCDIR}
- list=`${GREP} '^[ \t]*'SUBDIR */Makefile | ${GREP} -v regress/ | ${SED} 's,/Makefile.*=[[:space:]]*,/,'`
- for pkgdir in $list
- do
- if [ ! -d $pkgdir ]; then
- echo " "
- echo "WARNING: the package directory $pkgdir is listed in" > /dev/stderr
- echo $pkgdir | ${SED} 's;/.*;/Makefile;g' > /dev/stderr
- echo "but the directory does not exist. Please fix this!" > /dev/stderr
- else
- cd $pkgdir
- l=`${BMAKE} print-summary-data`
- if [ $? != 0 ]; then
- echo "WARNING (printdepends): the package in $pkgdir had problem with" \
- > /dev/stderr
- echo " ${BMAKE} print-summary-data" > /dev/stderr
- echo " database information for this package" > /dev/stderr
- echo " will be dropped." > /dev/stderr
- ${BMAKE} print-summary-data 2>&1 > /dev/stderr
- else
- echo "$l" >> $DATABASEFILE
- fi
- fi
- ${ECHO} -n "."
- if [ `${EXPR} $npkg % 100 = 0` -eq 1 ]; then
- echo " "
- echo "$npkg"
- fi
- npkg=`${EXPR} $npkg + 1`
- cd $PKGSRCDIR
- done
- echo " "
- echo "Finished extracting data for ${npkg} packages at: `date` "
-else
- echo " "
- echo "Using existing database (are you sure you wanted the -r/--restart flag?)"
- echo " "
- if [ ! -f $DATABASEFILE ]; then
- echo " "
- echo "ERROR: You have use the -r/--restart flag but the database "
- echo " file $DATABASEFILE does not exist"
- echo " "
- exit 1
- fi
-fi
-
-######################################################################
-#
-# Generate the package and category README.html files
-#
-######################################################################
-
-echo " "
-echo "Generating package README.html files"
-echo " "
-if [ "x$DEBUG" = "xyes" ]; then
- debug=1;
-else
- debug=0;
-fi
-
-${AWK} -f ${PKGSRCDIR}/mk/scripts/genreadme.awk \
- builddependsfile=${TMPDIR}/pkgsrc.builddepends.debug \
- debug=$debug \
- dependsfile=${TMPDIR}/pkgsrc.depends.debug \
- AWK=$AWK \
- CMP=$CMP \
- DISTDIR=$DISTDIR \
- FIND=$FIND \
- GREP=$GREP \
- PACKAGES=$PACKAGES \
- PKG_INFO="$PKG_INFO" \
- PKG_SUFX=$PKG_SUFX \
- PKG_URL=$PKG_URL \
- PKGSRCDIR=$PKGSRCDIR \
- SED=$SED \
- SETENV=$SETENV \
- SORT=$SORT \
- TMPDIR=$TMPDIR \
- ${DATABASEFILE}
-
-if [ $? != 0 ]; then
- echo "Error: genreadme.awk failed to create README.html files"
- clean_and_exit
-fi
-
-######################################################################
-#
-# Generate the README-IPv6.html file
-#
-######################################################################
-
-echo " "
-echo "Generating the README-IPv6.html file"
-echo " "
-cd ${PKGSRCDIR}
-ipv6=${TMPDIR}/ipv6pkgs
-ipv6_entries=${TMPDIR}/ipv6_entries
-${GREP} -l -e '^BUILD_DEFS.*=.*USE_INET6' -e '^PKG_SUPPORTED_OPTIONS.*=.*inet6' */*/Makefile */*/options.mk | ${SED} -e 's;Makefile;;g' -e 's;options.mk;;g' > $ipv6
-${FGREP} -f $ipv6 README-all.html | sort -t/ +1 > $ipv6_entries
-${SED} \
- -e "/%%TRS%%/r${ipv6_entries}" \
- -e '/%%TRS%%/d' \
- templates/README.ipv6 > ${TMPDIR}/README-IPv6.html
-if [ $? != 0 ]; then
- echo "Error: README-IPv6.html generation failed (on sed script)"
- clean_and_exit
-fi
-
-if [ ! -f README-IPv6.html ]; then
- mv -f ${TMPDIR}/README-IPv6.html README-IPv6.html
-elif cmp -s ${TMPDIR}/README-IPv6.html README-IPv6.html ; then
- echo "README-IPv6.html is unchanged (no changes were needed)"
-else
- mv -f ${TMPDIR}/README-IPv6.html README-IPv6.html
-fi
-
-######################################################################
-#
-# Prune README.html files which are no longer needed
-#
-######################################################################
-if [ "x$prune" = "xyes" ]; then
- echo " "
- echo "Pruning unused README.html files"
- echo " "
- cd ${PKGSRCDIR}
- for d in `ls -d */*` ; do
- if [ -d $d -a ! -f ${d}/Makefile -a -f ${d}/README.html ]; then
- echo "Pruning ${d}/README.html which is no longer used"
- rm -f ${d}/README.html
- fi
- done
-fi
-
-######################################################################
-#
-# All done. Clean (if needed) and exit
-#
-######################################################################
-echo " "
-echo "README.html generation finished: `date`"
-echo " "
-if [ "x$DEBUG" = "xno" -a "x$restart" = "xno" -a "x$save" = "xno" ]; then
- rm -fr $TMPDIR
-else
- echo "Debugging output left in $TMPDIR"
-fi
-
diff --git a/mk/scripts/print-la-libnames b/mk/scripts/print-la-libnames
deleted file mode 100755
index a37a9459ead..00000000000
--- a/mk/scripts/print-la-libnames
+++ /dev/null
@@ -1,77 +0,0 @@
-# /bin/sh
-#
-# $NetBSD: print-la-libnames,v 1.4 2004/11/12 21:21:08 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Todd Vierling.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-: ${ECHO=echo}
-: ${GREP=grep}
-: ${SORT=sort}
-
-for la
-do
- dir="${la%/*.la}"
- library_names=
- old_library=
-
- case $dir in
- $la) dir= ;;
- *) dir="$dir/" ;;
- esac
- case $la in
- /*|./*) lapath="$la" ;;
- *) lapath="./$la" ;;
- esac
-
- if [ -r "$lapath" -a ! -h "$lapath" ]; then
- if ${GREP} -q "libtool library file" "$lapath"; then
- . "$lapath"
- if [ "$installed" = "no" ]; then
- ${ECHO} 1>&2 "$0: \`$lapath' was not properly installed"
- exit 1
- fi
- for lib in $library_names $old_library; do
- libpath="$dir$lib"
- if [ ! -f "$libpath" ]; then
- ${ECHO} 1>&2 "$0: \`$libpath' was not found"
- fi
- ${ECHO} "$libpath"
- done
- fi
- else
- ${ECHO} 1>&2 "$0: cannot read libtool archive \`$lapath'"
- fi
-done | ${SORT} -u
diff --git a/mk/scripts/shell-lib b/mk/scripts/shell-lib
deleted file mode 100644
index 23a45cd4876..00000000000
--- a/mk/scripts/shell-lib
+++ /dev/null
@@ -1,396 +0,0 @@
-# $NetBSD: shell-lib,v 1.3 2005/08/24 21:51:10 rillig Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-######################################################################
-# msg_log logfile msg
-# Output msg to logfile. If logfile is "stdout" or "stderr"
-# then output to there instead.
-######################################################################
-msg_log()
-{
- : ${echo=echo}
-
- _msg_log="$1"; shift
- case $_msg_log in
- stdout) $echo "$@" ;;
- stderr) $echo "$@" 1>&2 ;;
- *) $echo "$@" >> $_msg_log ;;
- esac
-}
-
-######################################################################
-# die msg
-# Output $msg to stderr, and exit with a positive error code.
-######################################################################
-die()
-{
- msg_log stderr "$@"
- exit 1
-}
-
-######################################################################
-# check_prog var prog ...
-# If $var is empty or unset, then set it to the path of one of
-# the program names in the list.
-######################################################################
-check_prog()
-{
- : ${test=test}
-
- _ckp_var="$1"; shift
-
- eval _ckp_tmp=\"\$$_ckp_var\"
- if $test "x$_ckp_tmp" != "x"; then
- return 0
- fi
-
- for _ckp_prog do
- _ckp_IFS="${IFS}"; IFS=":"
- for _ckp_dir in ${PATH}; do
- if $test -x "$_ckp_dir/$_ckp_prog"; then
- eval $_ckp_var=\""$_ckp_dir/$_ckp_prog"\"
- return 1
- fi
- done
- IFS="${_ckp_IFS}"
- done
-
- die "$_ckp_var could not be set."
-}
-
-######################################################################
-# shquote arg
-# Returns a backslashed and quoted version of arg in $shquoted.
-######################################################################
-shquote()
-{
- : ${echo=echo}
- : ${sed=sed}
-
- _shq_arg=$1
- _shq_sed="$sed -e 1s/^X//"
- _shq_sed_quote_subst='s/\([\`\"$\\]\)/\\\1/g'
- case $_shq_arg in
- *[\`\"\$\\]*)
- shquoted=`$echo "X$_shq_arg" | $_shq_sed -e "$_shq_sed_quote_subst"`
- ;;
- *)
- shquoted="$_shq_arg"
- ;;
- esac
- case $shquoted in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- shquoted="\"$shquoted\""
- ;;
- esac
-}
-
-######################################################################
-# lock_file -f path [-n token]
-# Attempt to create a lockfile at $path. Any directories in the
-# path should already exist. If $token is specified, then assume
-# that it is unique between machines sharing an NFS mount.
-#
-# (1) Create globally-unique filename in the same filesystem as the
-# lockfile.
-# (2) Try to create a hard-link from this file to the lockfile, but
-# ignoring any errors.
-# (3) If the two files are the same file, then the lock was successfully
-# obtained; otherwise, the lock attempt wasn't successful.
-######################################################################
-lock_file()
-{
- : ${dirname=dirname}
- : ${echo=echo}
- : ${link=link}
- : ${mkdir=mkdir}
- : ${mktemp=mktemp}
- : ${rm=rm}
- : ${test=test}
- : ${touch=touch}
-
- _lf_lockfile=
- _lf_nfs=
- while $test $# -gt 0; do
- case $1 in
- -f) _lf_lockfile="$2"; shift ;;
- -n) _lf_nfs="$2"; shift ;;
- esac
- shift
- done
- if $test -z "$_lf_lockfile"; then
- $echo 1>&2 "$0: no lock file specified."
- exit
- fi
- _lf_pid=$$
- _lf_lockdir=`$dirname $_lf_lockfile`
- _lf_uniqfile=`$mktemp "$_lf_lockdir/.lock.$_lf_nfs.$_lf_pid.XXXXXX" 2>/dev/null` || return 1
- if $test -n "$_lf_nfs"; then
- { $echo $_lf_pid; $echo $_lf_nfs; } > $_lf_uniqfile
- else
- $echo $_lf_pid > $_lf_uniqfile
- fi
- $link $_lf_uniqfile $_lf_lockfile 2>/dev/null
- if $test $_lf_uniqfile -ef $_lf_lockfile; then
- _lf_result=0
- else
- _lf_result=1
- fi
- $rm -f $_lf_uniqfile
- return $_lf_result
-}
-
-######################################################################
-######################################################################
-###
-### Queue routines. The queue is implemented as a set of variables
-### that is unique to each queue name, thus the use of multiple queues
-### is allowed.
-###
-######################################################################
-######################################################################
-
-######################################################################
-# init_queue name
-# Initialize the named queue.
-######################################################################
-init_queue()
-{
- _qname="$1"
- eval "_q${_qname}head=1111111111"
- eval "_q${_qname}tail=1111111111"
-}
-
-######################################################################
-# append_queue name item ...
-# Append items onto the end of the named queue in FIFO order.
-######################################################################
-append_queue()
-{
- : ${test=test}
-
- _qname="$1"; shift
- while $test $# -gt 0; do
- eval "_qtail=\"\$_q${_qname}tail\""
- eval "_q${_qname}${_qtail}=\"\${1}\""
- case $_qtail in
- *000000000) _qtail=${_qtail%000000000}1 ;;
- *) _qtail=${_qtail}0 ;;
- esac
- eval "_q${_qname}tail=\"\${_qtail}\""
- shift
- done
-}
-
-######################################################################
-# prepend_queue name item ...
-# Prepend items to the head of the named queue in LIFO order.
-######################################################################
-prepend_queue()
-{
- : ${test=test}
-
- _qname="$1"; shift
- while $test $# -gt 0; do
- eval "_qhead=\"\$_q${_qname}head\""
- case $_qhead in
- *1) _qhead=${_qhead%1}000000000 ;;
- *) _qhead=${_qhead%0} ;;
- esac
- eval "_q${_qname}${_qhead}=\"\${1}\""
- eval "_q${_qname}head=\"\${_qhead}\""
- shift
- done
-}
-
-######################################################################
-# head_queue name var
-# Return the head of the named queue in $var.
-######################################################################
-head_queue()
-{
- _qname="$1"; shift
- eval "_qhead=\"\$_q${_qname}head\""
- eval "${1}=\"\$_q${_qname}${_qhead}\""
-}
-
-######################################################################
-# pop_queue name var
-# Pop off the head of the named queue and return it in $var.
-######################################################################
-pop_queue()
-{
- _qname="$1"; shift
- head_queue $_qname $1
- case $_qhead in
- *000000000) _qhead=${_qhead%000000000}1 ;;
- *) _qhead=${_qhead}0 ;;
- esac
- eval "_q${_qname}head=\"\${_qhead}\""
-}
-
-######################################################################
-# queue_is_empty name
-# Return 0 if the named queue is empty and 1 otherwise.
-######################################################################
-queue_is_empty()
-{
- : ${test=test}
-
- _qname="$1"
- eval "_qhead=\"\$_q${_qname}head\""
- eval "_qtail=\"\$_q${_qname}tail\""
- $test "$_qhead" = "$_qtail"
- return $?
-}
-
-######################################################################
-######################################################################
-###
-### File queue routines. The file queue is implemented as a file
-### whose lines represent the queue elements. The file queue name
-### is simply the file used for the queue, thus the use of multiple
-### queues is allowed.
-###
-######################################################################
-######################################################################
-
-######################################################################
-# init_fqueue name
-# Initialize the named file queue.
-######################################################################
-init_fqueue()
-{
- _fqname="$1"
- : > "$_fqname"
-}
-
-######################################################################
-# append_fqueue name item ...
-# Append items onto the end of the named file queue in FIFO order.
-######################################################################
-append_fqueue()
-{
- : ${echo=echo}
- : ${test=test}
-
- _fqname="$1"; shift
- while $test $# -gt 0; do
- $echo "$1" >> "$_fqname"
- shift
- done
-}
-
-######################################################################
-# prepend_fqueue name item ...
-# Prepend items to the head of the named file queue in LIFO order.
-######################################################################
-prepend_fqueue()
-{
- : ${cat=cat}
- : ${echo=echo}
- : ${mv=mv}
-
- _fqname="$1"; shift
- _fqtmpfile="$_fqname.$$"
- init_queue _fqtmpqueue
- prepend_queue _fqtmpqueue "$@"
- while ! queue_is_empty _fqtmpqueue; do
- pop_queue _fqtmpqueue _fqelt
- $echo "$_fqelt" >> "$_fqtmpfile"
- done
- $cat "$_fqname" >> "$_fqtmpfile"
- $mv -f "$_fqtmpfile" "$_fqname"
-}
-
-######################################################################
-# head_fqueue name var
-# Return the head of the named file queue in $var.
-######################################################################
-head_fqueue()
-{
- : ${head=head}
-
- _fqname="$1"; shift
- _tmp=`$head -n 1 "$_fqname"`
- eval "${1}=\"\$_tmp\""
-}
-
-######################################################################
-# pop_fqueue name var
-# Pop off the head of the named file queue and return it in $var.
-######################################################################
-pop_fqueue()
-{
- : ${mv=mv}
- : ${sed=sed}
-
- _fqname="$1"; shift
- _fqtmpfile="$_fqname.$$"
- head_fqueue "$_fqname" $1
- $sed "1,1d" "$_fqname" >> "$_fqtmpfile"
- $mv -f "$_fqtmpfile" "$_fqname"
-}
-
-######################################################################
-# fqueue_is_empty name
-# Return 0 if the named file queue is empty and >0 otherwise.
-######################################################################
-fqueue_is_empty()
-{
- : ${test=test}
- : ${wc=wc}
-
- _fqname="$1"
- if $test -f "$_fqname"; then
- _fqlines=`$wc -l < "$_fqname"`
- return $_fqlines
- else
- return 1
- fi
-}
-
-######################################################################
-# $setargs_from_cmd
-# Run $cmd and initialize the $@ array with the lines from that
-# command.
-# usage:
-# cmd="echo *"; eval "${setargs_from_cmd}"
-# for i in "$@"; do echo "($i)"; done
-######################################################################
-setargs_from_cmd='saved_IFS="${IFS}"; IFS="
-"; set args `eval "${cmd}"`; IFS="${saved_IFS}"; shift'
diff --git a/mk/solaris-pam.builtin.mk b/mk/solaris-pam.builtin.mk
deleted file mode 100644
index 277e9243eaa..00000000000
--- a/mk/solaris-pam.builtin.mk
+++ /dev/null
@@ -1,48 +0,0 @@
-# $NetBSD: solaris-pam.builtin.mk,v 1.3 2005/06/01 18:03:06 jlam Exp $
-
-BUILTIN_PKG:= solaris-pam
-
-BUILTIN_FIND_FILES_VAR:= H_SOLARIS_PAM
-BUILTIN_FIND_FILES.H_SOLARIS_PAM= /usr/include/security/pam_appl.h
-BUILTIN_FIND_GREP.H_SOLARIS_PAM= Copyright.*Sun Microsystems
-
-.include "../../mk/buildlink3/bsd.builtin.mk"
-
-###
-### Determine if there is a built-in implementation of the package and
-### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
-###
-.if !defined(IS_BUILTIN.solaris-pam)
-IS_BUILTIN.solaris-pam= no
-. if empty(H_SOLARIS_PAM:M${LOCALBASE}/*) && exists(${H_SOLARIS_PAM})
-IS_BUILTIN.solaris-pam= yes
-. endif
-.endif
-MAKEVARS+= IS_BUILTIN.solaris-pam
-
-###
-### Determine whether we should use the built-in implementation if it
-### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
-###
-.if !defined(USE_BUILTIN.solaris-pam)
-. if ${PREFER.solaris-pam} == "pkgsrc"
-USE_BUILTIN.solaris-pam= no
-. else
-USE_BUILTIN.solaris-pam= ${IS_BUILTIN.solaris-pam}
-. if defined(BUILTIN_PKG.solaris-pam) && \
- !empty(IS_BUILTIN.solaris-pam:M[yY][eE][sS])
-USE_BUILTIN.solaris-pam= yes
-. for _dep_ in ${BUILDLINK_DEPENDS.solaris-pam}
-. if !empty(USE_BUILTIN.solaris-pam:M[yY][eE][sS])
-USE_BUILTIN.solaris-pam!= \
- if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.solaris-pam:Q}; then \
- ${ECHO} yes; \
- else \
- ${ECHO} no; \
- fi
-. endif
-. endfor
-. endif
-. endif # PREFER.solaris-pam
-.endif
-MAKEVARS+= USE_BUILTIN.solaris-pam
diff --git a/mk/subst.mk b/mk/subst.mk
deleted file mode 100644
index 30cb6d4bf76..00000000000
--- a/mk/subst.mk
+++ /dev/null
@@ -1,101 +0,0 @@
-# $NetBSD: subst.mk,v 1.23 2005/08/21 22:00:07 rillig Exp $
-#
-# This Makefile fragment implements a general text replacement facility.
-# Package makefiles define a ``class'', for each of which a particular
-# substitution description can be defined. For each class of files, a
-# target subst-<class> is created to perform the text replacement.
-#
-# The following variables are used:
-#
-# SUBST_CLASSES
-# A list of class names. A new class name must be appended (+=).
-#
-# SUBST_STAGE.<class>
-# "stage" at which we do the text replacement. Should be one of
-# {pre,do,post}-{extract,patch,configure,build,install}.
-#
-# SUBST_MESSAGE.<class>
-# The message to display when the substitution is done.
-#
-# SUBST_FILES.<class>
-# A list of file patterns on which to run the substitution;
-# the filenames are relative to ${WRKSRC}.
-#
-# SUBST_SED.<class>
-# sed(1) substitution expression to run on the specified files.
-#
-# SUBST_FILTER_CMD.<class>
-# Filter used to perform the actual substitution on the specified
-# files. Defaults to ${SED} ${SUBST_SED.<class>}.
-#
-# SUBST_POSTCMD.<class>
-# Command to clean up after sed(1). Defaults to ${RM} -f
-# $$file${_SUBST_BACKUP_SUFFIX}. For debugging, set it to ${DO_NADA}.
-
-ECHO_SUBST_MSG?= ${ECHO}
-
-# _SUBST_IS_TEXT_FILE returns 0 if $${file} is a text file.
-_SUBST_IS_TEXT_FILE?= \
- { ${TEST} -f "$$file" \
- && ${FILE_CMD} "$$file" \
- | ${EGREP} "(executable .* script|shell script|text)"; \
- } >/dev/null 2>&1
-
-_SUBST_BACKUP_SUFFIX= .subst.sav
-
-.for _class_ in ${SUBST_CLASSES}
-_SUBST_COOKIE.${_class_}= ${WRKDIR}/.subst_${_class_}_done
-
-SUBST_FILTER_CMD.${_class_}?= ${SED} ${SUBST_SED.${_class_}}
-SUBST_POSTCMD.${_class_}?= ${RM} -f "$$tmpfile"
-
-SUBST_TARGETS+= subst-${_class_}
-_SUBST_TARGETS.${_class_}= subst-${_class_}-message
-_SUBST_TARGETS.${_class_}+= ${_SUBST_COOKIE.${_class_}}
-_SUBST_TARGETS.${_class_}+= subst-${_class_}-cookie
-
-.ORDER: ${_SUBST_TARGETS.${_class_}}
-
-. if defined(SUBST_STAGE.${_class_})
-${SUBST_STAGE.${_class_}}: subst-${_class_}
-. endif
-
-.PHONY: subst-${_class_}
-subst-${_class_}: ${_SUBST_TARGETS.${_class_}}
-
-.PHONY: subst-${_class_}-message
- subst-${_class_}-message:
-. if defined(SUBST_MESSAGE.${_class_})
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO_SUBST_MSG} "=> "${SUBST_MESSAGE.${_class_}}
-. endif
-
-.PHONY: subst-${_class_}-cookie
- subst-${_class_}-cookie:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${TOUCH} ${TOUCH_FLAGS} ${_SUBST_COOKIE.${_class_}}
-
-${_SUBST_COOKIE.${_class_}}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- cd ${WRKSRC:Q}; \
- files=${SUBST_FILES.${_class_}:Q}; \
- for file in $$files; do \
- file="./$$file"; \
- tmpfile="$$file"${_SUBST_BACKUP_SUFFIX:Q}; \
- if ${_SUBST_IS_TEXT_FILE}; then \
- ${MV} -f "$$file" "$$tmpfile" || exit 1; \
- ${CAT} "$$tmpfile" \
- | ${SUBST_FILTER_CMD.${_class_}} \
- > "$$file"; \
- if ${TEST} -x "$$tmpfile"; then \
- ${CHMOD} +x "$$file"; \
- fi; \
- if ${CMP} -s "$$tmpfile" "$$file"; then \
- ${MV} -f "$$tmpfile" "$$file"; \
- else \
- ${SUBST_POSTCMD.${_class_}}; \
- ${ECHO} "$$file" >> ${.TARGET}; \
- fi; \
- fi; \
- done
-.endfor
diff --git a/mk/tex.buildlink3.mk b/mk/tex.buildlink3.mk
deleted file mode 100644
index 5cc40cc8a0f..00000000000
--- a/mk/tex.buildlink3.mk
+++ /dev/null
@@ -1,148 +0,0 @@
-# $NetBSD: tex.buildlink3.mk,v 1.1 2005/11/08 17:32:51 tonio Exp $
-#
-# A Makefile fragment for tex and latex packages
-#
-# * Determine the version of teTeX to be used.
-# Modify LATEX_DEFAULT to change the default version (default to teTeX2)
-#
-# * tex files are installed...
-# teTeX[1-2]
-# -> ${PREFIX}/share/texmf
-# teTeX3
-# ->${PREFIX}/share/texmf-local
-# The variables PKG_TEXMFPREFIX and PKG_LOCALTEXMFPREFIX defines the main
-# texmf tree, where teTeX should install his own texmf tree, and the local
-# texmf tree, which is the place where other packages should install their
-# latex files, like additional styles.
-# NOTE: before all latex related packages are converted to use these
-# variables, we will keep
-# PKG_TEXMFPREFIX=PKG_LOCALTEXMFPREFIX=${PREFIX}/share/texmf
-#
-# * Assume each package supports teTeX{2,3} by default.
-# To change the supported latex versions, define LATEX_ACCEPTED
-# explicitly before including mk/latex.buildlink3.mk. Note that the order is
-# important.
-#
-# * Optionally set LATEX_DEPMETHOD to "build" to only add a build-time
-# dependency on Latex. That may be useful for creating documentation
-#
-# Variables for users:
-#
-# LATEX_DEFAULT
-# Description:
-# The user's favorite latex implementation
-# Possible values:
-# teTeX1, teTeX2, teTeX3
-# Default value:
-# teTeX2
-#
-# Variables tex packages can provide:
-#
-# LATEX_DEPMETHOD
-# Description:
-# Set latex as DEPENDS or BUILD_DEPENDS
-# Possible values:
-# run, build
-# Default value:
-# run
-#
-# LATEX_ACCEPTED
-# Description:
-# Versions the package accepts (supports).
-# Possible values:
-# teTeX1, teTeX2, teTeX3
-# Default value:
-# teTeX2, teTeX3
-#
-# Variables provided for tex packages:
-#
-# PKG_TEXMFPREFIX
-# Description:
-# Path to the directory the standard tex files can be found
-# Possible values:
-# ${PREFIX}/share/texmf
-# ${PREFIX}/share/texmf-dist
-#
-# PKG_LOCALTEXMFPREFIX
-# Description:
-# Path to the directory the tex for extentions should be installed into
-# Possible values:
-# ${PREFIX}/share/texmf
-# ${PREFIX}/share/texmf-local
-#
-# LATEX_TYPE
-# Description:
-# The type of the used latex package
-# Possible values:
-# teTeX1, teTeX2, teTeX3
-
-.if !defined(TEX_BUILDLINK3_MK)
-TEX_BUILDLINK3_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-LATEX_DEFAULT?= teTeX2
-LATEX_DEPMETHOD?= run
-
-# Assume only teTeX {2-3} are supported by default.
-LATEX_ACCEPTED?= teTeX2 teTeX3
-
-# set up variables for buildlink or depends
-#
-BUILDLINK_DEPENDS.teTeX1= teTeX-bin-1.[0-9]*
-BUILDLINK_PKGSRCDIR.teTeX1= ../../print/teTeX1-bin
-BUILDLINK_DEPENDS.teTeX2= teTeX-bin-2.[0-9]*
-BUILDLINK_PKGSRCDIR.teTeX2= ../../print/teTeX-bin
-BUILDLINK_DEPENDS.teTeX3= teTeX-bin-3.[0-9]*
-BUILDLINK_PKGSRCDIR.teTeX3= ../../print/teTeX3-bin
-
-# Determine the Latex version to be used.
-#
-.if !defined(_LATEX_TYPE)
-_LATEX_TYPE= ${LATEX_DEFAULT}
-.endif
-
-.if !empty(LATEX_ACCEPTED:M${_LATEX_TYPE})
-LATEX_TYPE= ${_LATEX_TYPE}
-.else
-LATEX_TYPE= none
-.endif
-
-# Set version specifics.
-#
-.if ${LATEX_TYPE} == "teTeX3"
-_LATEX_DEPENDENCY= ${BUILDLINK_DEPENDS.teTeX3}
-_LATEX_PKGSRCDIR= ${BUILDLINK_PKGSRCDIR.teTeX3}
-#PKG_TEXMFPREFIX= ${PREFIX}/share/texmf-dist
-PKG_TEXMFPREFIX= ${PREFIX}/share/texmf
-#PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf-local
-PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf
-.elif ${LATEX_TYPE} == "teTeX2"
-_LATEX_DEPENDENCY= ${BUILDLINK_DEPENDS.teTeX2}
-_LATEX_PKGSRCDIR= ${BUILDLINK_PKGSRCDIR.teTeX2}
-PKG_TEXMFPREFIX= ${PREFIX}/share/texmf
-PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf
-.elif ${LATEX_TYPE} == "teTeX1"
-_LATEX_DEPENDENCY= ${BUILDLINK_DEPENDS.teTeX1}
-_LATEX_PKGSRCDIR= ${BUILDLINK_PKGSRCDIR.teTeX1}
-PKG_TEXMFPREFIX= ${PREFIX}/share/texmf
-PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf
-.endif
-
-PLIST_SUBST+= LATEX_TYPE=${LATEX_TYPE}
-PLIST_SUBST+= PKG_TEXMFPREFIX=${PKG_TEXMFPREFIX:C|^${PREFIX}/||}
-PLIST_SUBST+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX:C|^${PREFIX}/||}
-
-.endif # TEX_BUILDLINK3_MK
-
-.if ${LATEX_TYPE} == "none"
-PKG_FAIL_REASON= \
- "${_LATEX_TYPE} is not an acceptable latex version for ${PKGNAME}."
-.else
-.if (${LATEX_DEPMETHOD} == "build")
-BUILD_DEPENDS+= ${_LATEX_DEPENDENCY}:${_LATEX_PKGSRCDIR}
-.else
-LATEX_DEPMETHOD:= run
-. include "${_LATEX_PKGSRCDIR}/buildlink3.mk"
-.endif
-.endif
diff --git a/mk/texinfo.mk b/mk/texinfo.mk
deleted file mode 100644
index af8bedc8144..00000000000
--- a/mk/texinfo.mk
+++ /dev/null
@@ -1,162 +0,0 @@
-# $NetBSD: texinfo.mk,v 1.28 2005/05/11 02:07:37 jlam Exp $
-#
-# Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Stoned Elipot.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment is included by bsd.pkg.mk when INFO_FILES is
-# not empty or USE_MAKEINFO is not "no".
-#
-
-.if !defined(TEXINFO_MK)
-TEXINFO_MK= # defined
-
-.if !empty(INFO_FILES)
-#
-# Handle install-info.
-#
-
-# Use pkginstall framework i.e. INSTALL/DEINSTALL scripts to handle
-# install-info execution.
-#
-USE_PKGINSTALL= YES
-
-# Pathname relative to ${PREFIX} of directory holding the info
-# files and the Info dir file.
-INFO_DIR?= info
-
-# Does the system have the install-info command?
-# Any version will fit (really?).
-_INSTALL_INFO=
-. for _i_ in /usr/bin/install-info /sbin/install-info
-. if exists(${_i_}) && (${LOCALBASE} != ${_i_:C|/[^/]+/install-info$||})
-_INSTALL_INFO= ${_i_}
-. endif
-. endfor
-
-# If no install-info was found provide one with the pkg_install-info package.
-# And set INSTALL_INFO to the install-info command it provides.
-. if empty(_INSTALL_INFO)
-_PKG_INSTALL_INFO_PREFIX_DEFAULT= ${LOCALBASE}
-DEPENDS+= pkg_install-info-[0-9]*:../../pkgtools/pkg_install-info
-EVAL_PREFIX+= _PKG_INSTALL_INFO_PREFIX=pkg_install-info
-INSTALL_INFO= ${_PKG_INSTALL_INFO_PREFIX}/bin/pkg_install-info
-. else
-INSTALL_INFO= ${_INSTALL_INFO}
-. endif
-
-# Generate INSTALL/DEINSTALL scripts code for handling install-info.
-INSTALL_EXTRA_TMPL+= ${.CURDIR}/../../mk/install/install-info
-DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/../../mk/install/install-info
-FILES_SUBST+= INFO_FILES=${INFO_FILES:Q}
-FILES_SUBST+= INSTALL_INFO=${INSTALL_INFO:Q}
-FILES_SUBST+= INFO_DIR=${INFO_DIR:Q}
-.endif # INFO_FILES
-
-.if empty(USE_MAKEINFO:M[nN][oO])
-#
-# Handle makeinfo.
-#
-
-# Minimum required version for the GNU makeinfo command.
-TEXINFO_REQD?= 3.12
-_TEXINFO_REQD_MAJOR= ${TEXINFO_REQD:C|\..*$||}
-_TEXINFO_REQD_MINOR= ${TEXINFO_REQD:C|^[0-9]+\.||:C|\..*$||}
-
-# Argument to specify maximum info files size for newer versions
-# of makeinfo. This argument is supported since makeinfo 4.1.
-_MAKEINFO_SPLIT_SIZE_ARG+= --split-size=50000
-
-# The minimum version of makeinfo for which the default info files size
-# was bumped from 50000.
-_MAKEINFO_SPLIT_SIZE_VERSION= 4.6
-
-# Add OPSYS specific flags if any.
-MAKEINFO_ARGS+= ${_OPSYS_MAKEINFO_ARGS}
-
-# Does the system has a makeinfo command?
-_MAKEINFO=
-. for _i_ in /usr/bin/makeinfo
-. if exists(${_i_})
-_MAKEINFO= ${_i_}
-. endif
-. endfor
-
-# Record makeinfo's version.
-# If makeinfo's version contains useful information outside the first
-# two dot separated numbers the following would have to be changed as well
-# as _{MAKEINFO,TEXINFO_REQD}_{MAJOR,MINOR} and their comparison below.
-. if !empty(_MAKEINFO) && !defined(MAKEINFO_VERSION)
-MAKEINFO_VERSION_OUTPUT!= ${_MAKEINFO} --version 2>/dev/null || ${ECHO}
-MAKEINFO_VERSION=
-. for _i_ in ${MAKEINFO_VERSION_OUTPUT:M[0-9]*.[0-9]*:C/[^0-9.]//}
-. if empty(MAKEINFO_VERSION)
-MAKEINFO_VERSION= ${_i_}
-. endif
-. endfor
-MAKEFLAGS+= MAKEINFO_VERSION=${MAKEINFO_VERSION}
-. endif
-
-# Sort out if the version provided by devel/gtexinfo is needed.
-# If it is add it as build time dependency and set MAKEINFO
-# to the makeinfo it provides.
-# Here it is assumed devel/gtexinfo's makeinfo version will be
-# superior or equal to TEXINFO_REQD.
-_NEED_TEXINFO= YES
-. if defined(MAKEINFO_VERSION)
-_MAKEINFO_VERSION_MAJOR= ${MAKEINFO_VERSION:C|\..*$||}
-_MAKEINFO_VERSION_MINOR= ${MAKEINFO_VERSION:C|^[0-9]+\.||:C|\..*$||}
-. if ${_MAKEINFO_VERSION_MAJOR} > ${_TEXINFO_REQD_MAJOR}
-_NEED_TEXINFO= NO
-. elif ${_MAKEINFO_VERSION_MAJOR} == ${_TEXINFO_REQD_MAJOR} && ${_MAKEINFO_VERSION_MINOR} >= ${_TEXINFO_REQD_MINOR}
-_NEED_TEXINFO= NO
-. endif
-. endif
-. if !empty(_NEED_TEXINFO:M[yY][eE][sS])
-BUILD_DEPENDS+= gtexinfo>=${TEXINFO_REQD}:../../devel/gtexinfo
-_GTEXINFO_PREFIX_DEFAULT= ${LOCALBASE}
-EVAL_PREFIX+= _GTEXINFO_PREFIX=gtexinfo
-# assume devel/gtexinfo version is >= ${_MAKEINFO_SPLIT_SIZE_VERSION}
-MAKEINFO_ARGS+= ${_MAKEINFO_SPLIT_SIZE_ARG}
-MAKEINFO= ${_GTEXINFO_PREFIX}/bin/makeinfo ${MAKEINFO_ARGS}
-. else
-. if defined(MAKEINFO_VERSION) && ${MAKEINFO_VERSION} >= ${_MAKEINFO_SPLIT_SIZE_VERSION}
-MAKEINFO_ARGS+= ${_MAKEINFO_SPLIT_SIZE_ARG}
-. endif
-MAKEINFO= ${_MAKEINFO} ${MAKEINFO_ARGS}
-. endif
-.endif # USE_MAKEINFO
-
-.endif # TEXINFO_MK
diff --git a/mk/tools/autoconf.mk b/mk/tools/autoconf.mk
deleted file mode 100644
index db41c00d056..00000000000
--- a/mk/tools/autoconf.mk
+++ /dev/null
@@ -1,218 +0,0 @@
-# $NetBSD: autoconf.mk,v 1.13 2005/07/17 21:36:24 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment handles packages that use GNU autoconf.
-#
-# By default, all of the autoconf-related scripts are marked as
-# "missing" by running the GNU missing script in place of the utility.
-# This hides the autoconf-related scripts from makefiles that aggressively
-# call them when some of the inputs are modified in ways the makefiles
-# don't expect.
-#
-# If a package needs to use GNU autoconf, then the package Makefile
-# should contain one of the following lines:
-#
-# USE_TOOLS+= autoconf # use recent GNU autoconf (>=2.50)
-# USE_TOOLS+= autoconf213 # use GNU autoconf ~2.13
-#
-# This will allow the package to invoke "autoconf", "autoreconf", etc.
-# by their usual, bare names.
-#
-# If a particular minimum version of autoconf is required, then the
-# package Makefile can additionally set AUTOCONF_REQD to the desired
-# version, e.g.:
-#
-# AUTOCONF_REQD= 2.54 # use at least autoconf>=2.54
-#
-# To globally prevent any GNU autoconf handling, set the following
-# in the package Makefile:
-#
-# AUTOMAKE_OVERRIDE= no
-#
-
-# Only allow one of "autoconf" and "autoconf213" in USE_TOOLS.
-.if !empty(USE_TOOLS:C/:.*//:Mautoconf) && \
- !empty(USE_TOOLS:C/:.*//:Mautoconf213)
-PKG_FAIL_REASON+= "\`\`autoconf'' and \`\`autoconf213'' conflict in USE_TOOLS."
-.endif
-
-# This is an exhaustive list of all of the scripts supplied by GNU
-# autoconf.
-#
-_TOOLS_AC_NAMES= autoconf autoconf-2.13
-_TOOLS_AC_NAMES+= autoheader autoheader-2.13
-_TOOLS_AC_NAMES+= autom4te
-_TOOLS_AC_NAMES+= autoreconf autoreconf-2.13
-_TOOLS_AC_NAMES+= autoscan autoscan-2.13
-_TOOLS_AC_NAMES+= autoupdate autoupdate-2.13
-_TOOLS_AC_NAMES+= ifnames ifnames-2.13
-
-.for _t_ in ${_TOOLS_AC_NAMES}
-_TOOLS_AC_TYPE.${_t_}?= TOOLS_GNU_MISSING
-.endfor _t_
-
-.if !defined(TOOLS_IGNORE.autoconf) && !empty(USE_TOOLS:C/:.*//:Mautoconf)
-. if !empty(PKGPATH:Mdevel/autoconf)
-MAKEFLAGS+= TOOLS_IGNORE.autoconf=
-. else
-AUTOCONF_REQD?= 2.50
-
-. if !empty(USE_TOOLS:Mautoconf\:run)
-_TOOLS_DEPMETHOD.autoconf= DEPENDS
-. else
-_TOOLS_DEPMETHOD.autoconf= BUILD_DEPENDS
-. endif
-TOOLS_DEPENDS.autoconf?= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf
-. if empty(${_TOOLS_DEPMETHOD.autoconf}:M${TOOLS_DEPENDS.autoconf})
-${_TOOLS_DEPMETHOD.autoconf}+= ${TOOLS_DEPENDS.autoconf}
-. endif
-EVAL_PREFIX+= _TOOLS_AC_PREFIX=autoconf
-
-_TOOLS_AC_TYPE.autoconf= TOOLS_CREATE
-TOOLS_PATH.autoconf= ${_TOOLS_AC_PREFIX}/bin/autoconf
-
-_TOOLS_AC_TYPE.autoheader= TOOLS_CREATE
-TOOLS_PATH.autoheader= ${_TOOLS_AC_PREFIX}/bin/autoheader
-
-_TOOLS_AC_TYPE.autom4te= TOOLS_CREATE
-TOOLS_PATH.autom4te= ${_TOOLS_AC_PREFIX}/bin/autom4te
-
-_TOOLS_AC_TYPE.autoreconf= TOOLS_CREATE
-TOOLS_PATH.autoreconf= ${_TOOLS_AC_PREFIX}/bin/autoreconf
-
-_TOOLS_AC_TYPE.autoscan= TOOLS_CREATE
-TOOLS_PATH.autoscan= ${_TOOLS_AC_PREFIX}/bin/autoscan
-
-_TOOLS_AC_TYPE.autoupdate= TOOLS_CREATE
-TOOLS_PATH.autoupdate= ${_TOOLS_AC_PREFIX}/bin/autoupdate
-
-_TOOLS_AC_TYPE.ifnames= TOOLS_CREATE
-TOOLS_PATH.ifnames= ${_TOOLS_AC_PREFIX}/bin/ifnames
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.autoconf213) && !empty(USE_TOOLS:C/:.*//:Mautoconf213)
-. if !empty(PKGPATH:Mdevel/autoconf213)
-MAKEFLAGS+= TOOLS_IGNORE.autoconf213=
-. else
-AUTOCONF_REQD?= 2.13
-
-. if !empty(USE_TOOLS:Mautoconf213\:run)
-_TOOLS_DEPMETHOD.autoconf213= DEPENDS
-. else
-_TOOLS_DEPMETHOD.autoconf213= BUILD_DEPENDS
-. endif
-TOOLS_DEPENDS.autoconf213?= autoconf213>=${AUTOCONF_REQD}:../../devel/autoconf213
-. if empty(${_TOOLS_DEPMETHOD.autoconf213}:M${TOOLS_DEPENDS.autoconf213})
-${_TOOLS_DEPMETHOD.autoconf213}+= ${TOOLS_DEPENDS.autoconf213}
-. endif
-EVAL_PREFIX+= _TOOLS_AC_PREFIX=autoconf213
-
-_TOOLS_AC_TYPE.autoconf-2.13= TOOLS_CREATE
-_TOOLS_AC_TYPE.autoconf= # empty
-TOOLS_PATH.autoconf-2.13= ${_TOOLS_AC_PREFIX}/bin/autoconf-2.13
-TOOLS_ALIASES.autoconf-2.13= autoconf
-
-_TOOLS_AC_TYPE.autoheader-2.13= TOOLS_CREATE
-_TOOLS_AC_TYPE.autoheader= # empty
-TOOLS_PATH.autoheader-2.13= ${_TOOLS_AC_PREFIX}/bin/autoheader-2.13
-TOOLS_ALIASES.autoheader-2.13= autoheader
-
-_TOOLS_AC_TYPE.autoreconf-2.13= TOOLS_CREATE
-_TOOLS_AC_TYPE.autoreconf= # empty
-TOOLS_PATH.autoreconf-2.13= ${_TOOLS_AC_PREFIX}/bin/autoreconf-2.13
-TOOLS_ALIASES.autoreconf-2.13= autoreconf
-
-_TOOLS_AC_TYPE.autoscan-2.13= TOOLS_CREATE
-_TOOLS_AC_TYPE.autoscan= # empty
-TOOLS_PATH.autoscan-2.13= ${_TOOLS_AC_PREFIX}/bin/autoscan-2.13
-TOOLS_ALIASES.autoscan-2.13= autoscan
-
-_TOOLS_AC_TYPE.autoupdate-2.13= TOOLS_CREATE
-_TOOLS_AC_TYPE.autoupdate= # empty
-TOOLS_PATH.autoupdate-2.13= ${_TOOLS_AC_PREFIX}/bin/autoupdate-2.13
-TOOLS_ALIASES.autoupdate-2.13= autoupdate
-
-_TOOLS_AC_TYPE.ifnames-2.13= TOOLS_CREATE
-_TOOLS_AC_TYPE.ifnames= # empty
-TOOLS_PATH.ifnames-2.13= ${_TOOLS_AC_PREFIX}/bin/ifnames-2.13
-TOOLS_ALIASES.ifnames-2.13= ifnames
-
-. if defined(USE_LIBTOOL)
-pre-configure: tools-libtool-m4-override
-. endif
-. endif
-.endif
-
-# If the package wants to override the GNU auto* tools, then do it.
-AUTOMAKE_OVERRIDE?= yes
-.if !empty(AUTOMAKE_OVERRIDE:M[yY][eE][sS])
-. for _t_ in ${_TOOLS_AC_NAMES}
-. if !empty(_TOOLS_AC_TYPE.${_t_})
-${_TOOLS_AC_TYPE.${_t_}}+= ${_t_}
-. endif
-. endfor
-.endif
-
-# LIBTOOL_M4_OVERRIDE lists the locations where the libtool.m4 symlink
-# will be created. The libtool.m4 symlink is only created if a GNU
-# configure script exists at that location.
-#
-LIBTOOL_M4_OVERRIDE?= libtool.m4 */libtool.m4 */*/libtool.m4
-
-# Symlink the libtool-1.4.m4 file into any directory in which there's
-# a configure script under ${WRKSRC}. The symlink is called "libtool.m4",
-# which is the name expected by the autoconf tools. The symlinking
-# is only done if we need autoconf-2.13 and libtool. This allows
-# autoconf-2.13, autoreconf-2.13 and aclocal-2.13 to use the older
-# libtool.m4 file when regenerating files. This is okay, because we
-# later override the generated libtool file anyway.
-#
-.PHONY: tools-libtool-m4-override
-tools-libtool-m4-override:
-.for _pattern_ in ${LIBTOOL_M4_OVERRIDE}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- cd ${WRKSRC}; \
- for cfile in ${_pattern_:S/libtool.m4$/configure/}; do \
- if ${TEST} -f "$$cfile"; then \
- libtool_m4=`${DIRNAME} $$cfile`/libtool.m4; \
- ${LN} -sf ${PKGSRCDIR}/mk/gnu-config/libtool-1.4.m4 \
- $$libtool_m4; \
- fi; \
- done
-.endfor
diff --git a/mk/tools/automake.mk b/mk/tools/automake.mk
deleted file mode 100644
index 3fdd6bad942..00000000000
--- a/mk/tools/automake.mk
+++ /dev/null
@@ -1,190 +0,0 @@
-# $NetBSD: automake.mk,v 1.16 2005/07/17 21:36:24 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment handles packages that use GNU automake.
-#
-# By default, all of the automake-related scripts are marked as
-# "missing" by running the GNU missing script in place of the utility.
-# This hides the automake-related scripts from makefiles that aggressively
-# call them when some of the inputs are modified in ways the makefiles
-# don't expect.
-#
-# If a package needs to use GNU automake, then the package Makefile
-# should contain one of the following lines:
-#
-# USE_TOOLS+= automake # use recent GNU automake (>=1.9)
-# USE_TOOLS+= automake14 # use GNU automake ~1.4
-#
-# This will allow the package to invoke "aclocal" and "automake" by
-# their usual, bare names.
-#
-# If a particular minimum version of automake is required, then the
-# package Makefile can additionally set AUTOMAKE_REQD to the desired
-# version, e.g.:
-#
-# AUTOMAKE_REQD= 1.8 # use at least automake>=1.8
-#
-# If a package additionally needs to regenerate configure scripts and
-# Makefiles that use gettext, then the package Makefile should contain
-# the following line:
-#
-# USE_TOOLS+= gettext-m4 # need gettext.m4 to re-gen files
-#
-# To globally prevent any GNU automake handling, set the following
-# in the package Makefile:
-#
-# AUTOMAKE_OVERRIDE= no
-#
-
-# This variable is obsoleted, but continue to allow it until packages
-# have been taught to use the new syntax.
-#
-.if defined(BUILD_USES_GETTEXT_M4)
-USE_TOOLS+= gettext-m4
-.endif
-
-# Only allow one of "automake" and "automake14" in USE_TOOLS.
-.if !empty(USE_TOOLS:C/:.*//:Mautomake) && \
- !empty(USE_TOOLS:C/:.*//:Mautomake14)
-PKG_FAIL_REASON+= "\`\`automake'' and \`\`automake14'' conflict in USE_TOOLS."
-.endif
-
-# This is an exhaustive list of all of the scripts supplied by GNU
-# automake.
-#
-_TOOLS_AM_NAMES= aclocal aclocal-1.4 \
- aclocal-1.5 \
- aclocal-1.6 \
- aclocal-1.7 \
- aclocal-1.8 \
- aclocal-1.9
-_TOOLS_AM_NAMES+= automake automake-1.4 \
- automake-1.5 \
- automake-1.6 \
- automake-1.7 \
- automake-1.8 \
- automake-1.9
-
-.for _t_ in ${_TOOLS_AM_NAMES}
-_TOOLS_AM_TYPE.${_t_}?= TOOLS_GNU_MISSING
-.endfor
-
-.if !defined(TOOLS_IGNORE.automake) && !empty(USE_TOOLS:C/:.*//:Mautomake)
-. if !empty(PKGPATH:Mdevel/automake)
-MAKEFLAGS+= TOOLS_IGNORE.automake=
-. else
-AUTOMAKE_REQD?= 1.9
-AUTOCONF_REQD?= 2.58
-
-. if !empty(USE_TOOLS:Mautomake\:run)
-_TOOLS_DEPMETHOD.automake= DEPENDS
-. else
-_TOOLS_DEPMETHOD.automake= BUILD_DEPENDS
-. endif
-TOOLS_DEPENDS.automake?= automake>=${AUTOMAKE_REQD}:../../devel/automake
-. if empty(${_TOOLS_DEPMETHOD.automake}:M${TOOLS_DEPENDS.automake})
-${_TOOLS_DEPMETHOD.automake}+= ${TOOLS_DEPENDS.automake}
-. endif
-EVAL_PREFIX+= _TOOLS_AM_PREFIX=automake
-
-_TOOLS_AM_TYPE.aclocal= TOOLS_CREATE
-TOOLS_PATH.aclocal= ${_TOOLS_AM_PREFIX}/bin/aclocal
-
-_TOOLS_AM_TYPE.automake= TOOLS_CREATE
-TOOLS_PATH.automake= ${_TOOLS_AM_PREFIX}/bin/automake
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.automake14) && !empty(USE_TOOLS:C/:.*//:Mautomake14)
-. if !empty(PKGPATH:Mdevel/automake14)
-MAKEFLAGS+= TOOLS_IGNORE.automake14=
-. else
-AUTOMAKE_REQD?= 1.4
-AUTOCONF_REQD?= 2.13
-
-. if !empty(USE_TOOLS:Mautomake14\:run)
-_TOOLS_DEPMETHOD.automake14= DEPENDS
-. else
-_TOOLS_DEPMETHOD.automake14= BUILD_DEPENDS
-. endif
-TOOLS_DEPENDS.automake14?= automake14>=${AUTOMAKE_REQD}:../../devel/automake14
-. if empty(${_TOOLS_DEPMETHOD.automake14}:M${TOOLS_DEPENDS.automake14})
-${_TOOLS_DEPMETHOD.automake14}+= ${TOOLS_DEPENDS.automake14}
-. endif
-EVAL_PREFIX+= _TOOLS_AM_PREFIX=automake14
-
-_TOOLS_AM_TYPE.aclocal-1.4= TOOLS_CREATE
-_TOOLS_AM_TYPE.aclocal= # empty
-TOOLS_PATH.aclocal-1.4= ${_TOOLS_AM_PREFIX}/bin/aclocal-1.4
-TOOLS_ALIASES.aclocal-1.4= aclocal
-
-_TOOLS_AM_TYPE.automake-1.4= TOOLS_CREATE
-_TOOLS_AM_TYPE.automake= # empty
-TOOLS_PATH.automake-1.4= ${_TOOLS_AM_PREFIX}/bin/automake-1.4
-TOOLS_ALIASES.automake-1.4= automake
-. endif
-.endif
-
-# Discover which version of autoconf should be used with automake.
-.if !empty(USE_TOOLS:Mautomake) || !empty(USE_TOOLS:Mautomake14)
-. if !defined(_TOOLS_AM_AUTOCONF)
-_TOOLS_AM_AUTOCONF!= \
- dep="autoconf>="${AUTOCONF_REQD:Q}; \
- if ${PKG_ADMIN} pmatch "$$dep" autoconf-2.13; then \
- ${ECHO} "autoconf213"; \
- else \
- ${ECHO} "autoconf"; \
- fi
-. endif
-MAKEVARS+= _TOOLS_AM_AUTOCONF
-USE_TOOLS+= ${_TOOLS_AM_AUTOCONF}
-.endif
-
-# If the package wants to override the GNU auto* tools, then do it.
-AUTOMAKE_OVERRIDE?= yes
-.if !empty(AUTOMAKE_OVERRIDE:M[yY][eE][sS])
-. for _t_ in ${_TOOLS_AM_NAMES}
-. if !empty(_TOOLS_AM_TYPE.${_t_})
-${_TOOLS_AM_TYPE.${_t_}}+= ${_t_}
-. endif
-. endfor
-.endif
-
-.if !empty(USE_TOOLS:Mgettext-m4)
-BUILD_DEPENDS+= {gettext-0.10.35nb1,gettext-m4-[0-9]*}:../../devel/gettext-m4
-.endif
diff --git a/mk/tools/bootstrap.mk b/mk/tools/bootstrap.mk
deleted file mode 100644
index 0e100c5986f..00000000000
--- a/mk/tools/bootstrap.mk
+++ /dev/null
@@ -1,128 +0,0 @@
-# $NetBSD: bootstrap.mk,v 1.7 2005/10/09 20:19:26 heinz Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# bootstrap.mk contains settings matching the contents of
-# pkgsrc/bootstrap/bootstrap. Where we install the bootstrap versions
-# of tools, we point TOOLS_PLATFORM.* to them so that pkgsrc knows
-# that they are system-supplied and won't need replacement by pkgsrc
-# versions of those tools.
-#
-# XXX This file should go away and the bootstrap script should be
-# XXX taught to write out the correct TOOLS_PLATFORM.* definitions
-# XXX on its own, based on the configuration used.
-#
-
-.if ${OPSYS} == "AIX"
-TOOLS_PLATFORM.install?= ${LOCALBASE}/bin/install-sh
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.strip?= ${LOCALBASE}/bin/strip
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "Darwin"
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "DragonFly"
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "FreeBSD"
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "HPUX"
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "Interix"
-TOOLS_PLATFORM.install?= ${LOCALBASE}/bin/install-sh
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "IRIX"
-TOOLS_PLATFORM.install?= ${LOCALBASE}/bin/install-sh
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "Linux"
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "NetBSD"
-# NetBSD has everything.
-
-.elif ${OPSYS} == "OpenBSD"
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "OSF1"
-TOOLS_PLATFORM.install?= ${LOCALBASE}/bin/install-sh
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "SunOS"
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "UnixWare"
-TOOLS_PLATFORM.mkdir?= ${LOCALBASE}/sbin/mkdir-sh -p
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.else
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.sed?= ${LOCALBASE}/bin/nbsed
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-.endif
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk
deleted file mode 100644
index f12695bcb9a..00000000000
--- a/mk/tools/bsd.tools.mk
+++ /dev/null
@@ -1,218 +0,0 @@
-# $NetBSD: bsd.tools.mk,v 1.32 2005/08/10 20:56:20 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment creates tools under ${TOOLS_DIR} that are
-# found before similarly-named tools in the system path.
-#
-# TOOLS_CREATE is a whitespace-separated list of tools for which a
-# corresponding tool is created. Either a wrapper script or a
-# symlink is created depending on the tool that is being
-# overridden.
-#
-# The following variables specify the details of each <tool>:
-#
-# TOOLS_CMD.<tool> is the path to the tool under ${TOOLS_DIR}. This
-# variable is optional, and if left unspecified it defaults to
-# ${TOOLS_DIRS}/bin/<tool>.
-#
-# TOOLS_ALIASES.<tool> is a whitespace-separated list of names for
-# which <tool> should also be created under ${TOOLS_DIR}.
-#
-# TOOLS_PATH.<tool> is the path to the actual command that is
-# invoked when ${TOOLS_CMD.<tool>} is called. If <tool> should
-# be a symlink, then this variable is required and should be a
-# full path. If <tool> should be a wrapper, then this variable
-# is required unless TOOLS_SCRIPT.<tool> is defined (see below).
-#
-# The following variables specify further details of each <tool> and
-# if set, cause a wrapper script to be created.
-#
-# TOOLS_ARGS.<tool> additional arguments that are passed to the real
-# command ahead of any command-line arguments. This variable is
-# optional.
-#
-# TOOLS_SCRIPT.<tool> specifies the Bourne-shell scriptlet to embed
-# in the wrapper script that is executed when <tool> is called.
-# This variable is optional, and if left unspecified, then this
-# is built up from TOOLS_PATH.<tool> and TOOLS_ARGS.<tool> by
-# default.
-#
-# The following variables provide shortcuts for creating certain classes
-# of tools:
-#
-# TOOLS_NOOP is a list of tools that do nothing and return true.
-#
-# TOOLS_BROKEN is a list of tools that do nothing and return false.
-#
-# TOOLS_GNU_MISSING is a list of tools for which the GNU missing
-# script is invoked in place of the real tool. This is used
-# primarily to hide GNU auto* tools.
-#
-
-.if !defined(BSD_TOOLS_MK)
-BSD_TOOLS_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-# Prepend ${TOOLS_DIR}/bin to the PATH so that our scripts are found
-# first when searching for executables.
-#
-TOOLS_DIR= ${WRKDIR}/.tools
-PREPEND_PATH+= ${TOOLS_DIR}/bin
-
-TOOLS_SHELL?= ${SH}
-_TOOLS_WRAP_LOG= ${WRKLOG}
-
-.PHONY: do-tools override-tools
-do-tools: override-tools
-override-tools: .OPTIONAL
-
-USE_TOOLS?= # empty
-
-# Include the other mk/tools/*.mk files here that help specify the
-# wrappers and symlinks that will be created by this file. Order
-# matters!
-#
-.include "../../mk/tools/automake.mk"
-.include "../../mk/tools/autoconf.mk"
-.include "../../mk/tools/texinfo.mk"
-.include "../../mk/tools/ldconfig.mk"
-.include "../../mk/tools/rpcgen.mk"
-.include "../../mk/tools/strip.mk"
-.include "../../mk/tools/imake.mk"
-.include "../../mk/tools/replace.mk"
-.include "../../mk/tools/perl.mk"
-.include "../../mk/tools/pkg-config.mk"
-.include "../../mk/tools/make.mk"
-
-######################################################################
-
-.for _t_ in ${TOOLS_NOOP}
-TOOLS_CREATE+= ${_t_}
-TOOLS_SCRIPT.${_t_}?= exit 0
-.endfor
-
-.for _t_ in ${TOOLS_BROKEN}
-TOOLS_CREATE+= ${_t_}
-TOOLS_SCRIPT.${_t_}?= exit 1
-.endfor
-
-.for _t_ in ${TOOLS_GNU_MISSING}
-TOOLS_CREATE+= ${_t_}
-TOOLS_PATH.${_t_}?= ${PKGSRCDIR}/mk/gnu-config/missing
-TOOLS_SCRIPT.${_t_}?= ${TOOLS_PATH.${_t_}} ${_t_:T:C/-[0-9].*$//}
-.endfor
-
-######################################################################
-
-# These tools are used in the targets that actually create the wrappers
-# and symlinks. We define them here so that as a fallback, we'll just
-# use the ones in the PATH. This makes the tools framework more
-# standalone.
-
-CHMOD?= chmod
-ECHO?= echo
-FALSE?= false
-LN?= ln
-MKDIR?= mkdir -p
-
-######################################################################
-
-# If the command line was defined, then we create a wrapper.
-# If the real command isn't a full path, then we create a wrapper.
-# If some command arguments were given, then we create a wrapper.
-# Otherwise, we create a symlink.
-#
-# By default, the tool in ${TOOLS_DIR} will be in the "bin" directory
-# and will be called <tool>.
-#
-# The default wrapper script will invoke the real command, followed
-# by any arguments specified in TOOLS_ARGS.*, followed by any
-# command-line arguments passed to the wrapper script.
-#
-.for _t_ in ${TOOLS_CREATE}
-TOOLS_CMD.${_t_}?= ${TOOLS_DIR}/bin/${_t_}
-TOOLS_PATH.${_t_}?= ${FALSE}
-TOOLS_SCRIPT_DFLT.${_t_}= \
- ${TOOLS_PATH.${_t_}} ${TOOLS_ARGS.${_t_}} "$$@"
-
-override-tools: ${TOOLS_CMD.${_t_}}
-
-${TOOLS_CMD.${_t_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${TEST} -d ${.TARGET:H:Q} || \
- ${MKDIR} ${.TARGET:H:Q}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${TEST} -n ${TOOLS_SCRIPT.${_t_}:Q}""; then \
- create=wrapper; \
- script=${TOOLS_SCRIPT.${_t_}:Q}; \
- elif ${TEST} -n ${TOOLS_PATH.${_t_}:Q}""; then \
- if ${TEST} -n ${TOOLS_ARGS.${_t_}:Q}""; then \
- create=wrapper; \
- script=${TOOLS_SCRIPT_DFLT.${_t_}:Q}; \
- else \
- case ${TOOLS_PATH.${_t_}:Q}"" in \
- /*) create=symlink ;; \
- *) create=wrapper; \
- script=${TOOLS_SCRIPT_DFLT.${_t_}:Q}; \
- esac; \
- fi; \
- else \
- create=symlink; \
- fi; \
- case "$$create" in \
- wrapper) \
- { ${ECHO} '#!'${TOOLS_SHELL:Q}; \
- ${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-'${_TOOLS_WRAP_LOG:Q}'}"'; \
- ${ECHO} '${ECHO} "[*] "'${.TARGET:Q}'" $$@" >> $$wrapperlog'; \
- ${ECHO} "${ECHO} \"<.> $$script\" >> \$$wrapperlog"; \
- ${ECHO} "$$script"; \
- } > ${.TARGET:Q}; \
- ${CHMOD} +x ${.TARGET:Q}; \
- ;; \
- *) \
- ${LN} -fs ${TOOLS_PATH.${_t_}:Q} ${.TARGET:Q}; \
- ;; \
- esac
-. for _a_ in ${TOOLS_ALIASES.${_t_}}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${TEST} ${.TARGET:Q} = ${.TARGET:H:Q}/${_a_} || \
- ${LN} -fs ${.TARGET:T:Q} ${.TARGET:H:Q}/${_a_}
-. endfor
-.endfor
-
-.endif # BSD_TOOLS_MK
diff --git a/mk/tools/defaults.mk b/mk/tools/defaults.mk
deleted file mode 100644
index f65d17f2276..00000000000
--- a/mk/tools/defaults.mk
+++ /dev/null
@@ -1,200 +0,0 @@
-# $NetBSD: defaults.mk,v 1.42 2005/11/08 23:06:38 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-.if !defined(TOOLS_DEFAULTS_MK)
-TOOLS_DEFAULTS_MK= defined
-
-# These are the platform-specific lists of system-supplied tools.
-#
-# XXX These should eventually just migrate over to the appropriate
-# XXX pkgsrc/mk/platform/${OPSYS}.mk file.
-#
-.include "${_PKGSRC_TOPDIR}/mk/tools/bootstrap.mk"
-.if exists(${_PKGSRC_TOPDIR}/mk/tools/tools.${OPSYS}.mk)
-. include "${_PKGSRC_TOPDIR}/mk/tools/tools.${OPSYS}.mk"
-.endif
-
-######################################################################
-
-# "TOOL" variable names associated with each of the tools
-
-_TOOLS_VARNAME.awk= AWK
-_TOOLS_VARNAME.basename= BASENAME
-_TOOLS_VARNAME.bash= BASH
-_TOOLS_VARNAME.bison-yacc= YACC
-_TOOLS_VARNAME.byacc= YACC
-_TOOLS_VARNAME.bzcat= BZCAT
-_TOOLS_VARNAME.cat= CAT
-_TOOLS_VARNAME.chgrp= CHGRP
-_TOOLS_VARNAME.chmod= CHMOD
-_TOOLS_VARNAME.chown= CHOWN
-_TOOLS_VARNAME.cmp= CMP
-_TOOLS_VARNAME.cp= CP
-_TOOLS_VARNAME.csh= CSH
-_TOOLS_VARNAME.cut= CUT
-_TOOLS_VARNAME.date= DATE
-_TOOLS_VARNAME.diff= DIFF
-_TOOLS_VARNAME.dirname= DIRNAME
-_TOOLS_VARNAME.echo= ECHO
-_TOOLS_VARNAME.egrep= EGREP
-_TOOLS_VARNAME.env= SETENV
-_TOOLS_VARNAME.expr= EXPR
-_TOOLS_VARNAME.false= FALSE
-_TOOLS_VARNAME.fgrep= FGREP
-_TOOLS_VARNAME.file= FILE_CMD
-_TOOLS_VARNAME.find= FIND
-_TOOLS_VARNAME.gawk= AWK
-_TOOLS_VARNAME.gm4= M4
-_TOOLS_VARNAME.gmake= GMAKE
-_TOOLS_VARNAME.grep= GREP
-_TOOLS_VARNAME.gsed= SED
-_TOOLS_VARNAME.gtar= GTAR
-_TOOLS_VARNAME.gunzip= GUNZIP_CMD
-_TOOLS_VARNAME.gzcat= GZCAT
-_TOOLS_VARNAME.gzip= GZIP_CMD
-_TOOLS_VARNAME.head= HEAD
-_TOOLS_VARNAME.hostname= HOSTNAME_CMD
-_TOOLS_VARNAME.id= ID
-_TOOLS_VARNAME.imake= IMAKE
-_TOOLS_VARNAME.install= INSTALL
-_TOOLS_VARNAME.lex= LEX
-_TOOLS_VARNAME.lha= LHA
-_TOOLS_VARNAME.ln= LN
-_TOOLS_VARNAME.ls= LS
-_TOOLS_VARNAME.m4= M4
-_TOOLS_VARNAME.mail= MAIL_CMD
-_TOOLS_VARNAME.mkdir= MKDIR
-_TOOLS_VARNAME.mktemp= MKTEMP
-_TOOLS_VARNAME.mtree= MTREE
-_TOOLS_VARNAME.mv= MV
-_TOOLS_VARNAME.nice= NICE
-_TOOLS_VARNAME.nroff= NROFF
-_TOOLS_VARNAME.patch= PATCH
-_TOOLS_VARNAME.pax= PAX
-_TOOLS_VARNAME.perl= PERL5
-_TOOLS_VARNAME.pod2man= POD2MAN
-_TOOLS_VARNAME.printf= PRINTF
-_TOOLS_VARNAME.pwd= PWD_CMD
-_TOOLS_VARNAME.rm= RM
-_TOOLS_VARNAME.rmdir= RMDIR
-_TOOLS_VARNAME.sed= SED
-_TOOLS_VARNAME.sh= SH
-_TOOLS_VARNAME.shlock= SHLOCK
-_TOOLS_VARNAME.sleep= SLEEP
-_TOOLS_VARNAME.soelim= SOELIM
-_TOOLS_VARNAME.sort= SORT
-_TOOLS_VARNAME.tail= TAIL
-_TOOLS_VARNAME.tar= TAR
-_TOOLS_VARNAME.tbl= TBL
-_TOOLS_VARNAME.tclsh= TCLSH
-_TOOLS_VARNAME.tee= TEE
-_TOOLS_VARNAME.test= TEST
-_TOOLS_VARNAME.touch= TOUCH
-_TOOLS_VARNAME.tr= TR
-_TOOLS_VARNAME.true= TRUE
-_TOOLS_VARNAME.tsort= TSORT
-_TOOLS_VARNAME.unrar= UNRAR
-_TOOLS_VARNAME.unzip= UNZIP
-_TOOLS_VARNAME.unzoo= UNZOO
-_TOOLS_VARNAME.wc= WC
-_TOOLS_VARNAME.wish= WISH
-_TOOLS_VARNAME.xargs= XARGS
-_TOOLS_VARNAME.xmkmf= XMKMF_CMD
-_TOOLS_VARNAME.yacc= YACC
-
-######################################################################
-
-# "TOOL" variable names associated with each of the tools that are
-# expected by GNU configure script.
-
-_TOOLS_VARNAME_GNU.awk= AWK
-_TOOLS_VARNAME_GNU.bison-yacc= YACC
-_TOOLS_VARNAME_GNU.byacc= YACC
-_TOOLS_VARNAME_GNU.chmod= CHMOD
-_TOOLS_VARNAME_GNU.cmp= CMP
-_TOOLS_VARNAME_GNU.cp= CP
-_TOOLS_VARNAME_GNU.diff= DIFF
-_TOOLS_VARNAME_GNU.echo= ECHO ac_cv_path_ECHO
-_TOOLS_VARNAME_GNU.egrep= EGREP ac_cv_path_EGREP
-_TOOLS_VARNAME_GNU.env= SETENV ENV_PROG ac_cv_path_ENV
-_TOOLS_VARNAME_GNU.false= FALSE ac_cv_path_FALSE
-_TOOLS_VARNAME_GNU.find= FIND
-_TOOLS_VARNAME_GNU.gawk= AWK
-_TOOLS_VARNAME_GNU.gm4= M4
-_TOOLS_VARNAME_GNU.grep= GREP ac_cv_path_GREP
-_TOOLS_VARNAME_GNU.gsed= SED
-_TOOLS_VARNAME_GNU.gtar= TAR
-_TOOLS_VARNAME_GNU.hostname= HOSTNAME
-_TOOLS_VARNAME_GNU.lex= LEX
-_TOOLS_VARNAME_GNU.ln= LN
-_TOOLS_VARNAME_GNU.ls= LS
-_TOOLS_VARNAME_GNU.m4= M4
-_TOOLS_VARNAME_GNU.mkdir= MKDIR
-_TOOLS_VARNAME_GNU.mv= MV
-_TOOLS_VARNAME_GNU.perl= PERL PERL_PATH
-_TOOLS_VARNAME_GNU.rm= RM
-_TOOLS_VARNAME_GNU.rmdir= RMDIR
-_TOOLS_VARNAME_GNU.sed= SED
-_TOOLS_VARNAME_GNU.sort= SORT
-_TOOLS_VARNAME_GNU.tar= TAR
-_TOOLS_VARNAME_GNU.tclsh= TCLSH
-_TOOLS_VARNAME_GNU.test= TEST ac_cv_path_TEST
-_TOOLS_VARNAME_GNU.touch= TOUCH
-_TOOLS_VARNAME_GNU.tr= TR
-_TOOLS_VARNAME_GNU.true= TRUE ac_cv_path_TRUE
-_TOOLS_VARNAME_GNU.wish= WISH
-_TOOLS_VARNAME_GNU.xmkmf= XMKMF
-_TOOLS_VARNAME_GNU.yacc= YACC
-
-######################################################################
-
-# Set a default value for the TOOL names for each of the tools we
-# claim we'll use in USE_TOOLS to point to the platform command, e.g.,
-# TBL, YACC, etc. These tools are used in the top-level make(1), not
-# just in the targets, so these must be defined here, and this file be
-# included by bsd.prefs.mk.
-#
-.for _t_ in ${USE_TOOLS:C/:.*//:O:u}
-. if defined(_TOOLS_VARNAME.${_t_}) && \
- defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
-. for _v_ in ${_TOOLS_VARNAME.${_t_}}
-${_v_}?= ${TOOLS_PLATFORM.${_t_}}
-. endfor
-. endif
-.endfor
-
-.endif # TOOLS_DEFAULTS_MK
diff --git a/mk/tools/imake.mk b/mk/tools/imake.mk
deleted file mode 100644
index 499772427d0..00000000000
--- a/mk/tools/imake.mk
+++ /dev/null
@@ -1,80 +0,0 @@
-# $NetBSD: imake.mk,v 1.17 2005/07/17 21:36:24 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment defines additional variables that are used
-# by packages that need imake and xmkmf.
-#
-# Variables defined by this file are:
-#
-# XMKMF, TOOLS_XMKMF
-# command to create all Makefiles from Imakefiles,
-# usually "xmkmf -a".
-#
-# Optional variables that may be defined by the package are:
-#
-# IMAKEOPTS Options to pass to imake
-# XMKMF_FLAGS Options to pass to xmkmf
-#
-# A platform/${OPSYS}.mk file may note that additional tools are
-# required when using imake by setting IMAKE_TOOLS to the appropriate
-# value, e.g. IMAKE_TOOLS+=gmake to use GNU make to build packages
-# that use imake.
-#
-# This file needs to be included before replace.mk as it modifies the
-# USE_TOOLS variables that are used by replace.mk.
-#
-
-.if defined(USE_IMAKE)
-USE_TOOLS+= imake xmkmf
-.endif
-
-# imake and xmkmf imply each other
-.if !empty(USE_TOOLS:Mimake) || !empty(USE_TOOLS:Mxmkmf)
-USE_TOOLS+= imake xmkmf
-.endif
-
-# Add any extra tools that may be required when using imake, e.g. gmake.
-.if !empty(USE_TOOLS:Mimake)
-USE_TOOLS+= ${IMAKE_TOOLS:Nimake}
-.endif
-
-TOOLS_ARGS.imake?= ${IMAKEOPTS}
-TOOLS_ARGS.xmkmf?= ${XMKMF_FLAGS}
-
-TOOLS_XMKMF= ${${_TOOLS_VARNAME.xmkmf}} -a
-XMKMF= ${${_TOOLS_VARNAME.xmkmf}} -a
diff --git a/mk/tools/ldconfig.mk b/mk/tools/ldconfig.mk
deleted file mode 100644
index 759a22cb622..00000000000
--- a/mk/tools/ldconfig.mk
+++ /dev/null
@@ -1,55 +0,0 @@
-# $NetBSD: ldconfig.mk,v 1.5 2005/07/17 21:36:24 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# Depending on whether the platform has ldconfig, we cause
-# ${TOOLS_DIR}/bin/ldconfig to be either the correct ldconfig tool or
-# a no-op.
-#
-# Create TOOLS_LDCONFIG and LDCONFIG variables that point to the actual
-# commands that can be embedded into packages.
-#
-.if !defined(TOOLS_PLATFORM.ldconfig)
-TOOLS_NOOP+= ldconfig
-TOOLS_LDCONFIG?= ${TRUE}
-.else
-TOOLS_CREATE+= ldconfig
-TOOLS_PATH.ldconfig= ${TOOLS_PLATFORM.ldconfig}
-TOOLS_LDCONFIG?= ${TOOLS_PATH.ldconfig}
-.endif
-
-LDCONFIG?= ${TOOLS_LDCONFIG}
diff --git a/mk/tools/make.mk b/mk/tools/make.mk
deleted file mode 100644
index 4414a75029d..00000000000
--- a/mk/tools/make.mk
+++ /dev/null
@@ -1,61 +0,0 @@
-# $NetBSD: make.mk,v 1.13 2005/07/17 21:36:24 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment creates a tool called "make" under ${TOOLS_DIR}
-# that corresponds to the make program used to build the package.
-# This lets a bare "make" invoke the correct program if called from
-# within a makefile or script. It also sets MAKE_PROGRAM to the path
-# of that make program. Lastly, pass ${MAKE_PROGRAM} to GNU configure
-# scripts in the MAKE variable so that the scripts will embed the
-# correct path to the make program used to build the package
-# into the generated Makefiles.
-#
-
-# Define MAKE_PROGRAM to be the "make" used to build the package.
-.if !empty(_USE_TOOLS:Mgmake)
-MAKE_PROGRAM= ${GMAKE}
-.elif !empty(_USE_TOOLS:Mimake) && defined(IMAKE_MAKE)
-MAKE_PROGRAM= ${IMAKE_MAKE}
-.else
-MAKE_PROGRAM= ${MAKE}
-.endif
-
-TOOLS_CREATE+= make
-TOOLS_PATH.make= ${MAKE_PROGRAM}
-
-CONFIGURE_ENV+= MAKE=make
diff --git a/mk/tools/perl.mk b/mk/tools/perl.mk
deleted file mode 100644
index 9d026870bdb..00000000000
--- a/mk/tools/perl.mk
+++ /dev/null
@@ -1,63 +0,0 @@
-# $NetBSD: perl.mk,v 1.19 2005/08/06 06:18:45 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment defines additional variables that are used by
-# packages that use the perl tool.
-#
-
-.if defined(_USE_TOOLS) && !empty(_USE_TOOLS:Mperl)
-#
-# Define PERL5_* variables that locate the site directories for
-# ${PERL5}. These variables depend on PERL5 being properly defined
-# and existing on the filesystem. This needs to be done _after_
-# ${PERL5} is fully resolved, which happens after mk/tools/replace.mk
-# includes find-prefix.mk.
-#
-. include "../../lang/perl5/vars.mk"
-.else
-#
-# Some packages want the path to the perl tool, even if they don't have
-# dependency on perl, e.g. devel/cvs.
-#
-. if defined(TOOLS_PLATFORM.perl) && !empty(TOOLS_PLATFORM.perl)
-TOOLS_${_TOOLS_VARNAME.perl}?= ${TOOLS_PLATFORM.perl}
-. else
-TOOLS_${_TOOLS_VARNAME.perl}?= ${LOCALBASE}/bin/perl
-. endif
-${_TOOLS_VARNAME.perl}?= ${TOOLS_${_TOOLS_VARNAME.perl}}
-.endif
diff --git a/mk/tools/pkg-config.mk b/mk/tools/pkg-config.mk
deleted file mode 100644
index b722f62f7a2..00000000000
--- a/mk/tools/pkg-config.mk
+++ /dev/null
@@ -1,62 +0,0 @@
-# $NetBSD: pkg-config.mk,v 1.4 2005/10/01 14:30:15 jmmv Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# Override the location where pkg-config searches for *.pc files in the
-# pkg-config wrapper script.
-#
-_PKG_CONFIG_LIBDIR?= ${BUILDLINK_DIR}/lib/pkgconfig
-_PKG_CONFIG_LOG?= ${WRKDIR}/.pkg-config.log
-
-TOOLS_SCRIPT.pkg-config= \
- PKG_CONFIG_LIBDIR=${_PKG_CONFIG_LIBDIR:Q} ${TOOLS_SCRIPT_DFLT.pkg-config}
-
-CONFIGURE_ENV+= PKG_CONFIG=${TOOLS_CMD.pkg-config:Q}
-CONFIGURE_ENV+= PKG_CONFIG_LIBDIR=${_PKG_CONFIG_LIBDIR:Q}
-CONFIGURE_ENV+= PKG_CONFIG_LOG=${_PKG_CONFIG_LOG}
-MAKE_ENV+= PKG_CONFIG=${TOOLS_CMD.pkg-config:Q}
-MAKE_ENV+= PKG_CONFIG_LIBDIR=${_PKG_CONFIG_LIBDIR:Q}
-MAKE_ENV+= PKG_CONFIG_LOG=${_PKG_CONFIG_LOG}
-
-.if defined(PKG_DEVELOPER)
-post-build: pkgconfig-post-build
-
-pkgconfig-post-build:
- @if ${TEST} -f ${_PKG_CONFIG_LOG}; then \
- ${ECHO} "*** Please use pkgtools/verifypc to sanity check dependencies."; \
- fi
-.endif
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
deleted file mode 100644
index 55633670820..00000000000
--- a/mk/tools/replace.mk
+++ /dev/null
@@ -1,985 +0,0 @@
-# $NetBSD: replace.mk,v 1.135 2005/11/08 23:06:38 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# This Makefile fragment handles "replacements" of system-supplied
-# tools with pkgsrc versions.
-#
-# The replacement tools are placed under ${TOOLS_DIR} so that they
-# appear earlier in the search path when invoked using the bare name
-# of the tool.
-#
-# "TOOLS_TOOLS" variables, e.g. TOOLS_AWK, TOOLS_SED, etc. are set to
-# the full paths to the real tools on the filesystem, and represent
-# tools required by the package.
-#
-# "TOOLS_CMDLINE_TOOL" variables, e.g. TOOLS_CMDLINE_AWK,
-# TOOLS_CMDLINE_SED, etc. are set to the full command lines (path and
-# arguments) necessary to invoke the real tools on the filesystem
-#
-# "TOOL" variables, e.g. AWK, SED, etc. are set to the full command
-# lines necessary to invoke the real tools on the filesystem, and
-# represent the tools required by pkgsrc itself.
-#
-# The tools that could be replaced with pkgsrc counterparts (usually
-# GNU versions of the tools) that are required by pkgsrc itself, i.e.
-# in targets that are part of pkgsrc infrastructure or part of the
-# package Makefile, or by the package itself, i.e. within the
-# software's own build system, should be listed as:
-#
-# USE_TOOLS+= awk gmake lex sed
-#
-# If a package requires yacc to generate a parser, then the package
-# Makefile should contain one of the following two lines:
-#
-# USE_TOOLS+= yacc # any yacc will do
-# USE_TOOLS+= bison # requires bison-specific features
-#
-# Adding either "yacc" or "bison" to USE_TOOLS will cause a "yacc" tool
-# to be generated that may be used as a yacc-replacement.
-#
-# By default, any dependencies on the pkgsrc tools are build dependencies,
-# but this may be changed by adding a :run modifier to the tool name,
-# e.g.:
-#
-# USE_TOOLS+= perl:run
-#
-
-# XXX Keep this hack here until the day that msgfmt and msgfmt-plurals
-# XXX is handled directly by the tools framework.
-# XXX
-.if defined(USE_MSGFMT_PLURALS) && !empty(USE_MSGFMT_PLURALS:M[yY][eE][sS])
-USE_TOOLS+= perl
-.endif
-
-# bison implies "bison-yacc"
-.if !empty(USE_TOOLS:Mbison) || !empty(USE_TOOLS:Mbison\:*)
-USE_TOOLS+= bison-yacc
-.endif
-
-######################################################################
-
-# Create _USE_TOOLS, a sanitized version of USE_TOOLS that removes the
-# ones that are overridden by superseding ones.
-#
-.if !defined(_USE_TOOLS)
-. for _t_ in ${USE_TOOLS:C/:.*//:O:u}
-_USE_TOOLS+= ${_t_}
-. endfor
-. if !empty(_USE_TOOLS:Mbison-yacc) # bison-yacc > yacc
-_USE_TOOLS:= ${_USE_TOOLS:Nyacc}
-. endif
-. if !empty(_USE_TOOLS:Mbyacc) # byacc > yacc
-_USE_TOOLS:= ${_USE_TOOLS:Nyacc}
-. endif
-. if !empty(_USE_TOOLS:Mflex) # flex > lex
-_USE_TOOLS:= ${_USE_TOOLS:Nlex}
-. endif
-. if !empty(_USE_TOOLS:Mgawk) # gawk > awk
-_USE_TOOLS:= ${_USE_TOOLS:Nawk}
-. endif
-. if !empty(_USE_TOOLS:Mgm4) # gm4 > m4
-_USE_TOOLS:= ${_USE_TOOLS:Nm4}
-. endif
-. if !empty(_USE_TOOLS:Mgsed) # gsed > sed
-_USE_TOOLS:= ${_USE_TOOLS:Nsed}
-. endif
-.endif
-MAKEVARS+= _USE_TOOLS
-
-# Catch conflicting tools.
-.if !empty(_USE_TOOLS:Mbison) && !empty(_USE_TOOLS:Mbyacc)
-PKG_FAIL_REASON+= "\`\`bison'' and \`\`byacc'' conflict in USE_TOOLS."
-.endif
-
-######################################################################
-
-# Set the type of dependency requested for the tool. The type of
-# dependency is determined by the modifier specified for each tool:
-#
-# BUILD_DEPENDS: :build (default), :pkgsrc
-# DEPENDS: :run
-#
-.for _t_ in ${USE_TOOLS:N*\:*} ${USE_TOOLS:M*\:build} ${USE_TOOLS:M*\:pkgsrc}
-_TOOLS_DEPMETHOD.${_t_:C/:.*//}= BUILD_DEPENDS
-.endfor
-.for _t_ in ${USE_TOOLS:M*\:run}
-_TOOLS_DEPMETHOD.${_t_:C/:.*//}= DEPENDS
-.endfor
-
-.if !empty(_USE_TOOLS:Mbison-yacc) # bison-yacc > yacc
-. if (${_TOOLS_DEPMETHOD.bison-yacc} == "BUILD_DEPENDS") && \
- defined(_TOOLS_DEPMETHOD.yacc)
-_TOOLS_DEPMETHOD.bison-yacc= ${_TOOLS_DEPMETHOD.yacc}
-. endif
-.endif
-.if !empty(_USE_TOOLS:Mflex) # flex > lex
-. if (${_TOOLS_DEPMETHOD.flex} == "BUILD_DEPENDS") && \
- defined(_TOOLS_DEPMETHOD.lex)
-_TOOLS_DEPMETHOD.flex= ${_TOOLS_DEPMETHOD.lex}
-. endif
-.endif
-.if !empty(_USE_TOOLS:Mgawk) # gawk > awk
-. if (${_TOOLS_DEPMETHOD.gawk} == "BUILD_DEPENDS") && \
- defined(_TOOLS_DEPMETHOD.awk)
-_TOOLS_DEPMETHOD.gawk= ${_TOOLS_DEPMETHOD.awk}
-. endif
-.endif
-.if !empty(_USE_TOOLS:Mgm4) # gm4 > m4
-. if (${_TOOLS_DEPMETHOD.gm4} == "BUILD_DEPENDS") && \
- defined(_TOOLS_DEPMETHOD.m4)
-_TOOLS_DEPMETHOD.gm4= ${_TOOLS_DEPMETHOD.m4}
-. endif
-.endif
-.if !empty(_USE_TOOLS:Mgsed) # gsed > sed
-. if (${_TOOLS_DEPMETHOD.gsed} == "BUILD_DEPENDS") && \
- defined(_TOOLS_DEPMETHOD.sed)
-_TOOLS_DEPMETHOD.gsed= ${_TOOLS_DEPMETHOD.sed}
-. endif
-.endif
-
-######################################################################
-
-# _TOOLS_USE_PKGSRC.<tool> is "yes" or "no" depending on whether we're
-# using a pkgsrc-supplied tool to replace the system-supplied one. We
-# use the system-supplied one if TOOLS_PLATFORM.<tool> is non-empty, or
-# otherwise if this is a particular ${MACHINE_PLATFORM} listed above.
-#
-.for _t_ in ${_USE_TOOLS}
-. if defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
-_TOOLS_USE_PKGSRC.${_t_}?= no
-. endif
-_TOOLS_USE_PKGSRC.${_t_}?= yes
-.endfor
-
-######################################################################
-
-# For each of the blocks below, we create either symlinks or wrappers
-# for each of the tools requested. We need to be careful that we don't
-# get into dependency loops; do this by setting and checking the value
-# of TOOLS_IGNORE.<tool>. These blocks handle the case where we are
-# using the pkgsrc-supplied tool.
-#
-# Always set the "TOOLS_TOOL" name for each tool to point to the real
-# command, e.g., TOOLS_TBL, TOOLS_YACC, etc., provided that "TOOL" has
-# been associated with <tool>.
-#
-.if !defined(TOOLS_IGNORE.awk) && !empty(_USE_TOOLS:Mawk)
-. if !empty(PKGPATH:Mlang/nawk)
-MAKEFLAGS+= TOOLS_IGNORE.awk=
-. elif !empty(_TOOLS_USE_PKGSRC.awk:M[yY][eE][sS])
-TOOLS_DEPENDS.awk?= nawk>=20040207:../../lang/nawk
-TOOLS_CREATE+= awk
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.awk=nawk
-TOOLS_PATH.awk= ${TOOLS_PREFIX.awk}/bin/nawk
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.bash) && !empty(_USE_TOOLS:Mbash)
-. if !empty(PKGPATH:Mshells/bash)
-MAKEFLAGS+= TOOLS_IGNORE.bash=
-. elif !empty(_TOOLS_USE_PKGSRC.bash:M[yY][eE][sS])
-TOOLS_DEPENDS.bash?= bash-[0-9]*:../../shells/bash
-TOOLS_CREATE+= bash
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bash=bash
-TOOLS_PATH.bash= ${TOOLS_PREFIX.bash}/bin/bash
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.bison) && !empty(_USE_TOOLS:Mbison)
-. if !empty(PKGPATH:Mdevel/bison)
-MAKEFLAGS+= TOOLS_IGNORE.bison=
-. elif !empty(_TOOLS_USE_PKGSRC.bison:M[yY][eE][sS])
-TOOLS_DEPENDS.bison?= bison>=1.0:../../devel/bison
-TOOLS_CREATE+= bison
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bison=bison
-TOOLS_PATH.bison= ${TOOLS_PREFIX.bison}/bin/bison
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.bison-yacc) && !empty(_USE_TOOLS:Mbison-yacc)
-. if !empty(PKGPATH:Mdevel/bison)
-MAKEFLAGS+= TOOLS_IGNORE.bison-yacc=
-. elif !empty(_TOOLS_USE_PKGSRC.bison-yacc:M[yY][eE][sS])
-TOOLS_DEPENDS.bison-yacc?= bison>=1.0:../../devel/bison
-TOOLS_CREATE+= bison-yacc
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bison-yacc=bison
-TOOLS_PATH.bison-yacc= ${TOOLS_PREFIX.bison-yacc}/bin/bison
-TOOLS_ARGS.bison-yacc= -y
-. endif
-TOOLS_CMD.bison-yacc= ${TOOLS_DIR}/bin/yacc
-#
-# bison/yacc is typically a build tool whose path is not embedded in
-# any scripts or config files. In this case, pass the full command
-# line (path and arguments) of the tool to the GNU configure script
-# so that bison will be correctly invoked in yacc-compatilility mode.
-#
-TOOLS_VALUE_GNU.bison-yacc= ${TOOLS_CMDLINE.bison-yacc}
-.endif
-
-.if !defined(TOOLS_IGNORE.byacc) && !empty(_USE_TOOLS:Mbyacc)
-. if !empty(PKGPATH:Mdevel/byacc)
-MAKEFLAGS+= TOOLS_IGNORE.byacc=
-. elif !empty(_TOOLS_USE_PKGSRC.byacc:M[yY][eE][sS])
-TOOLS_DEPENDS.byacc?= byacc>=20040328:../../devel/byacc
-TOOLS_CREATE+= byacc
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.byacc=byacc
-TOOLS_PATH.byacc= ${TOOLS_PREFIX.byacc}/bin/yacc
-TOOLS_CMD.byacc= ${TOOLS_DIR}/bin/yacc
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.bzcat) && !empty(_USE_TOOLS:Mbzcat)
-. if !empty(PKGPATH:Marchivers/bzip2)
-MAKEFLAGS+= TOOLS_IGNORE.bzcat=
-. elif !empty(_TOOLS_USE_PKGSRC.bzcat:M[yY][eE][sS])
-TOOLS_DEPENDS.bzcat?= bzip2>=0.9.0b:../../archivers/bzip2
-TOOLS_CREATE+= bzcat
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bzcat=bzip2
-TOOLS_PATH.bzcat= ${TOOLS_PREFIX.bzcat}/bin/bzcat
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.csh) && !empty(_USE_TOOLS:Mcsh)
-. if !empty(PKGPATH:Mshells/tcsh)
-MAKEFLAGS+= TOOLS_IGNORE.csh=
-. elif !empty(_TOOLS_USE_PKGSRC.csh:M[yY][eE][sS])
-TOOLS_DEPENDS.csh?= tcsh-[0-9]*:../../shells/tcsh
-TOOLS_CREATE+= csh
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.csh=tcsh
-TOOLS_PATH.csh= ${TOOLS_PREFIX.csh}/bin/tcsh
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.file) && !empty(_USE_TOOLS:Mfile)
-. if !empty(PKGPATH:Msysutils/file)
-MAKEFLAGS+= TOOLS_IGNORE.file=
-. elif !empty(_TOOLS_USE_PKGSRC.file:M[yY][eE][sS])
-TOOLS_DEPENDS.file?= file>=4.13:../../sysutils/file
-TOOLS_CREATE+= file
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.file=file
-TOOLS_PATH.file= ${TOOLS_PREFIX.file}/bin/file
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.find) && !empty(_USE_TOOLS:Mfind)
-. if !empty(PKGPATH:Msysutils/findutils)
-MAKEFLAGS+= TOOLS_IGNORE.find=
-. elif !empty(_TOOLS_USE_PKGSRC.find:M[yY][eE][sS])
-TOOLS_DEPENDS.find?= findutils>=4.1:../../sysutils/findutils
-TOOLS_CREATE+= find
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.find=findutils
-TOOLS_PATH.find= ${TOOLS_PREFIX.find}/bin/${GNU_PROGRAM_PREFIX}find
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.flex) && !empty(_USE_TOOLS:Mflex)
-. if !empty(PKGPATH:Mdevel/flex)
-MAKEFLAGS+= TOOLS_IGNORE.flex=
-. elif !empty(_TOOLS_USE_PKGSRC.flex:M[yY][eE][sS])
-. include "../../devel/flex/buildlink3.mk"
-_TOOLS_DEPENDS.flex= # empty
-. for _dep_ in ${BUILDLINK_DEPENDS.flex}
-_TOOLS_DEPENDS.flex+= ${_dep_}:${BUILDLINK_PKGSRCDIR.flex}
-. endfor
-TOOLS_DEPENDS.flex?= ${_TOOLS_DEPENDS.flex}
-TOOLS_CREATE+= flex
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.flex=flex
-TOOLS_PATH.flex= ${TOOLS_PREFIX.flex}/bin/flex
-. endif
-TOOLS_ALIASES.flex= lex
-.endif
-
-.if !defined(TOOLS_IGNORE.gawk) && !empty(_USE_TOOLS:Mgawk)
-. if !empty(PKGPATH:Mlang/gawk)
-MAKEFLAGS+= TOOLS_IGNORE.gawk=
-. elif !empty(_TOOLS_USE_PKGSRC.gawk:M[yY][eE][sS])
-TOOLS_DEPENDS.gawk?= gawk>=3.1.1:../../lang/gawk
-TOOLS_CREATE+= gawk
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gawk=gawk
-TOOLS_PATH.gawk= ${TOOLS_PREFIX.gawk}/bin/${GNU_PROGRAM_PREFIX}awk
-. endif
-TOOLS_ALIASES.gawk= awk
-.endif
-
-.if !defined(TOOLS_IGNORE.gm4) && !empty(_USE_TOOLS:Mgm4)
-. if !empty(PKGPATH:Mdevel/m4)
-MAKEFLAGS+= TOOLS_IGNORE.gm4=
-. elif !empty(_TOOLS_USE_PKGSRC.gm4:M[yY][eE][sS])
-TOOLS_DEPENDS.gm4?= m4>=1.4:../../devel/m4
-TOOLS_CREATE+= gm4
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gm4=m4
-TOOLS_PATH.gm4= ${TOOLS_PREFIX.gm4}/bin/gm4
-. endif
-TOOLS_ALIASES.gm4= m4
-.endif
-
-.if !defined(TOOLS_IGNORE.gmake) && !empty(_USE_TOOLS:Mgmake)
-. if !empty(PKGPATH:Mdevel/gmake)
-MAKEFLAGS+= TOOLS_IGNORE.gmake=
-. elif !empty(_TOOLS_USE_PKGSRC.gmake:M[yY][eE][sS])
-TOOLS_DEPENDS.gmake?= gmake>=3.78:../../devel/gmake
-TOOLS_CREATE+= gmake
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gmake=gmake
-TOOLS_PATH.gmake= ${TOOLS_PREFIX.gmake}/bin/gmake
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.gsed) && !empty(_USE_TOOLS:Mgsed)
-. if !empty(PKGPATH:Mtextproc/gsed)
-MAKEFLAGS+= TOOLS_IGNORE.gsed=
-. elif !empty(_TOOLS_USE_PKGSRC.gsed:M[yY][eE][sS])
-TOOLS_DEPENDS.gsed?= gsed>=3.0.2:../../textproc/gsed
-TOOLS_CREATE+= gsed
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gsed=gsed
-TOOLS_PATH.gsed= ${TOOLS_PREFIX.gsed}/bin/${GNU_PROGRAM_PREFIX}sed
-. endif
-TOOLS_ALIASES.gsed= sed
-.endif
-
-.if !defined(TOOLS_IGNORE.gtar) && !empty(_USE_TOOLS:Mgtar)
-. if !empty(PKGPATH:Marchivers/gtar-base)
-MAKEFLAGS+= TOOLS_IGNORE.gtar=
-. elif !empty(_TOOLS_USE_PKGSRC.gtar:M[yY][eE][sS])
-TOOLS_DEPENDS.gtar?= gtar-base>=1.13.25:../../archivers/gtar-base
-TOOLS_CREATE+= gtar
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gtar=gtar-base
-TOOLS_PATH.gtar= ${TOOLS_PREFIX.gtar}/bin/${GNU_PROGRAM_PREFIX}tar
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.gunzip) && !empty(_USE_TOOLS:Mgunzip)
-. if !empty(PKGPATH:Marchivers/gzip-base)
-MAKEFLAGS+= TOOLS_IGNORE.gunzip=
-. elif !empty(_TOOLS_USE_PKGSRC.gunzip:M[yY][eE][sS])
-TOOLS_DEPENDS.gunzip?= gzip-base>=1.2.4b:../../archivers/gzip-base
-TOOLS_CREATE+= gunzip
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gunzip=gzip-base
-TOOLS_PATH.gunzip= ${TOOLS_PREFIX.gunzip}/bin/gunzip
-TOOLS_ARGS.gunzip= -f
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.gzcat) && !empty(_USE_TOOLS:Mgzcat)
-. if !empty(PKGPATH:Marchivers/gzip-base)
-MAKEFLAGS+= TOOLS_IGNORE.gzcat=
-. elif !empty(_TOOLS_USE_PKGSRC.gzcat:M[yY][eE][sS])
-TOOLS_DEPENDS.gzcat?= gzip-base>=1.2.4b:../../archivers/gzip-base
-TOOLS_CREATE+= gzcat
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gzcat=gzip-base
-TOOLS_PATH.gzcat= ${TOOLS_PREFIX.gzcat}/bin/zcat
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.gzip) && !empty(_USE_TOOLS:Mgzip)
-. if !empty(PKGPATH:Marchivers/gzip-base)
-MAKEFLAGS+= TOOLS_IGNORE.gzip=
-. elif !empty(_TOOLS_USE_PKGSRC.gzip:M[yY][eE][sS])
-TOOLS_DEPENDS.gzip?= gzip-base>=1.2.4b:../../archivers/gzip-base
-TOOLS_CREATE+= gzip
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gzip=gzip-base
-TOOLS_PATH.gzip= ${TOOLS_PREFIX.gzip}/bin/gzip
-TOOLS_ARGS.gzip= -nf ${GZIP}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.imake) && !empty(_USE_TOOLS:Mimake)
-. if !empty(PKGPATH:Mx11/XFree86-imake) || !empty(PKGPATH:Mx11/xorg-imake)
-MAKEFLAGS+= TOOLS_IGNORE.imake=
-. elif !empty(_TOOLS_USE_PKGSRC.imake:M[yY][eE][sS])
-TOOLS_CREATE+= imake
-. if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
-TOOLS_DEPENDS.imake?= XFree86-imake>=4.4.0:../../x11/XFree86-imake
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.imake=imake
-TOOLS_PATH.imake= ${TOOLS_PREFIX.imake}/${X11ROOT_PREFIX}/bin/imake
-. elif defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
-TOOLS_DEPENDS.imake?= xorg-imake>=6.8:../../x11/xorg-imake
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.imake=xorg-imake
-TOOLS_PATH.imake= ${TOOLS_PREFIX.imake}/${X11ROOT_PREFIX}/bin/imake
-# !empty(X11_TYPE:Mnative)
-. elif defined(IMAKE)
-TOOLS_PATH.imake= ${IMAKE}
-. else
-TOOLS_PATH.imake= ${X11BASE}/bin/imake
-. endif
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.lex) && !empty(_USE_TOOLS:Mlex)
-. if !empty(PKGPATH:Mdevel/flex)
-MAKEFLAGS+= TOOLS_IGNORE.lex=
-. elif !empty(_TOOLS_USE_PKGSRC.lex:M[yY][eE][sS])
-. include "../../devel/flex/buildlink3.mk"
-_TOOLS_DEPENDS.lex= # empty
-. for _dep_ in ${BUILDLINK_DEPENDS.flex}
-_TOOLS_DEPENDS.lex+= ${_dep_}:${BUILDLINK_PKGSRCDIR.flex}
-. endfor
-TOOLS_DEPENDS.lex?= ${_TOOLS_DEPENDS.lex}
-TOOLS_CREATE+= lex
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.lex=flex
-TOOLS_PATH.lex= ${TOOLS_PREFIX.lex}/bin/flex
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.lha) && !empty(_USE_TOOLS:Mlha)
-. if !empty(PKGPATH:Marchivers/lha)
-MAKEFLAGS+= TOOLS_IGNORE.lha=
-. elif !empty(_TOOLS_USE_PKGSRC.lha:M[yY][eE][sS])
-TOOLS_DEPENDS.lha?= lha>=114.9:../../archivers/lha
-TOOLS_CREATE+= lha
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.lha=lha
-TOOLS_PATH.lha= ${TOOLS_PREFIX.lha}/bin/lha
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.m4) && !empty(_USE_TOOLS:Mm4)
-. if !empty(PKGPATH:Mdevel/m4)
-MAKEFLAGS+= TOOLS_IGNORE.m4=
-. elif !empty(_TOOLS_USE_PKGSRC.m4:M[yY][eE][sS])
-TOOLS_DEPENDS.m4?= m4>=1.4:../../devel/m4
-TOOLS_CREATE+= m4
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.m4=m4
-TOOLS_PATH.m4= ${TOOLS_PREFIX.m4}/bin/gm4
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.mail) && !empty(_USE_TOOLS:Mmail)
-. if !empty(PKGPATH:Mmail/nail)
-MAKEFLAGS+= TOOLS_IGNORE.mail=
-. elif !empty(_TOOLS_USE_PKGSRC.mail:M[yY][eE][sS])
-TOOLS_DEPENDS.mail?= nail>=11.22:../../mail/nail
-TOOLS_CREATE+= mail
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mail=nail
-TOOLS_PATH.mail= ${TOOLS_PREFIX.mail}/bin/nail
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.mktemp) && !empty(_USE_TOOLS:Mmktemp)
-. if !empty(PKGPATH:Msysutils/mktemp)
-MAKEFLAGS+= TOOLS_IGNORE.mktemp=
-. elif !empty(_TOOLS_USE_PKGSRC.mktemp:M[yY][eE][sS])
-TOOLS_DEPENDS.mktemp?= mktemp>=1.5:../../sysutils/mktemp
-TOOLS_CREATE+= mktemp
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mktemp=mktemp
-TOOLS_PATH.mktemp= ${TOOLS_PREFIX.mktemp}/bin/mktemp
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.mtree) && !empty(_USE_TOOLS:Mmtree)
-. if !empty(PKGPATH:Mpkgtools/mtree)
-MAKEFLAGS+= TOOLS_IGNORE.mtree=
-. elif !empty(_TOOLS_USE_PKGSRC.mtree:M[yY][eE][sS])
-#
-# This is installed by pkgsrc bootstrap, and is never registered, so
-# comment out the dependency on it.
-#
-#TOOLS_DEPENDS.mtree?= mtree>=20040722:../../pkgtools/mtree
-TOOLS_CREATE+= mtree
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mtree=mtree
-TOOLS_PATH.mtree= ${TOOLS_PREFIX.mtree}/bin/mtree
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.nroff) && !empty(_USE_TOOLS:Mnroff)
-. if !empty(PKGPATH:Mtextproc/groff)
-MAKEFLAGS+= TOOLS_IGNORE.nroff=
-. elif !empty(_TOOLS_USE_PKGSRC.nroff:M[yY][eE][sS])
-TOOLS_DEPENDS.nroff?= groff>=1.19nb4:../../textproc/groff
-TOOLS_CREATE+= nroff
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.nroff=groff
-TOOLS_PATH.nroff= ${TOOLS_PREFIX.nroff}/bin/nroff
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.patch) && !empty(_USE_TOOLS:Mpatch)
-. if !empty(PKGPATH:Mdevel/patch)
-MAKEFLAGS+= TOOLS_IGNORE.patch=
-. elif !empty(_TOOLS_USE_PKGSRC.patch:M[yY][eE][sS])
-TOOLS_DEPENDS.patch?= patch>=2.2:../../devel/patch
-TOOLS_CREATE+= patch
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.patch=patch
-TOOLS_PATH.patch= ${TOOLS_PREFIX.patch}/bin/gpatch
-_PATCH_CAN_BACKUP= yes
-_PATCH_BACKUP_ARG?= -b -V simple -z
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.pax) && !empty(_USE_TOOLS:Mpax)
-. if !empty(PKGPATH:Marchivers/pax)
-MAKEFLAGS+= TOOLS_IGNORE.pax=
-. elif !empty(_TOOLS_USE_PKGSRC.pax:M[yY][eE][sS])
-#
-# This is installed by pkgsrc bootstrap, and is never registered, so
-# comment out the dependency on it.
-#
-#TOOLS_DEPENDS.pax?= pax>=20040802:../../archivers/pax
-TOOLS_CREATE+= pax
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.pax=pax
-TOOLS_PATH.pax= ${TOOLS_PREFIX.pax}/bin/pax
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.perl) && !empty(_USE_TOOLS:Mperl)
-. if !empty(PKGPATH:Mlang/perl5)
-MAKEFLAGS+= TOOLS_IGNORE.perl=
-. elif !empty(_TOOLS_USE_PKGSRC.perl:M[yY][eE][sS])
-. include "../../lang/perl5/version.mk"
-TOOLS_DEPENDS.perl?= perl>=${PERL5_REQD}:../../lang/perl5
-TOOLS_CREATE+= perl
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.perl=perl
-TOOLS_PATH.perl= ${TOOLS_PREFIX.perl}/bin/perl
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.pkg-config) && !empty(_USE_TOOLS:Mpkg-config)
-. if !empty(PKGPATH:Mdevel/pkg-config)
-MAKEFLAGS+= TOOLS_IGNORE.pkg-config=
-. elif !empty(_TOOLS_USE_PKGSRC.pkg-config:M[yY][eE][sS])
-TOOLS_DEPENDS.pkg-config?= pkg-config>=0.19:../../devel/pkg-config
-TOOLS_CREATE+= pkg-config
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.pkg-config=pkg-config
-TOOLS_PATH.pkg-config= ${TOOLS_PREFIX.pkg-config}/bin/pkg-config
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.pod2man) && !empty(_USE_TOOLS:Mpod2man)
-. if !empty(PKGPATH:Mlang/perl5)
-MAKEFLAGS+= TOOLS_IGNORE.pod2man=
-. elif !empty(_TOOLS_USE_PKGSRC.pod2man:M[yY][eE][sS])
-. include "../../lang/perl5/version.mk"
-TOOLS_DEPENDS.pod2man?= perl>=${PERL5_REQD}:../../lang/perl5
-TOOLS_CREATE+= pod2man
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.pod2man=perl
-TOOLS_PATH.pod2man= ${TOOLS_PREFIX.pod2man}/bin/pod2man
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.sed) && !empty(_USE_TOOLS:Msed)
-. if !empty(PKGPATH:Mtextproc/nbsed)
-MAKEFLAGS+= TOOLS_IGNORE.sed=
-. elif !empty(_TOOLS_USE_PKGSRC.sed:M[yY][eE][sS])
-TOOLS_DEPENDS.sed?= nbsed>=20040821:../../textproc/nbsed
-TOOLS_CREATE+= sed
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.sed=nbsed
-TOOLS_PATH.sed= ${TOOLS_PREFIX.nbsed}/bin/nbsed
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.sh) && !empty(_USE_TOOLS:Msh)
-. if !empty(PKGPATH:Mshells/pdksh)
-MAKEFLAGS+= TOOLS_IGNORE.sh=
-. elif !empty(_TOOLS_USE_PKGSRC.sh:M[yY][eE][sS])
-TOOLS_DEPENDS.sh?= pdksh>=5.2.14:../../shells/pdksh
-TOOLS_CREATE+= sh
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.sh=pdksh
-TOOLS_PATH.sh= ${TOOLS_PREFIX.sh}/bin/pdksh
-. endif
-TOOLS_CMD.sh= ${TOOLS_DIR}/bin/sh
-.endif
-
-.if !defined(TOOLS_IGNORE.shlock) && !empty(_USE_TOOLS:Mshlock)
-. if !empty(PKGPATH:Mpkgtools/shlock)
-MAKEFLAGS+= TOOLS_IGNORE.shlock=
-. elif !empty(_TOOLS_USE_PKGSRC.shlock:M[yY][eE][sS])
-TOOLS_DEPENDS.shlock?= shlock>=20020114:../../pkgtools/shlock
-TOOLS_CREATE+= shlock
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.shlock=shlock
-TOOLS_PATH.shlock= ${TOOLS_PREFIX.shlock}/bin/shlock
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.soelim) && !empty(_USE_TOOLS:Msoelim)
-. if !empty(PKGPATH:Mtextproc/groff)
-MAKEFLAGS+= TOOLS_IGNORE.soelim=
-. elif !empty(_TOOLS_USE_PKGSRC.soelim:M[yY][eE][sS])
-TOOLS_DEPENDS.soelim?= groff>=1.19nb4:../../textproc/groff
-TOOLS_CREATE+= soelim
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.soelim=groff
-TOOLS_PATH.soelim= ${TOOLS_PREFIX.soelim}/bin/soelim
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.tar) && !empty(_USE_TOOLS:Mtar)
-. if !empty(PKGPATH:Marchivers/pax)
-MAKEFLAGS+= TOOLS_IGNORE.tar=
-. elif !empty(_TOOLS_USE_PKGSRC.tar:M[yY][eE][sS])
-#
-# This is installed by pkgsrc bootstrap, and is never registered, so
-# comment out the dependency on it.
-#
-#TOOLS_DEPENDS.tar?= pax>=20040802:../../archivers/pax
-TOOLS_CREATE+= tar
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tar=pax
-TOOLS_PATH.tar= ${TOOLS_PREFIX.tar}/bin/tar
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.tbl) && !empty(_USE_TOOLS:Mtbl)
-. if !empty(PKGPATH:Mtextproc/groff)
-MAKEFLAGS+= TOOLS_IGNORE.tbl=
-. elif !empty(_TOOLS_USE_PKGSRC.tbl:M[yY][eE][sS])
-TOOLS_DEPENDS.tbl?= groff>=1.19nb4:../../textproc/groff
-TOOLS_CREATE+= tbl
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tbl=groff
-TOOLS_PATH.tbl= ${TOOLS_PREFIX.tbl}/bin/tbl
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.tclsh) && !empty(_USE_TOOLS:Mtclsh)
-. if !empty(PKGPATH:Mlang/tcl)
-MAKEFLAGS+= TOOLS_IGNORE.tclsh=
-. elif !empty(_TOOLS_USE_PKGSRC.tclsh:M[yY][eE][sS])
-TOOLS_DEPENDS.tclsh?= tcl>=8.4:../../lang/tcl
-TOOLS_CREATE+= tclsh
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tclsh=tcl
-TOOLS_PATH.tclsh= ${TOOLS_PREFIX.tclsh}/bin/tclsh
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.unrar) && !empty(_USE_TOOLS:Munrar)
-. if !empty(PKGPATH:Marchivers/unrar)
-MAKEFLAGS+= TOOLS_IGNORE.unrar=
-. elif !empty(_TOOLS_USE_PKGSRC.unrar:M[yY][eE][sS])
-TOOLS_DEPENDS.unrar?= unrar>=3.3.4:../../archivers/unrar
-TOOLS_CREATE+= unrar
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.unrar=unrar
-TOOLS_PATH.unrar= ${TOOLS_PREFIX.unrar}/bin/unrar
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.unzip) && !empty(_USE_TOOLS:Munzip)
-. if !empty(PKGPATH:Marchivers/unzip)
-MAKEFLAGS+= TOOLS_IGNORE.unzip=
-. elif !empty(_TOOLS_USE_PKGSRC.unzip:M[yY][eE][sS])
-TOOLS_DEPENDS.unzip?= unzip-[0-9]*:../../archivers/unzip
-TOOLS_CREATE+= unzip
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.unzip=unzip
-TOOLS_PATH.unzip= ${TOOLS_PREFIX.unzip}/bin/unzip
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.unzoo) && !empty(_USE_TOOLS:Munzoo)
-. if !empty(PKGPATH:Marchivers/unzoo)
-MAKEFLAGS+= TOOLS_IGNORE.unzoo=
-. elif !empty(_TOOLS_USE_PKGSRC.unzoo:M[yY][eE][sS])
-TOOLS_DEPENDS.unzoo?= unzoo-[0-9]*:../../archivers/unzoo
-TOOLS_CREATE+= unzoo
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.unzoo=unzoo
-TOOLS_PATH.unzoo= ${TOOLS_PREFIX.unzoo}/bin/unzoo
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.wish) && !empty(_USE_TOOLS:Mwish)
-. if !empty(PKGPATH:Mx11/tk)
-MAKEFLAGS+= TOOLS_IGNORE.wish=
-. elif !empty(_TOOLS_USE_PKGSRC.wish:M[yY][eE][sS])
-TOOLS_DEPENDS.wish?= tk>=8.4:../../x11/tk
-TOOLS_CREATE+= wish
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.wish=tk
-TOOLS_PATH.wish= ${TOOLS_PREFIX.wish}/bin/wish
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.xargs) && !empty(_USE_TOOLS:Mxargs)
-. if !empty(PKGPATH:Msysutils/findutils)
-MAKEFLAGS+= TOOLS_IGNORE.xargs=
-. elif !empty(_TOOLS_USE_PKGSRC.xargs:M[yY][eE][sS])
-TOOLS_DEPENDS.xargs?= findutils>=4.1:../../sysutils/findutils
-TOOLS_CREATE+= xargs
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xargs=findutils
-TOOLS_PATH.xargs= ${TOOLS_PREFIX.xargs}/bin/${GNU_PROGRAM_PREFIX}xargs
-TOOLS_ARGS.xargs= -r # don't run command if stdin is empty
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.xmkmf) && !empty(_USE_TOOLS:Mxmkmf)
-. if !empty(PKGPATH:Mx11/XFree86-imake) || !empty(PKGPATH:Mx11/xorg-imake)
-MAKEFLAGS+= TOOLS_IGNORE.xmkmf=
-. elif !empty(_TOOLS_USE_PKGSRC.xmkmf:M[yY][eE][sS])
-TOOLS_CREATE+= xmkmf
-. if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
-TOOLS_DEPENDS.xmkmf?= XFree86-imake>=4.4.0:../../x11/XFree86-imake
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xmkmf=imake
-TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xmkmf}/${X11ROOT_PREFIX}/bin/xmkmf
-. elif defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
-TOOLS_DEPENDS.xmkmf?= xorg-imake>=6.8:../../x11/xorg-imake
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xmkmf=xorg-imake
-TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xmkmf}/${X11ROOT_PREFIX}/bin/xmkmf
-. else # !empty(X11_TYPE:Mnative)
-TOOLS_PATH.xmkmf= ${X11BASE}/bin/xmkmf
-. endif
-#
-# If we're using xpkgwedge, then we need to invoke the special xmkmf
-# script that will find imake config files in both ${PREFIX} and in
-# ${X11BASE}.
-#
-. if !empty(USE_XPKGWEDGE:M[yY][eE][sS])
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xpkgwedge=xpkgwedge
-TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xpkgwedge}/bin/pkgxmkmf
-. endif
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.yacc) && !empty(_USE_TOOLS:Myacc)
-. if !empty(PKGPATH:Mdevel/bison)
-MAKEFLAGS+= TOOLS_IGNORE.yacc=
-. elif !empty(_TOOLS_USE_PKGSRC.yacc:M[yY][eE][sS])
-TOOLS_DEPENDS.yacc?= bison>=1.0:../../devel/bison
-TOOLS_CREATE+= yacc
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.yacc=bison
-TOOLS_PATH.yacc= ${TOOLS_PREFIX.yacc}/bin/bison
-TOOLS_ARGS.yacc= -y
-. endif
-.endif
-
-######################################################################
-
-# These tools are all supplied by the sysutuils/coreutils package if
-# there is no native tool available.
-#
-_TOOLS.coreutils= basename cat chgrp chmod chown cp cut date \
- dirname echo env expr false head hostname id \
- install ln ls mkdir mv nice printf pwd rm rmdir \
- sleep sort tail tee test touch tr true tsort wc
-
-.for _t_ in ${_TOOLS.coreutils}
-. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
-. elif !empty(_TOOLS_USE_PKGSRC.[:M[yY][eE][sS])
-TOOLS_DEPENDS.${_t_}?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= ${_t_}
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=coreutils
-TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${GNU_PROGRAM_PREFIX}${_t_}
-. endif
-. endif
-.endfor
-
-# The ``['' tool is special because it matches a token that's interpreted
-# by bmake.
-#
-.if !defined(TOOLS_IGNORE.[) && !empty(_USE_TOOLS:M\[)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.[=
-. elif !empty(_TOOLS_USE_PKGSRC.[:M[yY][eE][sS])
-TOOLS_DEPENDS.[?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= [
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.[=coreutils
-TOOLS_PATH.[= ${TOOLS_PREFIX.[}/bin/${GNU_PROGRAM_PREFIX}[
-. endif
-.endif
-
-######################################################################
-
-# These tools are all supplied by the textproc/grep package if there is
-# no native tool available.
-#
-_TOOLS.grep= egrep fgrep grep
-
-.for _t_ in ${_TOOLS.grep}
-. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
-. if !empty(PKGPATH:Mtextproc/grep)
-MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
-. elif !empty(_TOOLS_USE_PKGSRC.[:M[yY][eE][sS])
-TOOLS_DEPENDS.${_t_}?= grep>=2.5.1:../../textproc/grep
-TOOLS_CREATE+= ${_t_}
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=grep
-TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${GNU_PROGRAM_PREFIX}${_t_}
-. endif
-. endif
-.endfor
-
-######################################################################
-
-# These tools are all supplied by the devel/diffutils package if there is
-# no native tool available.
-#
-_TOOLS.diffutils= cmp diff
-
-.for _t_ in ${_TOOLS.diffutils}
-. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
-. if !empty(PKGPATH:Mdevel/diffutils)
-MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
-. elif !empty(_TOOLS_USE_PKGSRC.[:M[yY][eE][sS])
-TOOLS_DEPENDS.${_t_}?= diffutils>=2.8.1:../../devel/diffutils
-TOOLS_CREATE+= ${_t_}
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=diffutils
-TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${GNU_PROGRAM_PREFIX}${_t_}
-. endif
-. endif
-.endfor
-
-######################################################################
-
-# These tools are all supplied by an X11 clients package if there is no
-# native tool available.
-#
-_TOOLS.x11-clients= bdftopcf mkfontdir mkfontscale
-
-.for _t_ in ${_TOOLS.x11-clients}
-. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
-. if !empty(PKGPATH:Mx11/XFree86-clients) || \
- !empty(PKGPATH:Mx11/xorg-clients)
-MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
-. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS])
-TOOLS_CREATE+= ${_t_}
-. if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
-TOOLS_DEPENDS.${_t_}?= XFree86-clients>=4.4.0:../../x11/XFree86-clients
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=imake
-TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/${X11ROOT_PREFIX}/bin/${_t_}
-. elif defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
-TOOLS_DEPENDS.${_t_}?= xorg-clients>=6.8:../../x11/xorg-clients
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=xorg-clients
-TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/${X11ROOT_PREFIX}/bin/${_t_}
-. else # !empty(X11_TYPE:Mnative)
-TOOLS_PATH.${_t_}= ${X11BASE}/bin/${_t_}
-. endif
-. endif
-. endif
-.endfor
-
-######################################################################
-
-# Compute the locations of the pkgsrc-supplied tools.
-FIND_PREFIX:= ${TOOLS_FIND_PREFIX}
-.include "../../mk/find-prefix.mk"
-
-######################################################################
-
-.for _t_ in ${_USE_TOOLS}
-. if !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) && \
- !defined(TOOLS_IGNORE.${_t_})
-#####
-##### Add the dependencies for each pkgsrc-supplied tool.
-#####
-. if defined(_TOOLS_DEPMETHOD.${_t_}) && defined(TOOLS_DEPENDS.${_t_})
-. for _dep_ in ${TOOLS_DEPENDS.${_t_}}
-. if empty(${_TOOLS_DEPMETHOD.${_t_}}:C/\:.*$//:M${_dep_:C/\:.*$//})
-${_TOOLS_DEPMETHOD.${_t_}}+= ${_dep_}
-. endif
-. endfor
-. endif
-. elif defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
-#####
-##### For each system-supplied tool, break the tool down into a path
-##### and arguments so that either a symlink or a wrapper will be
-##### properly created.
-#####
-TOOLS_CREATE+= ${_t_}
-TOOLS_PATH.${_t_}?= \
- ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-TOOLS_ARGS.${_t_}?= \
- ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:N_asdf_*}
-. endif
-###
-### For each tool, TOOLS_CMDLINE.<tool> is the full command (path and
-### arguments) that should be run to properly execute the tool.
-###
-. if defined(TOOLS_PATH.${_t_}) && !empty(TOOLS_PATH.${_t_})
-. if defined(TOOLS_ARGS.${_t_}) && !empty(TOOLS_ARGS.${_t_})
-TOOLS_CMDLINE.${_t_}?= ${TOOLS_PATH.${_t_}} ${TOOLS_ARGS.${_t_}}
-. else
-TOOLS_CMDLINE.${_t_}?= ${TOOLS_PATH.${_t_}}
-. endif
-. endif
-###
-### If a "TOOL" name is associated with the tool, then export two
-### variables:
-###
-### (1) The "TOOLS_TOOL" name for each tool points to the path
-### to the real command, e.g. TOOLS_TBL, TOOLS_YACC, etc.
-###
-### (2) The "TOOLS_CMDLINE_TOOL" name for each tool to point to the
-### full command, e.g. TOOLS_CMDLINE_TBL, TOOLS_CMDLINE_YACC,
-### etc.
-###
-. if defined(_TOOLS_VARNAME.${_t_})
-. if defined(TOOLS_PATH.${_t_})
-TOOLS_${_TOOLS_VARNAME.${_t_}}= ${TOOLS_PATH.${_t_}}
-. endif
-. if defined(TOOLS_CMDLINE.${_t_})
-TOOLS_CMDLINE_${_TOOLS_VARNAME.${_t_}}= ${TOOLS_CMDLINE.${_t_}}
-. for _v_ in ${_TOOLS_VARNAME.${_t_}}
-${_v_}?= ${TOOLS_CMDLINE_${_TOOLS_VARNAME.${_t_}}}
-. endfor
-. endif
-. endif
-.endfor
-
-######################################################################
-
-# For each tool that pkgsrc requires, make sure that the "TOOL" name
-# points to the real command, e.g., AWK, SED, etc., provided that
-# "TOOL" has been associated with <tool>.
-#
-.for _t_ in ${USE_TOOLS:M*\:pkgsrc:C/:.*//:O:u}
-_TOOLS_USE_PKGSRC.${_t_}?= no
-. if defined(_TOOLS_VARNAME.${_t_})
-. if !empty(_TOOLS_USE_PKGSRC.${_t_}:M[nN][oO])
-. if defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
-${_TOOLS_VARNAME.${_t_}}= ${TOOLS_PLATFORM.${_t_}}
-. endif
-. else
-${_TOOLS_VARNAME.${_t_}}= ${TOOLS_${_TOOLS_VARNAME.${_t_}}}
-. endif
-. endif
-.endfor
-
-######################################################################
-
-# For packages that use GNU configure scripts, pass the appropriate
-# environment variables to ensure the proper command is invoked for
-# each tool. We do this since these paths may be hardcoded into
-# package scripts, and if they're not pre-specified, then they'll be
-# searched for in the PATH, which would find the ones in ${TOOLS_DIR}.
-#
-# The value passed via the shell environment is stored in
-# TOOLS_VALUE_GNU.<tool>, which defaults to just the path to the
-# tool.
-#
-.for _t_ in ${_USE_TOOLS}
-. if defined(GNU_CONFIGURE)
-. if defined(TOOLS_${_TOOLS_VARNAME.${_t_}})
-TOOLS_VALUE_GNU.${_t_}?= ${TOOLS_PATH.${_t_}}
-. endif
-. if defined(TOOLS_VALUE_GNU.${_t_})
-. for _v_ in ${_TOOLS_VARNAME_GNU.${_t_}}
-CONFIGURE_ENV+= ${_v_}=${TOOLS_VALUE_GNU.${_t_}:Q}
-. endfor
-. endif
-. endif
-.endfor
diff --git a/mk/tools/rpcgen.mk b/mk/tools/rpcgen.mk
deleted file mode 100644
index 60e38e06827..00000000000
--- a/mk/tools/rpcgen.mk
+++ /dev/null
@@ -1,62 +0,0 @@
-# $NetBSD: rpcgen.mk,v 1.10 2005/07/17 23:19:04 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# Create an rpcgen script that correctly sets the CPP environment
-# variable to a stat(2)able path to a C preprocessor, then invokes
-# the real rpcgen.
-#
-TOOLS_CREATE+= rpcgen
-.if !defined(TOOLS_PATH.rpcgen)
-TOOLS_EXECDIRS.rpcgen?= /bin /sbin /usr/bin /usr/sbin
-. for _d_ in ${TOOLS_EXECDIRS.rpcgen}
-. if exists(${_d_}/rpcgen)
-TOOLS_PATH.rpcgen?= ${_d_}/rpcgen
-. endif
-. endfor
-TOOLS_PATH.rpcgen?= ${FALSE}
-.endif
-TOOLS_CMD.rpcgen= ${TOOLS_DIR}/bin/rpcgen
-.if ${OPSYS} == "NetBSD"
-TOOLS_ARGS.rpcgen?= -b
-.endif
-TOOLS_SCRIPT.rpcgen= CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_SCRIPT_DFLT.rpcgen}
-
-# Make ${RPCGEN} call the "rpcgen" through the PATH, which should find
-# the rpcgen tool wrapper.
-#
-RPCGEN?= rpcgen
diff --git a/mk/tools/strip.mk b/mk/tools/strip.mk
deleted file mode 100644
index d293654fa25..00000000000
--- a/mk/tools/strip.mk
+++ /dev/null
@@ -1,52 +0,0 @@
-# $NetBSD: strip.mk,v 1.4 2005/07/17 21:36:24 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# Depending on whether _INSTALL_UNSTRIPPED is defined, we cause
-# ${TOOLS_DIR}/bin/strip to be either the correct strip tool or a no-op.
-#
-.if defined(_INSTALL_UNSTRIPPED) || !defined(TOOLS_PLATFORM.strip)
-TOOLS_NOOP+= strip
-.else
-TOOLS_CREATE+= strip
-TOOLS_PATH.strip= ${TOOLS_PLATFORM.strip}
-.endif
-
-# Make ${STRIP} call "strip" through the PATH, which should find the one
-# under ${TOOLS_DIR}.
-#
-STRIP?= strip
diff --git a/mk/tools/texinfo.mk b/mk/tools/texinfo.mk
deleted file mode 100644
index 06852b74d68..00000000000
--- a/mk/tools/texinfo.mk
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: texinfo.mk,v 1.8 2005/07/17 21:36:24 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# Create an install-info script that is a "no operation" command, as
-# registration of info files is handled by the INSTALL script.
-#
-TOOLS_NOOP+= install-info
-CONFIGURE_ENV+= INSTALL_INFO=${TOOLS_CMD.install-info:Q}
-MAKE_ENV+= INSTALL_INFO=${TOOLS_CMD.install-info:Q}
-
-# Create a makeinfo script that will invoke the right makeinfo command
-# if USE_MAKEINFO is "yes" or will exit on error if not. MAKEINFO is
-# defined by mk/texinfo.mk if USE_MAKEINFO is "yes".
-#
-USE_MAKEINFO?= no
-.if empty(USE_MAKEINFO:M[nN][oO])
-TOOLS_CREATE+= makeinfo
-TOOLS_PATH.makeinfo= ${MAKEINFO:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-TOOLS_ARGS.makeinfo= ${MAKEINFO:C/^/_asdf_/1:N_asdf_*}
-.else
-TOOLS_BROKEN+= makeinfo
-.endif
-CONFIGURE_ENV+= MAKEINFO=${TOOLS_CMD.makeinfo:Q}
-MAKE_ENV+= MAKEINFO=${TOOLS_CMD.makeinfo:Q}
diff --git a/mk/tools/tools.AIX.mk b/mk/tools/tools.AIX.mk
deleted file mode 100644
index 40dddcbedb0..00000000000
--- a/mk/tools/tools.AIX.mk
+++ /dev/null
@@ -1,57 +0,0 @@
-# $NetBSD: tools.AIX.mk,v 1.12 2005/11/04 20:02:01 jlam Exp $
-#
-# System-supplied tools for the AIX operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /usr/bin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /usr/bin/grep -E
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /usr/bin/grep -F
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mailx
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /bin/sh
-TOOLS_PLATFORM.shlock?= /usr/bin/shlock
-TOOLS_PLATFORM.shlock?= /bin/sleep
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
diff --git a/mk/tools/tools.BSDOS.mk b/mk/tools/tools.BSDOS.mk
deleted file mode 100644
index 0251e881852..00000000000
--- a/mk/tools/tools.BSDOS.mk
+++ /dev/null
@@ -1,83 +0,0 @@
-# $NetBSD: tools.BSDOS.mk,v 1.16 2005/11/04 20:02:01 jlam Exp $
-#
-# System-supplied tools for the BSD/OS operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /usr/sbin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /bin/egrep
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.grep?= /bin/grep
-.if exists(/usr/bin/gunzip)
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-.elif exists(/usr/contrib/bin/gunzip)
-TOOLS_PLATFORM.gunzip?= /usr/contrib/bin/gunzip -f
-.endif
-.if exists(/usr/bin/gzcat)
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
-.elif exists(/usr/contrib/bin/gzcat)
-TOOLS_PLATFORM.gzcat?= /usr/contrib/bin/gzcat
-.endif
-.if exists(/usr/bin/gzip)
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-.elif exists(/usr/contrib/bin/gzip)
-TOOLS_PLATFORM.gzip?= /usr/contrib/bin/gzip -nf ${GZIP}
-.endif
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.install?= /usr/bin/install
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mail
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-.if exists(/usr/bin/patch)
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-.elif exists(/usr/contrib/bin/patch)
-TOOLS_PLATFORM.patch?= /usr/contrib/bin/patch
-.endif
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /bin/bash
-TOOLS_PLATFORM.sleep?= /bin/sleep
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-.if exists(/bin/tar)
-TOOLS_PLATFORM.tar?= /bin/tar
-.elif exists(/usr/bin/tar)
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-.endif
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
diff --git a/mk/tools/tools.Darwin.mk b/mk/tools/tools.Darwin.mk
deleted file mode 100644
index a5cf75e6e0c..00000000000
--- a/mk/tools/tools.Darwin.mk
+++ /dev/null
@@ -1,77 +0,0 @@
-# $NetBSD: tools.Darwin.mk,v 1.20 2005/11/04 20:02:01 jlam Exp $
-#
-# System-supplied tools for the Darwin (Mac OS X) operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.bash?= /bin/bash
-TOOLS_PLATFORM.byacc?= /usr/bin/yacc
-.if exists(/usr/bin/bzcat)
-TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
-.endif
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /usr/sbin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/tcsh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /usr/bin/egrep
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.flex?= /usr/bin/lex
-TOOLS_PLATFORM.gmake?= /usr/bin/gnumake
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.gtar?= /usr/bin/gnutar
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.install?= /usr/bin/install
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-TOOLS_PLATFORM.lex?= /usr/bin/lex
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mail
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
-TOOLS_PLATFORM.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /bin/sh
-.if exists(/usr/bin/shlock)
-TOOLS_PLATFORM.shlock?= /usr/bin/shlock
-.endif
-TOOLS_PLATFORM.sleep?= /bin/sleep
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
-TOOLS_PLATFORM.yacc?= /usr/bin/yacc
diff --git a/mk/tools/tools.DragonFly.mk b/mk/tools/tools.DragonFly.mk
deleted file mode 100644
index cee7f39a341..00000000000
--- a/mk/tools/tools.DragonFly.mk
+++ /dev/null
@@ -1,74 +0,0 @@
-# $NetBSD: tools.DragonFly.mk,v 1.21 2005/11/08 03:36:13 tv Exp $
-#
-# System-supplied tools for the DragonFly operating system.
-
-TOOLS_PLATFORM.[?= /bin/[
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.byacc?= /usr/bin/yacc
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /usr/sbin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /usr/bin/egrep
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= /usr/bin/false
-TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.flex?= /usr/bin/lex
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.install?= /usr/bin/install
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-TOOLS_PLATFORM.lex?= /usr/bin/lex
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mail
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
-TOOLS_PLATFORM.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.pax?= /bin/pax
-TOOLS_PLATFORM.printf?= /usr/bin/printf
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /bin/sh
-TOOLS_PLATFORM.shlock?= /usr/bin/shlock
-TOOLS_PLATFORM.sleep?= /bin/sleep
-TOOLS_PLATFORM.soelim?= /usr/bin/soelim
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-TOOLS_PLATFORM.tbl?= /usr/bin/tbl
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= /bin/test
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= /usr/bin/true
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
-TOOLS_PLATFORM.yacc?= /usr/bin/yacc
diff --git a/mk/tools/tools.FreeBSD.mk b/mk/tools/tools.FreeBSD.mk
deleted file mode 100644
index 213a602f180..00000000000
--- a/mk/tools/tools.FreeBSD.mk
+++ /dev/null
@@ -1,75 +0,0 @@
-# $NetBSD: tools.FreeBSD.mk,v 1.23 2005/11/08 03:36:13 tv Exp $
-#
-# System-supplied tools for the FreeBSD operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.byacc?= /usr/bin/yacc
-.if exists(/usr/bin/bzcat)
-TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
-.endif
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /usr/sbin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /usr/bin/egrep
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.flex?= /usr/bin/lex
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.install?= /usr/bin/install
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-TOOLS_PLATFORM.lex?= /usr/bin/lex
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mail
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
-TOOLS_PLATFORM.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.pax?= /bin/pax
-TOOLS_PLATFORM.printf?= /usr/bin/printf
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /bin/sh
-TOOLS_PLATFORM.sleep?= /bin/sleep
-TOOLS_PLATFORM.soelim?= /usr/bin/soelim
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-TOOLS_PLATFORM.tbl?= /usr/bin/tbl
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
-TOOLS_PLATFORM.yacc?= /usr/bin/yacc
diff --git a/mk/tools/tools.IRIX.mk b/mk/tools/tools.IRIX.mk
deleted file mode 100644
index fa37aa78fbe..00000000000
--- a/mk/tools/tools.IRIX.mk
+++ /dev/null
@@ -1,66 +0,0 @@
-# $NetBSD: tools.IRIX.mk,v 1.15 2005/11/04 20:02:01 jlam Exp $
-#
-# System-supplied tools for the IRIX operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/nawk
-TOOLS_PLATFORM.basename?= /sbin/basename
-TOOLS_PLATFORM.cat?= /sbin/cat
-TOOLS_PLATFORM.chgrp?= /sbin/chgrp
-TOOLS_PLATFORM.chmod?= /sbin/chmod
-TOOLS_PLATFORM.chown?= /sbin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /sbin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /sbin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /usr/bin/egrep
-TOOLS_PLATFORM.env?= /sbin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /sbin/find
-TOOLS_PLATFORM.grep?= /sbin/grep
-.if exists(/usr/sbin/gunzip)
-TOOLS_PLATFORM.gunzip?= /usr/sbin/gunzip -f
-.endif
-.if exists(/usr/sbin/gzcat)
-TOOLS_PLATFORM.gzcat?= /usr/sbin/gzcat
-.endif
-.if exists(/usr/sbin/gzip)
-TOOLS_PLATFORM.gzip?= /usr/sbin/gzip -nf ${GZIP}
-.endif
-TOOLS_PLATFORM.head?= /usr/bsd/head
-TOOLS_PLATFORM.hostname?= /usr/bsd/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.ln?= /sbin/ln
-TOOLS_PLATFORM.ls?= /sbin/ls
-TOOLS_PLATFORM.m4?= /sbin/m4
-.if exists(/usr/sbin/mailx)
-TOOLS_PLATFORM.mail?= /usr/sbin/mailx
-.elif exists(/usr/bin/mail)
-TOOLS_PLATFORM.mail?= /usr/bin/mail
-.endif
-TOOLS_PLATFORM.mkdir?= /sbin/mkdir -p
-TOOLS_PLATFORM.mv?= /sbin/mv
-TOOLS_PLATFORM.nice?= /sbin/nice
-TOOLS_PLATFORM.pwd?= /sbin/pwd
-TOOLS_PLATFORM.rm?= /sbin/rm
-TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir
-TOOLS_PLATFORM.sed?= /sbin/sed
-TOOLS_PLATFORM.sh?= /bin/ksh
-TOOLS_PLATFORM.sleep?= /sbin/sleep
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /sbin/wc
-TOOLS_PLATFORM.xargs?= /sbin/xargs
diff --git a/mk/tools/tools.Interix.mk b/mk/tools/tools.Interix.mk
deleted file mode 100644
index 809c119246b..00000000000
--- a/mk/tools/tools.Interix.mk
+++ /dev/null
@@ -1,57 +0,0 @@
-# $NetBSD: tools.Interix.mk,v 1.17 2005/11/04 20:02:01 jlam Exp $
-#
-# System-supplied tools for the Interix operating system.
-
-TOOLS_PLATFORM.[?= /bin/[
-TOOLS_PLATFORM.awk?= /bin/awk -mr 16384
-TOOLS_PLATFORM.basename?= /bin/basename
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /bin/chown
-TOOLS_PLATFORM.cmp?= /bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /bin/diff
-TOOLS_PLATFORM.dirname?= /bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /bin/egrep
-TOOLS_PLATFORM.env?= /bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /bin/fgrep
-TOOLS_PLATFORM.file?= /bin/file
-TOOLS_PLATFORM.find?= /bin/find
-TOOLS_PLATFORM.grep?= /bin/grep
-TOOLS_PLATFORM.gunzip?= /usr/contrib/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/contrib/bin/gunzip -c
-TOOLS_PLATFORM.gzip?= /usr/contrib/bin/gzip -nf ${GZIP}
-TOOLS_PLATFORM.head?= /bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /bin/id
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /bin/m4
-TOOLS_PLATFORM.mail?= /bin/mail
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /bin/nice
-TOOLS_PLATFORM.printf?= /bin/printf
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sh?= /bin/sh
-TOOLS_PLATFORM.sleep?= /bin/sleep
-TOOLS_PLATFORM.sort?= /bin/sort
-TOOLS_PLATFORM.strip?= /bin/strip
-TOOLS_PLATFORM.tail?= /bin/tail
-TOOLS_PLATFORM.tee?= /bin/tee
-TOOLS_PLATFORM.test?= /bin/test
-TOOLS_PLATFORM.touch?= /bin/touch
-TOOLS_PLATFORM.tr?= /bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /bin/tsort
-TOOLS_PLATFORM.wc?= /bin/wc
-TOOLS_PLATFORM.xargs?= /bin/xargs
diff --git a/mk/tools/tools.Linux.mk b/mk/tools/tools.Linux.mk
deleted file mode 100644
index 08007716223..00000000000
--- a/mk/tools/tools.Linux.mk
+++ /dev/null
@@ -1,157 +0,0 @@
-# $NetBSD: tools.Linux.mk,v 1.27 2005/11/08 03:36:13 tv Exp $
-#
-# System-supplied tools for the Linux operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk}
-.if exists(/bin/basename)
-TOOLS_PLATFORM.basename?= /bin/basename
-.elif exists(/usr/bin/basename)
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-.endif
-TOOLS_PLATFORM.bash?= /bin/bash
-.if exists(/usr/bin/bison)
-TOOLS_PLATFORM.bison?= /usr/bin/bison
-TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y
-.endif
-.if exists(/usr/bin/bzcat)
-TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
-.elif exists(/usr/bin/bzip2)
-TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd
-.endif
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /bin/chown
-.if exists(/bin/cmp)
-TOOLS_PLATFORM.cmp?= /bin/cmp
-.elif exists(/usr/bin/cmp)
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-.endif
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/tcsh
-.if exists(/bin/cut)
-TOOLS_PLATFORM.cut?= /bin/cut
-.elif exists(/usr/bin/cut)
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-.endif
-TOOLS_PLATFORM.date?= /bin/date
-.if exists(/bin/diff)
-TOOLS_PLATFORM.diff?= /bin/diff
-.elif exists(/usr/bin/diff)
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-.endif
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-.if exists(/bin/egrep)
-TOOLS_PLATFORM.egrep?= /bin/egrep
-.elif exists(/usr/bin/egrep)
-TOOLS_PLATFORM.egrep?= /usr/bin/egrep
-.endif
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /usr/bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-.if exists(/bin/fgrep)
-TOOLS_PLATFORM.fgrep?= /bin/fgrep
-.elif exists(/usr/bin/fgrep)
-TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
-.endif
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.gawk?= /usr/bin/awk
-TOOLS_PLATFORM.gm4?= /usr/bin/m4
-.if exists(/usr/bin/make)
-TOOLS_PLATFORM.gmake?= /usr/bin/make
-.endif
-.if exists(/bin/grep)
-TOOLS_PLATFORM.grep?= /bin/grep
-.elif exists(/usr/bin/grep)
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-.endif
-.if exists(/bin/sed)
-TOOLS_PLATFORM.gsed?= /bin/sed
-.elif exists(/usr/bin/sed)
-TOOLS_PLATFORM.gsed?= /usr/bin/sed
-.endif
-TOOLS_PLATFORM.gtar?= /bin/tar
-.if exists(/bin/gunzip)
-TOOLS_PLATFORM.gunzip?= /bin/gunzip -f
-.elif exists(/usr/bin/gunzip)
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-.endif
-TOOLS_PLATFORM.gzcat?= /bin/zcat
-.if exists(/bin/gzip)
-TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP}
-.elif exists(/usr/bin/gzip)
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-.endif
-.if exists(/bin/head)
-TOOLS_PLATFORM.head?= /bin/head
-.elif exists(/usr/bin/head)
-TOOLS_PLATFORM.head?= /usr/bin/head
-.endif
-TOOLS_PLATFORM.hostname?= /bin/hostname
-.if exists(/bin/id)
-TOOLS_PLATFORM.id?= /bin/id
-.elif exists(/usr/bin/id)
-TOOLS_PLATFORM.id?= /usr/bin/id
-.endif
-TOOLS_PLATFORM.install?= /usr/bin/install
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4}
-.if exists(/bin/mail)
-TOOLS_PLATFORM.mail?= /bin/mail # RH, Mandrake
-.elif exists(/usr/bin/mail)
-TOOLS_PLATFORM.mail?= /usr/bin/mail # Debian, Slackware, SuSE
-.endif
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-.if exists(/usr/bin/mktemp)
-TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
-.endif
-TOOLS_PLATFORM.mv?= /bin/mv
-.if exists(/bin/nice)
-TOOLS_PLATFORM.nice?= /bin/nice
-.elif exists(/usr/bin/nice)
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-.endif
-.if exists(/usr/bin/nroff)
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-.endif
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-.if exists(/usr/bin/printf)
-TOOLS_PLATFORM.printf?= /usr/bin/printf
-.endif
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed}
-TOOLS_PLATFORM.sh?= /bin/sh
-TOOLS_PLATFORM.sleep?= /bin/sleep
-.if exists(/usr/bin/soelim)
-TOOLS_PLATFORM.soelim?= /usr/bin/soelim
-.endif
-.if exists(/bin/sort)
-TOOLS_PLATFORM.sort?= /bin/sort
-.elif exists(/usr/bin/sort)
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-.endif
-TOOLS_PLATFORM.strip?= /usr/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar}
-.if exists(/usr/bin/tbl)
-TOOLS_PLATFORM.tbl?= /usr/bin/tbl
-.endif
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-.if exists(/bin/touch)
-TOOLS_PLATFORM.touch?= /bin/touch
-.elif exists(/usr/bin/touch)
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-.endif
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs -r
diff --git a/mk/tools/tools.NetBSD.mk b/mk/tools/tools.NetBSD.mk
deleted file mode 100644
index c5f95e67541..00000000000
--- a/mk/tools/tools.NetBSD.mk
+++ /dev/null
@@ -1,86 +0,0 @@
-# $NetBSD: tools.NetBSD.mk,v 1.22 2005/11/08 03:36:13 tv Exp $
-#
-# System-supplied tools for the NetBSD operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.byacc?= /usr/bin/yacc
-.if exists(/usr/bin/bzcat)
-TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
-.endif
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /usr/sbin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /usr/bin/egrep
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.flex?= /usr/bin/lex
-.if !empty(MACHINE_PLATFORM:MNetBSD-1.[0-6]*-*)
-TOOLS_PLATFORM.gawk?= ${TOOLS_PLATFORM.awk}
-.endif
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.gsed?= ${TOOLS_PLATFORM.sed} # GNUish
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.install?= /usr/bin/install
-.if exists(/sbin/ldconfig)
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-.endif
-TOOLS_PLATFORM.lex?= /usr/bin/lex
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mail
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
-TOOLS_PLATFORM.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.pax?= /bin/pax
-TOOLS_PLATFORM.printf?= /usr/bin/printf
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /bin/sh
-TOOLS_PLATFORM.shlock?= /usr/bin/shlock
-TOOLS_PLATFORM.sleep?= /bin/sleep
-TOOLS_PLATFORM.soelim?= /usr/bin/soelim
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-.if exists(/bin/tar)
-TOOLS_PLATFORM.tar?= /bin/tar
-.elif exists(/usr/bin/tar)
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-.endif
-TOOLS_PLATFORM.tbl?= /usr/bin/tbl
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
-TOOLS_PLATFORM.yacc?= /usr/bin/yacc
diff --git a/mk/tools/tools.OSF1.mk b/mk/tools/tools.OSF1.mk
deleted file mode 100644
index d1715f61c3b..00000000000
--- a/mk/tools/tools.OSF1.mk
+++ /dev/null
@@ -1,56 +0,0 @@
-# $NetBSD: tools.OSF1.mk,v 1.11 2005/06/24 20:59:59 jlam Exp $
-#
-# System-supplied tools for the OSF/1 operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.cat?= /bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /bin/chmod
-TOOLS_PLATFORM.chown?= /bin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= /usr/bin/echo
-TOOLS_PLATFORM.egrep?= /usr/bin/grep -E
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /usr/bin/grep -F
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mailx
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sh?= /bin/ksh
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
diff --git a/mk/tools/tools.OpenBSD.mk b/mk/tools/tools.OpenBSD.mk
deleted file mode 100644
index 8d1b09292cd..00000000000
--- a/mk/tools/tools.OpenBSD.mk
+++ /dev/null
@@ -1,83 +0,0 @@
-# $NetBSD: tools.OpenBSD.mk,v 1.21 2005/11/08 03:36:13 tv Exp $
-#
-# System-supplied tools for the OpenBSD operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/awk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.byacc?= /usr/bin/yacc
-TOOLS_PLATFORM.cat?= /bin/cat
-.if exists(/bin/chgrp)
-TOOLS_PLATFORM.chgrp?= /bin/chgrp
-.elif exists(/usr/bin/chgrp)
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-.endif
-TOOLS_PLATFORM.chmod?= /bin/chmod
-.if exists(/sbin/chown)
-TOOLS_PLATFORM.chown?= /sbin/chown
-.elif exists(/usr/sbin/chown)
-TOOLS_PLATFORM.chown?= /usr/sbin/chown
-.endif
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= echo # shell builtin
-TOOLS_PLATFORM.egrep?= /usr/bin/egrep
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /bin/expr
-TOOLS_PLATFORM.false?= false # shell builtin
-TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.flex?= /usr/bin/lex
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.install?= /usr/bin/install
-TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
-TOOLS_PLATFORM.lex?= /usr/bin/lex
-TOOLS_PLATFORM.ln?= /bin/ln
-TOOLS_PLATFORM.ls?= /bin/ls
-TOOLS_PLATFORM.m4?= /usr/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mail
-TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
-TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
-TOOLS_PLATFORM.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.printf?= /usr/bin/printf
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /bin/sh
-TOOLS_PLATFORM.sleep?= /bin/sleep
-TOOLS_PLATFORM.soelim?= /usr/bin/soelim
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/bin/strip
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-.if exists(/bin/tar)
-TOOLS_PLATFORM.tar?= /bin/tar
-.elif exists(/usr/bin/tar)
-TOOLS_PLATFORM.tar?= /usr/bin/tar
-.endif
-TOOLS_PLATFORM.tbl?= /usr/bin/tbl
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= true # shell builtin
-TOOLS_PLATFORM.tsort?= /usr/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
-TOOLS_PLATFORM.yacc?= /usr/bin/yacc
diff --git a/mk/tools/tools.SunOS.mk b/mk/tools/tools.SunOS.mk
deleted file mode 100644
index c351d0a3f30..00000000000
--- a/mk/tools/tools.SunOS.mk
+++ /dev/null
@@ -1,86 +0,0 @@
-# $NetBSD: tools.SunOS.mk,v 1.23 2005/11/08 03:36:13 tv Exp $
-#
-# System-supplied tools for the Solaris operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/nawk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-.if exists(/usr/bin/bzcat)
-TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
-.endif
-TOOLS_PLATFORM.cat?= /usr/bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /usr/bin/chmod
-TOOLS_PLATFORM.chown?= /usr/bin/chown
-.if exists(/bin/cmp)
-TOOLS_PLATFORM.cmp?= /bin/cmp
-.elif exists(/usr/bin/cmp)
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-.endif
-TOOLS_PLATFORM.cp?= /bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /usr/xpg4/bin/date
-.if exists(/bin/diff)
-TOOLS_PLATFORM.diff?= /bin/diff
-.elif exists(/usr/bin/diff)
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-.endif
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= /usr/ucb/echo
-TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr
-TOOLS_PLATFORM.false?= /usr/bin/false
-TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/fgrep
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.grep?= /usr/xpg4/bin/grep
-.if exists(/usr/bin/gzip)
-TOOLS_PLATFORM.gunzip?= /usr/bin/gzip -df
-TOOLS_PLATFORM.gzcat?= /usr/bin/gzip -cd
-TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
-.endif
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /bin/hostname
-TOOLS_PLATFORM.id?= /usr/xpg4/bin/id
-TOOLS_PLATFORM.install?= /usr/ucb/install
-TOOLS_PLATFORM.ln?= /usr/bin/ln
-TOOLS_PLATFORM.ls?= /usr/bin/ls
-TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mailx
-TOOLS_PLATFORM.mkdir?= /usr/bin/mkdir -p
-.if exists(/usr/bin/mktemp)
-TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
-.endif
-TOOLS_PLATFORM.mv?= /usr/bin/mv
-TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice
-.if exists(/usr/bin/nroff)
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-.endif
-.if exists(/usr/bin/gpatch)
-TOOLS_PLATFORM.patch?= /usr/bin/gpatch
-.endif
-TOOLS_PLATFORM.printf?= /bin/printf
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /usr/bin/rm
-TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir
-TOOLS_PLATFORM.sh?= /bin/ksh
-TOOLS_PLATFORM.sleep?= /bin/sleep
-.if exists(/usr/bin/soelim)
-TOOLS_PLATFORM.tbl?= /usr/bin/soelim
-.endif
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip
-TOOLS_PLATFORM.tail?= /usr/xpg4/bin/tail
-.if exists(/usr/bin/tbl)
-TOOLS_PLATFORM.tbl?= /usr/bin/tbl
-.endif
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= /usr/bin/true
-TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
diff --git a/mk/tools/tools.UnixWare.mk b/mk/tools/tools.UnixWare.mk
deleted file mode 100644
index 7905a470cd8..00000000000
--- a/mk/tools/tools.UnixWare.mk
+++ /dev/null
@@ -1,53 +0,0 @@
-# $NetBSD: tools.UnixWare.mk,v 1.12 2005/06/24 20:59:59 jlam Exp $
-#
-# System-supplied tools for the UnixWare 7 operating system.
-
-TOOLS_PLATFORM.[?= [ # shell builtin
-TOOLS_PLATFORM.awk?= /usr/bin/nawk
-TOOLS_PLATFORM.basename?= /usr/bin/basename
-TOOLS_PLATFORM.cat?= /usr/bin/cat
-TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
-TOOLS_PLATFORM.chmod?= /usr/bin/chmod
-TOOLS_PLATFORM.chown?= /usr/bin/chown
-TOOLS_PLATFORM.cmp?= /usr/bin/cmp
-TOOLS_PLATFORM.cp?= /usr/bin/cp
-TOOLS_PLATFORM.csh?= /bin/csh
-TOOLS_PLATFORM.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /usr/bin/date
-TOOLS_PLATFORM.diff?= /usr/bin/diff
-TOOLS_PLATFORM.dirname?= /usr/bin/dirname
-TOOLS_PLATFORM.echo?= /usr/ucb/echo
-TOOLS_PLATFORM.egrep?= /usr/bin/grep -E
-TOOLS_PLATFORM.env?= /usr/bin/env
-TOOLS_PLATFORM.expr?= /usr/bin/expr
-TOOLS_PLATFORM.false?= /usr/bin/false
-TOOLS_PLATFORM.fgrep?= /usr/bin/grep -F
-TOOLS_PLATFORM.file?= /usr/bin/file
-TOOLS_PLATFORM.find?= /usr/bin/find
-TOOLS_PLATFORM.grep?= /usr/bin/grep
-TOOLS_PLATFORM.head?= /usr/bin/head
-TOOLS_PLATFORM.hostname?= /usr/bin/hostname
-TOOLS_PLATFORM.id?= /usr/bin/id
-TOOLS_PLATFORM.install?= /usr/ucb/install
-TOOLS_PLATFORM.ln?= /usr/bin/ln
-TOOLS_PLATFORM.ls?= /usr/bin/ls
-TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4
-TOOLS_PLATFORM.mail?= /usr/bin/mailx
-TOOLS_PLATFORM.mv?= /usr/bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.nroff?= /usr/bin/nroff
-TOOLS_PLATFORM.pwd?= /usr/bin/pwd
-TOOLS_PLATFORM.rm?= /usr/bin/rm
-TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir
-TOOLS_PLATFORM.sed?= /usr/bin/sed
-TOOLS_PLATFORM.sh?= /usr/bin/ksh
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.tail?= /usr/bin/tail
-TOOLS_PLATFORM.tee?= /usr/bin/tee
-TOOLS_PLATFORM.test?= test # shell builtin
-TOOLS_PLATFORM.touch?= /usr/bin/touch
-TOOLS_PLATFORM.tr?= /usr/bin/tr
-TOOLS_PLATFORM.true?= /usr/bin/true
-TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort
-TOOLS_PLATFORM.wc?= /usr/bin/wc
-TOOLS_PLATFORM.xargs?= /usr/bin/xargs
diff --git a/mk/unprivileged.mk b/mk/unprivileged.mk
deleted file mode 100644
index eed235a4851..00000000000
--- a/mk/unprivileged.mk
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: unprivileged.mk,v 1.3 2005/09/28 21:55:32 rillig Exp $
-#
-# Ease configuration of unprivileged (non-root) builds.
-#
-# UNPRIVILEGED If set to 'yes', enable unprivileged builds.
-# Disabled by default.
-#
-# UNPRIVILEGED_GROUP Specifies the group name (or gid) that will be used
-# to install files. Guessed if empty.
-#
-# UNPRIVILEGED_USER Specifies the user name (or uid) that will be used
-# to install files. Guessed if empty.
-
-.if defined(UNPRIVILEGED) && !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
-
-# Guess which user/group has to be used.
-. if !defined(UNPRIVILEGED_USER) || empty(UNPRIVILEGED_USER)
-UNPRIVILEGED_USER!= ${ID} -n -u
-. endif
-. if !defined(UNPRIVILEGED_GROUP) || empty(UNPRIVILEGED_GROUP)
-UNPRIVILEGED_GROUP!= ${ID} -n -g
-. endif
-
-# Override super-user account.
-ROOT_GROUP= ${UNPRIVILEGED_GROUP}
-ROOT_USER= ${UNPRIVILEGED_USER}
-
-# Override user/group pairs used to install files.
-BINGRP= ${UNPRIVILEGED_GROUP}
-BINOWN= ${UNPRIVILEGED_USER}
-GAMEGRP= ${UNPRIVILEGED_GROUP}
-GAMEOWN= ${UNPRIVILEGED_USER}
-MANGRP= ${UNPRIVILEGED_GROUP}
-MANOWN= ${UNPRIVILEGED_USER}
-SHAREGRP= ${UNPRIVILEGED_GROUP}
-SHAREOWN= ${UNPRIVILEGED_USER}
-
-# Override installation modes. As a regular user, we may have problems
-# when overwriting files if they are not writable.
-BINMODE= 755
-NONBINMODE= 644
-
-# mtree is useless as a regular user because it won't set directory
-# ownerships correctly.
-NO_MTREE= yes
-
-# As a regular user, creation of other users and groups won't work, so
-# disable this step by default.
-PKG_CREATE_USERGROUP= NO
-
-# Override commands that won't work as a regular user.
-CHGRP= ${TRUE}
-CHOWN= ${TRUE}
-SU_CMD= ${SH} -c
-
-# Do not attempt to modify /etc/shells as a regular user.
-PKG_REGISTER_SHELLS= NO
-
-.endif
diff --git a/mk/wrapper/NOTES b/mk/wrapper/NOTES
deleted file mode 100644
index 342781d35da..00000000000
--- a/mk/wrapper/NOTES
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: NOTES,v 1.2 2005/01/18 17:25:13 jlam Exp $
-
-
- ==> {"$@"} ,--> {argbuf} ,--> {cmdbuf}
- | |
- ^ | | | | |
- | `------. | | | |
- | | | | | |
- v v | | | |
- | |
- [scan] [arg-source] `--> [logic] `--------> [cmd-sink]
-
- ^ ^ ^ ^ ^ ^
- ,-----------------------------' | | | | |
- | ,-------------------' | | | |
- | | ,-------------' | | |
- | | | ,---' `-------. |
- v v v v v v
-
- [arg-pp-main] [arg-pp] [cache] [transform.sed] [transform] [buildcmd]
-
- |
- ,-- {cmd} <--|
- {cmd} <===| |
- `-- {libs} <--'
-
- ^
- |
- v
-
- [reorderlibs]
diff --git a/mk/wrapper/arg-pp-darwin-gcc b/mk/wrapper/arg-pp-darwin-gcc
deleted file mode 100644
index 9440c7c4200..00000000000
--- a/mk/wrapper/arg-pp-darwin-gcc
+++ /dev/null
@@ -1,76 +0,0 @@
-# $NetBSD: arg-pp-darwin-gcc,v 1.2 2005/02/14 21:33:36 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# Split direct paths to Darwin "dylib" shared libraries into the
-# "-Ldir -llib" equivalent.
-######################################################################
-/*/lib*.dylib)
- dir="${arg%/lib*.dylib}"
- lib="${arg#$dir/lib}"
- case $lib in
- */*) argok=yes; argmatch=yes ;;
- *.dylib) lib="${lib%.dylib}" ;;
- esac
- case $argmatch in
- yes) ;;
- *) prepend_queue argbuf "-l$lib"
- $debug_log $wrapperlog " (arg-pp-darwin-gcc) pre: -l$lib"
- prepend_queue argbuf "-L$dir"
- $debug_log $wrapperlog " (arg-pp-darwin-gcc) pre: -L$dir"
- argmatch=yes
- ;;
- esac
- ;;
-######################################################################
-# Darwin's linker uses:
-#
-# -dylib_file /path/shlib:/path2/shlib
-# -dylib_install_name /path/shlib
-# -install_name /path/shlib
-#
-# to pass the installed locations for the shared libraries to the
-# linker, and we need to pass the extra argument unmodified. The
-# purpose of -seg_addr_table_filename is more obscure, but Darwin's
-# imake rules use it.
-######################################################################
--dylib_file|-dylib_install_name|-install_name|-seg_addr_table_filename)
- skipargs=1
- argok=yes
- argmatch=yes
- ;;
-esac
diff --git a/mk/wrapper/arg-pp-main b/mk/wrapper/arg-pp-main
deleted file mode 100644
index 537c812c456..00000000000
--- a/mk/wrapper/arg-pp-main
+++ /dev/null
@@ -1,170 +0,0 @@
-# $NetBSD: arg-pp-main,v 1.5 2005/08/05 19:46:41 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# Hardcode a workaround for perl's DynaLoader.a which is definitely
-# a PIC code archive, but libtool isn't smart enough to realize it.
-# cmd-sink-libtool munged it into something libtool recognizes, but
-# now we need to unmunge it so that the compiler/linker are called
-# with the right name for the archive.
-######################################################################
-*/libDynaLoader_pic.a)
- arg="${arg%/libDynaLoader_pic.a}/DynaLoader.a"
- prepend_queue argbuf "$arg"
- $debug_log $wrapperlog " (arg-pp-main) pre: $arg"
- argmatch=yes
- ;;
-######################################################################
-# Split direct paths to shared libraries into the "-Ldir -llib"
-# equivalent.
-######################################################################
-/*/lib*.so|/*/lib*.so.[0-9]*)
- dir="${arg%/lib*}"
- lib="${arg#$dir/lib}"
- case $lib in
- */*) argok=yes; argmatch=yes ;;
- *.so) lib="${lib%.so}" ;;
- *.so.[0-9]*) lib="${lib%.so.[0-9]*}" ;;
- esac
- case $argmatch in
- yes) ;;
- *) prepend_queue argbuf "-l$lib"
- $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib"
- prepend_queue argbuf "-L$dir"
- $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir"
- argmatch=yes
- ;;
- esac
- ;;
-/*/lib*.sl|/*/lib*.sl.[0-9]*) # HP-UX
- dir="${arg%/lib*}"
- lib="${arg#$dir/lib}"
- case $lib in
- */*) argok=yes; argmatch=yes ;;
- *.sl) lib="${lib%.sl}" ;;
- *.sl.[0-9]*) lib="${lib%.sl.[0-9]*}" ;;
- esac
- case $argmatch in
- yes) ;;
- *) prepend_queue argbuf "-l$lib"
- $debug_log $wrapperlog " (arg-pp-main) pre: -l$lib"
- prepend_queue argbuf "-L$dir"
- $debug_log $wrapperlog " (arg-pp-main) pre: -L$dir"
- argmatch=yes
- ;;
- esac
- ;;
-######################################################################
-# Remove extraneous comma in "-Wl,-R,/dir" and in "-Wl,-L,/dir".
-######################################################################
--Wl,-L,*)
- arg="-Wl,-L${arg#-Wl,-L,}"
- $debug_log $wrapperlog " (arg-pp-main) pre: $arg"
- prepend_queue argbuf "$arg"
- argmatch=yes
- ;;
--Wl,-R,*)
- arg="-Wl,-R${arg#-Wl,-R,}"
- $debug_log $wrapperlog " (arg-pp-main) pre: $arg"
- prepend_queue argbuf "$arg"
- argmatch=yes
- ;;
-######################################################################
-# Merge "-Wl,-R -Wl,/dir" into a single "-Wl,-R/dir". Same for -Wl,-L,
-# -Wl,-rpath and -Wl,-rpath-link.
-######################################################################
--Wl,-[LR])
- pop_queue argbuf nextarg
- $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg"
- shquote "${nextarg#-Wl,}"; nextarg="$shquoted"
- $debug_log $wrapperlog " (arg-pp-main) pre: $arg$nextarg"
- prepend_queue argbuf "$arg$nextarg"
- argmatch=yes
- ;;
--Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath)
- pop_queue argbuf nextarg
- $debug_log $wrapperlog " (arg-pp-main) pop: $nextarg"
- shquote "${nextarg#-Wl,}"; nextarg="$shquoted"
- $debug_log $wrapperlog " (arg-pp-main) pre: $arg,$nextarg"
- prepend_queue argbuf "$arg,$nextarg"
- argmatch=yes
- ;;
-######################################################################
-# Remove rpath options that try to add relative paths to the runtime
-# library search path. This basically cleans up after lazy programmers
-# who can't write Makefiles.
-######################################################################
--R[!/]*|-Wl,-R[!/]*|\
--Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*)
- $debug_log $wrapperlog " (arg-pp-main) drop: $arg"
- argmatch=yes
- ;;
-######################################################################
-# Remove consecutive, repeated library options.
-######################################################################
--l*)
- head_queue argbuf nextarg
- while $test "$nextarg" = "$arg"; do
- pop_queue argbuf nextarg
- $debug_log $wrapperlog " (arg-pp-main) drop: $nextarg"
- if queue_is_empty argbuf; then
- break
- else
- head_queue argbuf nextarg
- fi
- done
- argok=yes
- argmatch=yes
- ;;
-#######################################################################
-# The -o option takes an extra argument that should be passed unmodified.
-#######################################################################
--o)
- skipargs=1
- argok=yes
- argmatch=yes
- ;;
-#######################################################################
-# GNU ld uses "--dynamic-linker /path/to/shared/object" to set the
-# dynamic linker code for ELF executables.
-#######################################################################
---dynamic-linker)
- skipargs=1
- argok=yes
- argmatch=yes
- ;;
-esac
diff --git a/mk/wrapper/arg-pp-mipspro-cc b/mk/wrapper/arg-pp-mipspro-cc
deleted file mode 100644
index f8cc1466e2c..00000000000
--- a/mk/wrapper/arg-pp-mipspro-cc
+++ /dev/null
@@ -1,48 +0,0 @@
-# $NetBSD: arg-pp-mipspro-cc,v 1.1 2005/01/18 17:25:13 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# MIPSpro uses -LANG:<feature> and -LIST:<feature> as knobs for the
-# compiler, but we don't want them to be confused with the usual
-# -Ldir options, so just pass them verbatim onward.
-######################################################################
--LANG:*|-LIST:*)
- do_transform=no
- argok=yes
- argmatch=yes
- ;;
-esac
diff --git a/mk/wrapper/arg-pp-sunpro-cxx b/mk/wrapper/arg-pp-sunpro-cxx
deleted file mode 100644
index 3f706df32fa..00000000000
--- a/mk/wrapper/arg-pp-sunpro-cxx
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: arg-pp-sunpro-cxx,v 1.2 2005/08/21 02:39:52 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
--Qoption)
- argmatch=no
- pop_queue argbuf nextarg1
- $debug_log $wrapperlog " (arg-pp-sunpro-cxx) pop: $nextarg1"
- case $nextarg1 in
- ld)
- argmatch=yes
- pop_queue argbuf nextarg2
- $debug_log $wrapperlog " (arg-pp-sunpro-cxx) pop: $nextarg2"
- case $nextarg2 in
- -R*)
- $debug_log $wrapperlog " (arg-pp-sunpro-cxx) pre: $nextarg2"
- prepend_queue argbuf $nextarg2
- ;;
- *)
- argok=yes
- $debug_log $wrapperlog " (arg-pp-sunpro-cxx) pre: $nextarg2"
- prepend_queue argbuf $nextarg2
- $debug_log $wrapperlog " (arg-pp-sunpro-cxx) pre: $nextarg1"
- prepend_queue argbuf $nextarg1
- ;;
- esac
- ;;
- esac
- ;;
-esac
diff --git a/mk/wrapper/arg-source b/mk/wrapper/arg-source
deleted file mode 100644
index df969922404..00000000000
--- a/mk/wrapper/arg-source
+++ /dev/null
@@ -1,140 +0,0 @@
-# $NetBSD: arg-source,v 1.7 2005/06/09 17:06:21 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# This script manages a buffer through which arguments from the command
-# line are funneled. Along the way, the arguments are potentially
-# merged and split in various ways to canonicalize their representation.
-# This script should be sourced within a loop and upon exiting returns
-# an argument in $arg.
-#
-# This is done by pushing the next command-line argument onto a queue,
-# then using a processing loop to pop an argument off of the top of
-# the queue, transform it, and possibly push more arguments back onto
-# the queue.
-
-# Push arguments from the command line into the argument buffer.
-while $test $# -gt 0; do
- arg="$1"; shift
- case $arg in
- ##############################################################
- # Merge "-I /dir" into a single "-I/dir". Same for -L, -R.
- ##############################################################
- -[ILR])
- nextarg="$1"; shift
- shquote "$nextarg"; nextarg="$shquoted"
- append_queue argbuf "$arg$nextarg"
- $debug_log $wrapperlog " (arg-source) push: $arg$nextarg"
- ;;
- ##############################################################
- # Split "-Wl,-R/dir1:/dir2" into "-Wl,-R/dir1 -Wl,-R/dir2".
- # Same for -R and -Wl,-rpath and -Wl,-rpath-link.
- ##############################################################
- -R*:*|-Wl,-R*:*|\
- -Wl,-rpath,*:*|-Wl,-rpath-link,*:*|-Wl,--rpath,*:*)
- case $arg in
- -R*) R="-R" ;;
- -Wl,-R*) R="-Wl,-R" ;;
- -Wl,-rpath,*) R="-Wl,-rpath," ;;
- -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
- -Wl,--rpath,*) R="-Wl,--rpath," ;;
- esac
- list="${arg#$R}"
- save_IFS="${IFS}"; IFS=":"
- for dir in $list; do
- shquote "$dir"; dir="$shquoted"
- append_queue argbuf "$R$dir"
- $debug_log $wrapperlog " (arg-source) push: $R$dir"
- done
- IFS="${save_IFS}"
- ;;
- ##############################################################
- # Merge and split "-Wl,-R -Wl,/dir1:/dir2" into
- # "-Wl,-R/dir1 -Wl,-R/dir2". Same for -Wl,-rpath and
- # -Wl,-rpath-link.
- ##############################################################
- -Wl,-R|-Wl,-rpath|-Wl,-rpath-link|-Wl,--rpath)
- nextarg="$1"; shift
- case $arg in
- -Wl,-R) R="-Wl,-R" ;;
- -Wl,-rpath) R="-Wl,-rpath," ;;
- -Wl,-rpath-link) R="-Wl,-rpath-link," ;;
- -Wl,--rpath) R="-Wl,--rpath," ;;
- esac
- nextarg="${nextarg#-Wl,}"
- case $nextarg in
- *:*)
- save_IFS="${IFS}"; IFS=":"
- for dir in $nextarg; do
- shquote "$dir"; dir="$shquoted"
- append_queue argbuf "$R$dir"
- $debug_log $wrapperlog " (arg-source) push: $R$dir"
- done
- IFS="${save_IFS}"
- ;;
- *)
- shquote "$nextarg"; nextarg="$shquoted"
- append_queue argbuf "$R$nextarg"
- $debug_log $wrapperlog " (arg-source) push: $R$nextarg"
- ;;
- esac
- ;;
- ##############################################################
- # "-Xlinker arg" is the equivalent of "-Wl,arg" so convert it
- # here before queueing it up.
- ##############################################################
- -Xlinker)
- nextarg="$1"; shift
- case $nextarg in
- -Wl,*)
- append_queue argbuf "$nextarg"
- $debug_log $wrapperlog " (arg-source) push: $nextarg"
- ;;
- *)
- shquote "$nextarg"; nextarg="$shquoted"
- append_queue argbuf "-Wl,$nextarg"
- $debug_log $wrapperlog " (arg-source) push: -Wl,$nextarg"
- ;;
- esac
- ;;
- ##############################################################
- # For everything else, just queue it up.
- ##############################################################
- *)
- append_queue argbuf "$arg"
- $debug_log $wrapperlog " (arg-source) push: $arg"
- ;;
- esac
-done
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk
deleted file mode 100644
index 0d8ff3c9b90..00000000000
--- a/mk/wrapper/bsd.wrapper.mk
+++ /dev/null
@@ -1,775 +0,0 @@
-# $NetBSD: bsd.wrapper.mk,v 1.38 2005/10/16 19:44:44 schwarz Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-.include "../../mk/wrapper/wrapper-defs.mk"
-
-# pkgsrc bmake does not (yet) correctly handle ${VAR} > 0 because
-# ${VAR} is treated as a string, so we must use a string comparison
-# operator.
-.if ${PKG_DEBUG_LEVEL} != "0" || defined(PKG_VERBOSE)
-ECHO_WRAPPER_MSG?= ${ECHO}
-.else
-ECHO_WRAPPER_MSG?= ${TRUE}
-.endif
-
-.PHONY: do-wrapper
-
-.include "../../mk/buildlink3/bsd.buildlink3.mk"
-
-# Prepend ${WRAPPER_BINDIR} to the PATH so that the wrappers are found
-# first when searching for executables.
-#
-PREPEND_PATH+= ${WRAPPER_BINDIR}
-
-###
-### BEGIN: after "wrapper" phase
-###
-.if !empty(PHASES_AFTER_WRAPPER:M${PKG_PHASE})
-
-WRAPPER_DEBUG?= yes
-CONFIGURE_ENV+= WRAPPER_DEBUG="${WRAPPER_DEBUG}"
-MAKE_ENV+= WRAPPER_DEBUG="${WRAPPER_DEBUG}"
-SCRIPTS_ENV+= WRAPPER_DEBUG="${WRAPPER_DEBUG}"
-
-# The caching code, which greatly speeds up the build process, doesn't
-# work correctly on certain platforms.
-#
-_WRAP_BROKEN_CACHE= Darwin-5.*-*
-
-.if !defined(WRAPPER_UPDATE_CACHE)
-WRAPPER_UPDATE_CACHE?= yes
-. for _pattern_ in ${_WRAP_BROKEN_CACHE}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-WRAPPER_UPDATE_CACHE= no
-. endif
-. endfor
-.endif
-CONFIGURE_ENV+= WRAPPER_UPDATE_CACHE="${WRAPPER_UPDATE_CACHE}"
-MAKE_ENV+= WRAPPER_UPDATE_CACHE="${WRAPPER_UPDATE_CACHE}"
-
-# Only do the (expensive) reordering step if we have reordering
-# transformations.
-#
-WRAPPER_REORDER_CMDS?= # empty
-.if !empty(WRAPPER_REORDER_CMDS)
-MAKE_ENV+= WRAPPER_REORDER=yes
-.endif
-
-# Remove rpath options if _USE_RPATH is "no".
-.if defined(_USE_RPATH) && !empty(_USE_RPATH:M[nN][oO])
-_WRAP_TRANSFORM_CMDS+= no-rpath
-.endif
-
-# Add any package-specified transformations.
-_WRAP_TRANSFORM_CMDS+= ${WRAPPER_TRANSFORM_CMDS}
-
-# _WRAP_PATH is the path we embed in the wrapper scripts for subsequent
-# calls to the toolchain. We don't need to wrap them again because they
-# are already being called with the correct arguments.
-#
-.if !defined(_WRAP_PATH)
-_WRAP_PATH= ${PATH:S/${WRAPPER_BINDIR}://:S/:${WRAPPER_BINDIR}//}
-.endif
-MAKEVARS+= _WRAP_PATH
-
-# Generate wrapper scripts for the compiler tools. These wrapper
-# scripts are to be used instead of the actual compiler tools when
-# building software.
-#
-# WRAPPER_CC, WRAPPER_LD, etc. are the full paths to the wrapper
-# scripts.
-#
-# _WRAP_ALIASES.CC, _WRAP_ALIASES.LD, etc. are the other names by
-# which each wrapper may be invoked.
-#
-WRAPPEES+= AS
-WRAPPEES+= CC
-WRAPPEES+= CPP
-WRAPPEES+= CXX
-WRAPPEES+= FC
-.if defined(USE_X11)
-IMAKE?= ${X11BASE}/bin/imake
-WRAPPEES+= IMAKE
-.endif
-WRAPPEES+= LD
-
-_WRAPPEE_UNIQUE_CMDS= # empty
-.for _wrappee_ in ${WRAPPEES}
-_WRAPPEES+= ${_wrappee_}
-_WRAPPEE_${_wrappee_}= ${${_wrappee_}:T:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-. if empty(_WRAPPEE_UNIQUE_CMDS:M${_WRAPPEE_${_wrappee_}})
-_WRAPPEE_UNIQUE_CMDS+= ${_WRAPPEE_${_wrappee_}}
-_WRAPPEES_UNIQUE+= ${_wrappee_}
-. endif
-.endfor # WRAPPEES
-
-.for _wrappee_ in ${_WRAPPEES}
-#
-# Strip the leading paths from the toolchain variables since we manipulate
-# the PATH to use the correct executable.
-#
-. if empty(${_wrappee_}:C/^/_asdf_/1:N_asdf_*)
-${_wrappee_}:= ${${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T}
-. else
-${_wrappee_}:= ${${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T} ${${_wrappee_}:C/^/_asdf_/1:N_asdf_*}
-. endif
-#
-# WRAPPER_<wrappee> is the full path to the wrapper script, plus any
-# trailing arguments to <wrappee>.
-#
-WRAPPER_${_wrappee_}= ${WRAPPER_BINDIR}/${${_wrappee_}}
-.endfor # _WRAPPEES
-
-_WRAP_ALIASES.AS= as
-_WRAP_ALIASES.CC= cc gcc
-_WRAP_ALIASES.CXX= c++ g++ CC cxx
-_WRAP_ALIASES.CPP= cpp
-_WRAP_ALIASES.FC= f77 g77
-_WRAP_ALIASES.IMAKE= imake
-_WRAP_ALIASES.LD= ld
-
-# _WRAP_*.<wrappee> variables represent "template methods" of the main
-# wrapper script. This allows individual wrappers to be customized to
-# some degree:
-#
-_WRAP_ENV?= PATH="${_WRAP_PATH}"; export PATH
-_WRAP_EMPTY_FILE?= ${WRAPPER_TMPDIR}/empty
-_WRAP_ARG_PP?= ${_WRAP_EMPTY_FILE}
-_WRAP_ARG_PP_MAIN?= ${WRAPPER_TMPDIR}/arg-pp-main
-_WRAP_ARG_SOURCE?= ${WRAPPER_TMPDIR}/arg-source
-_WRAP_BUILDCMD?= ${WRAPPER_TMPDIR}/buildcmd
-_WRAP_CACHE?= ${WRAPPER_TMPDIR}/cache
-_WRAP_CACHE_HEADER?= ${WRAPPER_TMPDIR}/cache-header
-_WRAP_CACHE_BODY?= ${WRAPPER_TMPDIR}/cache-body
-_WRAP_CACHE_FOOTER?= ${WRAPPER_TMPDIR}/cache-footer
-_WRAP_CLEANUP?= ${_WRAP_EMPTY_FILE}
-_WRAP_CMD_SINK?= ${WRAPPER_TMPDIR}/cmd-sink
-_WRAP_GEN_REORDER?= ${WRAPPER_TMPDIR}/gen-reorder
-_WRAP_GEN_TRANSFORM?= ${WRAPPER_TMPDIR}/gen-transform
-_WRAP_LOG?= ${WRKLOG}
-_WRAP_LOGIC?= ${WRAPPER_TMPDIR}/logic
-_WRAP_REORDERLIBS?= ${WRAPPER_TMPDIR}/reorderlibs
-_WRAP_SCAN?= ${WRAPPER_TMPDIR}/scan
-_WRAP_SHELL_LIB?= ${WRAPPER_TMPDIR}/shell-lib
-_WRAP_SKIP_TRANSFORM?= no
-_WRAP_TRANSFORM?= ${_WRAP_EMPTY_FILE}
-_WRAP_TRANSFORM_SED?= # empty
-_WRAP_TRANSFORM_SEDFILE?= ${WRAPPER_TMPDIR}/transform.sed
-_WRAP_UNTRANSFORM_SEDFILE?= ${WRAPPER_TMPDIR}/untransform.sed
-
-# Generate the transformation sedfiles if we need them.
-.if !empty(_WRAP_TRANSFORM_CMDS)
-do-wrapper: ${_WRAP_TRANSFORM_SEDFILE} ${_WRAP_UNTRANSFORM_SEDFILE}
-_WRAP_TRANSFORM_SED+= -f ${_WRAP_TRANSFORM_SEDFILE}
-_UNWRAP_SED= -f ${_WRAP_UNTRANSFORM_SEDFILE}
-.endif
-
-.for _wrappee_ in ${_WRAPPEES}
-_WRAPPER_SH.${_wrappee_}= ${WRAPPER_SRCDIR}/wrapper.sh
-_WRAP_ENV.${_wrappee_}?= ${_WRAP_ENV}
-_WRAP_EXTRA_ARGS.${_wrappee_}?= # empty
-_WRAP_ARG_PP.${_wrappee_}?= ${_WRAP_ARG_PP}
-_WRAP_ARG_PP_MAIN.${_wrappee_}?= ${_WRAP_ARG_PP_MAIN}
-_WRAP_ARG_SOURCE.${_wrappee_}?= ${_WRAP_ARG_SOURCE}
-_WRAP_BUILDCMD.${_wrappee_}?= ${_WRAP_BUILDCMD}
-_WRAP_CACHE.${_wrappee_}?= ${_WRAP_CACHE}
-_WRAP_CACHE_HEADER.${_wrappee_}?= ${_WRAP_CACHE_HEADER}
-_WRAP_CACHE_BODY.${_wrappee_}?= ${_WRAP_CACHE_BODY}
-_WRAP_CACHE_FOOTER.${_wrappee_}?= ${_WRAP_CACHE_FOOTER}
-_WRAP_CLEANUP.${_wrappee_}?= ${_WRAP_CLEANUP}
-_WRAP_CMD_SINK.${_wrappee_}?= ${_WRAP_CMD_SINK}
-_WRAP_LOG.${_wrappee_}?= ${_WRAP_LOG}
-_WRAP_LOGIC.${_wrappee_}?= ${_WRAP_LOGIC}
-_WRAP_SCAN.${_wrappee_}?= ${_WRAP_SCAN}
-_WRAP_TRANSFORM.${_wrappee_}?= ${_WRAP_TRANSFORM}
-_WRAP_TRANSFORM_SED.${_wrappee_}?= ${_WRAP_TRANSFORM_SED}
-_WRAP_SKIP_TRANSFORM.${_wrappee_}?= ${_WRAP_SKIP_TRANSFORM}
-.endfor # _WRAPPEES
-
-.if !empty(PKGSRC_COMPILER:Maix-xlc)
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-aix-xlc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-_WRAP_CMD_SINK.LD= ${_WRAP_CMD_SINK.CC}
-.endif
-
-.if !empty(PKGSRC_COMPILER:Micc)
-. if !empty(CC_VERSION:M8.1) || !empty(CC_VERSION:M9.0)
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-icc81-cc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-. else
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-icc-cc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-. endif
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-icc-cc
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-icc-cc
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-.endif
-
-.if !empty(PKGSRC_COMPILER:Mmipspro)
-_WRAP_ARG_PP.CC= ${WRAPPER_TMPDIR}/arg-pp-mipspro-cc
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-mipspro-cc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-mipspro-cc
-_WRAP_ARG_PP.CXX= ${_WRAP_ARG_PP.CC}
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-.endif
-
-.if !empty(PKGSRC_COMPILER:Mmipspro-ucode)
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-mipspro-ucode-cc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-mipspro-ucode-cc
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-.endif
-
-.if !empty(PKGSRC_COMPILER:Mido)
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-ido-cc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-ido-cc
-# enable C++ style (//) commments with the IDO cc
-# just in case increase the optimization threshold from the default 1000
-_WRAP_EXTRA_ARGS.CC+= -Xcpluscomm -Olimit 6000
-.endif
-
-.if !empty(PKGSRC_COMPILER:Msunpro)
-_WRAP_ARG_PP.CXX= ${WRAPPER_TMPDIR}/arg-pp-sunpro-cxx
-_WRAP_CMD_SINK.CXX= ${WRAPPER_TMPDIR}/cmd-sink-sunpro-cxx
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-sunpro-cc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-sunpro-cc
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-.endif
-
-.if !empty(PKGSRC_COMPILER:Mxlc)
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-darwin-xlc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-xlc-cc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-xlc-cc
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-.endif
-
-.if !empty(PKGSRC_COMPILER:Mccc)
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-ccc-cc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-ccc-cc
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-.endif
-
-_WRAP_CMD_SINK.LD= ${WRAPPER_TMPDIR}/cmd-sink-ld
-_WRAP_SKIP_TRANSFORM.IMAKE= yes
-
-# XXX
-# XXX This section is ${OPSYS}-specific and shouldn't be here.
-# XXX
-.if ${OPSYS} == "Interix"
-_WRAP_EXTRA_ARGS.CC+= -D_ALL_SOURCE
-_WRAP_EXTRA_ARGS.CXX+= -D_ALL_SOURCE
-_WRAP_EXTRA_ARGS.CPP+= -D_ALL_SOURCE
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-interix-gcc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-_WRAP_CMD_SINK.LD= ${WRAPPER_TMPDIR}/cmd-sink-interix-ld
-.elif ${OPSYS} == "Darwin"
-_WRAP_ARG_PP.CC= ${WRAPPER_TMPDIR}/arg-pp-darwin-gcc
-_WRAP_ARG_PP.CXX= ${_WRAP_ARG_PP.CC}
-_WRAP_ARG_PP.LD= ${_WRAP_ARG_PP.CC}
-.elif ${OPSYS} == "UnixWare"
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-unixware-gcc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-_WRAP_CMD_SINK.LD= ${_WRAP_CMD_SINK.CC}
-.elif ${OPSYS} == "OSF1"
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-osf1-cc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-_WRAP_CMD_SINK.LD= ${WRAPPER_TMPDIR}/cmd-sink-osf1-ld
-.elif ${OPSYS} == "AIX"
-_WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-aix-cc
-_WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC}
-_WRAP_CMD_SINK.LD= ${WRAPPER_TMPDIR}/cmd-sink-aix-ld
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-aix-cc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-aix-cc
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-.endif
-
-.if ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc)
-_WRAP_CACHE_BODY.CC= ${WRAPPER_TMPDIR}/cache-body-solaris-gcc
-_WRAP_TRANSFORM.CC= ${WRAPPER_TMPDIR}/transform-solaris-gcc
-_WRAP_CACHE_BODY.CXX= ${_WRAP_CACHE_BODY.CC}
-_WRAP_TRANSFORM.CXX= ${_WRAP_TRANSFORM.CC}
-_WRAP_CMD_SINK.IMAKE= ${WRAPPER_TMPDIR}/cmd-sink-solaris-imake
-_WRAP_CACHE_BODY.IMAKE= ${WRAPPER_TMPDIR}/cache-body-solaris-imake
-.endif
-
-# Filter to scrunch shell scripts by removing comments and empty lines.
-_WRAP_SH_CRUNCH_FILTER= \
- ${GREP} -v "^\#[^!]" | ${GREP} -v "^[ ][ ]*\#" | \
- ${GREP} -v "^\#$$" | ${GREP} -v "^[ ]*$$"
-
-_WRAP_SUBST_SED= \
- -e "s|@CAT@|${CAT:Q}|g" \
- -e "s|@ECHO@|${ECHO:Q}|g" \
- -e "s|@EXPR@|${EXPR:Q}|g" \
- -e "s|@SED@|${SED:Q}|g" \
- -e "s|@TEST@|${TEST:Q}|g" \
- -e "s|@WRAPPER_SHELL@|${WRAPPER_SHELL:Q}|g" \
- -e "s|@_WRAP_LOG@|${_WRAP_LOG:Q}|g" \
- -e "s|@_WRAP_REORDERLIBS@|${_WRAP_REORDERLIBS:Q}|g" \
- -e "s|@_WRAP_SHELL_LIB@|${_WRAP_SHELL_LIB:Q}|g"
-
-.for _wrappee_ in ${_WRAPPEES}
-_WRAP_SUBST_SED.${_wrappee_}= \
- -e "s|@_WRAP_ENV@|${_WRAP_ENV.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_EXTRA_ARGS@|${_WRAP_EXTRA_ARGS.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_ARG_PP@|${_WRAP_ARG_PP.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_ARG_PP_MAIN@|${_WRAP_ARG_PP_MAIN.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_ARG_SOURCE@|${_WRAP_ARG_SOURCE.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_BUILDCMD@|${_WRAP_BUILDCMD.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_CACHE@|${_WRAP_CACHE.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_CACHE_HEADER@|${_WRAP_CACHE_HEADER.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_CACHE_BODY@|${_WRAP_CACHE_BODY.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_CACHE_FOOTER@|${_WRAP_CACHE_FOOTER.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_CLEANUP@|${_WRAP_CLEANUP.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_CMD_SINK@|${_WRAP_CMD_SINK.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_LOG@|${_WRAP_LOG.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_LOGIC@|${_WRAP_LOGIC.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_SCAN@|${_WRAP_SCAN.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_SKIP_TRANSFORM@|${_WRAP_SKIP_TRANSFORM.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_TRANSFORM@|${_WRAP_TRANSFORM.${_wrappee_}:Q}|g" \
- -e "s|@_WRAP_TRANSFORM_SED@|${_WRAP_TRANSFORM_SED.${_wrappee_}:Q}|g" \
- -e "s|@WRAPPER_DEBUG@|${WRAPPER_DEBUG}|g" \
- -e "s|@WRAPPER_UPDATE_CACHE@|${WRAPPER_UPDATE_CACHE}|g" \
- ${_WRAP_SUBST_SED}
-
-_WRAP_COOKIE.${_wrappee_}= ${WRAPPER_DIR}/.wrapper_${_wrappee_}_done
-.endfor # _WRAPPEES
-
-.for _wrappee_ in ${_WRAPPEES_UNIQUE}
-PKG_${_wrappee_}?= ${${_wrappee_}}
-do-wrapper: ${_WRAP_COOKIE.${_wrappee_}}
-${_WRAP_COOKIE.${_wrappee_}}: \
- ${_WRAPPER_SH.${_wrappee_}} \
- ${_WRAP_ARG_PP.${_wrappee_}} \
- ${_WRAP_ARG_PP_MAIN.${_wrappee_}} \
- ${_WRAP_ARG_SOURCE.${_wrappee_}} \
- ${_WRAP_BUILDCMD.${_wrappee_}} \
- ${_WRAP_CACHE.${_wrappee_}} \
- ${_WRAP_CLEANUP.${_wrappee_}} \
- ${_WRAP_CMD_SINK.${_wrappee_}} \
- ${_WRAP_LOGIC.${_wrappee_}} \
- ${_WRAP_REORDERLIBS} \
- ${_WRAP_SCAN.${_wrappee_}} \
- ${_WRAP_SHELL_LIB} \
- ${_WRAP_TRANSFORM.${_wrappee_}}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- wrapper="${WRAPPER_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \
- ${ECHO_WRAPPER_MSG} "=> Creating ${_wrappee_} wrapper: $$wrapper"; \
- gen_wrapper=yes; \
- wrappee="${PKG_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \
- case $$wrappee in \
- /*) ;; \
- *) save_IFS="$$IFS"; \
- IFS=":"; \
- for dir in $${PATH}; do \
- case $${dir} in \
- *${WRAPPER_DIR}*) \
- ;; \
- *) \
- if ${TEST} -f $${dir}/$$wrappee -o \
- -h $${dir}/$$wrappee; then \
- wrappee=$${dir}/$$wrappee; \
- break; \
- fi; \
- ;; \
- esac; \
- done; \
- IFS="$$save_IFS"; \
- if ${TEST} ! -x "$$wrappee"; then \
- gen_wrapper=no; \
- ${ECHO_WRAPPER_MSG} "Warning: unable to create ${_wrappee_} wrapper script: \`$$wrappee'"; \
- fi; \
- ;; \
- esac; \
- case $$gen_wrapper in \
- yes) \
- ${MKDIR} `${DIRNAME} $$wrapper`; \
- ${CAT} ${_WRAPPER_SH.${_wrappee_}} | \
- ${SED} ${_WRAP_SUBST_SED.${_wrappee_}} \
- -e "s|@WRAPPEE@|$$wrappee|g" | \
- ${_WRAP_SH_CRUNCH_FILTER} \
- > $$wrapper; \
- ${CHMOD} +x $$wrapper; \
- ;; \
- esac
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
-
-. for _alias_ in ${_WRAP_ALIASES.${_wrappee_}:S/^/${WRAPPER_BINDIR}\//}
-. if !target(${_alias_})
-do-wrapper: ${_alias_}
-${_alias_}: ${_WRAP_COOKIE.${_wrappee_}}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- wrapper="${WRAPPER_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \
- if [ ! -x ${.TARGET} -a -x $$wrapper ]; then \
- ${ECHO_WRAPPER_MSG} "=> Linking ${_wrappee_} wrapper: ${.TARGET}"; \
- ${LN} -f $$wrapper ${.TARGET}; \
- fi
-. endif
-. endfor
-.endfor # _WRAPPEES_UNIQUE
-
-.for _target_ in ${WRAPPER_TARGETS}
-do-wrapper: ${_target_}
-.endfor
-
-${WRAPPER_TMPDIR}/transform-solaris-gcc: \
- ${WRAPPER_SRCDIR}/transform-solaris-gcc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-solaris-imake: \
- ${WRAPPER_SRCDIR}/cmd-sink-solaris-imake
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/arg-pp-darwin-gcc: \
- ${WRAPPER_SRCDIR}/arg-pp-darwin-gcc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/arg-pp-mipspro-cc: \
- ${WRAPPER_SRCDIR}/arg-pp-mipspro-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/arg-pp-sunpro-cxx: \
- ${WRAPPER_SRCDIR}/arg-pp-sunpro-cxx
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-aix-xlc: \
- ${WRAPPER_SRCDIR}/cmd-sink-aix-xlc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-aix-cc: \
- ${WRAPPER_SRCDIR}/cmd-sink-aix-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-aix-ld: \
- ${WRAPPER_SRCDIR}/cmd-sink-aix-ld
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-darwin-xlc: \
- ${WRAPPER_SRCDIR}/cmd-sink-darwin-xlc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-interix-gcc: \
- ${WRAPPER_SRCDIR}/cmd-sink-interix-gcc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-ld: \
- ${WRAPPER_SRCDIR}/cmd-sink-ld
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-unixware-gcc: \
- ${WRAPPER_SRCDIR}/cmd-sink-unixware-gcc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-osf1-ld: \
- ${WRAPPER_SRCDIR}/cmd-sink-osf1-ld
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-osf1-cc: \
- ${WRAPPER_SRCDIR}/cmd-sink-osf1-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-ccc-cc: \
- ${WRAPPER_SRCDIR}/transform-ccc-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-icc-cc: \
- ${WRAPPER_SRCDIR}/cmd-sink-icc-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-icc81-cc: \
- ${WRAPPER_SRCDIR}/cmd-sink-icc81-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-aix-cc: \
- ${WRAPPER_SRCDIR}/transform-aix-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-icc-cc: \
- ${WRAPPER_SRCDIR}/transform-icc-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-mipspro-cc: \
- ${WRAPPER_SRCDIR}/transform-mipspro-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-mipspro-ucode-cc: \
- ${WRAPPER_SRCDIR}/transform-mipspro-ucode-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/cmd-sink-sunpro-cxx: \
- ${WRAPPER_SRCDIR}/cmd-sink-sunpro-cxx
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-ido-cc: \
- ${WRAPPER_SRCDIR}/transform-ido-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-sunpro-cc: \
- ${WRAPPER_SRCDIR}/transform-sunpro-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-${WRAPPER_TMPDIR}/transform-xlc-cc: \
- ${WRAPPER_SRCDIR}/transform-xlc-cc
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-
-.if !target(${_WRAP_GEN_REORDER})
-${_WRAP_GEN_REORDER}: \
- ${_WRAP_SHELL_LIB} \
- ${WRAPPER_SRCDIR}/gen-reorder.sh
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${CAT} ${WRAPPER_SRCDIR}/gen-reorder.sh \
- | ${SED} ${_WRAP_SUBST_SED} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-.endif
-
-.if !target(${_WRAP_GEN_TRANSFORM})
-${_WRAP_GEN_TRANSFORM}: \
- ${_WRAP_SHELL_LIB} \
- ${WRAPPER_SRCDIR}/gen-transform.sh
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${CAT} ${WRAPPER_SRCDIR}/gen-transform.sh \
- | ${SED} ${_WRAP_SUBST_SED} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-.endif
-
-.if !target(${_WRAP_REORDERLIBS})
-${_WRAP_REORDERLIBS}: ${_WRAP_GEN_REORDER}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${_WRAP_GEN_REORDER} ${WRAPPER_REORDER_CMDS} > ${.TARGET}
-.endif
-
-. if !target(${_WRAP_SHELL_LIB})
-${_WRAP_SHELL_LIB}: ${.CURDIR}/../../mk/scripts/shell-lib
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-.if !target(${_WRAP_TRANSFORM_SEDFILE})
-${_WRAP_TRANSFORM_SEDFILE}: ${_WRAP_GEN_TRANSFORM}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${_WRAP_GEN_TRANSFORM} transform ${_WRAP_TRANSFORM_CMDS} \
- > ${.TARGET}
-.endif
-
-.if !target(${_WRAP_UNTRANSFORM_SEDFILE})
-${_WRAP_UNTRANSFORM_SEDFILE}: ${_WRAP_GEN_TRANSFORM}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${_WRAP_GEN_TRANSFORM} untransform ${_WRAP_TRANSFORM_CMDS} \
- > ${.TARGET}
-.endif
-
-.for _wrappee_ in ${_WRAPPEES}
-. if !target$(${_WRAP_EMPTY_FILE})
-${_WRAP_EMPTY_FILE}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_ARGS} ${.TARGET}
-. endif
-
-. if !target(${_WRAP_ARG_PP_MAIN.${_wrappee_}})
-${_WRAP_ARG_PP_MAIN.${_wrappee_}}: ${WRAPPER_SRCDIR}/arg-pp-main
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_ARG_SOURCE.${_wrappee_}})
-${_WRAP_ARG_SOURCE.${_wrappee_}}: ${WRAPPER_SRCDIR}/arg-source
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_BUILDCMD.${_wrappee_}})
-${_WRAP_BUILDCMD.${_wrappee_}}: ${WRAPPER_SRCDIR}/buildcmd
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_CACHE.${_wrappee_}})
-${_WRAP_CACHE.${_wrappee_}}: \
- ${_WRAP_CACHE_HEADER.${_wrappee_}} \
- ${_WRAP_CACHE_BODY.${_wrappee_}} \
- ${_WRAP_CACHE_FOOTER.${_wrappee_}}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_CACHE_HEADER.${_wrappee_}})
-${_WRAP_CACHE_HEADER.${_wrappee_}}: ${WRAPPER_SRCDIR}/cache-header
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_CACHE_BODY.${_wrappee_}})
-${_WRAP_CACHE_BODY.${_wrappee_}}:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_ARGS} ${.TARGET}
-. endif
-
-. if !target(${_WRAP_CACHE_FOOTER.${_wrappee_}})
-${_WRAP_CACHE_FOOTER.${_wrappee_}}: ${WRAPPER_SRCDIR}/cache-footer
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_CMD_SINK.${_wrappee_}})
-${_WRAP_CMD_SINK.${_wrappee_}}: ${WRAPPER_SRCDIR}/cmd-sink
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_LOGIC.${_wrappee_}})
-${_WRAP_LOGIC.${_wrappee_}}: ${WRAPPER_SRCDIR}/logic
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-
-. if !target(${_WRAP_SCAN.${_wrappee_}})
-${_WRAP_SCAN.${_wrappee_}}: ${WRAPPER_SRCDIR}/scan
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${CAT} ${.ALLSRC} \
- | ${_WRAP_SH_CRUNCH_FILTER} > ${.TARGET}
-. endif
-.endfor # _WRAPPEES
-
-# UNWRAP_PATTERNS and UNWRAP_FILES list shell globs and files relative to
-# ${WRKSRC} that need to be "unwrapped".
-#
-UNWRAP_PATTERNS?= # empty
-_UNWRAP_PATTERNS= ${UNWRAP_PATTERNS}
-_UNWRAP_PATTERNS+= *-config
-_UNWRAP_PATTERNS+= *Conf.sh
-_UNWRAP_PATTERNS+= *.pc
-_UNWRAP_PATTERNS_FIND_cmd= \
- cd ${WRKSRC} && \
- ${ECHO} "__dummy-entry__" && \
- ${FIND} . \( ${_UNWRAP_PATTERNS:C/.*/-o -name "&"/g:S/-o//1} \) -print \
- | ${SED} -e 's|^\./||' \
- | ${SORT} -u
-UNWRAP_FILES?= # empty
-_UNWRAP_FILES= ${UNWRAP_FILES} \
- ${_UNWRAP_PATTERNS_FIND_cmd:sh:N__dummy-entry__}
-_UNWRAP_SED?= # empty
-
-SUBST_CLASSES+= unwrap
-SUBST_STAGE.unwrap= post-build
-SUBST_MESSAGE.unwrap= "Unwrapping files-to-be-installed."
-SUBST_FILES.unwrap= ${_UNWRAP_FILES}
-SUBST_SED.unwrap= ${_UNWRAP_SED}
-.if defined(WRAPPER_DEBUG) && !empty(WRAPPER_DEBUG:M[yY][eE][sS])
-SUBST_POSTCMD.unwrap= ${DO_NADA}
-.endif
-
-.endif # PHASES_AFTER_WRAPPER
-###
-### END: after "wrapper" phase
-###
-
-.if !target(do-wrapper)
-do-wrapper:
- @${DO_NADA}
-.endif
diff --git a/mk/wrapper/buildcmd b/mk/wrapper/buildcmd
deleted file mode 100644
index 42fb3575857..00000000000
--- a/mk/wrapper/buildcmd
+++ /dev/null
@@ -1,75 +0,0 @@
-# $NetBSD: buildcmd,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# Don't append empty arguments to the command line.
-######################################################################
-"")
- ;;
-######################################################################
-# Reduce command length by not appending options that we've already
-# seen. We also ensure that all of the -l options come after the -L
-# options, and suppress consecutive repeated libraries.
-######################################################################
--[DILR]*|-Wl,-R*|-Wl,-*,/*)
- case $cmd in
- *" "$arg|*" "$arg" "*)
- ;;
- *)
- shquote "$arg"; arg="$shquoted"
- cmd="$cmd $arg"
- ;;
- esac
- ;;
--l*)
- case $libs in
- *" "$arg)
- ;;
- *)
- shquote "$arg"; arg="$shquoted"
- libs="$libs $arg"
- ;;
- esac
- ;;
-######################################################################
-# Append $arg to $cmd to build up the command line to be executed.
-######################################################################
-*)
- shquote "$arg"; arg="$shquoted"
- cmd="$cmd $arg"
- ;;
-esac
diff --git a/mk/wrapper/cache-footer b/mk/wrapper/cache-footer
deleted file mode 100644
index 4af7e981975..00000000000
--- a/mk/wrapper/cache-footer
+++ /dev/null
@@ -1,38 +0,0 @@
-# $NetBSD: cache-footer,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-*) cachehit=no ;;
-esac
diff --git a/mk/wrapper/cache-header b/mk/wrapper/cache-header
deleted file mode 100644
index fa4200e56b0..00000000000
--- a/mk/wrapper/cache-header
+++ /dev/null
@@ -1,37 +0,0 @@
-# $NetBSD: cache-header,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
diff --git a/mk/wrapper/cmd-sink b/mk/wrapper/cmd-sink
deleted file mode 100644
index 94f25d4ac63..00000000000
--- a/mk/wrapper/cmd-sink
+++ /dev/null
@@ -1,42 +0,0 @@
-# $NetBSD: cmd-sink,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink) pop: $arg"
- . $buildcmd
-done
diff --git a/mk/wrapper/cmd-sink-aix-cc b/mk/wrapper/cmd-sink-aix-cc
deleted file mode 100644
index c1d6df325a2..00000000000
--- a/mk/wrapper/cmd-sink-aix-cc
+++ /dev/null
@@ -1,87 +0,0 @@
-# $NetBSD: cmd-sink-aix-cc,v 1.2 2005/05/16 17:54:51 jlam Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-blibpath=
-dynamic=
-
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg"
- case $arg in
- ##############################################################
- # AIX ld(1) doesn't support -Wl,-rpath,* but accumulate them
- # into a path collection we can later append to command line
- # using -blibpath.
- ##############################################################
- -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
- case $arg in
- -R*) R="-R" ;;
- -Wl,-R*) R="-Wl,-R" ;;
- -Wl,-rpath,*) R="-Wl,-rpath," ;;
- -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
- -Wl,--rpath,*) R="-Wl,--rpath," ;;
- esac
- dir="${arg#$R}"
- case "$blibpath" in
- "") blibpath="$dir" ;;
- *) blibpath="$blibpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-aix-cc) drop: $dir [adding to blibpath]"
- dynamic=yes
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
-
-# AIX ld(1) uses -blibpath to set the runtime library search path.
-if $test -n "$blibpath"; then
- arg="-Wl,-blibpath:/lib:/usr/lib:$blibpath"
- $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg"
- . $buildcmd
-fi
-
-# If we are dynamically linking, make sure the runtime linker is used.
-if $test -n "$dynamic"; then
- arg=-Wl,-brtl
- $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg"
- . $buildcmd
- arg=-Wl,-bdynamic
- $debug_log $wrapperlog " (cmd-sink-aix-cc) pop: $arg"
- . $buildcmd
-fi
diff --git a/mk/wrapper/cmd-sink-aix-ld b/mk/wrapper/cmd-sink-aix-ld
deleted file mode 100644
index e721b5b3101..00000000000
--- a/mk/wrapper/cmd-sink-aix-ld
+++ /dev/null
@@ -1,87 +0,0 @@
-# $NetBSD: cmd-sink-aix-ld,v 1.2 2005/05/16 17:54:51 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-blibpath=
-dynamic=
-
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-aix-ld) pop: $arg"
- case $arg in
- ##############################################################
- # AIX ld(1) doesn't support -Wl,-rpath,* but accumulate them
- # into a path collection we can later append to command line
- # using -blibpath.
- ##############################################################
- -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
- case $arg in
- -R*) R="-R" ;;
- -Wl,-R*) R="-Wl,-R" ;;
- -Wl,-rpath,*) R="-Wl,-rpath," ;;
- -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
- -Wl,--rpath,*) R="-Wl,--rpath," ;;
- esac
- dir="${arg#$R}"
- case $blibpath in
- "") blibpath="$dir" ;;
- *) blibpath="$blibpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-aix-ld) drop: $dir [adding to blibpath]"
- dynamic=yes
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
-
-# AIX ld(1) uses -blibpath to set the runtime library search path.
-if $test -n "$blibpath"; then
- arg="-blibpath:/lib:/usr/lib:$blibpath"
- $debug_log $wrapperlog " (cmd-sink-aix-ld) pop: $arg"
- . $buildcmd
-fi
-
-# If we are dynamically linking, make sure the runtime linker is used.
-if $test -n "$dynamic"; then
- arg=-brtl
- $debug_log $wrapperlog " (cmd-sink-aix-ld) pop: $arg"
- . $buildcmd
- arg=-bdynamic
- $debug_log $wrapperlog " (cmd-sink-aix-ld) pop: $arg"
- . $buildcmd
-fi
diff --git a/mk/wrapper/cmd-sink-aix-xlc b/mk/wrapper/cmd-sink-aix-xlc
deleted file mode 100644
index cc4142656c1..00000000000
--- a/mk/wrapper/cmd-sink-aix-xlc
+++ /dev/null
@@ -1,74 +0,0 @@
-# $NetBSD: cmd-sink-aix-xlc,v 1.3 2005/07/23 04:48:12 grant Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-blibpath=
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg"
- case $arg in
- ##############################################################
- # AIX xlC doesn't support -Wl,-rpath,* but accumulate them
- # into a path collection we can later append to command line
- # using -blibpath.
- ##############################################################
- -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
- case $arg in
- -R*) R="-R" ;;
- -Wl,-R*) R="-Wl,-R" ;;
- -Wl,-rpath,*) R="-Wl,-rpath," ;;
- -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
- -Wl,--rpath,*) R="-Wl,--rpath," ;;
- esac
- dir="${arg#$R}"
- case $blibpath in
- "") blibpath="$dir" ;;
- *) blibpath="$blibpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-aix-xlc) drop: $dir [adding to blibpath]"
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
-
-# AIX xlc uses -blibpath to set the runtime library search path.
-if $test -n "$blibpath"; then
- arg="-blibpath:$blibpath"
- $debug_log $wrapperlog " (cmd-sink-aix-xlc) pop: $arg"
- . $buildcmd
-fi
diff --git a/mk/wrapper/cmd-sink-darwin-xlc b/mk/wrapper/cmd-sink-darwin-xlc
deleted file mode 100644
index dd66dd19583..00000000000
--- a/mk/wrapper/cmd-sink-darwin-xlc
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: cmd-sink-darwin-xlc,v 1.1 2004/12/05 09:29:26 grant Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-darwin-xlc) pop: $arg"
- case $arg in
- ##############################################################
- # xlc doesn't support -install_name, -compatibility_version,
- # -current_version, so explicitly pass them to the linker with
- # the next argument.
- ##############################################################
- -install_name|-compatibility_version|-current_version)
- pop_queue cmdbuf arg2
- $debug_log $wrapperlog " (cmd-sink-darwin-xlc) pop: $arg2"
- $debug_log $wrapperlog " (cmd-sink-darwin-xlc) pre: -Wl,$arg2"
- prepend_queue cmdbuf "-Wl,$arg2"
- $debug_log $wrapperlog " (cmd-sink-darwin-xlc) pre: -Wl,$arg"
- prepend_queue cmdbuf "-Wl,$arg"
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
diff --git a/mk/wrapper/cmd-sink-icc-cc b/mk/wrapper/cmd-sink-icc-cc
deleted file mode 100644
index 4e97d528c00..00000000000
--- a/mk/wrapper/cmd-sink-icc-cc
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: cmd-sink-icc-cc,v 1.2 2005/02/15 09:42:23 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# all icc built dynamic libraries and executables need to be linked
-# with ${ICCBASE}/lib in the rpath, or statically linked against the
-# icc provided libraries. use the static linking method so binary
-# packages can be used on systems that do not have these libraries
-# available.
-arg=-static-libcxa
-$debug_log $wrapperlog " (cmd-sink-icc-cc) pop: $arg"
-. $buildcmd
-
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- case "$arg" in
- -MT)
- pop_queue cmdbuf arg2
- $debug_log $wrapperlog " (cmd-sink-icc-cc) pop: $arg $arg2 [drop]"
- ;;
-
- *)
- $debug_log $wrapperlog " (cmd-sink-icc-cc) pop: $arg"
- . $buildcmd
- ;;
- esac
-done
diff --git a/mk/wrapper/cmd-sink-icc81-cc b/mk/wrapper/cmd-sink-icc81-cc
deleted file mode 100644
index 1ee23dd1ce4..00000000000
--- a/mk/wrapper/cmd-sink-icc81-cc
+++ /dev/null
@@ -1,64 +0,0 @@
-# $NetBSD: cmd-sink-icc81-cc,v 1.2 2005/02/16 11:24:44 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# all icc built dynamic libraries and executables need to be linked
-# with ${ICCBASE}/lib in the rpath, or statically linked against the
-# icc provided libraries. use the static linking method so binary
-# packages can be used on systems that do not have these libraries
-# available.
-arg=-i-static
-$debug_log $wrapperlog " (cmd-sink-icc81-cc) pop: $arg"
-. $buildcmd
-
-# Always link against the Intel provided C++ runtime library.
-arg=-cxxlib-icc
-$debug_log $wrapperlog " (cmd-sink-icc81-cc) pop: $arg"
-. $buildcmd
-
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- case "$arg" in
- -MT)
- pop_queue cmdbuf arg2
- $debug_log $wrapperlog " (cmd-sink-icc81-cc) pop: $arg $arg2 [drop]"
- ;;
-
- *)
- $debug_log $wrapperlog " (cmd-sink-icc81-cc) pop: $arg"
- . $buildcmd
- ;;
- esac
-done
diff --git a/mk/wrapper/cmd-sink-interix-gcc b/mk/wrapper/cmd-sink-interix-gcc
deleted file mode 100644
index 291bb035aba..00000000000
--- a/mk/wrapper/cmd-sink-interix-gcc
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: cmd-sink-interix-gcc,v 1.4 2005/01/24 21:21:45 tv Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-interix-gcc) pop: $arg"
- case $arg in
- -fpic|-fPIC|-pthread|-rdynamic)
- $echo "$0: Interix GNU cc doesn't support \`$arg'." 1>&2
- exit 1
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
diff --git a/mk/wrapper/cmd-sink-interix-ld b/mk/wrapper/cmd-sink-interix-ld
deleted file mode 100644
index b5d89e0eeb6..00000000000
--- a/mk/wrapper/cmd-sink-interix-ld
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: cmd-sink-interix-ld,v 1.2 2004/11/10 21:08:11 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-interix-ld) pop: $arg"
- case $arg in
- -shared|-Bshareable)
- $echo "$0: Interix GNU ld doesn't support \`$arg'." 1>&2
- exit 1
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
diff --git a/mk/wrapper/cmd-sink-ld b/mk/wrapper/cmd-sink-ld
deleted file mode 100644
index d260a9ea998..00000000000
--- a/mk/wrapper/cmd-sink-ld
+++ /dev/null
@@ -1,76 +0,0 @@
-# $NetBSD: cmd-sink-ld,v 1.2 2004/11/12 05:02:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-ld) pop: $arg"
- case $arg in
- ############################################################
- # Strip the "-Wl," from arguments that start with that prefix
- # and add the result to the "ld" cache. This makes "ld"
- # silently accept "-Wl,*" arguments, which are often a part
- # of the LDFLAGS setting in pkgsrc, and allows such LDFLAGS
- # to be shared between the compiler and the linker.
- ############################################################
- -Wl,*)
- list="${arg#-Wl,}"
- save_IFS="${IFS}"; IFS=","
- revlist=
- for opt in $list; do
- shquote "$opt"; opt="$shquoted"
- revlist="$opt $revlist"
- done
- IFS="${save_IFS}"
- for opt in $revlist; do
- $debug_log $wrapperlog " (cmd-sink-ld) pre: $opt"
- prepend_queue cmdbuf "$opt"
- done
- ;;
- ############################################################
- # Silently accept "-pthread" by dropping them. This allows
- # "-pthread" to be added to LDFLAGS for use by both the
- # compiler and the linker.
- ############################################################
- -pthread)
- $debug_log $wrapperlog " (cmd-sink-ld) drop: $arg"
- arg=
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
diff --git a/mk/wrapper/cmd-sink-osf1-cc b/mk/wrapper/cmd-sink-osf1-cc
deleted file mode 100644
index b67d1da838e..00000000000
--- a/mk/wrapper/cmd-sink-osf1-cc
+++ /dev/null
@@ -1,47 +0,0 @@
-# $NetBSD: cmd-sink-osf1-cc,v 1.1 2004/11/20 04:37:08 grant Exp $
-
-# Empty out the command buffer and build up the command line in $cmd.
-osf1runpath=
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-osf1-cc) pop: $arg"
- case $arg in
- ##############################################################
- # OSF1 ld doesn't support multiple rpath parameters, accumulate
- # them into a single -rpath /path1:/path2:...:pathn
- ##############################################################
- -rpath)
- pop_queue cmdbuf dir
- case $osf1runpath in
- "") osf1runpath="$dir" ;;
- *) osf1runpath="$osf1runpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-osf1-cc) drop: $dir [adding to osf1runpath]"
- ;;
-
- -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
- case $arg in
- -R*) R="-R" ;;
- -Wl,-R*) R="-Wl,-R" ;;
- -Wl,-rpath,*) R="-Wl,-rpath," ;;
- -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
- -Wl,--rpath,*) R="-Wl,--rpath," ;;
- esac
- dir="${arg#$R}"
- case $osf1runpath in
- "") osf1runpath="$dir" ;;
- *) osf1runpath="$osf1runpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-osf1-cc) drop: $dir [adding to osf1runpath]"
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
-
-if $test -n "$osf1runpath"; then
- arg="-Wl,-rpath,$osf1runpath"
- $debug_log $wrapperlog " (cmd-sink-osf1-cc) pop: $arg [aggregate]"
- . $buildcmd
-fi
diff --git a/mk/wrapper/cmd-sink-osf1-ld b/mk/wrapper/cmd-sink-osf1-ld
deleted file mode 100644
index 1dabe3a196f..00000000000
--- a/mk/wrapper/cmd-sink-osf1-ld
+++ /dev/null
@@ -1,54 +0,0 @@
-# $NetBSD: cmd-sink-osf1-ld,v 1.1 2004/11/20 04:37:08 grant Exp $
-
-# Empty out the command buffer and build up the command line in $cmd.
-osf1runpath=
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg"
- case $arg in
- ##############################################################
- # OSF1 ld doesn't support multiple rpath parameters, accumulate
- # them into a single -rpath /path1:/path2:...:pathn
- ##############################################################
- -rpath)
- pop_queue cmdbuf dir
- case $osf1runpath in
- "") osf1runpath="$dir" ;;
- *) osf1runpath="$osf1runpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-osf1-ld) drop: $dir [adding to osf1runpath]"
- ;;
- -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
- case $arg in
- -R*) R="-R" ;;
- -Wl,-R*) R="-Wl,-R" ;;
- -Wl,-rpath,*) R="-Wl,-rpath," ;;
- -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
- -Wl,--rpath,*) R="-Wl,--rpath," ;;
- esac
- dir="${arg#$R}"
- case $osf1runpath in
- "") osf1runpath="$dir" ;;
- *) osf1runpath="$osf1runpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-osf1-ld) drop: $dir [adding to osf1runpath]"
- ;;
- -pthread)
- arg="-lpthread"
- $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg"
- . $buildcmd
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
-
-if $test -n "$osf1runpath"; then
- arg=-rpath
- $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg"
- . $buildcmd
- arg=$osf1runpath
- $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg [aggregate]"
- . $buildcmd
-fi
diff --git a/mk/wrapper/cmd-sink-solaris-imake b/mk/wrapper/cmd-sink-solaris-imake
deleted file mode 100644
index 98164a5e6ec..00000000000
--- a/mk/wrapper/cmd-sink-solaris-imake
+++ /dev/null
@@ -1,46 +0,0 @@
-# $NetBSD: cmd-sink-solaris-imake,v 1.1 2005/07/23 04:45:30 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# ensure gcc options are always passed to imake.
-arg=-DHasGcc2=YES
-$debug_log $wrapperlog " (cmd-sink-solaris-imake) pop: $arg"
-. $buildcmd
-
-arg=-DHasGcc2ForCplusplus=YES
-$debug_log $wrapperlog " (cmd-sink-solaris-imake) pop: $arg"
-. $buildcmd
-
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-solaris-imake) pop: $arg"
- . $buildcmd
-done
diff --git a/mk/wrapper/cmd-sink-sunpro-cxx b/mk/wrapper/cmd-sink-sunpro-cxx
deleted file mode 100644
index ee4be358f3d..00000000000
--- a/mk/wrapper/cmd-sink-sunpro-cxx
+++ /dev/null
@@ -1,61 +0,0 @@
-# $NetBSD: cmd-sink-sunpro-cxx,v 1.1 2005/07/06 03:31:24 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# if we are linking a shared library, ensure that the C++ runtime
-# libraries are linked so that all symbols can be resolved at runtime.
-shlib=
-libCstd=
-libCrun=
-
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-sunpro-cxx) pop: $arg"
- case $arg in
- -G) shlib=yes ;;
- -lCstd) libCstd=yes ;;
- -lCrun) libCrun=yes ;;
- esac
- . $buildcmd
-done
-
-if $test -n "$shlib"; then
- if $test "$libCstd" != yes; then
- arg=-lCstd
- $debug_log $wrapperlog " (cmd-sink-sunpro-cxx) pop: $arg"
- . $buildcmd
- fi
- if $test "$libCrun" != yes; then
- arg=-lCrun
- $debug_log $wrapperlog " (cmd-sink-sunpro-cxx) pop: $arg"
- . $buildcmd
- fi
-fi
diff --git a/mk/wrapper/cmd-sink-unixware-gcc b/mk/wrapper/cmd-sink-unixware-gcc
deleted file mode 100644
index 9e96dbf6278..00000000000
--- a/mk/wrapper/cmd-sink-unixware-gcc
+++ /dev/null
@@ -1,72 +0,0 @@
-# $NetBSD: cmd-sink-unixware-gcc,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the command buffer and build up the command line in $cmd.
-ldrunpath=
-while ! queue_is_empty cmdbuf; do
- pop_queue cmdbuf arg
- $debug_log $wrapperlog " (cmd-sink-unixware-gcc) pop: $arg"
- case $arg in
- ##############################################################
- # UnixWare's GCC doesn't support -Wl,-rpath,* but accumulate
- # them into LD_RUN_PATH to set in the environment.
- ##############################################################
- -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
- case $arg in
- -R*) R="-R" ;;
- -Wl,-R*) R="-Wl,-R" ;;
- -Wl,-rpath,*) R="-Wl,-rpath," ;;
- -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
- -Wl,--rpath,*) R="-Wl,--rpath," ;;
- esac
- dir="${arg#$R}"
- case $ldrunpath in
- "") ldrunpath="$dir" ;;
- *) ldrunpath="$ldrunpath:$dir" ;;
- esac
- $debug_log $wrapperlog " (cmd-sink-unixware-gcc) drop: $dir [adding to LD_RUN_PATH]"
- arg=
- ;;
- *)
- . $buildcmd
- ;;
- esac
-done
-
-if $test -n "$ldrunpath"; then
- $debug_log $wrapperlog " (cmd-sink-unixware-gcc) LD_RUN_PATH=\"$ldrunpath\""
- LD_RUN_PATH="$ldrunpath"; export LD_RUN_PATH
-fi
diff --git a/mk/wrapper/gen-reorder.sh b/mk/wrapper/gen-reorder.sh
deleted file mode 100644
index 4b2fe2bee84..00000000000
--- a/mk/wrapper/gen-reorder.sh
+++ /dev/null
@@ -1,142 +0,0 @@
-#! @WRAPPER_SHELL@
-#
-# $NetBSD: gen-reorder.sh,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-shell_lib="@_WRAP_SHELL_LIB@"
-wrapperlog="${WRAPPER_LOG-@_WRAP_LOG@}"
-debug="${WRAPPER_DEBUG-no}"
-
-cat="@CAT@"
-
-. $shell_lib
-
-case $debug in
-yes) debug_log="msg_log" ;;
-*) debug_log=":" ;;
-esac
-
-######################################################################
-# gen reorder:l:foo:bar
-# Outputs a branch of a shell case statement that reorders
-# libs to ensure that "-lfoo" occurs before "-lbar".
-######################################################################
-gen() {
- save_IFS="${IFS}"; IFS=":"
- set -- $1
- IFS="${save_IFS}"
- _cmd="$1"; shift
- case $_cmd in
- reorder)
- $debug_log $wrapperlog " (gen-reorder) $_cmd: $@"
- case $1 in
- l)
- $cat << EOF
- # -l$2 comes before -l$3
- -l$2)
- case "\${_libs}" in
- -l$3|-l$3" "*)
- _libs="\$l \${_libs}"
- ;;
- *" "-l$3)
- _libs="\${_libs%%-l$3}\$l -l$3"
- ;;
- *" "-l$3" "*)
- _libs="\${_libs%% -l$3 *} \$l -l$3 \${_libs#* -l$3 }"
- ;;
- *)
- _libs="\${_libs} \$l"
- ;;
- esac
- ;;
-EOF
- ;;
- esac
- ;;
- *)
- $debug_log $wrapperlog " (gen-reorder) $_cmd: $@ [unknown]"
- ;;
- esac
-}
-
-######################################################################
-# Header for reorder script
-######################################################################
-$cat << 'EOF'
-msg_log $wrapperlog "==> Reordering libraries: $libs"
-prevlibs=
-while $test "$libs" != "$prevlibs"; do
- _libs=
- for l in $libs; do
- case $l in
-EOF
-
-######################################################################
-# Generate body for reorder script.
-######################################################################
-for arg do
- gen "$arg"
-done
-
-######################################################################
-# Footer for reorder script
-######################################################################
-$cat << 'EOF'
- *)
- _libs="${_libs} $l"
- ;;
- esac
- _libs="${_libs# }"
- _libs="${_libs% }"
- done
- prevlibs="$libs"
- libs="${_libs}"
-done
-
-# This section suppresses duplicate libraries in sequence.
-_libs=
-for l in $libs; do
- case "${_libs}" in
- $l|*" "$l) ;;
- *) _libs="${_libs} $l" ;;
- esac
-done
-_libs="${_libs# }"
-_libs="${_libs% }"
-libs="${_libs}"
-EOF
-
-exit 0
diff --git a/mk/wrapper/gen-transform.sh b/mk/wrapper/gen-transform.sh
deleted file mode 100644
index f11a0fb2c67..00000000000
--- a/mk/wrapper/gen-transform.sh
+++ /dev/null
@@ -1,451 +0,0 @@
-#! @WRAPPER_SHELL@
-#
-# $NetBSD: gen-transform.sh,v 1.7 2004/11/09 17:16:16 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-shell_lib="@_WRAP_SHELL_LIB@"
-wrapperlog="${WRAPPER_LOG-@_WRAP_LOG@}"
-debug="${WRAPPER_DEBUG-no}"
-
-cat="@CAT@"
-test="@TEST@"
-
-. $shell_lib
-
-case $debug in
-yes) debug_log="msg_log" ;;
-*) debug_log=":" ;;
-esac
-
-rpath_options="-Wl,--rpath, -Wl,-rpath-link, -Wl,-rpath, -Wl,-R -R"
-
-######################################################################
-# gen action arg
-# Outputs sed commands that correspond to $action for $arg. The
-# "transform" action pertains to transforming command-line options,
-# while the "untransform" action pertains to unwrapping *-config
-# files, *.pc files, and *.lai (to-be-installed libtool archive)
-# files.
-######################################################################
-gen()
-{
- _sep=" \`\"':;,"
-
- _action=$1; shift
- save_IFS="${IFS}"; IFS=":"
- set -- $1
- IFS="${save_IFS}"
- _cmd="$1"; shift
-
- case $_cmd in
- ###############################################################
- # depot:src:dst
- # Change "src/<dir>/*" into "dst/*", and the same in -I and
- # -L options.
- ###############################################################
- depot)
- gen $_action "opt-depot:$1:$2"
- gen $_action "opt-depot:-I$1:-I$2"
- gen $_action "opt-depot:-L$1:-L$2"
- ;;
- ###############################################################
- # I:src:dst
- # Change "src" into "dst" and "src/*" into "dst/*" in -I
- # options for transform, and back for untransform.
- ###############################################################
- I)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt:-I$1:-I$2"
- gen $_action "opt-sub:-I$1:-I$2"
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt:-I$2:-I$1"
- gen $_action "opt-sub:-I$2:-I$1"
- ;;
- esac
- ;;
- ###############################################################
- # L:src:dst
- # Change "src" into "dst" and "src/*" into "dst/*" in -L
- # options for transform, and back for untransform.
- ###############################################################
- L)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt:-L$1:-L$2"
- gen $_action "opt-sub:-L$1:-L$2"
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt:-L$2:-L$1"
- gen $_action "opt-sub:-L$2:-L$1"
- ;;
- esac
- ;;
- ###############################################################
- # l:foo:bar[:baz1...]
- # Change "-lfoo" into "-lbar [-lbaz...]"
- ###############################################################
- l)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- tolibs=
- fromlib="-l$1"; shift
- while $test $# -gt 0; do
- case $1 in
- "") ;;
- *) case $tolibs in
- "") tolibs="-l$1" ;;
- *) tolibs="$tolibs -l$1" ;;
- esac
- ;;
- esac
- shift
- done
- gen $_action "opt:$fromlib:$tolibs"
- ;;
- ##############################################################
- # libpath:src:dst
- # Change "src/*/libfoo.{a,la}" into "dst/*/libfoo.{a,la}".
- ##############################################################
- libpath)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|^$1\(/[^$_sep]*\.la[$_sep]\)|$2\1|g
-s|^$1\(/[^$_sep]*\.la\)$|$2\1|g
-EOF
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|\([$_sep]\)$1\(/[^$_sep]*\.la[$_sep]\)|\1$2\2|g
-s|\([$_sep]\)$1\(/[^$_sep]*\.la[$_sep]\)|\1$2\2|g
-s|\([$_sep]\)$1\(/[^$_sep]*\.la\)$|\1$2\2|g
-s|^$1\(/[^$_sep]*\.la[$_sep]\)|$2\1|g
-s|^$1\(/[^$_sep]*\.la\)$|$2\1|g
-EOF
- ;;
- esac
- ;;
- ##############################################################
- # mangle:src:dst
- # Change "src" into "dst" and "src/*" into "dst/*" in -I,
- # -L, and rpath options, and also in full paths to
- # libraries.
- ##############################################################
- mangle)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- #gen $_action "opt:$1:$2"
- gen $_action "opt:-I$1:-I$2"
- gen $_action "opt:-L$1:-L$2"
- gen $_action "rpath-exact:$1:$2"
- gen $_action "sub-mangle:$1:$2"
- ;;
- ##############################################################
- # no-abspath
- # Remove all "dash" options that contain an absolute path.
- ##############################################################
- no-abspath)
- $debug_log $wrapperlog " (gen-transform) $_cmd"
- gen $_action "rm-optarg:-I/"
- gen $_action "rm-optarg:-L/"
- for _R in $rpath_options; do
- gen $_action "rm-optarg:$_R/"
- done
- ;;
- ##############################################################
- # no-rpath
- # Removes rpath options.
- ##############################################################
- no-rpath)
- $debug_log $wrapperlog " (gen-transform) $_cmd"
- gen $_action rm-optarg:-Wl,--rpath,
- gen $_action rm-optarg:-Wl,-rpath-link,
- gen $_action rm-optarg:-Wl,-rpath,
- gen $_action rm-optarg:-Wl,-R
- gen $_action rm-optarg:-R
- ;;
- ##############################################################
- # opt:src:dst
- # Change "src" into "dst", where "src" matches the whole
- # option.
- ##############################################################
- opt)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|^$1\([$_sep]\)|$2\1|g
-s|^$1$|$2|g
-EOF
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|\([$_sep]\)$1\([$_sep]\)|\1$2\2|g
-s|\([$_sep]\)$1\([$_sep]\)|\1$2\2|g
-s|\([$_sep]\)$1$|\1$2|g
-s|^$1\([$_sep]\)|$2\1|g
-s|^$1$|$2|g
-EOF
- ;;
- esac
- ;;
- ###############################################################
- # opt-depot:src:dst
- # Change "src/<dir>/*" into "dst/*".
- ###############################################################
- opt-depot)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|^$1/[^/$_sep]*\(/[^$_sep]*[$_sep]\)|$2\1|g
-s|^$1/[^/$_sep]*\(/[^$_sep]*\)$|$2\1|g
-EOF
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|\([$_sep]\)$1/[^/$_sep]*\(/[^$_sep]*[$_sep]\)|\1$2\2|g
-s|\([$_sep]\)$1/[^/$_sep]*\(/[^$_sep]*[$_sep]\)|\1$2\2|g
-s|\([$_sep]\)$1/[^/$_sep]*\(/[^$_sep]*\)$|\1$2\2|g
-s|^$1/[^/$_sep]*\(/[^$_sep]*[$_sep]\)|$2\1|g
-s|^$1/[^/$_sep]*\(/[^$_sep]*\)$|$2\1|g
-EOF
- ;;
- esac
- ;;
- ##############################################################
- # opt-sub:src:dst
- # Change "src/*" into "dst/*".
- ##############################################################
- opt-sub)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt-sub-trailer:$1::$2:"
- ;;
- ##############################################################
- # opt-sub-trailer:src:src_trailer:dst:dst_trailer
- # Change "src/*src_trailer" into "dst/*dst_trailer",
- # where "src/*" matches "src" plus subdirectories.
- ##############################################################
- opt-sub-trailer)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|^$1\(/[^$_sep]*\)$2\([$_sep]\)|$3\1$4|g
-s|^$1\(/[^$_sep]*\)$2$|$3\1$4|g
-EOF
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|\([$_sep]\)$1\(/[^$_sep]*\)$2\([$_sep]\)|\1$3\2$4\3|g
-s|\([$_sep]\)$1\(/[^$_sep]*\)$2\([$_sep]\)|\1$3\2$4\3|g
-s|\([$_sep]\)$1\(/[^$_sep]*\)$2$|\1$3\2$4|g
-s|^$1\(/[^$_sep]*\)$2\([$_sep]\)|$3\1$4|g
-s|^$1\(/[^$_sep]*\)$2$|$3\1$4|g
-EOF
- ;;
- esac
- ;;
- ##############################################################
- # P:src:dst
- # Change "src/*/libfoo.{a,la}" into "dst/*/libfoo.{a,la}"
- # for transform, and back for untransform.
- ##############################################################
- P)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "libpath:$1:$2"
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "libpath:$2:$1"
- ;;
- esac
- ;;
- ##############################################################
- # rename:src:dst
- # Synonym for "opt:src:dst".
- ##############################################################
- rename)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt:$1:$2"
- ;;
- ##############################################################
- # rm:opt
- # Remove "opt", where "opt" matches the entire option.
- ##############################################################
- rm)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt:$1:"
- ;;
- ##############################################################
- # rm-optarg:opt
- # Remove "opt" and any argument of that option where the
- # two are combined in one word.
- ##############################################################
- rm-optarg)
- case $_action in
- transform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|^$1[^$_sep]*\([$_sep]\)|\1|g
-s|^$1[^$_sep]*$||g
-EOF
- ;;
- untransform)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- $cat << EOF
-s|\([$_sep]\)$1[^$_sep]*\([$_sep]\)|\1\2|g
-s|\([$_sep]\)$1[^$_sep]*\([$_sep]\)|\1\2|g
-s|\([$_sep]\)$1[^$_sep]*$|\1|g
-s|^$1[^$_sep]*\([$_sep]\)|\1|g
-s|^$1[^$_sep]*$||g
-EOF
- ;;
- esac
- ;;
- ##############################################################
- # rmdir:dir
- # Remove all "dash" options that contain "dir" or "dir/*".
- ##############################################################
- rmdir)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt:-I$1:"
- gen $_action "rm-optarg:-I$1/"
- gen $_action "opt:-L$1:"
- gen $_action "rm-optarg:-L$1/"
- for _R in $rpath_options; do
- gen $_action "opt:$_R$1:"
- gen $_action "rm-optarg:$_R$1/"
- done
- ;;
- ##############################################################
- # rpath:src:dst
- # Change "src" into "dst" and "src/*" into "dst/*" in rpath
- # options.
- ##############################################################
- rpath)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "rpath-exact:$1:$2"
- gen $_action "sub-rpath:$1:$2"
- ;;
- ##############################################################
- # rpath-exact:src:dst
- # Change "src" into "dst" in rpath options.
- ##############################################################
- rpath-exact)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- for _R in $rpath_options; do
- gen $_action "opt:$_R$1:$_R$2"
- done
- ;;
- ##############################################################
- # strip-slashdot:dir
- # Change "dir/." into "dir" and the same in -I, -L, and
- # rpath options.
- ##############################################################
- strip-slashdot)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- gen $_action "opt-sub-trailer:$1:/\.:$1:"
- gen $_action "opt-sub-trailer:-I$1:/\.:-I$1:"
- gen $_action "opt-sub-trailer:-L$1:/\.:-L$1:"
- for _R in $rpath_options; do
- gen $_action "opt-sub-trailer:$_R$1:/\.:$_R$1:"
- done
- ;;
- ##############################################################
- # sub-mangle:src:dst
- # Change "src/*" into "dst/*" in -I, -L, and rpath
- # options, and also in full paths to libraries.
- ##############################################################
- sub-mangle)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- #gen $_action "opt-sub:$1:$2"
- gen $_action "libpath:$1:$2"
- gen $_action "opt-sub:-I$1:-I$2"
- gen $_action "opt-sub:-L$1:-L$2"
- gen $_action "sub-rpath:$1:$2"
- ;;
- ##############################################################
- # sub-rpath:src:dst
- # Change "src/*" into "dst/*" in rpath options.
- ##############################################################
- sub-rpath)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@"
- for _R in $rpath_options; do
- gen $_action "opt-sub:$_R$1:$_R$2"
- done
- ;;
- ##############################################################
- # Everything else is ignored.
- ##############################################################
- *)
- $debug_log $wrapperlog " (gen-transform) $_cmd: $@ [unknown]"
- ;;
- esac
-}
-
-######################################################################
-# Generate sed script.
-######################################################################
-action="$1"; shift
-for arg do
- case $arg in
- transform:*)
- case $action in
- transform) gen $action "${arg#transform:}" ;;
- esac
- ;;
- untransform:*)
- case $action in
- untransform) gen $action "${arg#untransform:}" ;;
- esac
- ;;
- *)
- gen $action "$arg"
- ;;
- esac
-done
diff --git a/mk/wrapper/logic b/mk/wrapper/logic
deleted file mode 100644
index 679684d6978..00000000000
--- a/mk/wrapper/logic
+++ /dev/null
@@ -1,173 +0,0 @@
-# $NetBSD: logic,v 1.11 2005/02/14 21:43:11 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# Empty out the argument buffer and fill up the command buffer.
-skipargs=0
-while ! queue_is_empty argbuf; do
- #
- # Grab the next argument from the head of the argument buffer
- # and return it in $arg.
- #
- argok=no
- while $test "$argok" = "no"; do
- if queue_is_empty argbuf; then
- argok=yes
- continue
- fi
- pop_queue argbuf arg
- $debug_log $wrapperlog " (logic) pop: $arg"
- #
- # Toggle whether we want to transform $arg or if we
- # want to pass it unmodified into the command buffer.
- #
- if $test $skipargs -eq 0; then
- do_transform=yes
- else
- skipargs=`$expr $skipargs - 1`
- do_transform=no
- argok=yes
- continue
- fi
- argmatch=no
- . $arg_pp_main
- case $argmatch in
- yes) continue ;;
- esac
- . $arg_pp
- case $argmatch in
- yes) continue ;;
- esac
- argok=yes
- done
- #
- # Try to look up the transformed $arg in the cache, but if
- # not there, then apply the transformations and save the result
- # in the cache.
- #
- case $do_transform in
- yes)
- . $cache
- case $cachehit in
- yes)
- # The cache was hit and $arg is set.
- $debug_log $wrapperlog " (logic) to: $arg [cached]"
- ;;
- *)
- # Apply transformations to $arg.
- addtocache=no
- split_arg=no
- case $skip_transform in
- yes)
- $debug_log $wrapperlog " (logic) to: $arg [untransformed]"
- ;;
- *)
- shquote "$arg"; cachearg="$shquoted"
- case $arg in
- -*|/*)
- case $transform_sed in
- "") ;;
- *)
- arg=`$echo "X$arg" | $Xsed $transform_sed`
- $debug_log $wrapperlog " (logic) to: $arg"
- addtocache=yes
- ;;
- esac
- ;;
- *)
- $debug_log $wrapperlog " (logic) to: $arg [untransformed]"
- ;;
- esac
-
- # Apply wrapper-specific transformations
- # to $arg.
- #
- . $transform
- ;;
- esac
-
- ##############################################
- # Split all -l options along whitespace. This
- # disallows library names with whitespace, but it
- # allows us to handle transformations that look
- # like, e.g. "-lreadline" -> "-ledit -ltermcap".
- ##############################################
- case $arg in
- -l*) split_arg=yes ;;
- esac
-
- # Re-create the cache file if we're adding to it.
- case $updatecache,$addtocache in
- yes,yes)
- shquote "$arg"; cachedarg="$shquoted"
- $cat >> $cache_body << EOF
-$cachearg) arg=$cachedarg; split_arg=$split_arg; cachehit=yes ;;
-EOF
- $cat $cache_header \
- $cache_body \
- $cache_footer > $cache
- ;;
- esac
- ;;
- esac
-
- case $split_arg in
- ######################################################
- # Split some options along whitespace. This disallows
- # options that contain whitespace, but it allows us to
- # handle transformations that transform one arg into
- # several.
- ######################################################
- yes)
- for i in $arg; do
- append_queue cmdbuf "$i"
- $debug_log $wrapperlog " (logic) push: $i [split]"
- done
- ;;
- ######################################################
- # Everything else goes into the command buffer unchanged.
- ######################################################
- no)
- append_queue cmdbuf "$arg"
- $debug_log $wrapperlog " (logic) push: $arg"
- ;;
- esac
- ;;
- *)
- append_queue cmdbuf "$arg"
- $debug_log $wrapperlog " (logic) push: $arg [skipped]"
- ;;
- esac
-done
diff --git a/mk/wrapper/scan b/mk/wrapper/scan
deleted file mode 100644
index dcb5fb1b11f..00000000000
--- a/mk/wrapper/scan
+++ /dev/null
@@ -1,44 +0,0 @@
-# $NetBSD: scan,v 1.1 2004/10/04 20:28:30 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-# Don't append extra arguments if "-v" is passed to the command.
-for arg do
- case $arg in
- -v) append_extra_args=no; break ;;
- *) ;;
- esac
-done
diff --git a/mk/wrapper/transform-aix-cc b/mk/wrapper/transform-aix-cc
deleted file mode 100644
index 1b2b213cf5f..00000000000
--- a/mk/wrapper/transform-aix-cc
+++ /dev/null
@@ -1,52 +0,0 @@
-# $NetBSD: transform-aix-cc,v 1.1 2005/02/19 04:19:59 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-# prepend -Wl, to linker arguments commonly passed to the compiler.
-case $arg in
--H[0-9]*|-T[0-9]*|-b*)
- arg=-Wl,$arg
- msg_log $wrapperlog " (transform-aix-cc) to: $arg"
- addtocache=yes
- ;;
-# AIX ld(1) uses -G to create shared libraries, and we must make sure
-# the runtime linker is used.
--shared)
- arg="-Wl,-G -Wl,-brtl"
- msg_log $wrapperlog " (transform-aix-cc) to: $arg"
- addtocache=yes
- split_arg=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-ccc-cc b/mk/wrapper/transform-ccc-cc
deleted file mode 100644
index e7e055d2ddc..00000000000
--- a/mk/wrapper/transform-ccc-cc
+++ /dev/null
@@ -1,32 +0,0 @@
-# $NetBSD: transform-ccc-cc,v 1.1 2004/11/20 04:37:08 grant Exp $
-#
-
-case $arg in
-######################################################################
-# Directories for the runtime library search path are passed via
-# "-Wl,-rpath,<dir>", not "-Wl,-R<dir>".
-######################################################################
--Wl,-R*)
- arg="-Wl,-rpath,${arg#-Wl,-R}"
- msg_log $wrapperlog " (transform-ccc-cc) to: $arg"
- addtocache=yes
- ;;
--W[LlSc],*)
- addtocache=yes
- ;;
--W*)
- arg=
- msg_log $wrapperlog " (transform-ccc-cc) to: $arg"
- addtocache=yes
- ;;
--mieee)
- arg="-ieee"
- msg_log $wrapperlog " (transform-ccc-cc) to: $arg"
- addtocache=yes
- ;;
--g)
- arg="-g3"
- msg_log $wrapperlog " (transform-ccc-cc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-icc-cc b/mk/wrapper/transform-icc-cc
deleted file mode 100644
index 263c55086e2..00000000000
--- a/mk/wrapper/transform-icc-cc
+++ /dev/null
@@ -1,68 +0,0 @@
-# $NetBSD: transform-icc-cc,v 1.3 2005/02/16 23:58:29 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# ignore flags that icc doesn't understand.
-######################################################################
--fexceptions|-ffast-math|-fomit-frame-pointer|-pedantic|-pipe|-s|-MP|-OPT:*)
- arg=
- msg_log $wrapperlog " (transform-icc-cc) to: $arg"
- addtocache=yes
- ;;
--finline-functions)
- arg=-Ob2
- msg_log $wrapperlog " (transform-icc-cc) to: $arg"
- addtocache=yes
- ;;
--funroll-all-loops|-funroll-loops)
- arg=-unroll
- msg_log $wrapperlog " (transform-icc-cc) to: $arg"
- addtocache=yes
- ;;
--O[4-9]|-O[12][0-9])
- arg=-O3
- msg_log $wrapperlog " (transform-icc-cc) to: $arg"
- addtocache=yes
- ;;
--Wall|-Wl,*)
- ;;
--W*)
- arg=
- msg_log $wrapperlog " (transform-icc-cc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-ido-cc b/mk/wrapper/transform-ido-cc
deleted file mode 100644
index 9c8ea5c1abe..00000000000
--- a/mk/wrapper/transform-ido-cc
+++ /dev/null
@@ -1,142 +0,0 @@
-# $NetBSD: transform-ido-cc,v 1.2 2005/10/30 10:33:23 schwarz Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-case $arg in
-######################################################################
-# IDO 5.3 handles these -O statements, so just pass them through
-# preserve -Olimit settings
-######################################################################
--O0|-O|-O1|-O2|-Olimit)
- addtocache=yes
- ;;
-######################################################################
-# IDO 5.3 seems to have problems with -O3, so downgrade it
-######################################################################
--O3)
- arg=-O2
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Directories for the runtime library search path are passed via
-# "-Wl,-rpath,<dir>", not "-Wl,-R<dir>".
-# Path elements are separated by ":".
-######################################################################
--Wl,-R*)
- arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-Wl:-R|-Wl,-rpath,|"`
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
--Wl,-rpath,*)
- arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-Wl:-rpath:|-Wl,-rpath,|"`
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
--rpath*)
- arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-rpath.|-Wl,-rpath,|"`
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
--R*)
- arg=`$echo "X$arg" | $Xsed -e "s|,|:|g" -e "s|^-R|-Wl,-rpath,|"`
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# different syntax
-######################################################################
--fsigned-char|-fno-unsigned-char)
- arg=-signed
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
-;;
-######################################################################
-# use -g3 in order to prevent disabling optimization
-######################################################################
--g)
- arg=-g3
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
-;;
-######################################################################
-# The IDO 5.3 compiler accepts these -W* directives, so just pass them
-# on through.
-######################################################################
--W[pKMfjusmocabyz]*,*)
- addtocache=yes
- ;;
-######################################################################
-# Ignore all of the other -W*, -O*, -f*, -m* directives, which are
-# likely to be GCCisms.
-# Ignore -pipe
-# Kill all -nostd* directives, since the standard libs and headers
-# will not be considered by buildlink3 even if a respective
-# -L or -I option is issued.
-# ignore options that should prevent the use of shared libraries.
-# ignore -n32, which is a MIPSpro-specific option.
-######################################################################
--[WOfm]*|-pipe|-MM|-nostd*|--disable-shared|-non_shared|-n32)
- arg=
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# different syntax for profiling
-######################################################################
--pg)
- arg=-p
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# different syntax
-######################################################################
--static)
- arg="-B static"
- split_arg=yes
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# different syntax
-######################################################################
--notall)
- arg=-none
- msg_log $wrapperlog " (transform-ido-cc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-mipspro-cc b/mk/wrapper/transform-mipspro-cc
deleted file mode 100644
index f2e553dd9bd..00000000000
--- a/mk/wrapper/transform-mipspro-cc
+++ /dev/null
@@ -1,78 +0,0 @@
-# $NetBSD: transform-mipspro-cc,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# MIPSpro can handle -O[123] and -Ofast[=platform], so just pass them
-# on through.
-######################################################################
--O[123]|-Ofast|-Ofast=*)
- addtocache=yes
- ;;
-######################################################################
-# Ignore all other -O* options.
-######################################################################
--O*)
- arg=
- msg_log $wrapperlog " (transform-mipspro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Directories for the runtime library search path are passed via
-# "-Wl,-rpath,<dir>", not "-Wl,-R<dir>".
-######################################################################
--Wl,-R*)
- arg="-Wl,-rpath,${arg#-Wl,-R}"
- msg_log $wrapperlog " (transform-mipspro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# The MIPSpro compiler accepts these -W* directives, so just pass them
-# on through.
-######################################################################
--W[ablfpR]*,*)
- addtocache=yes
- ;;
-######################################################################
-# Ignore all of the other -W* directives, which are likely to be
-# GCCisms.
-######################################################################
--W*)
- arg=
- msg_log $wrapperlog " (transform-mipspro-cc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-mipspro-ucode-cc b/mk/wrapper/transform-mipspro-ucode-cc
deleted file mode 100644
index 4243eb7d1ad..00000000000
--- a/mk/wrapper/transform-mipspro-ucode-cc
+++ /dev/null
@@ -1,84 +0,0 @@
-# $NetBSD: transform-mipspro-ucode-cc,v 1.1 2004/09/21 15:01:41 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# MIPSpro can handle -O[0123] so just pass them on through.
-######################################################################
--O[0123])
- addtocache=yes
- ;;
-######################################################################
-# Ignore all other -O* options.
-######################################################################
--O*)
- arg=
- msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Directories for the runtime library search path are passed via
-# "-Wl,-rpath,<dir>", not "-Wl,-R<dir>".
-######################################################################
--Wl,-R*)
- arg="-Wl,-rpath,${arg#-Wl,-R}"
- msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# The MIPSpro compiler accepts -Wl,* so just pass it on through.
-######################################################################
--Wl,*)
- addtocache=yes
- ;;
-######################################################################
-# Ignore all of the other -W* directives, which are likely to be
-# GCCisms.
-######################################################################
--W*)
- arg=
- msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# The MIPSpro compiler uses -KPIC to create position independent code.
-######################################################################
--f[Pp][Ii][Cc])
- arg="-KPIC"
- msg_log $wrapperlog " (transform-mipspro-ucode-cc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-solaris-gcc b/mk/wrapper/transform-solaris-gcc
deleted file mode 100644
index 17be9969873..00000000000
--- a/mk/wrapper/transform-solaris-gcc
+++ /dev/null
@@ -1,42 +0,0 @@
-# $NetBSD: transform-solaris-gcc,v 1.1 2005/07/23 04:45:30 grant Exp $
-#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Grant Beattie.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-# the imake config templates on Solaris 8 pass -Kpic to build PIC, even
-# when -DHasGcc2=YES -DHasGcc2ForCplusplus=YES is passed, so transform
-# -Kpic to -fPIC.
--Kpic|-KPIC)
- arg=-fPIC
- msg_log $wrapperlog " (transform-solaris-gcc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-sunpro-cc b/mk/wrapper/transform-sunpro-cc
deleted file mode 100644
index 66cc2e76cce..00000000000
--- a/mk/wrapper/transform-sunpro-cc
+++ /dev/null
@@ -1,164 +0,0 @@
-# $NetBSD: transform-sunpro-cc,v 1.9 2005/08/20 02:11:15 grant Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# SunPro can handle -xO<n> (n={1|2|3|4|5}), so optimistically convert
-# those GCC -O<n> values to -xO<n>.
-######################################################################
--O[12345])
- arg="-xO${arg#-O}"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Silently ignore all other -O* options, except for "-O", which SunPro
-# interprets as asking for the default optimization level.
-######################################################################
--O?*)
- arg=
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Directories for the runtime library search path are passed via simply
-# "-R<dir>", not "-Wl,-R<dir>".
-######################################################################
--Wl,-R*)
- arg="${arg#-Wl,}"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# SunPro uses -h to set the shared object name.
-######################################################################
--Wl,-soname=*)
- arg="-h${arg#-Wl,-soname=}"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Solaris' linker exports all dynamic symbols by default when building
-# a shared object.
-######################################################################
--Wl,--export-dynamic)
- arg=
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# SunPro compiler accepts -Wl,* so just pass it on through.
-######################################################################
--Wl,*)
- addtocache=yes
- ;;
-######################################################################
-# SunPro compilers don't understand any other -W* arguments, so just
-# silently ignore the rest.
-######################################################################
--W*)
- arg=
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Solaris' linker uses -Bstatic to create static objects.
-######################################################################
--static)
- arg="-Bstatic"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Solaris' linker uses -G to create shared objects.
-######################################################################
---export-dynamic|-shared)
- arg="-G"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# SunPro uses -Kpic to create position independent code.
-######################################################################
--f[Pp][Ii][Cc])
- arg="-Kpic"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# SunPro needs -mt -lpthread for POSIX threads.
-######################################################################
--pthread)
- arg="-mt -lpthread"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- split_arg=yes
- ;;
-######################################################################
-# -fast implies -xlibmopt, which uses the optimized math routines in
-# libsunmath. libsunmath is only available as part of SunPro, so
-# disable the use of the optimized math library (at least until it can
-# be statically linked).
-######################################################################
--fast)
- arg="-fast -xnolibmopt"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- split_arg=yes
- ;;
-######################################################################
-# Pass through -f flags that SunPro understands.
-######################################################################
--fd|-features*|-flags|-flteval*|-fnonstd*|-fns*|-fprecision*|-fround*|-fsimple*|-fsingle|-fstore|-ftrap*)
- addtocache=yes
- ;;
-######################################################################
-# Ignore all other -f flags.
-######################################################################
--f*)
- arg=
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Ignore some flags that are unnecessary for SunPro.
-######################################################################
--ansi|-pedantic|-traditional)
- arg=
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/transform-xlc-cc b/mk/wrapper/transform-xlc-cc
deleted file mode 100644
index c3c8c100b06..00000000000
--- a/mk/wrapper/transform-xlc-cc
+++ /dev/null
@@ -1,75 +0,0 @@
-# $NetBSD: transform-xlc-cc,v 1.6 2004/12/19 00:38:59 grant Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-case $arg in
-######################################################################
-# Leave -Wl, unchanged.
-######################################################################
--Wl,*)
- ;;
-######################################################################
-# XL C doesn't understand many -W* arguments, so just silently ignore
-# them all.
-######################################################################
--W*)
- arg=
- msg_log $wrapperlog " (transform-xlc-cc) to: $arg"
- addtocache=yes
- ;;
-# xlc uses -qmkshrobj to create shared objects, and we also need to
-# tell the linker to use a flat namespace and allow undefined symbols.
--dynamiclib)
- arg="-qmkshrobj -Wl,-flat_namespace -Wl,-undefined -Wl,suppress"
- msg_log $wrapperlog " (transform-xlc-cc) to: $arg"
- addtocache=yes
- split_arg=yes
- ;;
-# -qnocommon is the xlc argument to allocate uninitialized globals in
-# the data section for PIC.
--fno-common|-fPIC)
- arg=-qnocommon
- msg_log $wrapperlog " (transform-xlc-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Ignore some flags that are unnecessary for XL C.
-######################################################################
--pipe|-ansi|-fno-gnu-keywords|-fstrict-prototypes|-no-cpp-precomp|-pedantic)
- arg=
- msg_log $wrapperlog " (transform-xlc-cc) to: $arg"
- addtocache=yes
- ;;
-esac
diff --git a/mk/wrapper/wrapper-defs.mk b/mk/wrapper/wrapper-defs.mk
deleted file mode 100644
index 229a322b8d9..00000000000
--- a/mk/wrapper/wrapper-defs.mk
+++ /dev/null
@@ -1,46 +0,0 @@
-# $NetBSD: wrapper-defs.mk,v 1.2 2005/10/10 12:33:29 tv Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-.if !defined(WRAPPER_DEFS_MK)
-WRAPPER_DEFS_MK= defined
-
-WRAPPER_DIR= ${WRKDIR}/.wrapper
-WRAPPER_BINDIR= ${WRAPPER_DIR}/bin
-WRAPPER_TMPDIR= ${WRAPPER_DIR}/tmp
-WRAPPER_SRCDIR= ${.CURDIR}/../../mk/wrapper
-WRAPPER_SHELL?= ${SH}
-
-.endif # WRAPPER_DEFS_MK
diff --git a/mk/wrapper/wrapper.sh b/mk/wrapper/wrapper.sh
deleted file mode 100644
index e1e37042496..00000000000
--- a/mk/wrapper/wrapper.sh
+++ /dev/null
@@ -1,119 +0,0 @@
-#! @WRAPPER_SHELL@
-#
-# $NetBSD: wrapper.sh,v 1.5 2005/01/18 17:25:13 jlam Exp $
-#
-# Copyright (c) 2004 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Johnny C. Lam.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by the NetBSD
-# Foundation, Inc. and its contributors.
-# 4. Neither the name of The NetBSD Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-
-arg_pp="@_WRAP_ARG_PP@"
-arg_pp_main="@_WRAP_ARG_PP_MAIN@"
-arg_source="@_WRAP_ARG_SOURCE@"
-buildcmd="@_WRAP_BUILDCMD@"
-cache="@_WRAP_CACHE@"
-cache_header="@_WRAP_CACHE_HEADER@"
-cache_body="@_WRAP_CACHE_BODY@"
-cache_footer="@_WRAP_CACHE_FOOTER@"
-cleanup="@_WRAP_CLEANUP@"
-cmd_sink="@_WRAP_CMD_SINK@"
-logic="@_WRAP_LOGIC@"
-reorderlibs="@_WRAP_REORDERLIBS@"
-shell_lib="@_WRAP_SHELL_LIB@"
-scan="@_WRAP_SCAN@"
-transform="@_WRAP_TRANSFORM@"
-transform_sed="@_WRAP_TRANSFORM_SED@"
-wrapperlog="${WRAPPER_LOG-@_WRAP_LOG@}"
-skip_transform="${WRAPPER_SKIP_TRANSFORM-@_WRAP_SKIP_TRANSFORM@}"
-debug="${WRAPPER_DEBUG-@WRAPPER_DEBUG@}"
-append_extra_args=yes
-
-cat="@CAT@"
-echo="@ECHO@"
-expr="@EXPR@"
-sed="@SED@"
-test="@TEST@"
-Xsed="$sed -e 1s/^X//"
-
-. $shell_lib
-
-updatecache=${WRAPPER_UPDATE_CACHE-@WRAPPER_UPDATE_CACHE@}
-reorder=${WRAPPER_REORDER-no}
-
-case $debug in
-yes) debug_log="msg_log" ;;
-*) debug_log=":" ;;
-esac
-
-original_cmd="$0 $@"
-msg_log $wrapperlog "[*]" $original_cmd
-
-cmd="@WRAPPEE@"
-do_transform=yes
-init_queue argbuf
-init_queue cmdbuf
-
-. $scan
-
-case $append_extra_args in
-yes)
- $debug_log $wrapperlog " (wrapper.sh) append args: @_WRAP_EXTRA_ARGS@"
- set -- "$@" @_WRAP_EXTRA_ARGS@
- ;;
-*)
- ;;
-esac
-
-. $arg_source
-. $logic
-. $cmd_sink
-
-# Reorder the libraries so that the library dependencies are correct.
-case $reorder in
-yes)
- if $test -n "$libs"; then
- . $reorderlibs
- fi
- ;;
-esac
-
-cmd="$cmd $libs"
-
-@_WRAP_ENV@
-
-msg_log $wrapperlog "<.>" $cmd
-eval $cmd
-wrapper_result=$?
-
-. $cleanup
-
-exit ${wrapper_result}
diff --git a/mk/x11.buildlink3.mk b/mk/x11.buildlink3.mk
deleted file mode 100644
index 175edd5da49..00000000000
--- a/mk/x11.buildlink3.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-# $NetBSD: x11.buildlink3.mk,v 1.4 2005/08/01 00:37:21 rillig Exp $
-#
-# This Makefile fragment is meant to be included by packages that
-# require an X11 distribution. x11.buildlink3.mk will include the
-# buildlink3.mk file from the appropriate X11 distribution.
-#
-
-X11_BUILDLINK3_MK:= ${X11_BUILDLINK3_MK}+
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(X11_BUILDLINK3_MK:M+)
-USE_X11= yes
-
-. include "../../mk/x11.version.mk"
-
-. if defined(GNU_CONFIGURE)
-CONFIGURE_ARGS+= --x-includes=${X11BASE:Q}/include
-CONFIGURE_ARGS+= --x-libraries=${X11BASE:Q}/lib${LIBABISUFFIX:Q}
-. endif
-
-X11_LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX}
-X11_LDFLAGS+= -L${X11BASE}/lib${LIBABISUFFIX}
-.endif # X11_BUILDLINK3_MK
-
-.sinclude "${X11_PKGSRCDIR.${X11_TYPE}}/buildlink3.mk"
diff --git a/mk/x11.builtin.mk b/mk/x11.builtin.mk
deleted file mode 100644
index 732dab80503..00000000000
--- a/mk/x11.builtin.mk
+++ /dev/null
@@ -1,8 +0,0 @@
-# $NetBSD: x11.builtin.mk,v 1.1 2005/06/01 18:03:06 jlam Exp $
-#
-# x11.builtin.mk will include the builtin.mk file from the appropriate
-# X11 distribution.
-#
-
-.include "../../mk/x11.version.mk"
-.sinclude "${X11_PKGSRCDIR.${X11_TYPE}}/builtin.mk"
diff --git a/mk/x11.version.mk b/mk/x11.version.mk
deleted file mode 100644
index 848163bfb76..00000000000
--- a/mk/x11.version.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-# $NetBSD: x11.version.mk,v 1.3 2005/11/09 01:07:37 reed Exp $
-#
-# The following variables may be set in /etc/mk.conf:
-#
-# X11_TYPE sets the X11 distribution used when building X11 packages.
-# Possible values are "xorg" (use x11/xorg-libs), "XFree86" (use
-# x11/XFree86-libs), or "native" (use the native X11 distribution).
-# The default X11_TYPE is "native" unless defined for a specific
-# operating system in mk/platform/${OPSYS}.mk.
-#
-# The following variables are provided by this file:
-#
-# X11_PKGSRCDIR.${X11_TYPE} sets the pkgsrc directory location for
-# the package which manages/represents ${X11_TYPE}. It can be
-# used to find the relevant buildlink3.mk or builtin.mk files.
-#
-# BUILTIN_X11_TYPE.${X11_TYPE} is the X11_TYPE of the native X11
-# distribution detected on the system.
-#
-# The following variables may be defined by this file. These variables
-# should be checked to exist before they are used:
-#
-# BUILTIN_X11_VERSION.${X11_TYPE} is the version number of the native
-# X11 distribution detected on the system.
-#
-
-X11_TYPE?= native
-X11_PKGSRCDIR.native= ../../pkgtools/x11-links
-X11_PKGSRCDIR.XFree86= ../../x11/XFree86-libs
-X11_PKGSRCDIR.xorg= ../../x11/xorg-libs
-
-# Makefiles that include this file can access the version of the X11
-# distribution as ${BUILTIN_X11_VERSION.${X11_TYPE}}.
-#
-.sinclude "${X11_PKGSRCDIR.${X11_TYPE}}/version.mk"
diff --git a/mk/xaw.buildlink3.mk b/mk/xaw.buildlink3.mk
deleted file mode 100644
index 953493ea8d2..00000000000
--- a/mk/xaw.buildlink3.mk
+++ /dev/null
@@ -1,27 +0,0 @@
-# $NetBSD: xaw.buildlink3.mk,v 1.3 2005/06/02 19:33:56 wiz Exp $
-
-.if !defined(XAW_BUILDLINK3_MK)
-XAW_BUILDLINK3_MK= # defined
-
-# Pull in setting for XAW_TYPE.
-XAW_TYPE?= standard
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${XAW_TYPE} == "xpm"
-. include "../../x11/Xaw-Xpm/buildlink3.mk"
-BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw-Xpm}
-.elif ${XAW_TYPE} == "3d"
-. include "../../x11/Xaw3d/buildlink3.mk"
-BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw3d}
-.elif ${XAW_TYPE} == "neXtaw"
-. include "../../x11/neXtaw/buildlink3.mk"
-BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.neXtaw}
-.else
-. include "../../mk/x11.buildlink3.mk"
-BUILDLINK_PREFIX.Xaw?= ${X11BASE}
-.endif
-
-MAKE_ENV+= LIBXAW=${LIBXAW:Q}
-
-.endif # XAW_BUILDLINK3_MK