summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/AIX.pkg.dist1005
-rw-r--r--mk/BSDOS.pkg.dist1005
-rw-r--r--mk/CHANGES56
-rw-r--r--mk/Darwin.pkg.dist1055
-rw-r--r--mk/Darwin.x11.dist667
-rw-r--r--mk/DragonFly.pkg.dist1054
-rw-r--r--mk/DragonFly.x11.dist667
-rw-r--r--mk/FreeBSD.pkg.dist1054
-rw-r--r--mk/FreeBSD.x11.dist667
-rw-r--r--mk/IRIX.pkg.dist1054
-rw-r--r--mk/IRIX.x11.dist639
-rw-r--r--mk/Interix.pkg.dist1051
-rw-r--r--mk/Interix.x11.dist667
-rw-r--r--mk/Linux.pkg.dist1055
-rw-r--r--mk/Linux.x11.dist667
-rw-r--r--mk/NetBSD.pkg.dist1051
-rw-r--r--mk/NetBSD.x11.dist667
-rw-r--r--mk/OSF1.pkg.dist1054
-rw-r--r--mk/OpenBSD.pkg.dist1054
-rw-r--r--mk/OpenBSD.x11.dist667
-rw-r--r--mk/SunOS.pkg.dist1059
-rw-r--r--mk/SunOS.x11.dist667
-rw-r--r--mk/UnixWare.pkg.dist1060
-rw-r--r--mk/alternatives.mk58
-rw-r--r--mk/apache.mk146
-rw-r--r--mk/autoconf.mk72
-rw-r--r--mk/automake.mk49
-rw-r--r--mk/bdb.buildlink3.mk108
-rw-r--r--mk/bsd.hacks.mk69
-rw-r--r--mk/bsd.options.mk192
-rw-r--r--mk/bsd.pkg.data.mk534
-rw-r--r--mk/bsd.pkg.extract.mk209
-rw-r--r--mk/bsd.pkg.mk3712
-rw-r--r--mk/bsd.pkg.patch.mk271
-rw-r--r--mk/bsd.pkg.subdir.mk240
-rw-r--r--mk/bsd.pkg.use.mk194
-rw-r--r--mk/bsd.prefs.mk627
-rw-r--r--mk/bsd.sites.mk281
-rw-r--r--mk/buildlink3/BUILDLINK3_DG68
-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.mk1095
-rw-r--r--mk/buildlink3/bsd.builtin.mk149
-rw-r--r--mk/buildlink3/buildcmd-libtool74
-rw-r--r--mk/buildlink3/cleanup-libtool41
-rw-r--r--mk/buildlink3/cmd-sink-libtool60
-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.mk487
-rw-r--r--mk/bulk/build365
-rw-r--r--mk/bulk/build.conf-example80
-rw-r--r--mk/bulk/do-sandbox-build11
-rw-r--r--mk/bulk/do-sandbox-upload11
-rwxr-xr-xmk/bulk/mksandbox358
-rw-r--r--mk/bulk/parallel.txt207
-rw-r--r--mk/bulk/post-build591
-rw-r--r--mk/bulk/pre-build286
-rw-r--r--mk/bulk/printdepends112
-rw-r--r--mk/bulk/printindex121
-rwxr-xr-xmk/bulk/tflat204
-rw-r--r--mk/bulk/upload204
-rw-r--r--mk/compiler.mk149
-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/mipspro-ucode.mk47
-rw-r--r--mk/compiler/mipspro.mk107
-rw-r--r--mk/compiler/sunpro.mk95
-rw-r--r--mk/compiler/xlc.mk125
-rw-r--r--mk/curses.buildlink3.mk21
-rw-r--r--mk/db1.builtin.mk90
-rw-r--r--mk/defaults/mk.conf2445
-rw-r--r--mk/defaults/obsolete.mk51
-rw-r--r--mk/defaults/options.description242
-rw-r--r--mk/dirs.mk69
-rw-r--r--mk/djbware.mk74
-rw-r--r--mk/dlopen.buildlink3.mk44
-rw-r--r--mk/dlopen.builtin.mk87
-rw-r--r--mk/emacs.mk208
-rw-r--r--mk/endian.mk51
-rw-r--r--mk/find-prefix.mk32
-rw-r--r--mk/fonts.mk60
-rw-r--r--mk/ghostscript.mk93
-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.mk567
-rw-r--r--mk/install/deinstall78
-rw-r--r--mk/install/deinstall-pre18
-rw-r--r--mk/install/dirs209
-rw-r--r--mk/install/files275
-rw-r--r--mk/install/fonts47
-rw-r--r--mk/install/footer7
-rw-r--r--mk/install/header108
-rw-r--r--mk/install/install92
-rw-r--r--mk/install/install-info37
-rw-r--r--mk/install/install-post18
-rw-r--r--mk/install/perms78
-rw-r--r--mk/install/usergroup386
-rw-r--r--mk/java-env.mk87
-rw-r--r--mk/java-vm.mk311
-rw-r--r--mk/krb5.buildlink3.mk60
-rw-r--r--mk/motif.buildlink3.mk91
-rw-r--r--mk/mysql.buildlink3.mk73
-rw-r--r--mk/nroff.buildlink3.mk17
-rw-r--r--mk/ossaudio.buildlink3.mk84
-rw-r--r--mk/pam.buildlink3.mk89
-rw-r--r--mk/pgsql.buildlink3.mk100
-rw-r--r--mk/platform/AIX.mk194
-rw-r--r--mk/platform/BSDOS.mk175
-rw-r--r--mk/platform/Darwin.mk175
-rw-r--r--mk/platform/DragonFly.mk169
-rw-r--r--mk/platform/FreeBSD.mk169
-rw-r--r--mk/platform/IRIX.mk180
-rw-r--r--mk/platform/Interix.mk210
-rw-r--r--mk/platform/Linux.mk213
-rw-r--r--mk/platform/NetBSD.mk216
-rw-r--r--mk/platform/OSF1.mk149
-rw-r--r--mk/platform/OpenBSD.mk180
-rw-r--r--mk/platform/SunOS.mk203
-rw-r--r--mk/platform/UnixWare.mk171
-rw-r--r--mk/plist.mk659
-rw-r--r--mk/pthread.buildlink3.mk194
-rw-r--r--mk/pthread.builtin.mk78
-rw-r--r--mk/reduce-depends.mk119
-rwxr-xr-xmk/scripts/chkdatabase.awk115
-rwxr-xr-xmk/scripts/genindex.awk389
-rwxr-xr-xmk/scripts/genreadme.awk770
-rwxr-xr-xmk/scripts/mkdatabase212
-rwxr-xr-xmk/scripts/mkreadme488
-rwxr-xr-xmk/scripts/print-la-libnames77
-rw-r--r--mk/scripts/shell-lib385
-rw-r--r--mk/solaris-pam.builtin.mk28
-rw-r--r--mk/subst.mk99
-rw-r--r--mk/texinfo.mk162
-rw-r--r--mk/tools.mk450
-rw-r--r--mk/tools/autoconf.mk190
-rw-r--r--mk/tools/automake.mk146
-rw-r--r--mk/tools/bootstrap.mk105
-rw-r--r--mk/tools/bsd.tools.mk185
-rw-r--r--mk/tools/defaults.mk108
-rw-r--r--mk/tools/imake.mk91
-rw-r--r--mk/tools/ldconfig.mk17
-rw-r--r--mk/tools/make.mk25
-rw-r--r--mk/tools/perl.mk38
-rw-r--r--mk/tools/replace.mk1070
-rw-r--r--mk/tools/rpcgen.mk28
-rw-r--r--mk/tools/strip.mk16
-rw-r--r--mk/tools/texinfo.mk23
-rw-r--r--mk/tools/tools.AIX.mk53
-rw-r--r--mk/tools/tools.BSDOS.mk63
-rw-r--r--mk/tools/tools.Darwin.mk63
-rw-r--r--mk/tools/tools.DragonFly.mk65
-rw-r--r--mk/tools/tools.FreeBSD.mk67
-rw-r--r--mk/tools/tools.IRIX.mk63
-rw-r--r--mk/tools/tools.Interix.mk53
-rw-r--r--mk/tools/tools.Linux.mk129
-rw-r--r--mk/tools/tools.NetBSD.mk77
-rw-r--r--mk/tools/tools.OSF1.mk54
-rw-r--r--mk/tools/tools.OpenBSD.mk66
-rw-r--r--mk/tools/tools.SunOS.mk66
-rw-r--r--mk/tools/tools.UnixWare.mk50
-rw-r--r--mk/wrapper/NOTES31
-rw-r--r--mk/wrapper/arg-pp-darwin-gcc76
-rw-r--r--mk/wrapper/arg-pp-main157
-rw-r--r--mk/wrapper/arg-pp-mipspro-cc48
-rw-r--r--mk/wrapper/arg-source112
-rw-r--r--mk/wrapper/bsd.wrapper.mk723
-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-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-mipspro-cc78
-rw-r--r--mk/wrapper/transform-mipspro-ucode-cc84
-rw-r--r--mk/wrapper/transform-sunpro-cc121
-rw-r--r--mk/wrapper/transform-xlc-cc75
-rw-r--r--mk/wrapper/wrapper-defs.mk46
-rw-r--r--mk/wrapper/wrapper.sh120
-rw-r--r--mk/x11-clients.buildlink3.mk42
-rw-r--r--mk/xaw.buildlink3.mk26
207 files changed, 0 insertions, 57828 deletions
diff --git a/mk/AIX.pkg.dist b/mk/AIX.pkg.dist
deleted file mode 100644
index dafd3414416..00000000000
--- a/mk/AIX.pkg.dist
+++ /dev/null
@@ -1,1005 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: AIX.pkg.dist,v 1.25.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/BSDOS.pkg.dist b/mk/BSDOS.pkg.dist
deleted file mode 100644
index 5734049c881..00000000000
--- a/mk/BSDOS.pkg.dist
+++ /dev/null
@@ -1,1005 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: BSDOS.pkg.dist,v 1.25.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/CHANGES b/mk/CHANGES
deleted file mode 100644
index f480152b670..00000000000
--- a/mk/CHANGES
+++ /dev/null
@@ -1,56 +0,0 @@
-This revision of the pkgsrc/mk infrastructure does a lot of cleanup to
-remove unnecessary ${MAKE} recursion, as well as reorganization to make it
-easier to read and maintain. For the most part, the changes should be
-backwards compatible, and no externally visible variables have changed
-(except where noted below).
-
-Notable changes:
-
-* Reorganization: bsd.pkg.mk has a new, cleaner structure that is
- explicitly delineated into sections. It's not perfect, but this provides
- a tentative structure for further future cleanups.
-
-* Use of more variable modifiers: The make(1) modifiers :D and :U are now
- used quite a bit more to reduce the visual complexity of chains of .if
- blocks. ::!= and :sh are used for deferred shell evaluation.
-
-* Phase based build: bsd.prefs.mk defines the new variable PKG_PHASES,
- which contains a list of what phases *could* be run in the given make(1)
- instance. This allows for conditional parsing of .mk fragments based on
- whether or not the data in question is needed. (For instance, a recursive
- "make fetch" need not include compilation tool definitions.)
-
-* USE_*: Some parts of bsd.pkg.mk for automatic handling of common
- dependencies (USE_PERL5, INFO_FILES, ...) have been factored out into the
- new file bsd.pkg.use.mk.
-
-* ALL_ENV: This new variable is included into all of CONFIGURE_ENV,
- MAKE_ENV, and SCRIPTS_ENV, to help reduce multiple settings of these
- individual variables.
-
-* BUILD_DEFS_FIXED: Like BUILD_DEFS, but the values are assumed to be fixed
- (not directly user configurable in mk.conf) and thus will not be printed
- in the pre-extract notice about configurable variables.
-
-* BUILD_ENV: Because there is no longer build recursion within a package's
- Makefile, this is only used to propagate environment values to tools via
- the wrapper scripts in bsd.wrapper.mk. These values will not be seen by
- non-wrappered programs anymore.
-
-* "depends": This is a new phase of the build which executes between
- "checksum" and "extract". It factors out the dependency handling into its
- own stage, to separate the logic and make it easier to follow in
- bsd.pkg.mk. There is no longer a "pre-install-depends"; things which once
- attached tasks to that now use "pre-extract".
-
-* "test": This is now a true phase of the build which executes between
- "build" and "install". It is skipped automatically if PKGSRC_RUN_TEST is
- not set to YES (as before). Having it as a real phase means that it works
- more amicably with the phase-based build framework.
-
-* "show-var-noeval", "show-vars-noeval": In order to preserve
- compatibility, calling "make show-var" will set PKG_PHASES (see above) to
- all possible values. "show-var[s]-noeval" does the same thing, except
- that PKG_PHASES is left empty (to exclude unnecessary .mk code).
-
-[More TBD]
diff --git a/mk/Darwin.pkg.dist b/mk/Darwin.pkg.dist
deleted file mode 100644
index 602ebabf44c..00000000000
--- a/mk/Darwin.pkg.dist
+++ /dev/null
@@ -1,1055 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: Darwin.pkg.dist,v 1.60.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/Darwin.x11.dist b/mk/Darwin.x11.dist
deleted file mode 100644
index d21300774b0..00000000000
--- a/mk/Darwin.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: Darwin.x11.dist,v 1.33.4.1 2005/01/10 16:15:24 tv 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/DragonFly.pkg.dist b/mk/DragonFly.pkg.dist
deleted file mode 100644
index e53c26f2735..00000000000
--- a/mk/DragonFly.pkg.dist
+++ /dev/null
@@ -1,1054 +0,0 @@
-# $NetBSD: DragonFly.pkg.dist,v 1.1.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/DragonFly.x11.dist b/mk/DragonFly.x11.dist
deleted file mode 100644
index 8295150c10d..00000000000
--- a/mk/DragonFly.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: DragonFly.x11.dist,v 1.1.2.1 2005/01/10 16:15:24 tv 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/FreeBSD.pkg.dist b/mk/FreeBSD.pkg.dist
deleted file mode 100644
index 64a39ef2e51..00000000000
--- a/mk/FreeBSD.pkg.dist
+++ /dev/null
@@ -1,1054 +0,0 @@
-# $NetBSD: FreeBSD.pkg.dist,v 1.51.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/FreeBSD.x11.dist b/mk/FreeBSD.x11.dist
deleted file mode 100644
index 2a16f3a6c86..00000000000
--- a/mk/FreeBSD.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: FreeBSD.x11.dist,v 1.9.4.1 2005/01/10 16:15:24 tv 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/IRIX.pkg.dist b/mk/IRIX.pkg.dist
deleted file mode 100644
index 6cbaf25deef..00000000000
--- a/mk/IRIX.pkg.dist
+++ /dev/null
@@ -1,1054 +0,0 @@
-# $NetBSD: IRIX.pkg.dist,v 1.50.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/IRIX.x11.dist b/mk/IRIX.x11.dist
deleted file mode 100644
index b67de9710cd..00000000000
--- a/mk/IRIX.x11.dist
+++ /dev/null
@@ -1,639 +0,0 @@
-# $NetBSD: IRIX.x11.dist,v 1.13.4.1 2005/01/10 16:15:24 tv 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/Interix.pkg.dist b/mk/Interix.pkg.dist
deleted file mode 100644
index 66149a6eedc..00000000000
--- a/mk/Interix.pkg.dist
+++ /dev/null
@@ -1,1051 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: Interix.pkg.dist,v 1.15.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/Interix.x11.dist b/mk/Interix.x11.dist
deleted file mode 100644
index 82d624725f1..00000000000
--- a/mk/Interix.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: Interix.x11.dist,v 1.4.4.1 2005/01/10 16:15:25 tv 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/Linux.pkg.dist b/mk/Linux.pkg.dist
deleted file mode 100644
index 165542ef3e8..00000000000
--- a/mk/Linux.pkg.dist
+++ /dev/null
@@ -1,1055 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: Linux.pkg.dist,v 1.67.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/Linux.x11.dist b/mk/Linux.x11.dist
deleted file mode 100644
index 138ac76dcda..00000000000
--- a/mk/Linux.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: Linux.x11.dist,v 1.39.4.1 2005/01/10 16:15:25 tv 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/NetBSD.pkg.dist b/mk/NetBSD.pkg.dist
deleted file mode 100644
index 3888253a77b..00000000000
--- a/mk/NetBSD.pkg.dist
+++ /dev/null
@@ -1,1051 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: NetBSD.pkg.dist,v 1.78.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/NetBSD.x11.dist b/mk/NetBSD.x11.dist
deleted file mode 100644
index 9f25f8cdc50..00000000000
--- a/mk/NetBSD.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: NetBSD.x11.dist,v 1.40.4.1 2005/01/10 16:15:25 tv 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/OSF1.pkg.dist b/mk/OSF1.pkg.dist
deleted file mode 100644
index fbf689fe5a9..00000000000
--- a/mk/OSF1.pkg.dist
+++ /dev/null
@@ -1,1054 +0,0 @@
-# $NetBSD: OSF1.pkg.dist,v 1.1.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/OpenBSD.pkg.dist b/mk/OpenBSD.pkg.dist
deleted file mode 100644
index 13e95886dd8..00000000000
--- a/mk/OpenBSD.pkg.dist
+++ /dev/null
@@ -1,1054 +0,0 @@
-# $NetBSD: OpenBSD.pkg.dist,v 1.50.2.5 2005/05/17 18:29:44 tv 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
- ..
- games
- ..
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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/OpenBSD.x11.dist b/mk/OpenBSD.x11.dist
deleted file mode 100644
index 332f6570e64..00000000000
--- a/mk/OpenBSD.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: OpenBSD.x11.dist,v 1.27.4.1 2005/01/10 16:15:25 tv 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/SunOS.pkg.dist b/mk/SunOS.pkg.dist
deleted file mode 100644
index e57345e49c7..00000000000
--- a/mk/SunOS.pkg.dist
+++ /dev/null
@@ -1,1059 +0,0 @@
-# Id: BSD.local.dist,v 1.30 1997/08/01 13:16:39 phk Exp
-# $NetBSD: SunOS.pkg.dist,v 1.72.2.5 2005/05/17 18:29:44 tv Exp $
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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
- ..
- 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/SunOS.x11.dist b/mk/SunOS.x11.dist
deleted file mode 100644
index 5a3699b2eff..00000000000
--- a/mk/SunOS.x11.dist
+++ /dev/null
@@ -1,667 +0,0 @@
-# $NetBSD: SunOS.x11.dist,v 1.40.4.1 2005/01/10 16:15:25 tv 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/UnixWare.pkg.dist b/mk/UnixWare.pkg.dist
deleted file mode 100644
index a480fe1e78f..00000000000
--- a/mk/UnixWare.pkg.dist
+++ /dev/null
@@ -1,1060 +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.9.2.5 2005/05/17 18:29:44 tv Exp $
-#
-
-/set type=dir uname=root gname=sys mode=0755
-.
- bin
- ..
- emul
- ..
- etc
- rc.d
- ..
- ..
- include
- ..
- info
- ..
- lib
- locale
- 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
- ..
- ..
- 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
- ..
- ..
- 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
- ..
- ..
- gl
- LC_MESSAGES
- ..
- ..
- gu
- LC_MESSAGES
- ..
- ..
- he
- LC_MESSAGES
- ..
- ..
- hi
- LC_MESSAGES
- ..
- ..
- hr
- LC_MESSAGES
- ..
- ..
- hsb
- LC_MESSAGES
- ..
- ..
- hu
- LC_MESSAGES
- ..
- ..
- ia
- LC_MESSAGES
- ..
- ..
- id
- LC_MESSAGES
- ..
- ..
- is
- LC_MESSAGES
- ..
- ..
- it
- LC_MESSAGES
- ..
- ..
- it_NA
- LC_MESSAGES
- ..
- ..
- ja
- LC_MESSAGES
- ..
- ..
- ja_JP
- LC_MESSAGES
- ..
- ..
- ka
- LC_MESSAGES
- ..
- ..
- kn
- LC_MESSAGES
- ..
- ..
- ko
- 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
- ..
- ..
- or
- LC_MESSAGES
- ..
- ..
- pa
- LC_MESSAGES
- ..
- ..
- pl
- LC_MESSAGES
- ..
- ..
- pl_PL
- LC_MESSAGES
- ..
- ..
- pt
- LC_MESSAGES
- ..
- ..
- pt_BR
- LC_MESSAGES
- ..
- ..
- pt_PT
- LC_MESSAGES
- ..
- ..
- ro
- LC_MESSAGES
- ..
- ..
- ru
- LC_MESSAGES
- ..
- ..
- rw
- LC_MESSAGES
- ..
- ..
- se
- LC_MESSAGES
- ..
- ..
- sk
- LC_MESSAGES
- ..
- ..
- sl
- 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
- ..
- ..
- ta
- LC_MESSAGES
- ..
- ..
- tg
- LC_MESSAGES
- ..
- ..
- th
- LC_MESSAGES
- ..
- ..
- tk
- LC_MESSAGES
- ..
- ..
- tl
- LC_MESSAGES
- ..
- ..
- tr
- LC_MESSAGES
- ..
- ..
- uk
- LC_MESSAGES
- ..
- ..
- uz
- LC_MESSAGES
- ..
- ..
- uz@Latn
- LC_MESSAGES
- ..
- ..
- uz@Cyrl
- LC_MESSAGES
- ..
- ..
- ven
- LC_MESSAGES
- ..
- ..
- vi
- LC_MESSAGES
- ..
- ..
- wa
- 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
- ..
- 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/alternatives.mk b/mk/alternatives.mk
deleted file mode 100644
index 331322a20ef..00000000000
--- a/mk/alternatives.mk
+++ /dev/null
@@ -1,58 +0,0 @@
-# $NetBSD: alternatives.mk,v 1.4.2.2 2005/02/11 15:27:57 tv 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 e44c4040517..00000000000
--- a/mk/apache.mk
+++ /dev/null
@@ -1,146 +0,0 @@
-# $NetBSD: apache.mk,v 1.6.4.2 2005/05/17 18:29:44 tv 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/autoconf.mk b/mk/autoconf.mk
deleted file mode 100644
index 3f09cd6a498..00000000000
--- a/mk/autoconf.mk
+++ /dev/null
@@ -1,72 +0,0 @@
-# $NetBSD: autoconf.mk,v 1.6.2.1 2005/05/17 18:29:44 tv Exp $
-#
-# makefile fragment for packages that use autoconf
-# AUTOCONF_REQD can be set to the minimum version required.
-# It adds a build dependency on the appropriate autoconf package
-# and sets the following variables:
-# AUTOCONF: autoconf binary to use
-# AUTORECONF: autoreconf binary to use
-# AUTOHEADER: autoheader binary to use
-#
-
-.if !defined(AUTOCONF_MK)
-AUTOCONF_MK= # defined
-
-# minimal required version
-AUTOCONF_REQD?= 2.50
-
-.include "../../mk/bsd.prefs.mk"
-
-.if empty(AUTOCONF_REQD:M2.1[0-9]*)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-USE_TOOLS+= autoconf
-. else
-BUILD_DEPENDS+= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf
-AUTOCONF= ${LOCALBASE}/bin/autoconf
-AUTORECONF= ${LOCALBASE}/bin/autoreconf
-AUTOHEADER= ${LOCALBASE}/bin/autoheader
-. endif
-.else
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-USE_TOOLS+= autoconf213
-. else
-BUILD_DEPENDS+= autoconf213>=${AUTOCONF_REQD}:../../devel/autoconf213
-AUTOCONF= ${LOCALBASE}/bin/autoconf-2.13
-AUTORECONF= ${LOCALBASE}/bin/autoreconf-2.13
-AUTOHEADER= ${LOCALBASE}/bin/autoheader-2.13
-. if defined(USE_LIBTOOL)
-pre-configure: do-libtool-m4-override
-. endif
-. endif
-.endif
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-# LIBTOOL_M4_OVERRIDE lists the locations where the libtool.m4 symlink
-# will be created. The libtool.m4 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 ${AUTOCONF_REQD} == 2.13 and USE_LIBTOOL is defined. 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: do-libtool-m4-override
-do-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 [ -f "$$cfile" ]; then \
- libtool_m4=`${DIRNAME} $$cfile`/libtool.m4; \
- ${LN} -sf ${PKGSRCDIR}/mk/gnu-config/libtool-1.4.m4 \
- $$libtool_m4; \
- fi; \
- done
-.endfor
-.endif
-
-.endif # AUTOCONF_MK
diff --git a/mk/automake.mk b/mk/automake.mk
deleted file mode 100644
index a73ca1ddedd..00000000000
--- a/mk/automake.mk
+++ /dev/null
@@ -1,49 +0,0 @@
-# $NetBSD: automake.mk,v 1.8.4.1 2005/05/17 18:29:44 tv Exp $
-#
-# makefile fragment for packages that use automake
-# AUTOMAKE_REQD can be set to the minimum version required.
-# It adds a build dependency on the appropriate automake and autoconf
-# packages and sets the following variables:
-# AUTOMAKE: automake binary to use
-# ACLOCAL: aclocal binary to use
-# autoconf required version will default to 2.13 if automake 1.4* is used,
-# and to 2.58 otherwise.
-#
-
-.if !defined(AUTOMAKE_MK)
-AUTOMAKE_MK= # defined
-
-# minimal required version
-AUTOMAKE_REQD?= 1.9
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(AUTOMAKE_REQD:M1.4*)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-USE_TOOLS+= automake14
-. else
-BUILD_DEPENDS+= automake14>=${AUTOMAKE_REQD}:../../devel/automake14
-_AUTOMAKE_API_VERSION= 1.4
-AUTOCONF_REQD?= 2.13
-. endif
-.else
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-USE_TOOLS+= automake
-. else
-BUILD_DEPENDS+= automake>=${AUTOMAKE_REQD}:../../devel/automake
-_AUTOMAKE_API_VERSION= 1.9
-AUTOCONF_REQD?= 2.58
-. endif
-.endif
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AUTOMAKE= ${LOCALBASE}/bin/automake-${_AUTOMAKE_API_VERSION}
-ACLOCAL= ${LOCALBASE}/bin/aclocal-${_AUTOMAKE_API_VERSION}
-
-.if defined(BUILD_USES_GETTEXT_M4)
-BUILD_DEPENDS+= {gettext-0.10.35nb1,gettext-m4-[0-9]*}:../../devel/gettext-m4
-.endif
-
-.include "../mk/autoconf.mk"
-.endif
-.endif # AUTOMAKE_MK
diff --git a/mk/bdb.buildlink3.mk b/mk/bdb.buildlink3.mk
deleted file mode 100644
index 6cdecaacf7e..00000000000
--- a/mk/bdb.buildlink3.mk
+++ /dev/null
@@ -1,108 +0,0 @@
-# $NetBSD: bdb.buildlink3.mk,v 1.12.2.1 2005/01/10 16:15:25 tv 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_PKGBASE.db2= db
-_BDB_PKGSRCDIR.db2= ../../databases/db
-. for _bdb_ in ${_BDB_PKGS}
-_BDB_PKGBASE.${_bdb_}?= ${_bdb_}
-_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_PKGBASE.${BDB_TYPE}}}
-BDB_LIBS= ${BUILDLINK_LDADD.${_BDB_PKGBASE.${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 ad6e7a86aae..00000000000
--- a/mk/bsd.hacks.mk
+++ /dev/null
@@ -1,69 +0,0 @@
-# $NetBSD: bsd.hacks.mk,v 1.1.2.1 2004/11/22 22:48:04 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.options.mk b/mk/bsd.options.mk
deleted file mode 100644
index 830c1667c25..00000000000
--- a/mk/bsd.options.mk
+++ /dev/null
@@ -1,192 +0,0 @@
-# $NetBSD: bsd.options.mk,v 1.9.4.5 2005/05/17 18:29:44 tv 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 (must be defined)
-# 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_OPTION_VAR (must be defined)
-# The variable the user can set to enable or disable
-# options specifically for this package.
-#
-# PKG_SUGGESTED_OPTIONS (defaults to empty)
-# This is a list of build options which are enabled by default.
-#
-# PKG_OPTION_LEGACY_VARS
-# This is a list of USE_VARIABLE:option pairs that
-# map legacy /etc/mk.conf variables to their option
-# counterparts.
-#
-#
-# 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_SUPPORTED_OPTIONS= foo ldap sasl
-# PKG_SUGGESTED_OPTIONS= foo
-# PKG_OPTIONS_LEGACY_VARS+= WIBBLE_USE_OPENLDAP:ldap
-# PKG_OPTIONS_LEGACY_VARS+= WIBBLE_USE_SASL2:sasl
-#
-# .include "../../mk/bsd.options.mk"
-#
-# # Package-specific option-handling
-#
-# ###
-# ### FOO support
-# ###
-# .if !empty(PKG_OPTIONS:Mfoo)
-# 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
-# -------------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_SUPPORTED_OPTIONS)
-PKG_FAIL_REASON+= "bsd.options.mk: PKG_SUPPORTED_OPTIONS is not defined."
-.elif !defined(PKG_OPTIONS_VAR)
-PKG_FAIL_REASON+= "bsd.options.mk: PKG_OPTIONS_VAR is not defined."
-.else # process the rest of the file
-
-# include deprecated variable to options mapping
-.include "${.CURDIR}/../../mk/defaults/obsolete.mk"
-
-.for _m_ in ${PKG_OPTIONS_LEGACY_VARS}
-.if !empty(PKG_SUPPORTED_OPTIONS:M${_m_:C/.*://}) && defined(${_m_:C/:.*//}) && !empty(${_m_:C/:.*//}:M[yY][eE][sS])
-_PKG_LEGACY_OPTIONS+=${_m_:C/.*://}
-_DEPRECATED_WARNING+="Deprecated variable "${_m_:C/:.*//:Q}" used, use PKG_DEFAULT_OPTIONS+="${_m_:C/.*://:Q}" instead."
-.endif
-.endfor
-
-#
-# process options from generic to specific
-#
-PKG_OPTIONS:= # empty
-.for _o_ in ${PKG_SUGGESTED_OPTIONS} ${_PKG_LEGACY_OPTIONS} \
- ${PKG_DEFAULT_OPTIONS} ${${PKG_OPTIONS_VAR}}
-_opt_:= ${_o_}
-# ,--- this variable is a work around for a bug documented in the
-# | regress/make-quoting package, testcase bug1.
-_popt_:= ${_o_:C/^-//} # popt == plain option
-. if !empty(_opt_:M-*)
-PKG_OPTIONS:= ${PKG_OPTIONS:N${_popt_}}
-. elif !empty(PKG_SUPPORTED_OPTIONS:M${_popt_})
-PKG_OPTIONS:= ${PKG_OPTIONS} ${_popt_}
-. endif
-.endfor
-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: describe-options
-describe-options:
- @${ECHO} The following options are supported by this package:
-.for _opt_ in ${PKG_SUPPORTED_OPTIONS:O}
- @${ECHO} " "${_opt_:Q}" "`${SED} -n "s/^"${_opt_:Q}" //p" ../../mk/defaults/options.description`
-.endfor
- @${ECHO}
- @${ECHO} "These options are enabled by default: "${PKG_SUGGESTED_OPTIONS:O:Q}
- @${ECHO} "These options are currently enabled: "${PKG_OPTIONS:O:Q}
-
-.PHONY: show-options
-show-options:
- @${ECHO} "available: "${PKG_SUPPORTED_OPTIONS:O:Q}
- @${ECHO} "default: "${PKG_SUGGESTED_OPTIONS:O:Q}
- @${ECHO} "enabled: "${PKG_OPTIONS:O:Q}
-
-.if defined(PKG_SUPPORTED_OPTIONS)
-.PHONY: supported-options-message
-pre-extract: 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(_DEPRECATED_WARNING)
- @${ECHO}
- @for l in ${_DEPRECATED_WARNING}; \
- do \
- ${ECHO} "$$l"; \
- done
-. endif
- @${ECHO} ""
- @${ECHO} "=========================================================================="
-. endif
-.endif
-
-.endif # defined(PKG_OPTIONS_VAR) && defined(PKG_SUPPORTED_OPTIONS)
diff --git a/mk/bsd.pkg.data.mk b/mk/bsd.pkg.data.mk
deleted file mode 100644
index e26df3e8a5f..00000000000
--- a/mk/bsd.pkg.data.mk
+++ /dev/null
@@ -1,534 +0,0 @@
-# $NetBSD: bsd.pkg.data.mk,v 1.1.2.3 2004/12/31 20:25:30 tv Exp $
-#
-# bsd.pkg.mk fragments for exporting data in human-readable or machine
-# parseable formats.
-#
-# These targets are not called internally by pkgsrc when building packages
-# via the "normal" build mechanisms, but some are used by the bulk build
-# system (BATCH/bsd.bulk-pkg.mk) or other external processes (README
-# and README.html generation).
-#
-# Targets:
-#
-## README.html (internal only)
-## binpkg-list
-## cdrom-readme
-## check
-## describe
-## fetch-list
-## fetch-list-recursive (internal only)
-## fetch-list-one-pkg (internal only)
-## info
-## lint
-## list
-## make-readme-html-help (internal only)
-## print-build-depends-list
-## print-run-depends-list
-## print-summary-data
-## readme [readmes]
-## show-all-depends-dirs
-## show-depends-dirs
-## show-distfiles
-## show-downlevel
-## show-installed-depends
-## show-license [show-licence]
-## show-needs-update
-## show-pkgsrc-dir
-## show-pkgtools-version
-## show-root-dirs
-## show-vulnerabilities-html (internal only)
-#
-
-# show both build and run depends directories (non-recursively)
-.PHONY: show-depends-dirs
-show-depends-dirs:
- @dlist=""; \
- thisdir=`${PWD_CMD}`; \
- for reldir in "" ${DEPENDS:C/^[^:]*://:C/:.*$//} ${BUILD_DEPENDS:C/^[^:]*://:C/:.*$//} ;\
- do \
- if [ "X$$reldir" = "X" ]; then continue; fi; \
- cd $$thisdir/$$reldir; \
- WD=`${PWD_CMD}`; \
- d=`dirname $$WD`; \
- absdir=`basename $$d`/`basename $$WD`; \
- dlist="$$dlist $$absdir"; \
- done; \
- cd $$thisdir; \
- ${ECHO} "$$dlist"
-
-# Show all build and run depends, reverse-breadth first, with options.
-
-# "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 \
- }
-
-_SHOW_ALL_DEPENDS_DIRS_EXCL= ${AWK} -v NonSelf=1 '${_RECURSE_DEPENDS_DIRS}'
-
-.PHONY: show-all-depends-dirs
-show-all-depends-dirs:
- @${AWK} '${_RECURSE_DEPENDS_DIRS}'
-
-.PHONY: show-root-dirs
-show-root-dirs:
- ${_PKG_SILENT}${_PKG_DEBUG}${AWK} -v RootsOnly=1 '${_RECURSE_DEPENDS_DIRS}'
-
-.PHONY: show-distfiles
-show-distfiles:
-.if !defined(PKG_FAIL_REASON)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for file in "" ${_CKSUMFILES}; do \
- if [ "X$$file" = "X" ]; then continue; fi; \
- ${ECHO} $$file; \
- done
-.endif
-
-.PHONY: show-downlevel
-show-downlevel:
-.if !defined(PKG_FAIL_REASON)
- ${_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
-
-.PHONY: 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
-
-.PHONY: 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; \
- want=`${MAKE} show-var-noeval VARNAME=PKGNAME`; \
- wild=`${MAKE} show-var-noeval VARNAME=PKGWILDCARD`; \
- 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
-
-.PHONY: show-pkgsrc-dir
-show-pkgsrc-dir:
-.if !defined(PKG_FAIL_REASON)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`"; \
- if [ "X$$found" != "X" ]; then \
- ${ECHO} ${PKGPATH}; \
- fi
-.endif
-
-# 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 | ${GREP} -v ^OK
-
-# Prints out a script to fetch all needed files (no checksumming).
-.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} '#'
- @${MAKE} ${MAKEFLAGS} fetch-list-recursive
-
-.PHONY: 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
-
-.PHONY: 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')...'
- @${ECHO} '#'
- @${MKDIR} ${_DISTDIR}
-. for fetchfile in ${_ALLFILES}
-. if defined(_FETCH_MESSAGE)
- @(cd ${_DISTDIR}; \
- if [ ! -f ${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)
- @(cd ${_DISTDIR}; \
- if [ ! -f ${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} not fetched'; \
- ${ECHO} done; \
- ${ECHO} ')'; \
- fi)
-. else
- @(cd ${_DISTDIR}; \
- if [ ! -f ${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} not fetched'; \
- ${ECHO} done; \
- fi)
-. endif # defined(_FETCH_MESSAGE) || defined(DYNAMIC_MASTER_SITES)
-. endfor
-.endif # !empty(_ALLFILES)
-
-.PHONY: 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}
-
-# 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
-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
-
-# 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
-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} ""
-
-# This target is used to generate README.html files
-FTP_PKG_URL_HOST?= ftp://ftp.NetBSD.org
-FTP_PKG_URL_DIR?= /pub/NetBSD/packages
-
-.PHONY: readme readmes
-readme readmes:
- @cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} README.html PKG_URL=${FTP_PKG_URL_HOST}${FTP_PKG_URL_DIR}
-
-# This target is used to generate README.html files, very like "readme"
-# However, a different target was used for ease of use.
-CDROM_PKG_URL_HOST?= file://localhost
-CDROM_PKG_URL_DIR?= /usr/pkgsrc/packages
-
-.PHONY: cdrom-readme
-cdrom-readme:
- @cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} README.html PKG_URL=${CDROM_PKG_URL_HOST}${CDROM_PKG_URL_DIR}
-
-README_NAME= ${TEMPLATES}/README.pkg
-
-# set up the correct license information as a sed expression
-.ifdef 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
-.ifdef 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 \
- DISTDIR=${DISTDIR} \
- MACHINE_ARCH=${MACHINE_ARCH} \
- MULTIARCH=$$MULTIARCH \
- OPSYS=${OPSYS} \
- OS_VERSION=${OS_VERSION} \
- PACKAGES=${PACKAGES} \
- PKG_SUFX=${PKG_SUFX} \
- PKG_URL=${PKG_URL} \
- PKGREPOSITORYSUBDIR=${PKGREPOSITORYSUBDIR} \
- PKGSRCDIR=${.CURDIR:C|/[^/]*/[^/]*$||} \
- TMPDIR=${TMPDIR:U/tmp} \
- SINGLEPKG=${PKGPATH} \
- $@.tmp1
- @${RM} $@.tmp1
-
-.PHONY: show-pkgtools-version
-show-pkgtools-version:
- @${ECHO} ${PKGTOOLS_VERSION}
-
-.PHONY: 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
-
-.PHONY: 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
-
-# This target is used by the mk/scripts/mkreadme script to generate
-# README.html files
-.PHONY: print-summary-data
-print-summary-data:
- @${ECHO} "depends ${PKGPATH} ${DEPENDS}"
- @${ECHO} "build_depends ${PKGPATH} ${BUILD_DEPENDS}"
- @${ECHO} "conflicts ${PKGPATH} ${CONFLICTS}"
- @${ECHO} "index ${PKGPATH} ${PKGNAME}"
- @${ECHO} htmlname ${PKGPATH} ${HTML_PKGNAME: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}"
-
-.PHONY: show-license show-licence
-show-license show-licence:
- @if [ "${LICENSE}" != "" ]; then \
- if ${TEST} -f ${PKGSRCDIR}/licenses/${LICENSE}; then \
- if [ "${PAGER}" != "" ]; then \
- ${PAGER} ${PKGSRCDIR}/licenses/${LICENSE};\
- else \
- ${CAT} ${PKGSRCDIR}/licenses/${LICENSE};\
- fi \
- else \
- ${ECHO} "Generic ${LICENSE} information not available"; \
- ${ECHO} "See the package description (pkg_info -d ${PKGNAME}) for more information."; \
- fi \
- fi
diff --git a/mk/bsd.pkg.extract.mk b/mk/bsd.pkg.extract.mk
deleted file mode 100644
index e095db1cba4..00000000000
--- a/mk/bsd.pkg.extract.mk
+++ /dev/null
@@ -1,209 +0,0 @@
-# $NetBSD: bsd.pkg.extract.mk,v 1.6.2.2 2005/05/17 18:29:44 tv 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 .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
-
-.if !empty(EXTRACT_ONLY:M*.tar) || !empty(EXTRACT_ONLY:M*.tar.*) || \
- !empty(EXTRACT_SUFX:M*.tar) || !empty(EXTRACT_SUFX:M*.tar.*) || \
- !empty(EXTRACT_ONLY:M*.tbz) || !empty(EXTRACT_ONLY:M*.tgz) || \
- !empty(EXTRACT_SUFX:M*.tbz) || !empty(EXTRACT_SUFX:M*.tgz)
-. if !empty(EXTRACT_USING:Mgtar)
-PKGSRC_USE_TOOLS+= gtar
-. elif !empty(EXTRACT_USING:Mnbtar)
-PKGSRC_USE_TOOLS+= tar
-. else
-PKGSRC_USE_TOOLS+= pax
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.bz2) || !empty(EXTRACT_ONLY:M*.tbz) || \
- !empty(EXTRACT_SUFX:M*.bz2) || !empty(EXTRACT_SUFX:M*.tbz)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-PKGSRC_USE_TOOLS+= bzcat
-. elif exists(/usr/bin/bzcat)
-BZCAT= /usr/bin/bzcat <
-. else
-BUILD_DEPENDS+= bzip2>=0.9.0b:../../archivers/bzip2
-BZCAT= ${LOCALBASE}/bin/bzcat
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.zip) || !empty(EXTRACT_SUFX:M*.zip)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-PKGSRC_USE_TOOLS+= unzip
-. else
-BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
-UNZIP= ${LOCALBASE}/bin/unzip
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.lzh) || !empty(EXTRACT_ONLY:M*.lha) || \
- !empty(EXTRACT_SUFX:M*.lzh) || !empty(EXTRACT_SUFX:M*.lha)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-PKGSRC_USE_TOOLS+= lha
-. else
-BUILD_DEPENDS+= lha>=114.9:../../archivers/lha
-LHA= ${LOCALBASE}/bin/lha
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.gz) || !empty(EXTRACT_ONLY:M*.tgz) || \
- !empty(EXTRACT_SUFX:M*.gz) || !empty(EXTRACT_SUFX:M*.tgz) || \
- !empty(EXTRACT_ONLY:M*.Z) || !empty(EXTRACT_SUFX:M*.Z)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-PKGSRC_USE_TOOLS+= gzcat
-. elif !defined(GZCAT)
-BUILD_DEPENDS+= gzip-base>=1.2.4b:../../archivers/gzip-base
-GZCAT= ${LOCALBASE}/bin/zcat
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.zoo) || !empty(EXTRACT_SUFX:M*.zoo)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-PKGSRC_USE_TOOLS+= unzoo
-. else
-BUILD_DEPENDS+= unzoo-[0-9]*:../../archivers/unzoo
-UNZOO= ${LOCALBASE}/bin/unzoo
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.rar) || !empty(EXTRACT_SUFX:M*.rar)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-PKGSRC_USE_TOOLS+= unrar
-. else
-BUILD_DEPENDS+= unrar>=3.3.4:../../archivers/unrar
-UNRAR= ${LOCALBASE}/bin/unrar
-. endif
-.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.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} -xf - ${EXTRACT_ELEMENTS}
-. elif !empty(EXTRACT_USING:Mnbtar)
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${TAR} -xf - ${EXTRACT_ELEMENTS}
-. else
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${PAX} -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 38b0a82c207..00000000000
--- a/mk/bsd.pkg.mk
+++ /dev/null
@@ -1,3712 +0,0 @@
-# $NetBSD: bsd.pkg.mk,v 1.1540.2.26 2005/03/21 15:43:00 tv 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.
-#
-# XXX tv: rev 1.1554 is not merged yet (phase "error handlers")
-#
-
-############################################################################
-# Include any preferences, if not already included, and common definitions
-############################################################################
-
-.include "../../mk/bsd.prefs.mk"
-.include "../../mk/bsd.hacks.mk"
-
-# _PKG_PHASES_WRKDIR is an ordered list of phases which require ${WRKDIR}
-# to exist. _PKG_PHASES_ALL also includes the phases from before ${WRKDIR}
-# is created. These macros are used below mainly in .for loops.
-
-_PKG_PHASES_ALL= fetch checksum ${_PKG_PHASES_WRKDIR}
-_PKG_PHASES_WRKDIR= depends extract patch tools wrapper \
- configure build test install package
-
-############################################################################
-# Transform package Makefile variables and set defaults
-############################################################################
-
-CHECK_FILES?= NO # run check-files after install
-CHECK_FILES_STRICT?= NO # make check-files very strict on errors
-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
-
-##### 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_DEFS?= # empty
-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
-EXTRACT_ONLY?= ${DISTFILES}
-EXTRACT_SUFX?= .tar.gz
-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
-USE_GNU_TOOLS?= # empty
-WRKSRC?= ${WRKDIR}/${DISTNAME}
-
-BUILD_DEFS_FIXED+= PKGPATH
-BUILD_DEFS_FIXED+= OPSYS OS_VERSION MACHINE_ARCH MACHINE_GNU_ARCH
-BUILD_DEFS_FIXED+= CPPFLAGS CFLAGS FFLAGS LDFLAGS
-BUILD_DEFS_FIXED+= CONFIGURE_ENV CONFIGURE_ARGS
-BUILD_DEFS_FIXED+= OBJECT_FMT LICENSE RESTRICTED
-BUILD_DEFS_FIXED+= NO_SRC_ON_FTP NO_SRC_ON_CDROM
-BUILD_DEFS_FIXED+= NO_BIN_ON_FTP NO_BIN_ON_CDROM
-BUILD_DEFS_FIXED+= ${OSVERSION_SPECIFIC:DOSVERSION_SPECIFIC}
-
-.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:U20050204}
-
-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
-
-.for targ in ${_PKG_PHASES_WRKDIR}
-${targ}_COOKIE= ${WRKDIR}/.${targ}_done
-.endfor
-
-##### 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
-
-.if (${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once")
-. if !defined(OBJHOSTNAME)
-PKG_FAIL_REASON+='PKGSRC_LOCKTYPE needs OBJHOSTNAME defined.'
-. elif !exists(${SHLOCK})
-PKG_FAIL_REASON+='The ${SHLOCK} utility does not exist, and is necessary for locking.'
-PKG_FAIL_REASON+='Please "${MAKE} install" in ../../pkgtools/shlock.'
-. endif
-.endif
-
-#
-# 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_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})
-PKG_FAIL_REASON+= "${PKGNAME} uses X11, but ${X11BASE} not found"
-.endif
-.if defined(BROKEN)
-PKG_FAIL_REASON+= "${PKGNAME} is marked as broken:" ${BROKEN:Q}
-.endif
-
-.if defined(LICENSE)
-. ifdef ACCEPTABLE_LICENSES
-. for _lic in ${ACCEPTABLE_LICENSES}
-. if ${LICENSE} == "${_lic}"
-_ACCEPTABLE= yes
-. endif # LICENSE == _lic
-. endfor # _lic
-. endif # ACCEPTABLE_LICENSES
-. ifndef _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
-
-.if !defined(NO_SKIP)
-. if defined(PKG_FAIL_REASON) || defined(PKG_SKIP_REASON)
-_PKG_SKIPPED= # defined
-. endif
-.endif
-
-############################################################################
-# Set up build environment
-############################################################################
-
-.if !defined(_PKG_SKIPPED)
-
-# Allow variables to be set on a per-OS basis
-OPSYSVARS+= CFLAGS CPPFLAGS CXXFLAGS FFLAGS 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}
-
-. if !empty(USE_BUILDLINK3:M[nN][oO])
-LDFLAGS+= ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib
-LDFLAGS+= -L${LOCALBASE}/lib
-. endif
-
-ALL_ENV+= CC=${CC:Q}
-ALL_ENV+= CFLAGS=${CFLAGS:Q}
-ALL_ENV+= CPPFLAGS=${CPPFLAGS:Q}
-ALL_ENV+= CXX=${CXX:Q}
-ALL_ENV+= CXXFLAGS=${CXXFLAGS:Q}
-ALL_ENV+= COMPILER_RPATH_FLAG=${COMPILER_RPATH_FLAG:Q}
-ALL_ENV+= F77=${FC:Q}
-ALL_ENV+= FC=${FC:Q}
-ALL_ENV+= FFLAGS=${FFLAGS: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: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}
-
-# 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}
-
-# Set PLIST_SUBST to substitute "${variable}" to "value" in PLIST
-PLIST_SUBST+= CHGRP=${CHGRP:Q}
-PLIST_SUBST+= CHMOD=${CHMOD:Q}
-PLIST_SUBST+= CHOWN=${CHOWN:Q}
-PLIST_SUBST+= LN=${LN:Q}
-PLIST_SUBST+= LOCALBASE=${LOCALBASE}
-PLIST_SUBST+= LOWER_VENDOR=${LOWER_VENDOR}
-PLIST_SUBST+= LOWER_OPSYS=${LOWER_OPSYS}
-PLIST_SUBST+= LOWER_OS_VERSION=${LOWER_OS_VERSION}
-PLIST_SUBST+= MACHINE_ARCH=${MACHINE_ARCH}
-PLIST_SUBST+= MACHINE_GNU_ARCH=${MACHINE_GNU_ARCH}
-PLIST_SUBST+= MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM}
-PLIST_SUBST+= MKDIR=${MKDIR:Q}
-PLIST_SUBST+= OPSYS=${OPSYS}
-PLIST_SUBST+= OS_VERSION=${OS_VERSION}
-PLIST_SUBST+= PKGBASE=${PKGBASE}
-PLIST_SUBST+= PKGNAME=${PKGNAME_NOREV}
-PLIST_SUBST+= PKGLOCALEDIR=${PKGLOCALEDIR}
-PLIST_SUBST+= PKGVERSION=${PKGVERSION:C/nb[0-9]*$//}
-PLIST_SUBST+= QMAILDIR=${QMAILDIR} # XXXTV is this used?
-PLIST_SUBST+= RM=${RM:Q}
-PLIST_SUBST+= RMDIR=${RMDIR:Q}
-PLIST_SUBST+= SVR4_PKGNAME=${SVR4_PKGNAME}
-PLIST_SUBST+= TRUE=${TRUE:Q}
-PLIST_SUBST+= VIEWBASE=${VIEWBASE}
-PLIST_SUBST+= X11BASE=${X11BASE}
-PLIST_SUBST+= X11PREFIX=${X11PREFIX}
-
-# Automatically increase process limit where necessary for building.
-. if defined(UNLIMIT_RESOURCES)
-. for res in ${UNLIMIT_RESOURCES}
-_ULIMIT_CMD+= ${ULIMIT_CMD_${res}:D${ULIMIT_CMD_${res}} ; }
-. endfor
-. endif
-
-# if automatic manual page compression is done by the package according
-# to MANZ's value, set MANCOMPRESSED if MANZ is set
-. if defined(MANCOMPRESSED_IF_MANZ) && defined(MANZ)
-MANCOMPRESSED= yes
-MAKE_ENV+= MANZ=${MANZ}
-. endif
-
-# 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
-
-.endif # !_PKG_SKIPPED
-
-############################################################################
-# Debug support
-############################################################################
-
-# 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
-
-############################################################################
-# External tools
-############################################################################
-
-# top part not skipped by _PKG_SKIPPED
-
-# Used to print all the '===>' style prompts - override this to turn them off.
-ECHO_MSG?= ${ECHO}
-
-# Define SMART_MESSAGES in /etc/mk.conf for messages giving the tree
-# of dependencies for building, and the current target.
-.ifdef SMART_MESSAGES
-_PKGSRC_IN?= ===> ${.TARGET} [${PKGNAME}${_PKGSRC_DEPS}] ===
-.endif
-_PKGSRC_IN?= ===
-
-DO_NADA?= ${TRUE} # deprecated; for compatibility only
-SHCOMMENT?= ${ECHO_MSG} >/dev/null '***'
-TOUCH_FLAGS?= -f
-
-FETCH_BEFORE_ARGS+= ${PASSIVE_FETCH:D-p}
-
-.if !defined(_PKG_SKIPPED)
-
-INSTALL_DATA?= ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
-INSTALL_DATA_DIR?= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${PKGDIRMODE}
-INSTALL_GAME?= ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}
-INSTALL_GAME_DATA?= ${INSTALL} ${COPY} -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEDATAMODE}
-INSTALL_LIB?= ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_LIB_DIR?= ${INSTALL_PROGRAM_DIR}
-INSTALL_MAN?= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
-INSTALL_MAN_DIR?= ${INSTALL} -d -o ${MANOWN} -g ${MANGRP} -m ${PKGDIRMODE}
-INSTALL_PROGRAM?= ${INSTALL} ${COPY} ${_STRIPFLAG_INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_PROGRAM_DIR?= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${PKGDIRMODE}
-INSTALL_SCRIPT?= ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_SCRIPT_DIR?= ${INSTALL_PROGRAM_DIR}
-
-_INSTALL_MACROS= BSD_INSTALL=${INSTALL:Q}
-. for mac in DATA GAME LIB MAN PROGRAM SCRIPT
-_INSTALL_MACROS+= BSD_INSTALL_${mac}=${INSTALL_${mac}:Q}
-_INSTALL_MACROS+= BSD_INSTALL_${mac}_DIR=${INSTALL_${mac}_DIR:Q}
-CONFIGURE_ENV+= INSTALL_${mac}=${INSTALL_${mac}:Q}
-CONFIGURE_ENV+= INSTALL_${mac}_DIR=${INSTALL_${mac}_DIR:Q}
-. endfor
-MAKE_ENV+= ${_INSTALL_MACROS}
-SCRIPTS_ENV+= ${_INSTALL_MACROS}
-
-. if defined(USE_GNU_TOOLS) && !empty(USE_GNU_TOOLS:Mmake)
-MAKE_PROGRAM= ${GMAKE}
-. elif defined(USE_IMAKE)
-. if ${_IMAKE_MAKE} == ${GMAKE}
-USE_GNU_TOOLS+= make
-. endif
-MAKE_PROGRAM= ${_IMAKE_MAKE}
-. endif
-MAKE_PROGRAM?= ${MAKE}
-
-MTREE_ARGS?= -U -f ${MTREE_FILE} -d -e -p
-MTREE_FILE?= ${PKGSRCDIR}/mk/${OPSYS}.pkg.dist
-
-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`"
-PKG_ARGS_COMMON+= ${INSTALL_FILE:D-i ${INSTALL_FILE}}
-PKG_ARGS_COMMON+= ${DEINSTALL_FILE:D-k ${DEINSTALL_FILE}}
-PKG_ARGS_COMMON+= ${MESSAGE:D-D ${MESSAGE}}
-PKG_ARGS_COMMON+= ${NO_MTREE:D:U-m ${MTREE_FILE}}
-PKG_ARGS_COMMON+= ${PKG_PRESERVE:D-n ${PRESERVE_FILE}}
-. if ${PKG_INSTALLATION_TYPE} == "overwrite"
-PKG_ARGS_COMMON+= ${CONFLICTS:D-C "${CONFLICTS}"}
-. endif
-
-PKG_ARGS_INSTALL= -p ${PREFIX} ${PKG_ARGS_COMMON}
-PKG_ARGS_BINPKG= -p ${PREFIX:S/^${DESTDIR}//} -L ${PREFIX} ${PKG_ARGS_COMMON}
-
-.endif # !_PKG_SKIPPED
-
-############################################################################
-# External bsd.pkg.mk fragments needing to perform overrides
-############################################################################
-
-.if !defined(_PKG_SKIPPED)
-
-USE_PKGINSTALL?= NO
-. if !empty(USE_PKGINSTALL:M[yY][eE][sS])
-. include "../../mk/bsd.pkg.install.mk"
-. endif
-
-.endif # !_PKG_SKIPPED
-
-############################################################################
-# Transform package Makefile variables (overridable by external fragments)
-############################################################################
-
-.if !defined(_PKG_SKIPPED)
-
-# 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+= LOCALBASE=${LOCALBASE}
-MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
-MESSAGE_SUBST+= PKGNAME=${PKGNAME}
-MESSAGE_SUBST+= PREFIX=${PREFIX}
-MESSAGE_SUBST+= QMAILDIR=${QMAILDIR} # XXXTV is this used?
-MESSAGE_SUBST+= ROOT_GROUP=${ROOT_GROUP}
-MESSAGE_SUBST+= ROOT_USER=${ROOT_USER}
-MESSAGE_SUBST+= VIEWBASE=${VIEWBASE}
-MESSAGE_SUBST+= X11BASE=${X11BASE}
-MESSAGE_SUBST+= X11PREFIX=${X11PREFIX}
-
-MESSAGE_SUBST_SED= ${MESSAGE_SUBST:S/=/}!/:S/$/!g/:S/^/ -e s!\\\${/}
-. endif
-
-##### Config file related settings - see doc/guide
-
-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_FIXED+= PKG_SYSCONFBASEDIR PKG_SYSCONFDIR
-
-.endif # !_PKG_SKIPPED
-
-##### Checksum and other file handling support
-# not skipped by _PKG_SKIPPED
-
-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}
-
-############################################################################
-# Phase `fetch'
-############################################################################
-
-.if !empty(PKG_PHASES:Mfetch) && !defined(_PKG_SKIPPED)
-
-##### Master site selection
-
-. 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/}
-
-##### Make subtargets for "fetch".
-
-#===> check-vulnerable: Check for any vulnerabilities in the package
-_CHECK_VULNERABLE= \
- ${SETENV} PKGNAME="${PKGNAME}" \
- PKGBASE="${PKGBASE}" \
- ${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 || ${ECHO} 'could not check pkg-vulnerabilities file'
-
-_REAL_TARGETS.fetch+= check-vulnerable
-.PHONY: check-vulnerable
-check-vulnerable:
-. if !defined(ALLOW_VULNERABLE_PACKAGES) && !exists(${extract_COOKIE})
-. if exists(${PKGVULNDIR}/pkg-vulnerabilities)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO_MSG} "${_PKGSRC_IN}> Checking for vulnerabilities in ${PKGNAME}"; \
- vul=`${_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'."
-. endif
-. endif
-
-#===> "pre-fetch"
-
-_REAL_TARGETS.fetch+= pre-fetch
-.PHONY: pre-fetch
-pre-fetch: .OPTIONAL
-
-#===> "do-fetch"
-
-_REAL_TARGETS.fetch+= do-fetch
-.PHONY: do-fetch
-#do-fetch:
-
-#===> "post-fetch"
-
-_REAL_TARGETS.fetch+= post-fetch
-.PHONY: post-fetch
-post-fetch: .OPTIONAL
-
-.endif # !empty(PKG_PHASES:Mfetch) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `checksum'
-############################################################################
-
-# not skipped by _PKG_SKIPPED
-
-#===> uptodate-digest: Install "digest" if needed.
-# this is also used by `patch' and `make*sum'
-.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} test; \
- if [ -f ${DIGEST} ]; then \
- ${MAKE} ${MAKEFLAGS} deinstall; \
- fi; \
- ${MAKE} ${MAKEFLAGS} ${DEPENDS_TARGET}; \
- ${MAKE} ${MAKEFLAGS} clean; } \
- fi
-.endif
-
-.if !empty(PKG_PHASES:Mchecksum) && !defined(_PKG_SKIPPED)
-
-#===> do-checksum
-
-_REAL_TARGETS.checksum+= do-checksum
-.PHONY: do-checksum
-do-checksum: .OPTIONAL
-. if !defined(NO_CHECKSUM) && !exists(${extract_COOKIE})
-do-checksum: 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;}' ${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;}' ${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
-
-.endif # !empty(PKG_PHASES:Mchecksum) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `depends'
-############################################################################
-
-.if !empty(PKG_PHASES:Mdepends) && !defined(_PKG_SKIPPED)
-
-. if defined(RECOMMENDED)
-. if !empty(IGNORE_RECOMMENDED:M[nN][oO])
-DEPENDS+= ${RECOMMENDED}
-. else
-BUILD_DEFS_FIXED+= IGNORE_RECOMMENDED
-. endif
-. endif
-
-. include "../../mk/tools.mk"
-
-# If NO_BUILD is defined, default to not needing a compiler.
-. if defined(NO_BUILD)
-USE_LANGUAGES?= # empty
-. endif
-. include "../../mk/compiler.mk"
-
-# USE_BUILDLINK3 == "no" implies NO_BUILDLINK
-. if !empty(USE_BUILDLINK3:M[nN][oO])
-NO_BUILDLINK= yes
-. endif
-. if !defined(NO_BUILDLINK)
-. include "../../mk/buildlink3/bsd.buildlink3.mk"
-. endif
-
-##### "depends" target implementation
-
-# Remove some redundant dependencies from the DEPENDS list.
-. include "../../mk/reduce-depends.mk"
-
-_REAL_TARGETS.depends+= depends-message
-
-#===> "do-depends"
-
-_REAL_TARGETS.depends+= do-depends
-.PHONY: do-depends
-
-.endif # !empty(PKG_PHASES:Mdepends) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `extract'
-############################################################################
-
-.if !empty(PKG_PHASES:Mextract) && !defined(_PKG_SKIPPED)
-
-_REAL_TARGETS.extract+= extract-message
-
-#===> "build-defs-message"
-# if BUILD_DEFS is non-empty, show a notice the the builder
-
-. if !empty(PKGSRC_SHOW_BUILD_DEFS:M[yY][eE][sS])
-_REAL_TARGETS.extract+= build-defs-message
-.PHONY: build-defs-message
-build-defs-message:
-. if !empty(BUILD_DEFS)
- @${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}
-. 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} "=========================================================================="
-. endif
-. endif
-
-#===> "pre-extract"
-
-_REAL_TARGETS.extract+= pre-extract
-.PHONY: pre-extract
-pre-extract: .OPTIONAL
-
-#===> "do-extract"
-
-_REAL_TARGETS.extract+= do-extract
-.PHONY: do-extract
-#do-extract:
-
-#===> "post-extract"
-
-_REAL_TARGETS.extract+= post-extract
-.PHONY: post-extract
-post-extract: .OPTIONAL
-
-.endif # !empty(PKG_PHASES:Mextract) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `patch'
-############################################################################
-
-.if !empty(PKG_PHASES:Mpatch) && !defined(_PKG_SKIPPED)
-
-# determine if we need a working patch(1).
-. if defined(PATCHFILES)
-_NEED_PATCH= YES
-. elif defined(_OPSYS_GPATCH_REQD) && !empty(_OPSYS_GPATCH_REQD:M[yY][eE][sS])
-_NEED_PATCH= YES
-. else
-_NEED_PATCH!= if [ -d ${PATCHDIR} ]; then \
- if [ "`${ECHO} ${PATCHDIR}/patch-*`" != "${PATCHDIR}/patch-*" ]; then \
- ${ECHO} YES; \
- else \
- ${ECHO} NO; \
- fi \
- else \
- ${ECHO} NO; \
- fi
-. endif
-
-. if ${_NEED_PATCH} == "YES"
-USE_GNU_TOOLS+= patch
-. endif
-
-. if defined(PATCH_DEBUG) || defined(PKG_VERBOSE)
-PATCH_DEBUG_TMP= yes
-. endif
-PATCH_DEBUG_TMP?= no
-
-PATCH_STRIP?= -p0
-. if ${PATCH_DEBUG_TMP} == "yes"
-PATCH_ARGS?= -d ${WRKSRC} -E ${PATCH_STRIP}
-. endif
-PATCH_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_STRIP}
-
-PATCH_ARGS+= ${BATCH:D--batch}
-. 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 ${PATCH_DEBUG_TMP} == "yes"
-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
-
-. if !empty(PKGSRC_SHOW_PATCH_ERRORMSG:M[yY][eE][sS])
-PKGSRC_PATCH_FAIL= \
-if [ -n "${PKG_OPTIONS}" ] || [ -n "${_LOCALPATCHFILES}" ]; 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
-. endif
-PKGSRC_PATCH_FAIL?= exit 1
-
-_REAL_TARGETS.patch+= patch-message pre-patch do-patch post-patch
-
-.endif # !empty(PKG_PHASES:Mpatch) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `tools'
-############################################################################
-
-do-tools: .OPTIONAL
-.if !empty(PKG_PHASES:Mtools) && !defined(_PKG_SKIPPED)
-
-_REAL_TARGETS.tools+= tools-message pre-tools do-tools post-tools
-
-.endif # !empty(PKG_PHASES:Mtools) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `wrapper'
-############################################################################
-
-do-wrapper: .OPTIONAL
-.if !empty(PKG_PHASES:Mwrapper) && !defined(_PKG_SKIPPED)
-
-. include "../../mk/wrapper/bsd.wrapper.mk"
-
-_REAL_TARGETS.wrapper+= wrapper-message pre-wrapper do-wrapper post-wrapper
-
-.endif # !empty(PKG_PHASES:Mwrapper) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `configure'
-############################################################################
-
-.if !empty(PKG_PHASES:Mconfigure) && !defined(_PKG_SKIPPED)
-
-CONFIGURE_ENV+= ${ALL_ENV}
-CONFIGURE_ENV+= ac_given_INSTALL="`${TYPE} ${INSTALL} | ${AWK} '{ print $$NF }'` -c -o ${BINOWN} -g ${BINGRP}"
-CONFIGURE_ENV+= AWK=${AWK:Q}
-CONFIGURE_ENV+= INSTALL="`${TYPE} ${INSTALL} | ${AWK} '{ print $$NF }'` -c -o ${BINOWN} -g ${BINGRP}"
-CONFIGURE_ENV+= MAKE=${MAKE_PROGRAM:T:Q}
-CONFIGURE_ENV+= M4=${M4:Q}
-CONFIGURE_ENV+= YACC=${YACC:Q}
-
-. if defined(GNU_CONFIGURE)
-#
-# If GNU_CONFIGURE is defined, then pass LIBS to the GNU configure script.
-# also pass in a CONFIG_SHELL to avoid picking up bash
-#
-CONFIG_SHELL?= ${SH}
-CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
-CONFIGURE_ENV+= install_sh=${INSTALL:Q}
-CONFIGURE_ENV+= LIBS=${LIBS:Q}
-CONFIGURE_ENV+= ${USE_LIBTOOL:Dlt_cv_sys_max_cmd_len=${_OPSYS_MAX_CMDLEN_CMD:D${_OPSYS_MAX_CMDLEN_CMD:sh}}}
-#
-# GNU_CONFIGURE_PREFIX is the argument to the --prefix option passed to the
-# GNU configure script.
-#
-GNU_CONFIGURE_PREFIX?= ${PREFIX}
-CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
-CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX}
-HAS_CONFIGURE= yes
-. if defined(USE_X11)
-CONFIGURE_ARGS+= --x-includes=${X11BASE}/include
-CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib${LIBABISUFFIX}
-. endif
-CONFIGURE_HAS_INFODIR?= yes
-. if !empty(INFO_FILES) && !empty(CONFIGURE_HAS_INFODIR:M[yY][eE][sS])
-CONFIGURE_ARGS+= --infodir=${PREFIX}/${INFO_DIR}
-. 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
-
-_REAL_TARGETS.configure+=configure-message pre-configure pre-configure-override do-configure post-configure
-
-.endif # !empty(PKG_PHASES:Mconfigure) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `build'
-############################################################################
-
-.if !empty(PKG_PHASES:Mbuild) && !defined(_PKG_SKIPPED)
-
-_REAL_TARGETS.build+= build-message pre-build do-build post-build
-
-.endif # !empty(PKG_PHASES:Mbuild) && !defined(_PKG_SKIPPED)
-
-############################################################################
-# Phase `test'
-############################################################################
-
-.if !empty(PKG_PHASES:Mtest)
-
-_REAL_TARGETS.test+= test-message pre-test do-test post-test
-
-.endif # !empty(PKG_PHASES:Mtest)
-
-############################################################################
-# Phase `install'
-############################################################################
-
-.if !empty(PKG_PHASES:Minstall)
-
-##### PLIST manipulation
-
-. include "../../mk/plist.mk"
-
-##### Handle alternatives
-
-. include "../../mk/alternatives.mk"
-
-##### Make subtargets for non-su portion of "install".
-
-#===> "install-check-pkgname"
-
-_REAL_TARGETS.install+= install-check-pkgname
-.PHONY: install-check-pkgname
-install-check-pkgname:
- ${_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
-
-#===> "do-su-install"
-# su to root, then run real-su-install
-
-_REAL_TARGETS.install+= do-su-install
-
-##### Make subtargets for su portion of "install".
-
-#===> "message"
-# generate ${MESSAGE} from ${MESSAGE_SRC} by substituting
-# for MESSAGE_SUBST entries
-
-_REAL_TARGETS.su-install+= message
-.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
-
-#===> "init-install"
-# check for conflicts and create install directories
-
-_REAL_TARGETS.su-install+= init-install
-.PHONY: init-install
-init-install:
-. 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 && !FORCE_PKG_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 defined(PKG_DEVELOPER) && (${CHECK_FILES} == "YES")
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} "${_PKGSRC_IN}> Generating pre-install file lists"
- ${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${PREFIX} -type f -or -type l -print \
- 2>/dev/null ${CHECK_FILES_SKIP_CMD} >${WRKDIR}/.prefix.pre \
- || ${TRUE}
-. if ${CHECK_FILES_STRICT} == "YES"
- ${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${PKG_SYSCONFDIR} -print \
- 2>/dev/null ${CHECK_FILES_SKIP_CMD} >${WRKDIR}/.sysconfdir.pre \
- || ${TRUE}
- ${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${VARBASE} -print \
- 2>/dev/null ${CHECK_FILES_SKIP_CMD} >${WRKDIR}/.varbase.pre \
- || ${TRUE}
-. endif
-. 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 ;; \
- *man/*) \
- ${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
-
-#===> "pre-install-fake-pkg"
-
-. if !defined(NO_PKG_REGISTER)
-_REAL_TARGETS.su-install+= pre-install-fake-pkg
-. endif # !NO_PKG_REGISTER
-
-#===> "pre-install-script"
-
-_REAL_TARGETS.su-install+= pre-install-script
-.PHONY: pre-install-script
-pre-install-script: .OPTIONAL
-
-#===> "pre-install"
-
-_REAL_TARGETS.su-install+= pre-install
-.PHONY: pre-install
-pre-install: .OPTIONAL
-
-#===> "do-install"
-
-_REAL_TARGETS.su-install+= do-install
-.PHONY: do-install
-.if !target(do-install)
-do-install:
-. for DIR in ${INSTALL_DIRS}
- ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${DIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} -f ${MAKEFILE} ${INSTALL_TARGET}
-. endfor
-.endif
-
-#===> "post-install"
-
-_REAL_TARGETS.su-install+= post-install
-.PHONY: post-install
-post-install: .OPTIONAL
-
-#===> "plist"
-#
-# 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.
-#
-_REAL_TARGETS.su-install+= plist
-.PHONY: plist
-plist: ${PLIST}
-
-#===> "post-install-check-files"
-
-.if defined(PKG_DEVELOPER) && (${CHECK_FILES} == "YES")
-_REAL_TARGETS.su-install+= post-install-check-files
-.PHONY: post-install-check-files
-post-install-check-files:
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} "${_PKGSRC_IN}> Generating post-install file lists"
- ${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${PREFIX} -type f -or -type l -print \
- 2>/dev/null ${CHECK_FILES_SKIP_CMD} >${WRKDIR}/.prefix.post \
- || ${TRUE}
-. if ${CHECK_FILES_STRICT} == "YES"
- ${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${PKG_SYSCONFDIR} -print \
- 2>/dev/null ${CHECK_FILES_SKIP_CMD} >${WRKDIR}/.sysconfdir.post\
- || ${TRUE}
- ${_PKG_SILENT}${_PKG_DEBUG}${FIND} ${VARBASE} -print \
- 2>/dev/null ${CHECK_FILES_SKIP_CMD} >${WRKDIR}/.varbase.post \
- || ${TRUE}
-. endif
-.endif
-
-#===> "post-install-script"
-
-_REAL_TARGETS.su-install+= post-install-script
-.PHONY: post-install-script
-post-install-script: .OPTIONAL
-
-#===> "post-install-man"
-# fixup manpages to match actual installed files
-
-_REAL_TARGETS.su-install+= post-install-man
-.PHONY: post-install-man
-post-install-man:
- ${_PKG_SILENT}${_PKG_DEBUG}newmanpages=`${EGREP} -h \
- '^([^@/]*/)*man/([^/]*/)?(man[1-9ln]/.*\.[1-9ln]|cat[1-9ln]/.*\.0)(\.gz)?$$' \
- ${PLIST} 2>/dev/null || ${TRUE}`; \
- if [ X"${MANCOMPRESSED}" != X"" -a X"${MANZ}" = X"" ]; 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|\.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 [ X"${MANCOMPRESSED}" = X"" -a X"${MANZ}" != X"" ]; 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
-
-#===> "post-install-shlib"
-
-. if ${_DO_SHLIB_CHECKS} == "yes"
-. if ${PKG_INSTALLATION_TYPE} == "overwrite"
-_REAL_TARGETS.su-install+= post-install-shlib
-.PHONY: post-install-shlib
-post-install-shlib:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${MAKE} ${MAKEFLAGS} do-shlib-handling SHLIB_PLIST_MODE=0
-. endif
-. endif
-
-#===> "post-install-message"
-# display MESSAGE, if specified
-
-. ifdef MESSAGE
-_REAL_TARGETS.su-install+= post-install-message
-.PHONY: post-install-message
-post-install-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
-
-#===> "register-pkg"
-
-. if !defined(NO_PKG_REGISTER)
-_REAL_TARGETS.su-install+= register-pkg
-. endif # !NO_PKG_REGISTER
-
-#===> "check-shlibs"
-
-. if defined(PKG_DEVELOPER) && (${CHECK_SHLIBS} == "YES")
-_REAL_TARGETS.su-install+= check-shlibs
-. endif
-
-#===> "check-files"
-
-. if defined(PKG_DEVELOPER) && (${CHECK_FILES} == "YES")
-_REAL_TARGETS.su-install+= check-files
-. endif
-
-.endif # !empty(PKG_PHASES:Minstall)
-
-############################################################################
-# Special install phase `replace'
-############################################################################
-
-_REAL_TARGETS.replace+= do-su-replace
-
-_REAL_TARGETS.su-replace+=
-
-_REAL_TARGETS.undo-replace+= do-su-undo-replace
-
-############################################################################
-# Phase `package'
-############################################################################
-
-.PHONY: descr
-descr: ${DESCR}
-${DESCR}: ${DESCR_SRC}
- @${CAT} ${DESCR_SRC} >${DESCR}
-.if defined(HOMEPAGE)
- @\
- ${ECHO} >>${DESCR} ; \
- ${ECHO} "Homepage:" >>${DESCR} ; \
- ${ECHO} '${HOMEPAGE}' >>${DESCR}
-.endif
-
-_REAL_TARGETS.package+= do-su-package
-
-_REAL_TARGETS.su-package+=
-
-############################################################################
-# Variables calculated after all the above, and recursion support
-############################################################################
-
-# explicit "-f Makefile" here to work around problems with the MAKEFILE var
-# and case-insensitive filesystems (see PR pkg/28392)
-#
-.for targ in ${_PKG_PHASES_ALL}
-.PHONY: recurse-${targ}
-recurse-${targ}:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${PKGDIR} && ${MAKE} -f Makefile ${targ}
-.endfor
-
-# 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-noeval
-show-var show-var-noeval:
- @${ECHO} ${${VARNAME}:Q}
-
-# enhanced version of target above, to display multiple variables
-.PHONY: show-vars show-vars-noeval
-show-vars show-vars-noeval:
-.for VARNAME in ${VARNAMES}
- @${ECHO} ${${VARNAME}:Q}
-.endfor
-
-# Find out the PREFIX of dependencies where the PREFIX is needed at build time.
-.if defined(EVAL_PREFIX)
-. for def in ${EVAL_PREFIX}
-. if !defined(${def:C/=.*$//})
-${def:C/=.*$//}_DEFAULT?=${LOCALBASE}
-_${def:C/=.*$//}_CMD= ${PKG_INFO} -qp ${def:C/^.*=//} 2>/dev/null | ${AWK} '{ print $$2; exit }' | ${GREP} . || ${ECHO} ${${def:C/=.*$//}_DEFAULT}
-${def:C/=.*$//}= ${_${def:C/=.*$//}_CMD:sh}
-. endif
-. endfor
-.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
-
-############################################################################
-# User-visible make targets
-############################################################################
-
-# Catch-all targets.
-# Without anything specified, assume "all". Also allow "dependall" to be
-# specified for those in the habit of using that in NetBSD main source.
-# Recurses to ensure that .if make() conditionals work as expected.
-
-.if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
-# only invoke "test" if requested; makes SMART_MESSAGES look nicer
-_PKG_ALL_TARGET= test
-.endif
-
-.PHONY: all dependall
-.MAIN: all
-all dependall: recurse-${_PKG_ALL_TARGET:Ubuild}
-
-# 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
-depend: .OPTIONAL
-
-# Same goes for tags
-.PHONY: tags
-tags: .OPTIONAL
-
-##### If this package will be skipped, use placebo targets.
-
-.if defined(_PKG_SKIPPED)
-
-. for targ in ${_PKG_PHASES_ALL} \
- replace undo-replace \
- update
-${targ}:
-. if !defined(SKIP_SILENT)
- @for str in ${PKG_FAIL_REASON} ${PKG_SKIP_REASON}; do \
- ${ECHO} "${_PKGSRC_IN}> $$str"; \
- done
-. endif
-. if defined(PKG_FAIL_REASON)
- @${FALSE}
-. endif
-. endfor
-
-.else # !defined(_PKG_SKIPPED)
-
-##### Real targets. These don't have any commands attached; they simply defer
-##### to other implementation targets below.
-
-.PHONY: ${_PKG_PHASES_ALL} replace undo-replace
-fetch: real-fetch
-checksum: fetch real-checksum
-depends: checksum ${WRKDIR} acquire-depends-lock ${depends_COOKIE} release-depends-lock
-extract: depends acquire-extract-lock ${extract_COOKIE} release-extract-lock
-patch: extract acquire-patch-lock ${patch_COOKIE} release-patch-lock
-tools: patch acquire-tools-lock ${tools_COOKIE} release-tools-lock
-wrapper: tools acquire-wrapper-lock ${wrapper_COOKIE} release-wrapper-lock
-configure: wrapper acquire-configure-lock ${configure_COOKIE} release-configure-lock
-build: configure acquire-build-lock ${build_COOKIE} release-build-lock
-test: build acquire-test-lock ${test_COOKIE} release-test-lock
-install: test acquire-install-lock ${install_COOKIE} release-install-lock
-package: install acquire-package-lock ${package_COOKIE} release-package-lock
-replace: build real-replace
-undo-replace: real-undo-replace
-
-##### *_COOKIE to real-* layer for targets which use cookies.
-
-. for targ in ${_PKG_PHASES_WRKDIR}
-${${targ}_COOKIE}: real-${targ}
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f $@ && ${ECHO} ${PKGNAME} >$@
-. endfor
-
-# mark a stage as complete if its cookie (and all parent cookies) exist
-. if exists(${depends_COOKIE})
-${depends_COOKIE}: .MADE
-. if exists(${extract_COOKIE})
-${extract_COOKIE}: .MADE
-. if exists(${patch_COOKIE})
-${patch_COOKIE}: .MADE
-. if exists(${tools_COOKIE})
-${tools_COOKIE}: .MADE
-. if exists(${wrapper_COOKIE})
-${wrapper_COOKIE}: .MADE
-. if exists(${configure_COOKIE})
-${configure_COOKIE}: .MADE
-. if exists(${build_COOKIE})
-${build_COOKIE}: .MADE
-. if exists(${test_COOKIE})
-${test_COOKIE}: .MADE
-. if exists(${install_COOKIE})
-${install_COOKIE}: .MADE
-. if exists(${package_COOKIE})
-${package_COOKIE}: .MADE
-. endif
-. endif
-. endif
-. endif
-. endif
-. endif
-. endif
-. endif
-. endif
-. endif
-
-##### NO_* for skipping phases
-
-. if defined(NO_DEPENDS) || (empty(DEPENDS) && empty(BUILD_DEPENDS))
-${depends_COOKIE}: .MADE
-. endif
-. if defined(NO_TOOLS)
-${tools_COOKIE}: .MADE
-. endif
-. if defined(NO_WRAPPER)
-${wrapper_COOKIE}: .MADE
-. endif
-. if defined(NO_CONFIGURE)
-${configure_COOKIE}: .MADE
-. endif
-. if defined(NO_BUILD)
-${build_COOKIE}: .MADE
-. endif
-. if empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
-real-test: .MADE
-. endif
-. if defined(NO_INSTALL)
-${install_COOKIE}: .MADE
-. endif
-
-. if defined(NO_PACKAGE) && !defined(FORCE_PACKAGE)
-_REAL_TARGETS.package:= no-package
-no-package:
-. if !defined(SKIP_SILENT)
- @${ECHO_MSG} "${_PKGSRC_IN}> ${PKGNAME} may not be packaged: ${NO_PACKAGE}."
-. endif
-. endif
-
-. for targ in extract configure build install
-. if !empty(INTERACTIVE_STAGE:M${targ}) && defined(BATCH)
-_REAL_TARGETS.${targ}:= ${targ}-is-interactive
-${targ}-is-interactive:
- @${ECHO} "*** The ${targ} stage of this package requires user interaction"
- @${ECHO} "*** Please ${targ} manually with \"cd ${PKGDIR} && ${MAKE} ${targ}\""
- @${FALSE}
-. endif
-. endfor
-
-##### User-visible messages for most targets
-
-_PHASE_MSG.depends= Verifying dependencies
-_PHASE_MSG.extract= Extracting
-_PHASE_MSG.patch= Patching
-_PHASE_MSG.tools= Overriding tools
-_PHASE_MSG.wrapper= Creating toolchain wrappers
-_PHASE_MSG.configure= Configuring
-_PHASE_MSG.build= Building
-_PHASE_MSG.test= Testing
-_PHASE_MSG.install= Installing
-_PHASE_MSG.package= Packaging
-
-. for targ in ${_PKG_PHASES_WRKDIR}
-.PHONY: ${targ}-message
-${targ}-message:
- @${ECHO_MSG} "${_PKGSRC_IN}> ${_PHASE_MSG.${targ}} for ${PKGNAME}"
-. endfor
-
-##### real-* to actual component target layer
-
-# Simple dependencies are not used, deliberately, so that it is possible
-# to invoke a single subtarget by hand while working on a new package.
-#
-# Please note that the order of the targets in _REAL_TARGETS.<phase> is
-# important, and should not be modified (.ORDER is not recognized by
-# make(1) in a serial make; i.e., without "-j n").
-
-. for targ in ${_PKG_PHASES_ALL} replace undo-replace su-install
-.PHONY: real-${targ}
-.ORDER: ${_REAL_TARGETS.${targ}}
-real-${targ}: ${_REAL_TARGETS.${targ}}
-. endfor
-
-.endif # !defined(_PKG_SKIPPED)
-
-##### su target support
-
-.for targ in install package replace undo-replace deinstall
-.PHONY: do-su-${targ}
-do-su-${targ}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- 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="DEINSTALLDEPENDS=${DEINSTALLDEPENDS}"; \
- if [ "X${FORCE_PKG_REGISTER}" != X"" ]; then \
- args="$$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 ${targ} ${PKGBASE}."; \
- ${ECHO_N} "`${ECHO} ${SU_CMD} | ${AWK} '{ print $$1 }'` ";\
- ${SU_CMD} "cd ${.CURDIR}; ${SETENV} PATH=$${PATH}:${SU_CMD_PATH_APPEND} ${MAKE} $$args ${MAKEFLAGS} real-su-${targ} $$realflags"; \
- fi
-.endfor
-
-############################################################################
-# Package maintenance targets
-############################################################################
-
-# Checksumming utilities
-
-.PHONY: makesum
-makesum: recurse-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
-
-.PHONY: makepatchsum mps
-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_N} "$$" > $$newfile; \
- ${ECHO_N} "NetBSD" >> $$newfile; \
- ${ECHO} "$$" >> $$newfile; \
- ${ECHO} "" >> $$newfile; \
- fi; \
- if [ -d ${PATCHDIR} ]; then \
- (cd ${PATCHDIR}; \
- for sumfile in "" patch-*; do \
- if [ "X$$sumfile" = "X" ]; then continue; fi; \
- if [ "X$$sumfile" = "Xpatch-*" ]; then break; fi; \
- case $$sumfile in \
- patch-local-*) ;; \
- *.orig|*.rej|*~) continue ;; \
- *) ${ECHO} "${PATCH_DIGEST_ALGORITHM} ($$sumfile) = `${SED} -e '/\$$NetBSD.*/d' $$sumfile | ${DIGEST} ${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
-
-makedistinfo mdi distinfo: makesum makepatchsum
-
-############################################################################
-# XXXTV CUT
-############################################################################
-
-UPDATE_RUNNING?= NO
-
-#
-# _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= \
- tsize=`${AWK} '/^Size/ && $$2 == '"\"($$file)\""' { print $$4 }' ${DISTINFO_FILE}` || ${TRUE}; \
- if [ ! -f "${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp" ]; then \
- ${CP} ${DISTDIR}/${DIST_SUBDIR}/$$bfile ${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp; \
- fi; \
- dsize=`${WC} -c < ${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp`; \
- if [ "$$dsize" -eq "$$tsize" -a -f "${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp" ]; then \
- ${MV} ${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp ${DISTDIR}/${DIST_SUBDIR}/$$bfile; \
- fi; \
- case "$$tsize" in \
- "") ${ECHO_MSG} "No size in distinfo file (${DISTINFO_FILE})"; \
- break ;; \
- esac; \
- if [ -n "$$ftp_proxy" -o -n "$$http_proxy" ]; then \
- ${ECHO_MSG} "===> Resume is not supported by ftp(1) using http/ftp proxies."; \
- break; \
- else \
- if [ "$$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 < ${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp`; \
- if [ "$$tsize" -eq "$$ndsize" ]; then \
- ${MV} ${DISTDIR}/${DIST_SUBDIR}/$$bfile.temp ${DISTDIR}/${DIST_SUBDIR}/$$bfile; \
- fi; \
- break; \
- fi; \
- done; \
- fi; \
- elif [ "$$dsize" -gt "$$tsize" ]; then \
- ${ECHO_MSG} "==> Downloaded file larger than the recorded size."; \
- break; \
- fi; \
- 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;}' <${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 \
- if [ "X$$d" = "X" -o "X$$d" = "X${DISTDIR}" ]; then continue; fi; \
- 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}; \
- ${FALSE} ;; \
- esac
-
-.PHONY: do-fetch
-.if !target(do-fetch)
-do-fetch:
-. 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
-
-# Extract
-
-${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}
-.ifdef WRKOBJDIR
-. if ${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once"
-. if !exists(${LOCKFILE})
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${RM} -f ${WRKDIR_BASENAME} || ${TRUE}
-. endif
-. endif
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${LN} -s ${WRKDIR} ${WRKDIR_BASENAME} 2>/dev/null; then \
- ${ECHO} "${WRKDIR_BASENAME} -> ${WRKDIR}"; \
- fi
-.endif # WRKOBJDIR
-
-_EXTRACT_SUFFIXES= .tar.gz .tgz .tar.bz2 .tbz .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
-
-.if (defined(PATCHFILES) && !empty(PATCHFILES:M*.bz2)) || \
- !empty(EXTRACT_ONLY:M*.bz2) || !empty(EXTRACT_ONLY:M*.tbz) || \
- !empty(EXTRACT_SUFX:M*.bz2) || !empty(EXTRACT_SUFX:M*.tbz)
-. if exists(/usr/bin/bzcat)
-BZCAT= /usr/bin/bzcat <
-. else
-BUILD_DEPENDS+= bzip2>=0.9.0b:../../archivers/bzip2
-BZCAT= ${LOCALBASE}/bin/bzcat
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.zip) || !empty(EXTRACT_SUFX:M*.zip)
-BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
-.endif
-.if !empty(EXTRACT_ONLY:M*.lzh) || !empty(EXTRACT_ONLY:M*.lha) || \
- !empty(EXTRACT_SUFX:M*.lzh) || !empty(EXTRACT_SUFX:M*.lha)
-BUILD_DEPENDS+= lha>=114.9:../../archivers/lha
-.endif
-.if !defined(GZCAT)
-. if (defined(PATCHFILES) && !empty(PATCHFILES:M*.gz)) || \
-. !empty(EXTRACT_ONLY:M*.gz) || !empty(EXTRACT_ONLY:M*.tgz) || \
- !empty(EXTRACT_SUFX:M*.gz) || !empty(EXTRACT_SUFX:M*.tgz)
-BUILD_DEPENDS+= gzip-base>=1.2.4b:../../archivers/gzip-base
-GZCAT= ${LOCALBASE}/bin/zcat
-. endif
-.endif
-.if !empty(EXTRACT_ONLY:M*.zoo) || !empty(EXTRACT_SUFX:M*.zoo)
-BUILD_DEPENDS+= unzoo-[0-9]*:../../archivers/unzoo
-.endif
-.if !empty(EXTRACT_ONLY:M*.rar) || !empty(EXTRACT_SUFX:M*.rar)
-BUILD_DEPENDS+= unrar>=3.3.4:../../archivers/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.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?= ${LOCALBASE}/bin/unzip ${EXTRACT_CMD_OPTS.zip} $${extract_file}
-EXTRACT_CMD_OPTS.zip?= -Laqo
-EXTRACT_CMD.lha?= ${LOCALBASE}/bin/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?= ${LOCALBASE}/bin/unzoo ${EXTRACT_CMD_OPTS.zoo} $${extract_file}
-EXTRACT_CMD_OPTS.zoo?= -x
-EXTRACT_CMD.rar?= ${LOCALBASE}/bin/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 EXTRACT_USING_PAX is defined, use pax in preference to (GNU) tar.
-#
-.if defined(EXTRACT_USING_PAX)
-_DFLT_EXTRACT_CMD?= ${DECOMPRESS_CMD} $${extract_file} | ${PAX} -O -r ${EXTRACT_ELEMENTS}
-.else
-_DFLT_EXTRACT_CMD?= ${DECOMPRESS_CMD} $${extract_file} | ${GTAR} -xf - ${EXTRACT_ELEMENTS}
-.endif
-
-.for __suffix__ in ${_EXTRACT_SUFFIXES}
-. if !defined(EXTRACT_CMD${__suffix__})
-. if defined(EXTRACT_USING_PAX)
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${PAX} -O -r ${EXTRACT_ELEMENTS}
-. else
-EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} | ${GTAR} -xf - ${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
-
-# Patch
-
-# LOCALPATCHES contains the location of local patches to packages
-# that are maintained in a directory tree reflecting the same
-# hierarchy as the pkgsrc tree, i.e. local patches for www/apache
-# would be found as ${LOCALPATCHES}/www/apache/*.
-#
-.if defined(LOCALPATCHES)
-_DFLT_LOCALPATCHFILES= ${LOCALPATCHES}/${PKGPATH}/*
-_LOCALPATCHFILES= ${_DFLT_LOCALPATCHFILES}
-.endif
-
-.PHONY: do-patch
-.if !target(do-patch)
-do-patch: uptodate-digest
-. if defined(PATCHFILES)
- @${ECHO_MSG} "${_PKGSRC_IN}> Applying distribution patches for ${PKGNAME}"
-. for i in ${PATCHFILES}
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${_DISTDIR}; \
- if [ ${PATCH_DEBUG_TMP} = yes ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Applying distribution patch ${i}"; \
- fi; \
- ${PATCH_DIST_CAT.${i:S/=/--/}} | \
- ${PATCH} ${PATCH_DIST_ARGS.${i:S/=/--/}} \
- || { ${ECHO} "Patch ${i} failed"; ${PKGSRC_PATCH_FAIL}; }
-. endfor
-. endif
- ${_PKG_SILENT}${_PKG_DEBUG} \
- patchlist=""; \
- if [ -d ${PATCHDIR} ]; then \
- if [ "`${ECHO} ${PATCHDIR}/patch-*`" = "${PATCHDIR}/patch-*" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Ignoring empty patch directory"; \
- if [ -d ${PATCHDIR}/CVS ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Perhaps you forgot the -P flag to 'cvs checkout' or 'cvs update'?"; \
- fi; \
- else \
- patchlist=`${ECHO} ${PATCHDIR}/patch-*`; \
- fi; \
- fi; \
- if [ "X${_LOCALPATCHFILES}" = "X${_DFLT_LOCALPATCHFILES}" ]; then \
- localpatchfiles="`${ECHO} ${_LOCALPATCHFILES}`"; \
- if [ "$${localpatchfiles}" != "${_LOCALPATCHFILES}" ]; then \
- patchlist="$${patchlist} $${localpatchfiles}"; \
- fi; \
- else \
- patchlist=`${ECHO} $${patchlist} ${_LOCALPATCHFILES}`; \
- fi; \
- if [ -n "$${patchlist}" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Applying pkgsrc patches for ${PKGNAME}" ; \
- fail=""; \
- for i in $${patchlist}; do \
- if [ ! -f "$$i" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> $$i is not a valid patch file - skipping"; \
- continue; \
- fi; \
- case $$i in \
- *.orig|*.rej|*~) \
- ${ECHO_MSG} "${_PKGSRC_IN}> Ignoring patchfile $$i"; \
- continue; \
- ;; \
- ${PATCHDIR}/patch-local-*) \
- ;; \
- ${PATCHDIR}/patch-*) \
- if [ -f ${DISTINFO_FILE} ]; then \
- filename=`expr $$i : '.*/\(.*\)'`; \
- algsum=`${AWK} 'NF == 4 && $$2 == "('$$filename')" && $$3 == "=" {print $$1 " " $$4}' ${DISTINFO_FILE} || ${TRUE}`; \
- if [ "X$$algsum" != "X" ]; then \
- alg=`${ECHO} $$algsum | ${AWK} '{ print $$1 }'`; \
- recorded=`${ECHO} $$algsum | ${AWK} '{ print $$2 }'`; \
- calcsum=`${SED} -e '/\$$NetBSD.*/d' $$i | ${DIGEST} $$alg`; \
- if [ ${PATCH_DEBUG_TMP} = yes ]; then \
- ${ECHO_MSG} "=> Verifying $$filename (using digest algorithm $$alg)"; \
- fi; \
- fi; \
- if [ "X$$algsum" = "X" -o "X$$recorded" = "X" ]; then \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "Ignoring unknown patch file: $$i"; \
- ${ECHO_MSG} "**************************************"; \
- continue; \
- fi; \
- if [ "X$$calcsum" != "X$$recorded" ]; then \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "Patch file $$i has been modified"; \
- ${ECHO_MSG} "**************************************"; \
- fail="$$fail $$filename"; \
- continue; \
- fi; \
- else \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "Ignoring unknown patch file: $$i"; \
- ${ECHO_MSG} "**************************************"; \
- continue; \
- fi; \
- ;; \
- esac; \
- if [ ${PATCH_DEBUG_TMP} = yes ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> Applying pkgsrc patch $$i" ; \
- fi; \
- fuzz=""; \
- ${PATCH} -v > /dev/null 2>&1 && fuzz="${PATCH_FUZZ_FACTOR}"; \
- ${PATCH} $$fuzz ${PATCH_ARGS} < $$i || \
- { ${ECHO} Patch $$i failed ; ${PKGSRC_PATCH_FAIL}; }; \
- done; \
- if [ "X$$fail" != "X" ]; then \
- ${ECHO_MSG} "Patching failed due to modified patch file(s): $$fail"; \
- ${PKGSRC_PATCH_FAIL}; \
- fi; \
- fi
-.endif
-
-# 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= \
- \( ${_REPLACE_LOCALEDIR_PATTERNS:S/$/!/:S/^/-o -name !/:S/!/"/g:S/-o//1} \)
-REPLACE_LOCALEDIR?= # empty
-_REPLACE_LOCALEDIR= \
- ${REPLACE_LOCALEDIR} \
- `${FIND} . ${_REPLACE_LOCALEDIR_PATTERNS_FIND} -print | ${SED} -e 's|^\./||' | ${GREP} -v '\.orig' | ${SORT} -u`
-
-_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}
-
-.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 ${DIR} && ${SETENV} \
- ${CONFIGURE_ENV} ${CONFIG_SHELL} \
- ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
-. endfor
-. endif
-. if defined(USE_IMAKE)
-. for DIR in ${CONFIGURE_DIRS}
- ${_PKG_SILENT}${_PKG_DEBUG}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?= ${WRKSRC}
-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 ${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 ${DIR} && ${SETENV} ${TEST_ENV} ${MAKE_PROGRAM} ${TEST_MAKE_FLAGS} -f ${MAKEFILE} ${TEST_TARGET}
-. endfor
-. endif
-.endif
-
-# Package
-
-.PHONY: 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 \
- ${MAKE} ${MAKEFLAGS} delete-package; \
- exit 1; \
- fi
-.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
-
-# Some support rules for real-su-package
-
-.PHONY: package-links
-package-links: 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;
-
-.PHONY: delete-package-links
-delete-package-links:
- ${_PKG_SILENT}${_PKG_DEBUG}\
- ${FIND} ${PACKAGES} -type l -name ${PKGNAME}${PKG_SUFX} -print | ${XARGS} ${RM} -f
-
-.PHONY: delete-package
-delete-package: delete-package-links
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${PKGFILE}
-
-# 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
-
-# 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.
-#
-# We have to do this here, i.e., quite late in bsd.pkg.mk parsing, so
-# that the variables used in them are defined. Otherwise we may get
-# problems with the 'for' expressions.
-.if defined(INFO_DIR)
-CHECK_FILES_SKIP+= ${PREFIX}/${INFO_DIR}/dir
-.endif
-CHECK_FILES_SKIP+= ${PREFIX}/emul/linux/proc
-
-.for e c in ${CONF_FILES} ${SUPPORT_FILES}
-CHECK_FILES_SKIP+= ${c}/.pkgsrc
-.endfor
-.for e c o g m in ${CONF_FILES_PERMS} ${SUPPORT_FILES_PERMS}
-CHECK_FILES_SKIP+= ${c}/.pkgsrc
-.endfor
-.for d in ${MAKE_DIRS} ${OWN_DIRS}
-CHECK_FILES_SKIP+= ${d}
-.endfor
-.for d o g m in ${MAKE_DIRS_PERMS} ${OWN_DIRS_PERMS}
-CHECK_FILES_SKIP+= ${d}
-.endfor
-
-CHECK_FILES_SKIP_CMD= | ${GREP} -v ${CHECK_FILES_SKIP:@f@-e ${f:Q}@}
-
-# Check if the generated PLIST matches the list of really installed files.
-#
-.PHONY: check-files
-check-files:
-.if !defined(NO_PKG_REGISTER)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- errors=0; \
- diff -u ${WRKDIR}/.prefix.pre ${WRKDIR}/.prefix.post \
- >${WRKDIR}/.files.diff || ${TRUE}; \
- ${GREP} '^+/' ${WRKDIR}/.files.diff | ${SED} "s|^+||" | ${SORT} \
- >${WRKDIR}/.files.added; \
- ${GREP} '^-/' ${WRKDIR}/.files.diff | ${SED} "s|^-||" | ${SORT} \
- >${WRKDIR}/.files.deleted; \
- if ${TEST} `${WC} -l ${WRKDIR}/.files.deleted | \
- ${AWK} '{ print $$1; }'` -gt 0; \
- then \
- echo "*** The following files have been deleted from" \
- "${PREFIX}!"; \
- ${SED} "s|^| |" <${WRKDIR}/.files.deleted; \
- errors=1; \
- fi; \
- ${GREP} '^[A-Za-z]' ${PLIST} | ${SED} "s|^|${PREFIX}/|" | \
- ${SORT} >${WRKDIR}/.files.expected; \
- if ! ${CMP} -s ${WRKDIR}/.files.expected ${WRKDIR}/.files.added; then \
- echo "*** The PLIST does not match installed files!"; \
- echo " The following files were not expected in ${PREFIX}:";\
- diff -u ${WRKDIR}/.files.expected ${WRKDIR}/.files.added | \
- ${GREP} '^+[^+]' | ${SED} "s|^+| |"; \
- errors=1; \
- fi; \
- if [ ${CHECK_FILES_STRICT} = "YES" ] && \
- ! ${CMP} -s ${WRKDIR}/.sysconfdir.pre ${WRKDIR}/.sysconfdir.post; \
- then \
- echo "*** The package has modified ${PKG_SYSCONFDIR}" \
- "contents directly!"; \
- echo " The offending files/directories are:"; \
- diff -u ${WRKDIR}/.sysconfdir.pre ${WRKDIR}/.sysconfdir.post | \
- ${GREP} '^+[^+]' | ${SED} "s|^+| |"; \
- errors=1; \
- fi; \
- if [ ${CHECK_FILES_STRICT} = "YES" ] && \
- ! ${CMP} -s ${WRKDIR}/.varbase.pre ${WRKDIR}/.varbase.post; then \
- echo "*** The package has modified ${VARBASE} contents" \
- "directly!"; \
- echo " The offending files/directories are:"; \
- diff -u ${WRKDIR}/.varbase.pre ${WRKDIR}/.varbase.post |\
- ${GREP} '^+[^+]' | ${SED} "s|^+| |"; \
- errors=1; \
- fi; \
- ${RM} -f ${WRKDIR}/.files.added ${WRKDIR}/.files.deleted \
- ${WRKDIR}/.files.diff ${WRKDIR}/.files.expected; \
- ${TEST} $$errors -eq 0
-.endif
-
-LOCKFILE= ${WRKDIR}/.lockfile
-.for targ in ${_PKG_PHASES_WRKDIR}
-.PHONY: acquire-${targ}-lock release-${targ}-lock
-acquire-${targ}-lock: .OPTIONAL
-release-${targ}-lock: .OPTIONAL
-
-. if ${PKGSRC_LOCKTYPE} != "none"
-acquire-${targ}-lock:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- 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-${targ}-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
-.endfor
-
-
-# Empty pre-* and post-* targets
-
-.for targ in fetch ${_PKG_PHASES_WRKDIR} install-script clean distclean
-.PHONY: pre-${targ} post-${targ}
-pre-${targ}: .OPTIONAL
-post-${targ}: .OPTIONAL
-.endfor
-
-# Reinstall
-#
-# Special target to re-run install
-
-.PHONY: 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
-
-# Deinstall
-#
-# Special target to remove installation
-
-.PHONY: deinstall
-deinstall: do-su-deinstall
-
-.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
-.ifdef PKG_VERBOSE
-real-su-deinstall-flags+= -v
-.endif
-.ifdef 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}
-
-
-################################################################
-# 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}
-.ifdef PKGLIST
-. for __tmp__ in ${PKGLIST}
- ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} >>${DLIST} "${__tmp__}"
-. endfor
-.endif
-.ifdef 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}
-
-# 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 be experienced ***"; \
- 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 be experienced ***"; \
- 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: 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
-.ifdef WRKOBJDIR
- -${_PKG_SILENT}${_PKG_DEBUG} \
- ${RMDIR} ${BUILD_DIR} 2>/dev/null; \
- ${RM} -f ${WRKDIR_BASENAME}
-.endif
-
-
-.PHONY: clean-depends
-clean-depends:
-.if !empty(BUILD_DEPENDS) || !empty(DEPENDS)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- for i in `${_SHOW_ALL_DEPENDS_DIRS_EXCL}`; do \
- cd ${.CURDIR}/../../$$i && \
- ${MAKE} ${MAKEFLAGS} CLEANDEPENDS=NO clean; \
- done
-.endif
-
-
-.PHONY: cleandir
-cleandir: clean
-
-
-.PHONY: 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}; \
- ${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
-
-# 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}
-_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
-################################################################
-
-# 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
-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
-
-# 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
-
-# Nobody should want to override this unless PKGNAME is simply bogus.
-HTML_PKGNAME=<a href="../../${PKGPATH:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g}/README.html">${PKGNAME:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g}</A>
-
-.PHONY: package-name
-package-name:
-.if (${PACKAGE_NAME_TYPE} == "html")
- @${ECHO} '<a href="../../${PKGPATH:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g}/README.html">${PKGNAME:S/&/\&amp;/g:S/>/\&gt;/g:S/</\&lt;/g}</A>'
-.elif (${PACKAGE_NAME_TYPE} == "svr4")
- @${ECHO} ${SVR4_PKGNAME}
-.else
- @${ECHO} ${PKGNAME}
-.endif # PACKAGE_NAME_TYPE
-
-# Build a package but don't check the package cookie
-
-.PHONY: repackage
-repackage: pre-repackage package
-
-.PHONY: pre-repackage
-pre-repackage:
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${package_COOKIE}
-
-# Build a package but don't check the cookie for installation, also don't
-# install package cookie
-
-.PHONY: package-noinstall
-package-noinstall:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} PACKAGE_NOINSTALL=yes real-package
-
-################################################################
-# Dependency checking
-################################################################
-
-# Tells whether to halt execution if the object formats differ
-FATAL_OBJECT_FMT_SKEW?= yes
-WARN_NO_OBJECT_FMT?= yes
-
-do-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-noeval 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}" ${MAKE} ${MAKEFLAGS} $$target PKGNAME_REQD=\'$$pkg\' || exit 1; \
- ${ECHO_MSG} "${_PKGSRC_IN}> Returning to build of ${PKGNAME}"; \
- fi; \
- fi
-.endfor # DEPENDS
-
-.PHONY: build-depends-list
-build-depends-list:
- @for dir in `${_SHOW_ALL_DEPENDS_DIRS_EXCL}`; do \
- (cd ../../$$dir && \
- ${MAKE} ${MAKEFLAGS} package-name) \
- done
-
-# 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} '{ 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
-
-# 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
-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} \
- 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} ${BUILD_DEFS_FIXED}
- @${ECHO} ${def}=${${def}:Q} | ${SED} -e 's|^PATH=[^ ]*|PATH=...|' >> ${BUILD_INFO_FILE}
-.endfor
-.if defined(USE_LANGUAGES) && !empty(USE_LANGUAGES)
- @${ECHO} "CC_VERSION=${CC_VERSION}" >> ${BUILD_INFO_FILE}
-.endif
-.if defined(USE_PERL5) && (${USE_PERL5} == "run")
- @${ECHO} "PERL=`${PERL5} --version 2>/dev/null | ${GREP} 'This is perl'`" >> ${BUILD_INFO_FILE}
-.endif
-.if !empty(USE_GNU_TOOLS:Mmake)
- @${ECHO} "GMAKE=`${GMAKE} --version | ${GREP} Make`" >> ${BUILD_INFO_FILE}
-.endif
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${ECHO} "_PKGTOOLS_VER=${PKGTOOLS_VERSION}" >> ${BUILD_INFO_FILE}
-
-.PHONY: 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}
-
-# 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
-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}; \
- ;; \
- esac
-.if (${PKG_INSTALLATION_TYPE} == "pkgviews") && \
- !empty(BUILD_VIEWS:M[yY][eE][sS])
- ${_PKG_SILENT}${_PKG_DEBUG}${MAKE} ${MAKEFLAGS} build-views
-.endif # pkgviews
-
-.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
-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}" ${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}" ${PKG_VIEW} --view=$$v add ${PKGNAME}; \
- done
-.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
-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}" ${PKG_VIEW} --view=$$v delete ${PKGNAME}; \
- done
-.endif
-
-.include "../../mk/bsd.pkg.data.mk"
-.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
diff --git a/mk/bsd.pkg.patch.mk b/mk/bsd.pkg.patch.mk
deleted file mode 100644
index cbb7b4a62b3..00000000000
--- a/mk/bsd.pkg.patch.mk
+++ /dev/null
@@ -1,271 +0,0 @@
-# $NetBSD: bsd.pkg.patch.mk,v 1.7.2.2 2005/05/17 18:29:44 tv 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}))
-. if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-USE_GNU_TOOLS+= patch
-. else
-PKGSRC_USE_TOOLS+= patch
-. endif
-.endif
-
-# These tools are used to output the contents of the distribution patches
-# to stdout.
-#
-.if defined(PATCHFILES)
-PKGSRC_USE_TOOLS+= cat
-. if !empty(PATCHFILES:M*.Z) || !empty(PATCHFILES:M*.gz)
-PKGSRC_USE_TOOLS+= gzcat
-. endif
-. if !empty(PATCHFILES:M*.bz2)
-. if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-PKGSRC_USE_TOOLS+= bzcat
-. elif exists(/usr/bin/bzcat)
-BZCAT= /usr/bin/bzcat
-. else
-BZCAT= ${LOCALBASE}/bin/bzcat
-BUILD_DEPENDS+= bzip2>=0.9.0b:../../archivers/bzip2
-. endif
-. 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+= apply-distribution-patches
-.endif
-.if (defined(PATCHDIR) && exists(${PATCHDIR})) || \
- (defined(LOCALPATCHES) && exists(${LOCALPATCHES}/${PKGPATH}))
-_PKGSRC_PATCH_TARGETS+= apply-pkgsrc-patches
-.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
-
-apply-distribution-patches:
- @${ECHO_MSG} "${_PKGSRC_IN}> Applying distribution patches for ${PKGNAME}"
-.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
-
-_PKGSRC_PATCHES= # empty
-.if defined(PATCHDIR) && exists(${PATCHDIR})
-_PKGSRC_PATCHES+= ${PATCHDIR}/patch-*
-.endif
-.if defined(LOCALPATCHES) && exists(${LOCALPATCHES}/${PKGPATH})
-_PKGSRC_PATCHES+= ${LOCALPATCHES}/${PKGPATH}/patch-*
-.endif
-
-apply-pkgsrc-patches:
- @${ECHO_MSG} "${_PKGSRC_IN}> Applying pkgsrc patches for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- set -- `${ECHO} ${_PKGSRC_PATCHES:Q}`; \
- fail=; \
- while ${TEST} $$# -gt 0; do \
- i="$$1"; shift; \
- ${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 \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "Ignoring unknown patch file: $$i"; \
- ${ECHO_MSG} "**************************************"; \
- continue; \
- fi; \
- filename=`${BASENAME} $$i`; \
- algsum=`${AWK} '(NF == 4) && ($$2 == "('$$filename')") && ($$3 == "=") {print $$1 " " $$4}' ${DISTINFO_FILE} || ${TRUE}`; \
- if ${TEST} -z "$$algsum"; then \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "Ignoring unknown patch file: $$i"; \
- ${ECHO_MSG} "**************************************"; \
- continue; \
- fi; \
- ${ECHO} "$$algsum" | \
- { read alg recorded; \
- calcsum=`${SED} -e '/\$$NetBSD.*/d' $$i | ${DIGEST} $$alg`; \
- ${ECHO_PATCH_MSG} "=> Verifying $$filename (using digest algorithm $$alg)"; \
- if ${TEST} -z "$$recorded"; then \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "Ignoring unknown patch file: $$i"; \
- ${ECHO_MSG} "**************************************"; \
- continue; \
- fi; \
- if ${TEST} "$$calcsum" != "$$recorded"; then \
- ${ECHO_MSG} "**************************************"; \
- ${ECHO_MSG} "Patch file $$i has been modified"; \
- ${ECHO_MSG} "**************************************"; \
- fail="$$fail $$filename"; \
- continue; \
- fi; }; \
- ;; \
- esac; \
- ${ECHO_PATCH_MSG} "${_PKGSRC_IN}> Applying pkgsrc patch $$i"; \
- fuzz=; \
- ${PATCH} -v >/dev/null 2>&1 && fuzz=${PATCH_FUZZ_FACTOR:Q}; \
- ${PATCH} $$fuzz ${PATCH_ARGS} < $$i || \
- ${ECHO_MSG} "Patch $$i failed"; \
- ${ECHO} "$$i" >> ${_PATCH_COOKIE_TMP:Q}; \
- done; \
- if ${TEST} -n "$$fail"; then \
- ${ECHO_MSG} "Patching failed due to modified patch file(s): $$fail"; \
- ${_PKGSRC_PATCH_FAIL}; \
- fi
diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk
deleted file mode 100644
index 19b272d609d..00000000000
--- a/mk/bsd.pkg.subdir.mk
+++ /dev/null
@@ -1,240 +0,0 @@
-# $NetBSD: bsd.pkg.subdir.mk,v 1.55.6.1 2005/02/25 14:46:51 tv 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}" ]; 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 b08c7aa9534..00000000000
--- a/mk/bsd.pkg.use.mk
+++ /dev/null
@@ -1,194 +0,0 @@
-# $NetBSD: bsd.pkg.use.mk,v 1.1.2.10 2005/05/17 18:29:44 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)
-INSTALL_TARGET+= ${NO_INSTALL_MANPAGES:D:Uinstall.man}
-USE_X11BASE?= implied
-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}
-MAKE_FLAGS+= CC=${CC:Q} CXX=${CXX:Q}
-.endif
-
-.if defined(USE_X11BASE)
-MTREE_FILE?= ${PKGSRCDIR}/mk/${OPSYS}.x11.dist
-USE_X11?= implied
-.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.14
-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_PERL5, PERL5_REQD
-
-# Distill the PERL5_REQD list into a single _PERL5_REQD value that is the
-# highest version of Perl required.
-#
-PERL5_REQD+= 5.0
-PERL5_REQD+= ${_OPSYS_PERL_REQD}
-
-_PERL5_STRICTEST_REQD?= none
-.for _version_ in ${PERL5_REQD}
-. for _pkg_ in perl-${_version_}
-. if ${_PERL5_STRICTEST_REQD} == "none"
-_PERL5_PKG_SATISFIES_DEP= YES
-. for _vers_ in ${PERL5_REQD}
-. if !empty(_PERL5_PKG_SATISFIES_DEP:M[yY][eE][sS])
-_PERL5_PKG_SATISFIES_DEP!= \
- if ${PKG_ADMIN} pmatch 'perl>=${_vers_}' ${_pkg_} 2>/dev/null; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-. endfor
-. if !empty(_PERL5_PKG_SATISFIES_DEP:M[yY][eE][sS])
-_PERL5_STRICTEST_REQD= ${_version_}
-. endif
-. endif
-. endfor
-.endfor
-_PERL5_REQD= ${_PERL5_STRICTEST_REQD}
-
-# Convert USE_PERL5 to be two-valued: either "build" or "run" to denote
-# whether we want a build-time or run-time dependency on perl.
-#
-.if defined(USE_PERL5)
-. if (${USE_PERL5} == "build")
-_PERL5_DEPMETHOD= BUILD_DEPENDS
-. else
-USE_PERL5:= run
-_PERL5_DEPMETHOD= DEPENDS
-. endif
-_PERL5_DEPENDS= {perl>=${_PERL5_REQD},perl-thread>=${_PERL5_REQD}}
-PERL5_PKGSRCDIR?= ../../lang/perl58
-. if !defined(BUILDLINK_DEPENDS.perl)
-${_PERL5_DEPMETHOD}+= ${_PERL5_DEPENDS}:${PERL5_PKGSRCDIR}
-. endif
-.endif
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-.if defined(USE_PERL5) && (${USE_PERL5} == "run")
-CONFIGURE_ENV+= PERL=${PERL5:Q}
-. include "../../lang/perl5/vars.mk"
-.endif # USE_PERL5 == run
-.endif
-
-.if defined(USE_PERL5)
-PLIST_SUBST+= PERL5_SITELIB=${PERL5_SUB_INSTALLSITELIB}
-PLIST_SUBST+= PERL5_SITEARCH=${PERL5_SUB_INSTALLSITEARCH}
-PLIST_SUBST+= PERL5_ARCHLIB=${PERL5_SUB_INSTALLARCHLIB}
-.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_X11
-
-.if defined(USE_X11)
-X11_LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX}
-X11_LDFLAGS+= -L${X11BASE}/lib${LIBABISUFFIX}
-.endif
-
-### USE_XPKGWEDGE
-
-.if defined(USE_X11BASE) && !empty(USE_XPKGWEDGE:M[yY][eE][sS])
-BUILD_DEPENDS+= xpkgwedge>=${_XPKGWEDGE_REQD:U1.5}:../../pkgtools/xpkgwedge
-.endif
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
deleted file mode 100644
index cffd56dcc90..00000000000
--- a/mk/bsd.prefs.mk
+++ /dev/null
@@ -1,627 +0,0 @@
-# $NetBSD: bsd.prefs.mk,v 1.177.2.7 2005/05/17 18:29:44 tv 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.
-.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 /
-.endif
-MAKEFLAGS+= OPSYS=${OPSYS}
-.if !defined(OS_VERSION)
-OS_VERSION!= ${UNAME} -r
-.endif
-.if !defined(LOWER_OS_VERSION)
-LOWER_OS_VERSION!= echo ${OS_VERSION} | tr 'A-Z' 'a-z'
-.endif
-MAKEFLAGS+= OS_VERSION=${OS_VERSION}
-
-# Preload these for architectures not in all variations of bsd.own.mk.
-GNU_ARCH.alpha?= alpha
-GNU_ARCH.arm26?= arm
-GNU_ARCH.arm32?= arm
-GNU_ARCH.i386?= i386
-GNU_ARCH.i486?= i386
-GNU_ARCH.i586?= i386
-GNU_ARCH.i686?= i386
-GNU_ARCH.m68000?= m68010
-GNU_ARCH.m68k?= m68k
-GNU_ARCH.mips?= mipsel
-GNU_ARCH.mipseb?= mipseb
-GNU_ARCH.mipsel?= mipsel
-GNU_ARCH.ns32k?= ns32k
-GNU_ARCH.powerpc?= powerpc
-GNU_ARCH.rs6000?= rs6000
-GNU_ARCH.sh3eb?= sh
-GNU_ARCH.sh3el?= shle
-GNU_ARCH.sparc?= sparc
-GNU_ARCH.sparc64?= sparc64
-GNU_ARCH.vax?= vax
-MACHINE_GNU_ARCH?= ${GNU_ARCH.${MACHINE_ARCH}}
-
-.if ${OPSYS} == "NetBSD"
-LOWER_OPSYS?= netbsd
-
-.elif ${OPSYS} == "BSDOS"
-LOWER_OPSYS?= bsdi
-
-.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
-. else
-LOWER_VENDOR?= unknown
-. endif
-
-.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} == "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 ${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
-. else
-LOWER_VENDOR?= unknown
-. endif
-
-.elif ${OPSYS} == "Darwin"
-LOWER_OPSYS?= darwin
-LOWER_ARCH!= ${UNAME} -p
-MACHINE_ARCH= ${LOWER_ARCH}
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-LOWER_VENDOR?= apple
-
-.elif ${OPSYS:MIRIX*} != ""
-LOWER_ARCH!= ${UNAME} -p
-LOWER_OPSYS?= irix${OS_VERSION}
-LOWER_VENDOR?= sgi
-
-.elif ${OPSYS} == "Interix"
-LOWER_OPSYS?= interix3
-LOWER_VENDOR?= pc
-
-.elif ${OPSYS} == "OSF1"
-LOWER_ARCH!= ${UNAME} -p
-MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
-MACHINE_ARCH?= ${LOWER_ARCH}
-OS_VERSION!= echo ${OS_VERSION} | sed -e 's/^V//'
-LOWER_OPSYS?= osf${OS_VERSION}
-LOWER_VENDOR?= dec
-
-.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 !defined(LOWER_OPSYS)
-LOWER_OPSYS!= echo ${OPSYS} | tr A-Z a-z
-.endif
-
-MAKEFLAGS+= LOWER_OPSYS=${LOWER_OPSYS}
-
-LOWER_VENDOR?=
-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
-
-PKGSRC_USE_TOOLS?= # empty
-USE_TOOLS?= # empty
-
-# Provide default values for TOOLs used by the top-level make.
-PKGSRC_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.
-#
-PKGSRC_USE_TOOLS+= date tr
-
-_USE_NEW_TOOLS?= yes
-.if !empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-.include "${_PKGSRC_TOPDIR}/mk/tools/defaults.mk"
-.endif
-
-.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
-
-.if make(package) || make(real-su-package) || \
- make(show-var) || make(show-vars)
-PKG_PHASES= fetch checksum depends extract patch tools wrapper configure build test install package
-.elif make(install) || make(real-su-install) || \
- make(replace) || make(real-su-replace) || \
- make(plist) || make(do-shlib-handling)
-PKG_PHASES= fetch checksum depends extract patch tools wrapper configure build test install
-.elif make(test)
-PKG_PHASES= fetch checksum depends extract patch tools wrapper configure build test
-.elif make(build)
-PKG_PHASES= fetch checksum depends extract patch tools wrapper configure build
-.elif make(configure)
-PKG_PHASES= fetch checksum depends extract patch tools wrapper configure
-.elif make(wrapper)
-PKG_PHASES= fetch checksum depends extract patch tools wrapper
-.elif make(tools)
-PKG_PHASES= fetch checksum depends extract patch tools
-.elif make(patch)
-PKG_PHASES= fetch checksum depends extract patch
-.elif make(extract)
-PKG_PHASES= fetch checksum depends extract
-.elif make(depends) || \
- make(show-depends-dirs) || make(print-summary-data)
-PKG_PHASES= fetch checksum depends
-.elif make(checksum)
-PKG_PHASES= fetch checksum
-.elif make(fetch) || \
- make(fetch-list-one-pkg)
-PKG_PHASES= fetch
-.else
-PKG_PHASES= # empty
-.endif
-
-# 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
-PKG_DEFAULT_OPTIONS+= inet6
-USE_INET6= YES
-. endif
-.elif empty(_OPSYS_HAS_INET6:M[nN][oO]) && !defined(USE_SOCKS)
-PKG_DEFAULT_OPTIONS+= inet6
-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
-_XPKGWEDGE_REQD= 1.9
-.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_NEW_TOOLS:M[yY][eE][sS])
-XMKMF?= ${XMKMF_CMD} ${XMKMF_FLAGS} -a
-XMKMF_FLAGS?= # empty
-.endif
-.if !empty(USE_XPKGWEDGE:M[Yy][Ee][Ss])
-X11PREFIX= ${LOCALBASE}
-. if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-XMKMF_CMD?= ${X11PREFIX}/bin/pkgxmkmf
-. endif
-.else
-X11PREFIX= ${X11BASE}
-. if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-XMKMF_CMD?= ${X11PREFIX}/bin/xmkmf
-. endif
-.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"
-
-.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
-. endif
-.endif
-UPDATE_TARGET?= ${DEPENDS_TARGET}
-
-.endif # BSD_PKG_MK
diff --git a/mk/bsd.sites.mk b/mk/bsd.sites.mk
deleted file mode 100644
index f18860b48f2..00000000000
--- a/mk/bsd.sites.mk
+++ /dev/null
@@ -1,281 +0,0 @@
-# $NetBSD: bsd.sites.mk,v 1.20.2.8 2005/05/17 18:29:44 tv 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://cogent.dl.sourceforge.net/sourceforge/ \
- http://easynews.dl.sourceforge.net/sourceforge/ \
- http://heanet.dl.sourceforge.net/sourceforge/ \
- http://jaist.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://puzzle.dl.sourceforge.net/sourceforge/ \
- http://switch.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/
-
-MASTER_SITE_APACHE+= \
- http://www.apache.org/dist/ \
- http://mirrors.midco.net/pub/apache.org/ \
- http://mirrors.ccs.neu.edu/Apache/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://ftp.epix.net/apache/ \
- http://public.planetmirror.com.au/pub/apache/dist/ \
- http://apache.osuosl.org/ \
- ftp://ftp.rge.com/pub/infosystems/apache/ \
- ftp://ftp.epix.net/pub/apache/ \
- ftp://ftp.ccs.neu.edu/net/mirrors/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://ftp.fu-berlin.de/unix/network/www/apache/
-
-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 2a5945cf65d..00000000000
--- a/mk/buildlink3/BUILDLINK3_DG
+++ /dev/null
@@ -1,68 +0,0 @@
-$NetBSD: BUILDLINK3_DG,v 1.6.2.2 2005/05/17 18:29:44 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.
diff --git a/mk/buildlink3/PKGVIEWS_UG b/mk/buildlink3/PKGVIEWS_UG
deleted file mode 100644
index 4b5a7fc28d1..00000000000
--- a/mk/buildlink3/PKGVIEWS_UG
+++ /dev/null
@@ -1,222 +0,0 @@
-$NetBSD: PKGVIEWS_UG,v 1.1.8.1 2004/12/03 19:15:00 tv 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 adab24e9d5f..00000000000
--- a/mk/buildlink3/README
+++ /dev/null
@@ -1,140 +0,0 @@
-$NetBSD: README,v 1.4.10.2 2005/05/17 18:29:44 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 9546e7e02d8..00000000000
--- a/mk/buildlink3/bsd.buildlink3.mk
+++ /dev/null
@@ -1,1095 +0,0 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.163.2.6 2005/05/17 18:29:44 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.
-
-# 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.
-#
-.include "../../mk/buildlink3/bsd.builtin.mk"
-
-# Check whether we should include the X11 buildlink3.mk file here since
-# USE_X11 may have been set indirectly by bsd.builtin.mk.
-#
-.if defined(USE_X11)
-X11_TYPE?= native
-X11_PKGSRCDIR.native= ../../pkgtools/x11-links
-X11_PKGSRCDIR.XFree86= ../../x11/XFree86-libs
-X11_PKGSRCDIR.xlibs= ../../x11/xlibs
-X11_PKGSRCDIR.xorg= ../../x11/xorg-libs
-. if exists(${X11_PKGSRCDIR.${X11_TYPE}}/buildlink3.mk)
-. include "${X11_PKGSRCDIR.${X11_TYPE}}/buildlink3.mk"
-. if exists(${X11_PKGSRCDIR.${X11_TYPE}}/builtin.mk)
-. include "${X11_PKGSRCDIR.${X11_TYPE}}/builtin.mk"
-. endif
-. else
-PKG_FAIL_REASON+= \
- "${PKGNAME} uses X11, but \"${X11_TYPE}\" isn't a valid X11 type."
-. endif
-.endif
-
-# 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_DEPENDS_LIST= ${_BLNK_RECURSIVE_DEPENDS} # XXXTV PR 24721
-.if !empty(PKG_PHASES:Mdepends)
-_BLNK_DEPENDS_LIST= ${_BLNK_DEPENDS}
-.else
-_BLNK_DEPENDS_LIST= # empty
-.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(PKG_PHASES:Mwrapper)
-
-# 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
-
-do-buildlink: .OPTIONAL
-
-.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 2f4cab08b00..00000000000
--- a/mk/buildlink3/bsd.builtin.mk
+++ /dev/null
@@ -1,149 +0,0 @@
-# $NetBSD: bsd.builtin.mk,v 1.3 2004/11/10 17:39:03 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.
-
-# 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<-------------
-# .if !defined(IS_BUILTIN.foo)
-# #
-# # IS_BUILTIN.foo is set to "yes" or "no" depending on whether "foo"
-# # genuinely exists in the system or not.
-# #
-# IS_BUILTIN.foo?= no
-#
-# # BUILTIN_PKG.foo should be set here if "foo" is built-in and its package
-# # version can be determined.
-# #
-# . if !empty(IS_BUILTIN.foo:M[yY][eE][sS])
-# BUILTIN_PKG.foo?= foo-1.0
-# . endif
-# .endif # IS_BUILTIN.foo
-#
-# .if !defined(USE_BUILTIN.foo)
-# USE_BUILTIN.foo?= ${IS_BUILTIN.foo}
-# . if defined(BUILTIN_PKG.foo)
-# . for _depend_ in ${BUILDLINK_DEPENDS.foo}
-# . if !empty(USE_BUILTIN.foo:M[yY][eE][sS])
-# USE_BUILTIN.foo!= \
-# if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.foo}; then \
-# ${ECHO} "yes"; \
-# else \
-# ${ECHO} "no"; \
-# fi
-# . endif
-# . endfor
-# . endif
-# .endif # USE_BUILTIN.foo
-#
-# CHECK_BUILTIN.foo?= no
-# .if !empty(CHECK_BUILTIN.foo:M[nN][oO])
-# #
-# # Here we place code that depends on whether USE_BUILTIN.foo is set to
-# # "yes" or "no".
-# #
-# .endif # CHECK_BUILTIN.foo
-# -------------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.
-
-# 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. It's 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.
-#
-.for _pkg_ in ${BUILDLINK_PACKAGES}
-PREFER.${_pkg_}?= pkgsrc
-. if !empty(PREFER_NATIVE:M[yY][eE][sS])
-PREFER.${_pkg_}= native
-. endif
-. if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-PREFER.${_pkg_}= pkgsrc
-. endif
-. if !empty(PREFER_NATIVE:M${_pkg_})
-PREFER.${_pkg_}= native
-. endif
-. if !empty(PREFER_PKGSRC:M${_pkg_})
-PREFER.${_pkg_}= pkgsrc
-. endif
-.endfor
-
-.for _pkg_ in ${BUILDLINK_PACKAGES}
-#
-# builtin.mk files default to using the built-in software if it's
-# available (${PREFER.<pkg>} == "native") unless USE_BUILTIN.<pkg> has
-# been previously set.
-#
-. if ${PREFER.${_pkg_}} == "pkgsrc"
-USE_BUILTIN.${_pkg_}?= no
-. endif
-#
-# Set the default path to the package builtin.mk file.
-#
-BUILDLINK_BUILTIN_MK.${_pkg_}?= ${BUILDLINK_PKGSRCDIR.${_pkg_}}/builtin.mk
-. if exists(${BUILDLINK_BUILTIN_MK.${_pkg_}})
-. include "${BUILDLINK_BUILTIN_MK.${_pkg_}}"
-. endif
-.endfor
-
-# Default fall-through for packages that don't provide a builtin.mk. This
-# is here to set the default for any package added to BUILDLINK_PACKAGES
-# by any of the above code.
-#
-.for _pkg_ in ${BUILDLINK_PACKAGES}
-USE_BUILTIN.${_pkg_}?= no
-.endfor
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 44311d935d0..00000000000
--- a/mk/buildlink3/cmd-sink-libtool
+++ /dev/null
@@ -1,60 +0,0 @@
-# $NetBSD: cmd-sink-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.
-
-# 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
- ##############################################################
- # 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/libtool-fix-la b/mk/buildlink3/libtool-fix-la
deleted file mode 100644
index 2c29464e1b9..00000000000
--- a/mk/buildlink3/libtool-fix-la
+++ /dev/null
@@ -1,352 +0,0 @@
-# $NetBSD: libtool-fix-la,v 1.5 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.
-
-# 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 .; $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 db2875b26f6..00000000000
--- a/mk/bulk/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
- * allow using non-/etc mk.conf
- * integrate libkver
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
deleted file mode 100644
index 7c5bea35fc2..00000000000
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ /dev/null
@@ -1,487 +0,0 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.65.2.6 2005/05/17 18:29:44 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
-WC?= wc
-TO_HTML?= ${SED} -e 's,&,\&amp;,g' -e 's,<,\&lt;,g' -e 's,>,\&gt;,g'
-
-# A sort(1) capable of very long lines is needed for full builds in "tflat".
-# Some platforms (namely, Interix) may not provide one, so override here.
-.if ${OPSYS} == "Interix"
-_SORT= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}sort
-.endif
-_SORT?= ${SORT}
-
-# 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
-
-# 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 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}
- 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} ${PERL5_PKGSRCDIR:C|.*/([^/]*/[^/]*)$|\1|} 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."
- ${SETENV} SORT=${_SORT:Q} ${AWK} -f ${PKGSRCDIR}/mk/bulk/tflat up ${DEPENDSTREEFILE} > ${SUPPORTSFILE}
- ${SETENV} SORT=${_SORT:Q} ${AWK} -f ${PKGSRCDIR}/mk/bulk/tflat down ${DEPENDSTREEFILE} > ${DEPENDSFILE}
-
-# 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 "${PKGNAME:C/-[^-]*$/-[0-9]*/}" ; then \
- installed=1; \
- else \
- installed=0; \
- fi ; \
- if [ $$uptodate = 1 ]; then \
- ( if [ $$installed = 1 ]; then \
- ${ECHO_MSG} "BULK> Package ${PKGNAME} is upto-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} ; then \
- ${ECHO_MSG} ${PKG_DELETE} -r ${PKGWILDCARD} ;\
- ${DO} ${PKG_DELETE} -r ${PKGWILDCARD} ;\
- 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} and pre-requisite packages" ;\
- if [ "${USE_BULK_CACHE}" = "yes" ]; then \
- for pkgdir in ${PKGPATH} `${SED} -n -e "/^${_ESCPKGPATH} / s;^[^:]*:;;p" ${DEPENDSFILE}`; do \
- ${DO} (cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} clean) ; \
- done ;\
- else \
- ${ECHO_MSG} ${MAKE} clean CLEANDEPENDS=YES;\
- ${DO} ${MAKE} clean CLEANDEPENDS=YES;\
- fi; \
- 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=`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_FAIL_REASON)`; \
- pkgskip=`(cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} show-var VARNAME=PKG_SKIP_REASON)`; \
- 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 [ -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} and pre-requisite packages"; \
- if [ "${USE_BULK_CACHE}" = "yes" ]; then \
- for pkgdir in ${PKGPATH} `${SED} -n -e "/^${_ESCPKGPATH} / s;^[^:]*:;;p" ${DEPENDSFILE}`; do \
- ${DO} (cd ${PKGSRCDIR}/$$pkgdir && ${MAKE} clean) ; \
- done; \
- else \
- ${ECHO_MSG} ${MAKE} clean CLEANDEPENDS=YES;\
- ${DO} ${MAKE} clean CLEANDEPENDS=YES; \
- fi ;; \
- 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 & upto 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 fe376f6ee6e..00000000000
--- a/mk/bulk/build
+++ /dev/null
@@ -1,365 +0,0 @@
-#!/bin/sh
-# $NetBSD: build,v 1.45.2.4 2005/05/17 18:29:45 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.
-#
-
-#
-# Do bulk build
-#
-
-usage() {
- echo "Usage:"
- echo " $0 [-m | --mirror_only] [-r | --restart | restart]"
- echo " [-s | --specific-pkgs]"
- echo " $0 -h|--help"
- echo " "
- echo "Runs a bulk pkgsrc build."
- echo " "
- echo "The following options are supported:"
- echo " "
- echo " -h|--help Displays this message."
- echo " "
- echo " -m|--mirror_only Downloads all distfiles need for the"
- echo " build but does not run the build."
- echo " IMPORTANT: Note that this will still"
- echo " run all the pre-build stuff which involves"
- echo " removing all of your installed packages."
- echo " "
- echo " The only difference between this option"
- echo " and a regular bulk build is that the packages"
- echo " are not actually built."
- echo " "
- echo " -r|--restart|restart Restart a previously interrupted bulk build."
- echo " last form of this option is for backwards"
- echo " compatibility and may be removed in future"
- echo " versions of this script."
- echo " "
- echo " The --restart option may be combined with the"
- echo " --mirror_only option."
- echo " "
- echo " -s|--specific-pkgs Sets SPECIFIC_PKGS=1 when building packages."
- echo " This option is used for building a subset of"
- echo " pkgsrc."
- echo " "
-}
-
-restart=no
-mirror_only=no
-target=bulk-package
-makeargs=""
-
-while [ ${#} -ge 1 ] ; do
- case $1 in
-
- --help|-h )
- usage
- exit 0
- ;;
-
- --mirror_only|-m )
- mirror_only=yes
- target=mirror-distfiles
- shift
- ;;
-
- --restart|-r|restart )
- restart=yes
- shift
- ;;
-
- --specific-pkgs|-s )
- makeargs="$makeargs SPECIFIC_PKGS=1"
- shift
- ;;
-
- -* )
- echo "unknown option: $1"
- usage
- exit 1
- ;;
-
- * )
- break
- ;;
-
- esac
-done
-
-if [ $# -ne 0 ]; then
- usage
- exit 1
-fi
-
-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`
-
-
-echo Bulk build started: `date`
-echo ""
-
-# Pull in ADMIN etc.:
-if [ -f "$BULK_BUILD_CONF" ]; then
- . $BULK_BUILD_CONF
-else
- conf=`dirname $0`/build.conf
- if [ -f "$conf" ]; then
- . $conf
- else
- echo "$0: Cannot find config file $conf, aborting."
- exit 1
- fi
-fi
-
-# set up variables specifically for the bulk build
-BATCH=1
-DEPENDS_TARGET=bulk-install
-export BATCH DEPENDS_TARGET
-
-if [ "$http_proxy" != "" ]; then
- echo "Using HTTP proxy $http_proxy"
- export http_proxy
-fi
-if [ "$ftp_proxy" != "" ]; then
- echo "Using FTP proxy $ftp_proxy"
- export ftp_proxy
-fi
-echo ""
-
-unset CDPATH # ensure cd does not print new cwd to stdout, which
- # confuses the printindex script.
-unset DISPLAY # allow sane failure for gimp, xlispstat
-
-# Check that the pkg_tools are up to date
-(cd ${USR_PKGSRC}/pkgtools/pkglint && \
- ${BMAKE} fetch >/dev/null 2>&1 ) || \
- ( echo "Updating pkgtools" && \
- cd ${USR_PKGSRC}/pkgtools/pkg_install && ${BMAKE} clean && \
- ${BMAKE} install && ${BMAKE} clean )
-
-cd ${USR_PKGSRC}
-
-
-if [ "x$restart" = "xyes" ]; then
- echo Restarting - skipping pre-build script
-else
- sh mk/bulk/pre-build # make veryveryclean :)
- if [ $? != 0 ]
- then
- echo "Error during bulk-build preparations, aborting."
- exit 1
- fi
-fi
-
-fail=no
-if [ -d pkgtools/pkglint ]; then
- cd pkgtools/pkglint
- PERL5_PKGSRCDIR=`${BMAKE} show-var VARNAME=PERL5_PKGSRCDIR` || fail=yes
- 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
- 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
-else
- echo "The pkgtools/pkglint directory does not exist. Please update"
- echo "your pkgsrc tree in ${USR_PKGSRC}"
- exit 1
-fi
-
-echo "----------------------------------"
-echo "| Build Temporary Files: |"
-echo "----------------------------------"
-echo "BULK_DBFILE = $BULK_DBFILE"
-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 "----------------------------------"
-
-# make sure we have values for these very important
-# variables
-if [ $fail = "yes" -o \
- -z "$PERL5_PKGSRCDIR" -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 "$MACHINE_ARCH" -o \
- -z "$OPSYS" -o \
- -z "$OS_VERSION" \
- ]; then
- echo "ERROR: build failed to extract certain key variables."
- echo " please examine the above list and correct the"
- echo " problem."
- exit 1
-fi
-
-cd ${USR_PKGSRC}
-
-# get the list of packages which should always be installed during the build
-cd ${USR_PKGSRC}/pkgtools/pkglint
-BULK_PREREQ=`${BMAKE} show-var VARNAME=BULK_PREREQ`
-cd ${USR_PKGSRC}
-
-# install prerequisite packages. Note: we do this _before_ the depends tree
-# because some packages like xpkgwedge only become DEPENDS if its installed
-echo "Installing prerequisite packages specified with BULK_PREREQ..."
-for pkgdir in $BULK_PREREQ
-do
- echo $pkgdir
- # make sure its installed _and_ packaged
- cd ${USR_PKGSRC}/$pkgdir && ${BMAKE} bulk-install
-done
-
-# Create the bulk cache files
-cd ${USR_PKGSRC}
-if [ "x$restart" != "xyes" ]; then
- cd ${USR_PKGSRC} && ${BMAKE} bulk-cache $makeargs
- if [ $? != 0 ]; then
- echo "$0: Cache creation failed. Aborting build."
- exit 1
- fi
-fi
-
-echo "Starting actual build using the order specified in $ORDERFILE..."
-cd ${USR_PKGSRC}
-
-# make sure we have something to grep in in the build loop
-touch $BUILDLOG
-
-# set the nice level for bulk builds
-#case "${NICE_LEVEL}" in
-#"") NICE_LEVEL="nice -n 20" ;;
-#esac
-
-# 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!
-
-tot=`wc -l $ORDERFILE | ${AWK} '{print $1}'`
-for pkgdir in `cat $ORDERFILE`
-do
- ${GREP} -q "^${pkgdir}\$" $BUILDLOG
- if [ $? -ne 0 ]; then
- built=`wc -l $BUILDLOG | ${AWK} '{print $1}'`
- percent=`echo $built $tot | ${AWK} '{printf("%4.1f%%",$1*100/$2);}'`
- (cd $pkgdir && ${NICE_LEVEL} ${BMAKE} USE_BULK_CACHE=yes $target \
- $makeargs </dev/null | \
- ${SED} "s;^;`date '+%Y/%m/%d %H:%M:%S'` $built/${tot}=$percent $pkgdir @ ${MACHINE_ARCH}> ;g")
- echo "$pkgdir" >> $BUILDLOG
- fi
-done
-
-echo "Build finished. Removing all installed packages left over from build..."
-
-for pkgname in `pkg_info -e \*`
-do
- pkg_info -qe $pkgname
- if [ $? -eq 0 ]; then
- pkgdir=`${GREP} " $pkgname " $INDEXFILE | ${AWK} '{print $1}'`
- case "${BULK_PREREQ}" in
- *$pkgdir* )
- echo "Keeping BULK_PREREQ: $pkgname ($pkgdir)" ;
- ;;
- * )
- echo pkg_delete -r $pkgname
- pkg_delete -r $pkgname
- pkg_info -qe $pkgname
- if [ $? -eq 0 ]; then
- echo "$pkgname ($pkgdir) did not deinstall nicely. Forcing the deinstall"
- 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
-
-# Perl was wiped, reinstall it!
-( cd pkgtools/pkglint && cd ${PERL5_PKGSRCDIR} && ${BMAKE} bulk-install )
-perl mk/bulk/post-build | ${MAIL_CMD} -s "pkgsrc ${OPSYS} ${OS_VERSION}/${MACHINE_ARCH} bulk build results `date +%Y-%m-%d`" $ADMIN
-
-# 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 54abda7295d..00000000000
--- a/mk/bulk/build.conf-example
+++ /dev/null
@@ -1,80 +0,0 @@
-# build.conf
-# $NetBSD: build.conf-example,v 1.22.4.3 2005/05/17 18:29:45 tv Exp $
-#
-# config file in /bin/sh syntax for {,pre,post}-build
-#
-
-# List of package directories to build.
-# Defaults to all packages if PKGLIST is empty or undefined.
-#PKGLIST="www/mozilla meta-pkgs/kde3"
-
-# 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
-
-# Where build will mail the report
-ADMIN="you@some.whe.re"
-
-# Who the report is signed by
-ADMINSIG="-Your Name"
-
-# 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"
-
-# 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
-
-# prune distfiles to remove those which are out of date
-# can be set to 'yes' or 'no'.
-PRUNEDISTFILES=no
-
-# prune binary packages to remove those which are out of date
-# can be set to 'yes' or 'no'.
-PRUNEPACKAGES=yes
-
-# whether to cache the lintpkgsrc database for PRUNE* or uploading
-# can be set to 'yes' or 'no'.
-LINTPKGSRC_CACHE=no
-
-# Proxies (optional):
-#ftp_proxy=http://proxy.machi.ne:3128/
-#http_proxy=http://proxy.machi.ne:3128/
-
-# Uploading binary packages:
-
-# Update vulnerability database before uploading.
-# can be set to 'yes' or 'no'.
-UPDATE_VULNERABILITY_LIST=yes
-
-# 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'
-
-# Nice level for builds
-NICE_LEVEL="nice -n 20"
-
-# 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
-
-###########################################################################
-### 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 58d2ab2d6a2..00000000000
--- a/mk/bulk/do-sandbox-build
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# $NetBSD: do-sandbox-build,v 1.7.8.3 2005/05/17 18:29:45 tv Exp $
-
-#
-# Script to start a sandbox build
-#
-# See pkgsrc/doc/pkgsrc.txt for documentation!
-#
-
-sh=`which sh`
-chroot /usr/sandbox $sh -c "cd /usr/pkgsrc && $sh mk/bulk/build $@"
diff --git a/mk/bulk/do-sandbox-upload b/mk/bulk/do-sandbox-upload
deleted file mode 100644
index 1aac9f0a455..00000000000
--- a/mk/bulk/do-sandbox-upload
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# $NetBSD: do-sandbox-upload,v 1.2.2.3 2005/05/17 18:29:45 tv Exp $
-
-#
-# Script to start a sandbox build
-#
-# See pkgsrc/doc/pkgsrc.txt for documentation!
-#
-
-sh=`which sh`
-chroot /usr/sandbox $sh -c "cd /usr/pkgsrc/ ; $sh mk/bulk/upload $@"
diff --git a/mk/bulk/mksandbox b/mk/bulk/mksandbox
deleted file mode 100755
index 2ad6696bcf0..00000000000
--- a/mk/bulk/mksandbox
+++ /dev/null
@@ -1,358 +0,0 @@
-#! /bin/sh
-
-# $NetBSD: mksandbox,v 1.38.2.2 2005/05/17 18:29:45 tv 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 c01e9105817..00000000000
--- a/mk/bulk/post-build
+++ /dev/null
@@ -1,591 +0,0 @@
-#!/usr/pkg/bin/perl
-# $NetBSD: post-build,v 1.47.2.4 2005/05/17 18:29:45 tv 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"
- 'arch', # `uname -m`
- '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
- GTAR
- INDEXFILE
- LOCALBASE
- ORDERFILE
- PKG_DBDIR
- STARTFILE
- SUPPORTSFILE
- X11BASE
-));
-
-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("/bin/ls -1 $vars{BROKENFILE} $vars{BROKENWRKLOG} */*/$vars{BROKENFILE} */*/$vars{BROKENWRKLOG} 2>/dev/null | $vars{GTAR} -T - -plcf - | (cd $vars{FTP}; $vars{GTAR} -plxf -)");
-
-# 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{arch}.html: files not deleted
-# Leftover files are copied to leftovers-$vars{arch} dir, and linked from
-# leftovers-$vars{arch}.html
-#
-{
- chdir($vars{FTP});
- my_system("mkdir -p leftovers-$vars{arch}");
-
- # Find files since last build:
- my $leftovers_txt = "leftovers-$vars{arch}.txt";
- my $leftovers_html = "leftovers-$vars{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 = `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{GTAR} -T $leftovers_txt -plcf - | (cd leftovers-$vars{arch}; $vars{GTAR} -plxf -)");
- }
-
- # 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{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{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{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{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{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{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' => [],
- };
-
- 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/pre-build b/mk/bulk/pre-build
deleted file mode 100644
index 37534dc7044..00000000000
--- a/mk/bulk/pre-build
+++ /dev/null
@@ -1,286 +0,0 @@
-#!/bin/sh
-# $NetBSD: pre-build,v 1.40.2.3 2005/05/17 18:29:45 tv 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 )
-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)`
-
-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_info -K $dbdir -qe $pkg`; then
- echo pkg_delete -r $pkg
- 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_info -K $dbdir -qe $pkg`; then
- echo pkg_delete -f $pkg
- 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_info -K $dbdir -qe $pkg`; then
- echo pkg_delete -r $pkg
- 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 ${PKG_DBDIR}
-fi
-
-touch $STARTFILE
diff --git a/mk/bulk/printdepends b/mk/bulk/printdepends
deleted file mode 100644
index 4a650b09afe..00000000000
--- a/mk/bulk/printdepends
+++ /dev/null
@@ -1,112 +0,0 @@
-#!/bin/sh
-# $NetBSD: printdepends,v 1.15.8.1 2005/05/17 18:29:45 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.
-#
-
-#
-# 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
-
-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
- cd $pkgdir
-
- l=`${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
- cd $cwd
-done
diff --git a/mk/bulk/printindex b/mk/bulk/printindex
deleted file mode 100644
index 909c08f2064..00000000000
--- a/mk/bulk/printindex
+++ /dev/null
@@ -1,121 +0,0 @@
-#!/bin/sh
-# $NetBSD: printindex,v 1.15.6.1 2005/05/17 18:29:45 tv 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.
-#
-
-
-# Generate package index. If an argument is given, use it as a file name
-# to contain any failure messages in each package directory.
-#
-# generates a pkgsrc directory <-> package name database. eg.
-# foo/bar bar-2.0
-# foo/baz baz-1.0.1
-#
-# Start in $USR_PKGSRC.
-#
-
-if [ ! -z "$1" ]; then
- brokenfile=$1
-else
- brokenfile=/dev/null
-fi
-
-# $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 [ -r ${cwd}/.pkglist ]; then
- . ${cwd}/.pkglist
-else
- # fall back to all packages.
- list=`${GREP} '^[[:space:]]*'SUBDIR */Makefile | ${SED} 's,/Makefile.*=[[:space:]]*,/,'`
-fi
-
-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
- cd $pkgdir
- pkgname=`${BMAKE} show-var VARNAME=PKGNAME`
- if [ $? != 0 ]; then
- echo "ERROR: printindex could not extract PKGNAME for $pkgdir" > /dev/stderr
- echo "${BMAKE} show-var VARNAME=PKGNAME failed" > $brokenfile
- ${BMAKE} show-var VARNAME=PKGNAME >> $brokenfile 2>&1
- #exit 1
- fi
- echo "$pkgdir $pkgname "
- fi
- cd $cwd
-done
-
-# Get the list of packages which should always be installed during the build.
-# Make sure these ended up in the index file. For example, xpkgwedge, might
-# not be enabled for builds in pkgtools/xpkgwedge, but we may want to have
-# it listed in the index file.
-
-cd $cwd/pkgtools/pkglint && BULK_PREREQ=`${BMAKE} show-var VARNAME=BULK_PREREQ`
-cd $cwd
-
-for pkgdir in $BULK_PREREQ
-do
- case $list in
- *$pkgdir*)
- # its already listed, do nothing
- ;;
- *)
- cd $cwd/$pkgdir
- pkgname=`${BMAKE} show-var VARNAME=PKGNAME`
- if [ $? != 0 ]; then
- echo "ERROR: printindex could not extract PKNAME for $pkgdir" > /dev/stderr
- echo "${BMAKE} show-var VARNAME=PKGNAME failed" > $brokenfile
- ${BMAKE} show-var VARNAME=PKGNAME >> $brokenfile 2>&1
- #exit 1
- fi
- echo "$pkgdir $pkgname "
- cd $cwd
- ;;
- esac
-done
-
diff --git a/mk/bulk/tflat b/mk/bulk/tflat
deleted file mode 100755
index 2ed94a0e58e..00000000000
--- a/mk/bulk/tflat
+++ /dev/null
@@ -1,204 +0,0 @@
-# $NetBSD: tflat,v 1.13.6.1 2005/05/17 18:29:45 tv Exp $
-#
-# Copyright (c) 2001 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.
-#
-
-BEGIN {
- if (ARGC != 3){
- printf("tflat: wrong number of arguments\n");
- usage();
- exit(1);
- }
-
- if ( ARGV[1] == "up" ) {
- up=1;
- }
- else{
- if ( ARGV[1] == "down" ) { up=0; }
- else{
- printf("tflat: unknown option \"%s\"\n",ARGV[1]);
- usage();
- exit(1);
- }
- }
-
- InFile = ARGV[2];
-
- #
- # Read in the entire depends tree
- #
- if (up){
- while(getline < InFile > 0){
- if ($1 in topdepends)
- topdepends[$1] = topdepends[$1] " " $2 " " ;
- else{
- topdepends[$1] = " " $2 " ";
- }
-
- # Note that it is possible for a package "foo/bar" to
- # never appear in $1. In fact if foo/bar is not
- # depended upon by anything and it has depends then it
- # will not show up in $1 however, we need to make sure
- # we get a topdepends[foo/bar] entry so add it here if
- # its not already there.
- if (!($2 in topdepends))
- topdepends[$2] = "";
- }
- depstr = " is depended on by: ";
- }
- else{
- while(getline < InFile > 0){
- if ($2 in topdepends)
- topdepends[$2] = topdepends[$2] " " $1 " " ;
- else
- topdepends[$2] = " " $1 " " ;
- }
- depstr = " depends on: ";
- }
-
- close(InFile);
- #
- # Now recurse the tree to give a flattened depends list for each pkg
- #
-
-
- for (toppkg in topdepends){
- find_all_depends(toppkg);
- }
-
- for (x in alldepends){
- print x depstr alldepends[x] | "${SORT-sort}";
- }
-
- printf("\n");
- exit 0
-}
-
-function find_all_depends(pkg,pkgreg,i,deps){
- # If we find the package already has been fully depended
- # then return the depends list.
- if (pkg in alldepends){
- return(alldepends[pkg]);
- }
-
- # If we find the package listed in its own depends list, then
- # return an empty list if we're going down the depends tree.
- # When a package lists itself in the depends tree file, it simply
- # is a place holder and means the package has no depends. However
- # other packages may still depend upon it, so we need to keep looking.
- if ( (!up) && (topdepends[pkg]~reg2str(pkg)) ){
- alldepends[pkg] = " ";
- return(alldepends[pkg]);
- }
-
- # Otherwise recursively gather depends that each of the depends
- # has.
- pkgreg=reg2str(pkg);
- split(topdepends[pkg],deps);
- i=1;
- alldepends[pkg] = " ";
- while ( i in deps ){
- # Don't add ourselves to the list (a possibility when going up
- # the tree).
- if (" "deps[i]" "!~pkgreg){
- alldepends[pkg] = alldepends[pkg] " " deps[i] " " find_all_depends(deps[i]);
- }
- i=i+1;
- }
- alldepends[pkg] = uniq(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);
- reg = " "reg" ";
- return(reg);
-}
-
-#
-# 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){
- if (ulist !~reg2str(deps[i])){
- ulist = ulist deps[i]" ";
- }
- i++;
- }
- return(ulist);
-}
-
-#
-# show usage
-#
-function usage(){
- printf("tflat -- flatten a depends tree. tflat is used to show all\n");
- printf(" packages which depend upon a given package or alternatively\n");
- printf(" all packages which are depend upon by a given package.\n");
- printf("\n");
- printf("Usage:\ttflat up|down depfile\n");
- printf("\n");
- printf("Options:\tdown\tgo down the depends tree (ie \"foo depends on:\")\n");
- printf(" \tup\tgo up the depends tree (ie \"foo is depended on by:\")\n");
- printf("\n");
- printf("Input file format is in the form\n");
- printf("foo bar\n");
- printf("foo baz\n");
- printf("libbar bar\n");
- printf("\n");
- printf("meaning \"foo is depended upon by bar,\n");
- printf(" foo is depended upon by baz,\n");
- printf(" libbar is depended upon by bar\"\n");
- printf("\n");
- printf("The typical use is:\n");
- printf("cd /usr/pkgsrc\n");
- printf("./mk/bulk/printdepends > .depends\n");
- printf("./mk/bulk/tflat up .depends > .supports\n");
- printf("./mk/bulk/tflat down .depends > .requires\n");
- printf("\n");
-
-}
-
diff --git a/mk/bulk/upload b/mk/bulk/upload
deleted file mode 100644
index fc8c56d20cc..00000000000
--- a/mk/bulk/upload
+++ /dev/null
@@ -1,204 +0,0 @@
-#!/bin/sh
-# $NetBSD: upload,v 1.18.6.2 2005/05/17 18:29:45 tv 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 -q $i $exf; then
- ${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 " 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 f51f2d02fd5..00000000000
--- a/mk/compiler.mk
+++ /dev/null
@@ -1,149 +0,0 @@
-# $NetBSD: compiler.mk,v 1.38.2.7 2005/02/25 14:46:51 tv 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)
-# 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 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 0cb8318f964..00000000000
--- a/mk/compiler/ccache.mk
+++ /dev/null
@@ -1,125 +0,0 @@
-# $NetBSD: ccache.mk,v 1.20.2.4 2005/01/13 20:11:55 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 96294db08ad..00000000000
--- a/mk/compiler/ccc.mk
+++ /dev/null
@@ -1,97 +0,0 @@
-# $NetBSD: ccc.mk,v 1.2.2.3 2005/01/13 20:11:55 tv 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 8419441dd6d..00000000000
--- a/mk/compiler/distcc.mk
+++ /dev/null
@@ -1,126 +0,0 @@
-# $NetBSD: distcc.mk,v 1.21.2.4 2005/01/13 20:11:55 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 8b3b1df72f3..00000000000
--- a/mk/compiler/f2c.mk
+++ /dev/null
@@ -1,123 +0,0 @@
-# $NetBSD: f2c.mk,v 1.3.2.4 2005/05/17 18:29:45 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 da1ca9b1382..00000000000
--- a/mk/compiler/gcc.mk
+++ /dev/null
@@ -1,454 +0,0 @@
-# $NetBSD: gcc.mk,v 1.74.2.5 2005/05/17 18:29:45 tv 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.3
-
-# _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 fe57be24522..00000000000
--- a/mk/compiler/icc.mk
+++ /dev/null
@@ -1,90 +0,0 @@
-# $NetBSD: icc.mk,v 1.1.2.3 2005/02/25 14:46:51 tv 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/mipspro-ucode.mk b/mk/compiler/mipspro-ucode.mk
deleted file mode 100644
index 1e9dabee0fb..00000000000
--- a/mk/compiler/mipspro-ucode.mk
+++ /dev/null
@@ -1,47 +0,0 @@
-# $NetBSD: mipspro-ucode.mk,v 1.2.8.1 2005/01/13 20:11:55 tv 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 b15154d1c22..00000000000
--- a/mk/compiler/mipspro.mk
+++ /dev/null
@@ -1,107 +0,0 @@
-# $NetBSD: mipspro.mk,v 1.26.2.3 2005/01/13 20:11:55 tv 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 d04faa5ae2c..00000000000
--- a/mk/compiler/sunpro.mk
+++ /dev/null
@@ -1,95 +0,0 @@
-# $NetBSD: sunpro.mk,v 1.22.2.3 2005/01/13 20:11:55 tv 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
-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++
-CXXPATH= ${SUNWSPROBASE}/bin/CC
-PKG_CXX:= ${_SUNPRO_CXX}
-.endif
-_COMPILER_STRIP_VARS+= ${_SUNPRO_VARS}
-
-# SunPro passes rpath directives to the linker using "-R".
-_LINKER_RPATH_FLAG= -R
-
-# SunPro passes rpath directives to the linker using "-R".
-_COMPILER_RPATH_FLAG= -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 b1dc2905a80..00000000000
--- a/mk/compiler/xlc.mk
+++ /dev/null
@@ -1,125 +0,0 @@
-# $NetBSD: xlc.mk,v 1.2.2.4 2005/01/13 20:11:55 tv 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 d61dbd42618..00000000000
--- a/mk/db1.builtin.mk
+++ /dev/null
@@ -1,90 +0,0 @@
-# $NetBSD: db1.builtin.mk,v 1.5.2.4 2004/12/31 20:25:30 tv Exp $
-
-.for _lib_ in db db1
-. if !defined(_BLNK_LIB_FOUND.${_lib_})
-_BLNK_LIB_FOUND.${_lib_}!= \
- if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" != "/usr/lib/lib${_lib_}.*"; then \
- ${ECHO} "yes"; \
- elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" != "/lib/lib${_lib_}.*"; then \
- ${ECHO} "yes"; \
- else \
- ${ECHO} "no"; \
- fi
-BUILDLINK_VARS+= _BLNK_LIB_FOUND.${_lib_}
-. endif
-.endfor
-.undef _lib_
-
-_DB_H_HEADERS= /usr/include/db.h /usr/include/db1/db.h
-
-.if !defined(IS_BUILTIN.db1)
-IS_BUILTIN.db1= no
-#
-# The builtin Berkeley database library must support hash version 2 or
-# else it doesn't support db-1.85 databases.
-#
-_BLNK_NATIVE_DB1_OK= no
-. for _inc_ in ${_DB_H_HEADERS}
-. if exists(${_inc_})
-_BLNK_NATIVE_DB1_OK.${_inc_}!= \
- if ${GREP} -q "^\#define.*HASHVERSION.*2$$" ${_inc_}; then \
- ${ECHO} "yes"; \
- else \
- ${ECHO} "no"; \
- fi
-. endif
-_BLNK_NATIVE_DB1_OK+= ${_BLNK_NATIVE_DB1_OK.${_inc_}}
-. endfor
-. undef _inc_
-. if !empty(_BLNK_NATIVE_DB1_OK:M[yY][eE][sS])
-IS_BUILTIN.db1= yes
-. endif
-BUILDLINK_VARS+= IS_BUILTIN.db1
-.endif # IS_BUILTIN.db1
-
-.if !defined(USE_BUILTIN.db1)
-USE_BUILTIN.db1?= ${IS_BUILTIN.db1}
-_INCOMPAT_DB1?= # empty
-. for _pattern_ in ${_INCOMPAT_DB1} ${INCOMPAT_DB1}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-USE_BUILTIN.db1= no
-. endif
-. endfor
-. undef _pattern_
-BUILDLINK_VARS+= USE_BUILTIN.db1
-.endif # USE_BUILTIN.db1
-
-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
-. for _inc_ in ${_DB_H_HEADERS}
-. if exists(${_inc_})
-BUILDLINK_INCDIRS.db1?= ${_inc_:H:S/^${BUILDLINK_PREFIX.db1}\///}
-. endif
-. endfor
-. if !empty(_BLNK_LIB_FOUND.db:M[yY][eE][sS])
-BUILDLINK_LDADD.db1= -ldb
-. elif !empty(_BLNK_LIB_FOUND.db1:M[yY][eE][sS])
-BUILDLINK_LDADD.db1= -ldb1
-BUILDLINK_TRANSFORM+= l:db:db1
-. else
-BUILDLINK_LDADD.db1= # empty
-. endif
-BUILDLINK_LIBS.db1= ${BUILDLINK_LDADD.db1}
-
-BUILDLINK_TARGETS+= buildlink-db1-db185-h
-. for _inc_ in ${_DB_H_HEADERS}
-. if !target(buildlink-db1-db185-h)
-.PHONY: buildlink-db1-db185-h
-buildlink-db1-db185-h:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ${TEST} ! -f ${BUILDLINK_DIR}/include/db_185.h; then \
- ${MKDIR} -p ${BUILDLINK_DIR}/include; \
- ${LN} -fs ${_inc_} ${BUILDLINK_DIR}/include/db_185.h; \
- fi
-. endif
-. endfor
-
-. endif # USE_BUILTIN.db1 == yes
-.endif # CHECK_BUILTIN.db1
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf
deleted file mode 100644
index 6163d502a8e..00000000000
--- a/mk/defaults/mk.conf
+++ /dev/null
@@ -1,2445 +0,0 @@
-# $NetBSD: mk.conf,v 1.14.2.10 2005/05/17 18:29:45 tv 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 render 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
-
-# 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
-USE_BUILTIN.Xfixes= yes
-USE_BUILTIN.Xcomposite= yes
-.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
-#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
-
-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 shareware
-# Whitespace-delimited list of the types of license which are
-# acceptable for installation. (apart from standard "free" licenses
-# such as Berkeley/CMU and GPL). Possible values are presented below.
-#
-# Default: none
-
-#ACCEPTABLE_LICENSES+= IDEA-licence
-# Enable it if you accept the license terms for libidea
-# and would like to build libidea. see pkgsrc/security/libidea.
-#ACCEPTABLE_LICENSES+= adobe-acrobat-license
-# Enable it if you accept the usage policy for Adobe Acrobat
-# and would like to build it. see pkgsrc/print/acroread.
-#ACCEPTABLE_LICENSES+= amiwm-license
-# Enable it if you accept the license terms for amiwm
-# and would like to build amiwm. see pkgsrc/wm/amiwm.
-#ACCEPTABLE_LICENSES+= astrolog-license
-# Enable it if you accept the license terms for astrolog
-# and would like to build astrolog. see pkgsrc/misc/astrolog.
-#ACCEPTABLE_LICENSES+= citrix_ica-license
-# Enable it if you accept the license proposed at
-# http://www.citrix.com/download/unix-downloads.htm
-# when you try to download the corresponding client to download and build
-# the package.
-#ACCEPTABLE_LICENSES+= csound-license
-# Enable it if you accept the redistribution/use license for csound and would
-# like to build csound. see pkgsrc/licenses/csound-license
-#ACCEPTABLE_LICENSES+= cyrus-imapd-license
-# Enable it if you accept the license terms for cyrus-imapd
-# and would like to build cyrus-imapd. see pkgsrc/mail/cyrus-imapd.
-#ACCEPTABLE_LICENSES+= emiclock-license
-# Enable it if you accept the license terms for emiclock
-# and would like to build it. see pkgsrc/time/emiclock.
-#ACCEPTABLE_LICENSES+= fee-based-commercial-use
-# Enable it if you are okay to build/use third-party software, which require
-# fees for commercial use (i.e. you are willing to pay, or you are
-# non-commercial).
-#ACCEPTABLE_LICENSES+= fprot-workstation-license
-# Enable it if you accept the license for fprot-workstation-bin and would
-# like to build the package. see pkgsrc/licenses/fprot-workstation-license
-#ACCEPTABLE_LICENSES+= graphviz-license
-# Enable it if you accept the license terms for graphviz
-# and would like to build it. see pkgsrc/graphics/graphviz.
-#ACCEPTABLE_LICENSES+= jdk-license
-# Enable it if you accept the license terms for jdk
-# and would like to build jdk. see pkgsrc/lang/jdk.
-#ACCEPTABLE_LICENSES+= jdk13-license
-# Enable it if you accept the download license for Sun JDK1.3 and would
-# like to build Sun JDK13. see pkgsrc/langun-jre13.
-#ACCEPTABLE_LICENSES+= kermit-license
-# Enable it if you accept the redistribution license for ckermit and would
-# like to build ckermit. see pkgsrc/licenses/kermit-license
-#ACCEPTABLE_LICENSES+= limited-redistribution
-# Enable it if you are okay to build/use third-party software, which has
-# restriction on redistribution (i.e. you will obey the restriction on
-# redistribution it imposes).
-#ACCEPTABLE_LICENSES+= majordomo-license
-# Enable it if you accept the license terms for majordomo
-# and would like to build majordomo. see pkgsrc/mail/majordomo.
-#ACCEPTABLE_LICENSES+= maude-license
-# Enable it if you filled out and returned the license found at
-# http://maude.csl.sri.com/license/license.html
-# and want to build maude.
-#ACCEPTABLE_LICENSES+= mosaic-license
-# Enable it if you accept the license terms for mosaic
-# and would like to build mosaic. see pkgsrc/www/Mosaic.
-#ACCEPTABLE_LICENSES+= ms-ttf-license
-# Enable it if you accept the license terms for Microsoft TrueType fonts
-# and would like to install them. see pkgsrc/fonts/ms-ttf.
-#ACCEPTABLE_LICENSES+= mush-license
-# Enable it if you accept the license terms for mush
-# and would like to build mush. see pkgsrc/mail/mush.
-#ACCEPTABLE_LICENSES+= nntpclnt-license
-# Enable it if you accept the license terms for nntpclnt
-# and would like to build nntpclnt. see pkgsrc/news/nntpclnt.
-#ACCEPTABLE_LICENSES+= no-commercial-use
-# Enable it if you are okay to build/use third-party software, which is not
-# for commercial use (i.e. you are non-commerical)
-#ACCEPTABLE_LICENSES+= no-profit
-# Enable it if you are okay to build/use third-party software, which is not
-# for for-profit use (i.e. you will use the software for non-profit purpose)
-#ACCEPTABLE_LICENSES+= opera-license
-# Enable it if you accept the redistribution license for opera and would
-# like to build opera. see pkgsrc/licenses/opera-license
-#ACCEPTABLE_LICENSES+= palmos-sdk-license
-# Enable if you agree with the license for using the PalmOS SDK.
-# Used by pkgsrc/devel/palmos-includes. For the license, see
-# pkgsrc/licenses/palmos-sdk-license.
-#ACCEPTABLE_LICENSES+= pine-license
-# Enable it if you accept the license terms for pine
-# and would like to build pine. see pkgsrc/mail/pine.
-#ACCEPTABLE_LICENSES+= portsentry-license
-# Enable it if you accept the license terms for portsentry
-# and would like to build portsentry. see pkgsrc/security/portsentry.
-#ACCEPTABLE_LICENSES+= shareware
-# Enable it if you are okay to build/use shareware.
-#ACCEPTABLE_LICENSES+= srp_client-license
-# Enable it if you accept the license terms for srp_client
-# and would like to build srp_client. see pkgsrc/security/srp_client.
-#ACCEPTABLE_LICENSES+= sun-jsdk20-license
-# Enable it if you accept the download license for Sun JSDK and would
-# like to build Sun JSDK. see pkgsrc/lang/jdk.
-#ACCEPTABLE_LICENSES+= sun-swing-license
-# Enable it if you accept the download license for Sun's Swing (JFC) toolkit
-# and would like to build JFC. see pkgsrc/x11/swing.
-#ACCEPTABLE_LICENSES+= trn-license
-# Enable it if you accept the license terms for trn
-# and would like to build trn. see pkgsrc/news/trn.
-#ACCEPTABLE_LICENSES+= trplayer-license
-# Enable it if you accept the license terms for trplayer
-# and would like to build trplayer. See pkgsrc/audio/trplayer.
-#ACCEPTABLE_LICENSES+= unarj-license
-# Enable it if you accept the license terms for the unarj archiver
-# and would like to build unarj. see pkgsrc/archivers/unarj.
-#ACCEPTABLE_LICENSES+= unrar-license
-# Enable it if you accept the license terms for the unrar archiver
-# and would like to build unrar. see pkgsrc/archivers/unrar.
-#ACCEPTABLE_LICENSES+= webwasher-license
-# Enable it if you accept the license terms for webwasher and would
-# like to build webwasher. see pkgsrc/licenses/webwasher-license
-#ACCEPTABLE_LICENSES+= zoo-license
-# Enable it if you accept the license terms for the zoo archiver
-# and would like to build zoo. see pkgsrc/archivers/zoo.
-
-#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_PERF_TUNING= YES
-# Used in apache to optimize for maximum performance.
-# Possible: not defined, YES
-# 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
-
-ATERM_USE_KANJI?= NO
-# Used in aterm to enable kanji support.
-# Possible: YES or undefined or anything else
-# Default: NO
-
-ATERM_USE_BIG5?= NO
-# Used in aterm to enable chinese support. (?)
-# Possible: YES or undefined or anything else
-# Default: NO
-
-ATERM_USE_XTERM_SCROLL?= NO
-# Used in aterm to use a xterm-like scrollbar instead of a NeXT-like.
-# Possible: YES or undefined or anything else
-# Default: NO
-
-ATERM_USE_GREEK?= NO
-# Used in aterm to enable greek keyboard support.
-# Possible: YES or undefined or anything else
-# Default: NO
-
-#AVIFILE_USE_QT= YES
-# Used in avifile-devel to enable support for qt2. These utilities will be
-# built in addition to non-qt version: avi{bench,cat,make,recompress,type}.
-# aviplay (qt-based player that uses avifile libraries) will be built too,
-# but it has problems with threads and does not work yet.
-# Default: not defined
-
-#BATTLEBALL_USE_MESA=
-# Used in battleball to build in support for OpenGL/Mesa. Will use
-# Mesa-glx (rather than Mesa) if Mesa-glx is already installed.
-# Possible: not defined, YES
-# Default: not defined
-
-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
-
-#BITCHX_WITH_GTK=
-# Used in bitchx to determine whether to include support for GTK,
-# for a GUI client.
-# Possible: not defined, YES
-# Default: not defined
-
-#BLENDER_INSTALL_DOC= YES
-# Used in blender to determine if the extensive html documentation should be
-# installed or not.
-# Possible: YES, not defined
-# Default: not defined
-
-#BLENDER_USE_OGG= YES
-# Used in blender to determine if support for the ogg audio format should be
-# compiled in or not.
-# Possible: YES, not defined
-# Default: not defined
-
-#BLENDER_USE_VORBIS= YES
-# Used in blender to determine if support for the vorbis audio format should
-# be compiled in or not.
-# Possible: YES, not defined
-# Default: not defined
-
-#BLENDER_USE_OPENAL= YES
-# Used in blender to determine if support for the openal audio format should
-# be compiled in or not.
-# Possible: YES, not defined
-# Default: not defined
-
-#BLENDER_USE_EXPPYTHON= YES
-# Used in blender to determine if experimental python support should be
-# compiled in or not.
-# Possible: YES, not defined
-# Default: not defined
-
-#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
-
-CUE_USE_CANNA?= NO
-# Used by cue package to determine whether to enable Canna support.
-# Possible: YES, NO
-# Default: NO
-
-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
-
-DELIVER_SUID?= NO
-# Used to decide if deliver should be installed suid root.
-# Possible: YES, NO
-# Default: NO
-
-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
-
-EMACS_USE_XAW3D?= NO
-# Used by emacs package to determine if should use Xaw3D for the scrollbar.
-# Possible: YES, NO
-# Default: NO
-
-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}
-
-GAWK_ENABLE_PORTALS?= NO
-# Used by gawk package to enable/disable handling file names that start with
-# `/p/' as a 4.4 BSD type portal file, i.e., a two-way pipe for `|&'.
-# Possible: YES, NO
-# Default: NO
-
-GIMP_WITH_HELPBROWSER?= no
-# Set to "yes" to compile gimp against GNOME libs and get a working
-# help browser. Adds quite some bloat in the form of dependencies.
-# Possible: yes, no
-# Default: no
-
-GNU_PROGRAM_PREFIX?= g
-# This is the prefix to add for GNU programs, like gls or gnutouch.
-# Possible: g, gnu, empty, ...
-# Default: g
-
-GOLEM_WITH_SOUND?= NO
-# Used by golem package to determine whether to enable sound support.
-# Possible: YES, NO
-# Default: NO
-
-#GQMPEG_NO_JAPANESE?= yes
-# Can be enabled to handle keep gqmpeg from interpreting ID3 tags
-# different, to make it possible to read japanese language tags, which
-# may be a problem with tags in other encodings (e.g. windows-1251 as
-# commonly used for russian-language tags).
-# Possible: yes, no, not defined
-# Default: not defined (-> Japanese support enabled)
-
-#GQMPEG_NO_RUSSIAN?= yes
-# Can be enabled to disable russian ID3 tag support
-# Possible: yes, no, not defined
-# Default: not defined (-> Russian support enabled)
-
-#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]
-
-#IRSSI_USE_PERL= YES
-# Build irssi with perl so you can load scripts written in perl.
-# Possible: YES, not defined
-# Default: not defined
-
-IRSSI_USE_SSL?= YES
-# Enable SSL in irssi (for IRC server connections)
-# Possible: YES, NO
-# Default: YES
-
-#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
-
-#JWHOIS_ENABLE_CACHE=
-# Enable cache option in net/jwhois package.
-# Possible: defined or not defined.
-# Default: not defined.
-
-#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
-
-#LAME_USE_GTK=
-# Used in lame package to compile in the graphical analyzer (which uses
-# GTK).
-# Possible: not defined, defined
-# Default: not defined
-
-#LIBDVDCSS_HOMEPAGE=
-# Used in libdvdcss package as the homepage - we are unable to point this
-# to one of the real sites for legal reasons
-# Possible: any libdvdcss site
-# Default: not defined
-
-#LIBDVDCSS_MASTER_SITES=
-# Used in libdvdcss package as the master site - we are unable to point this
-# to one of the real sites for legal reasons
-# 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
-
-LPRNG_PRIV_PORTS?= NO
-# Used by LPRng to require connections to be from privileged ports.
-# Possible: YES, or NO.
-# Default: NO
-
-LPRNG_SUID?= YES
-# Used by LPRng to enable setuid installation of LPRng binaries.
-# Possible: YES, or NO.
-# Default: YES
-
-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
-
-MPLAYER_DISABLE_DRIVERS?=
-# Whitespace separated list of output drivers that are not wanted in
-# mplayer/gmplayer's binary.
-# Possible: arts esd nas sdl
-# Default: empty
-
-MPLAYER_ENABLE_RUNTIME_CPU_DETECTION?= YES
-# Used by mplayer to enable runtime CPU detection -- this makes
-# binary packages work on different machines than the one compiled one,
-# but may be slower.
-# Note that this only takes effect on i386 and that binary packages made with
-# this option set to NO will only run reliably on a machine of the same
-# CPU type.
-# Possible: YES, NO
-# Default: YES
-
-MPLAYER_USE_MEDIALIB?= NO
-# Used by mplayer to enable optional support for Sun mediaLib library.
-# Note that this only takes effect on Solaris.
-# 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?= no
-# 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: yes, no
-# Default: no
-
-#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
-
-#PINFO_USE_NATIVE_CURSES=
-# Used in pinfo to use NetBSD native curses, rather than ncurses.
-# Only works on NetBSD-1.5 and newer.
-# Possible: YES, not defined
-# Default: not defined
-
-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
-
-#CYRUS_USE_INET6=YES
-# Add support for IPv6.
-# Possible: YES, 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_SERVERMODE=
-# Used in qpopper package to enable server mode.
-# Possible: defined, not defined
-# Default: not defined
-
-#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
-
-#QPOPPER_USE_DRAC=
-# Used in qpopper package to enable drac support.
-# Possible: yes or no, not defined.
-# 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
-
-SUN_JRE14_USE_JCE?= NO
-# Whether to include the Java Cryptography Extension (JCE) Unlimited Strength
-# Jurisdiction Policy Files in the sun-jre14 package
-# Possible: YES or NO.
-# Default: NO
-
-SUN_JRE15_USE_JCE?= NO
-# Whether to include the Java Cryptography Extension (JCE) Unlimited Strength
-# Jurisdiction Policy Files in the sun-jre15 package
-# Possible: YES or NO.
-# Default: NO
-
-.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
-
-TKPASMAN_USE_SSL?= YES
-# Enable SSL in tkpasman (to encode stored passwords)
-# Possible: YES, NO
-# Default: YES
-
-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_DB2?= NO
-# Used in sendmail to build with database library 2.x from the db package.
-# Possible: YES, or NO.
-# Default: NO
-
-USE_ESOUND?= YES
-# Whether to compile support for the Enlightened Sound Daemon into packages
-# needing audio support.
-# Possible: YES, or NO.
-# Default: YES
-
-USE_GIF?= yes
-# Enable GIF support in qt1. (disabled per default due to licensing
-# problems; future revisions might have no support at all)
-# Also used by tiff-library to enable LZW compression support.
-# Possible: defined, not defined
-# Default: not defined
-
-USE_I586?= NO
-# Use assembler routines optimized for i586 in gnupg.
-# Possible: YES, or NO.
-# Default: NO
-
-USE_IDEA?= NO
-# Used in gnupg, speakfreely, and ssh to choose whether to compile using
-# the patented IDEA encryption algorithm.
-# Possible: YES, or NO.
-# Default: package-dependent
-
-#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_MMX?= NO
-# Used in eterm, imlib2, libast, and snes9x to specify if the i386 MMX
-# extensions should be used.
-# Possible: YES, NO
-# Default: NO
-
-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_PAM=
-# Used to specify optional support for PAM authentication
-# 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
-
-VICE_USE_FFMPEG?= no
-# Used in vice package to enable ffmpeg support.
-# Possible: yes, no.
-# Default: no
-
-#VIM_EXTRA_OPTS=
-# Used in vim package to build with non-gui extra options
-# Possible: not defined, see "configure --help"
-# Default: not defined
-
-W3M_USE_LYNX_KEY?= NO
-# Enable lynx like keybinding for w3m.
-# Possible: YES, NO
-# Default: NO
-
-W3M_USE_M17N?= YES
-# For multilingual support for w3m.
-# Possible: YES, NO
-# Default: YES
-
-W3M_USE_UNICODE?= NO
-# Used in w3m to use Unicode characters.
-# Possible: YES, NO
-# Default: NO
-
-#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}
-
-WXGTK_USE_GTK1?= NO
-# Used in the wxGTK package to request support for GTK+ v1.x instead of v2.x.
-# Possible: YES, NO
-# Default: NO
-
-XAW_TYPE?=standard
-# Used in various packages to specify that libXaw is used.
-# Possible: standard, 3d, xpm
-# Default: standard
-
-XCHAT_USE_SSL?= YES
-# Enable SSL in xchat (for IRC server connections)
-# Possible: YES, NO
-# Default: YES
-
-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 2814db09482..00000000000
--- a/mk/defaults/obsolete.mk
+++ /dev/null
@@ -1,51 +0,0 @@
-# $NetBSD: obsolete.mk,v 1.2.2.3 2005/05/17 18:29:45 tv 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
-_DEPRECATED_WARNING+="Deprecated variable KERBEROS used, use PKG_DEFAULT_OPTIONS+=kerberos4 instead."
-. elif !empty(PKG_SUPPORTED_OPTIONS:Mkerberos)
-_PKG_LEGACY_OPTIONS+= kerberos
-_DEPRECATED_WARNING+="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
-_DEPRECATED_WARNING+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks4 instead."
-. elif ${USE_SOCKS} == "5 && !empty(PKG_SUPPORTED_OPTIONS:Msocks5)"
-_PKG_LEGACY_OPTIONS+= socks5
-_DEPRECATED_WARNING+="Deprecated variable SOCKS used, use PKG_DEFAULT_OPTIONS+=socks5 instead."
-. endif
-.endif
-
-PKG_OPTIONS_LEGACY_VARS+= USE_CANNA:canna
-PKG_OPTIONS_LEGACY_VARS+= USE_CUPS:cups
-PKG_OPTIONS_LEGACY_VARS+= USE_DB4:db4
-PKG_OPTIONS_LEGACY_VARS+= USE_ESOUND:esound
-PKG_OPTIONS_LEGACY_VARS+= USE_GIF:gif
-PKG_OPTIONS_LEGACY_VARS+= USE_I586:i586
-PKG_OPTIONS_LEGACY_VARS+= USE_IDEA:idea
-PKG_OPTIONS_LEGACY_VARS+= USE_INN:inn
-PKG_OPTIONS_LEGACY_VARS+= USE_LIBCRACK:libcrack
-PKG_OPTIONS_LEGACY_VARS+= USE_MMX:mmx
-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 f2bbd1b8a4c..00000000000
--- a/mk/defaults/options.description
+++ /dev/null
@@ -1,242 +0,0 @@
-2ch_dict
-a52
-aac
-ac3_passthrough
-ads
-alsa
-althash
-anthy
-antialias
-apm
-apop
-ark
-arping1
-arping2
-arts
-aspell
-ati
-audiofile
-authlib
-avifile
-awl-sql-tests
-backend-mysql
-backend-pgsql
-badrcptto
-bayes-sql-tests
-bdb
-bigdns
-bktr
-bpf
-buffy-size
-canna
-catalog-pgsql
-catalog-sqlite
-charset
-charts
-chips
-chroot
-cirrus
-cups
-curl
-curses
-cyrix
-darwin
-db
-db2
-db4
-debug
-domainscale
-drac
-dummy
-dynamic
-eb
-edit
-esound Enable support for Enlightment Sound Daemon.
-faac
-faad
-fam
-ffmpeg
-flac
-freetype
-frontend-fastcgi
-frontend-modperl1
-frontend-modperl2
-gd
-gdbm
-gdk-pixbuf
-glib1
-glint
-glpk
-gnome
-gnupg
-gnuplot
-gnutls
-gpgsm
-graphs
-gsasl
-gssapi
-gstreamer
-gtk
-gtkfe
-gucharmap
-hdf5
-homedir
-hpn-patch
-hub
-i128
-i586-optimized
-i740
-i810
-iconv
-id3
-idea
-ifevents
-ignoreip2
-imlib
-imlib2
-imstt
-inet6
-ipfilter
-iptables
-ipv6
-ispell
-java
-jpeg
-jpilot
-kde
-kerberos
-kerberos4
-kqueue
-krb4
-krb5
-lame
-largefile
-largescale
-ldap
-ldap-compat
-leaf
-libcrack
-libgcrypt
-libnet10
-libnet11
-long-usernames
-lookup
-lua
-lynxkey
-lzw
-m17n
-m68060-optimized
-mad
-magick
-mdc2
-metarefresh
-mga
-mhash
-milter
-mmx
-modperl
-multibyte
-mysql
-mysql4
-native
-ncurses
-neomagic
-net-tests
-netqmail
-newport
-nogui
-nospoof
-nsc
-nullenvsender
-nv
-ogg
-okinawa_dict
-opengl Use OpenGL as display library.
-openldap
-openssl
-outgoingip
-pam
-patchviewer
-pcre
-perf-tuning
-perl
-perl-taint-checks
-perl-warnings
-pf
-pgsql
-plplot
-portals
-postgresql
-postgresql73
-postgresql74
-prefix-cmds
-python
-qregex
-qt
-quota
-radius
-rc5
-readline
-realrcptto
-recommended-db
-remoteinc
-rendition
-rrdtool
-s3
-s3virge
-samba
-sasl
-savage
-sdl Use SDL as display library.
-siliconmotion
-sis
-skey
-slang
-slp
-snmp
-socketmap
-socks
-socks4
-socks5
-sqlite
-ssl
-starttls
-static
-subshell
-suexec
-svn
-syncdir
-tcpd
-tcpwrappers
-tdb
-tdfx
-tga
-tinydns64
-tls
-trident
-truetype
-tseng
-unicode
-unrealircd
-vesa
-vflib
-vfs
-vga
-via
-virtualchroot
-viruscan
-vmware
-vorbis
-vpop
-wrap
-wx
-x11
-xface
-xft
-xft2
-xmlimportbugs
-xmms-eq
-xvid
-zaptel
-zip
-ziplinks
diff --git a/mk/dirs.mk b/mk/dirs.mk
deleted file mode 100644
index 900a8f9a0d8..00000000000
--- a/mk/dirs.mk
+++ /dev/null
@@ -1,69 +0,0 @@
-# $NetBSD: dirs.mk,v 1.5.4.1 2004/12/31 20:25:30 tv 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 adff690119b..00000000000
--- a/mk/djbware.mk
+++ /dev/null
@@ -1,74 +0,0 @@
-# $NetBSD: djbware.mk,v 1.4.2.2 2005/05/17 18:29:44 tv 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:
-# * set RESTRICTED automatically iff patches or other mods are applied
-#
-
-.if !defined(DJBWARE_MK)
-DJBWARE_MK= # defined
-
-DJB_RESTRICTED?= YES
-DJB_ERRNO_HACK?= YES
-DJB_BUILD_TARGETS?= # empty
-DJB_INSTALL_TARGETS?= # empty
-DJB_CONFIG_PREFIX?= ${PREFIX}
-DJB_CONFIG_HOME?= conf-home
-DJB_CONFIG_CMDS?= ${DO_NADA}
-BGWARE_INSTALLER?= NO
-
-BUILD_DEFS+= DJB_ERRNO_HACK
-
-.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
-
-BUILD_TARGET?= it ${DJB_BUILD_TARGETS}
-INSTALL_TARGET?= setup check ${DJB_INSTALL_TARGETS}
-
-.if !empty(DJB_ERRNO_HACK:M[yY][eE][sS])
-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
-
-.if !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; \
- ${DJB_CONFIG_CMDS}
-.endif
-
-.if !empty(BGWARE_INSTALLER:M[yY][eE][sS])
-. if !target(do-install)
-do-install:
- ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
- ./installer; \
- ./instcheck
-. endif
-.endif
-
-.endif # DJBWARE_MK
diff --git a/mk/dlopen.buildlink3.mk b/mk/dlopen.buildlink3.mk
deleted file mode 100644
index 61b4a0282ad..00000000000
--- a/mk/dlopen.buildlink3.mk
+++ /dev/null
@@ -1,44 +0,0 @@
-# $NetBSD: dlopen.buildlink3.mk,v 1.8.2.2 2004/11/28 20:11:32 tv 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 ${OPSYS} == "Darwin"
-. 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 9d84a05c051..00000000000
--- a/mk/dlopen.builtin.mk
+++ /dev/null
@@ -1,87 +0,0 @@
-# $NetBSD: dlopen.builtin.mk,v 1.6.2.6 2005/01/24 18:40:01 tv Exp $
-
-.for _lib_ in dl
-. if !defined(_BLNK_LIB_FOUND.${_lib_})
-_BLNK_LIB_FOUND.${_lib_}!= \
- if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" != "/usr/lib/lib${_lib_}.*"; then \
- ${ECHO} "yes"; \
- elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" != "/lib/lib${_lib_}.*"; then \
- ${ECHO} "yes"; \
- else \
- ${ECHO} "no"; \
- fi
-BUILDLINK_VARS+= _BLNK_LIB_FOUND.${_lib_}
-. endif
-.endfor
-.undef _lib_
-
-.if !defined(IS_BUILTIN.dl)
-IS_BUILTIN.dl= no
-. if exists(/usr/include/dlfcn.h) || exists(/opt/gcc.3.3/include/dlfcn.h)
-IS_BUILTIN.dl= yes
-. endif
-BUILDLINK_VARS+= IS_BUILTIN.dl
-.endif # IS_BUILTIN.pthread
-
-.if !defined(USE_BUILTIN.dl)
-USE_BUILTIN.dl= ${IS_BUILTIN.dl}
-. if ${OPSYS} == "Darwin"
-USE_BUILTIN.dl= no # Darwin uses devel/dlcompat
-. endif
-.endif
-#
-# 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.
-#
-_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-*
-
-_DLOPEN_REQUIRE_PTHREADS?= no
-.for _pattern_ in ${_DLOPEN_REQUIRE_PTHREAD_PLATFORMS}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-. if !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
-_DLOPEN_REQUIRE_PTHREADS= yes
-. endif
-. endif
-.endfor
-#
-# 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)
-_DLOPEN_REQUIRE_PTHREADS:= ${DLOPEN_REQUIRE_PTHREADS}
-.else
-DLOPEN_REQUIRE_PTHREADS= ${_DLOPEN_REQUIRE_PTHREADS}
-.endif
-
-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(_BLNK_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(_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 # USE_BUILTIN.dl == yes
-
-.endif # CHECK_BUILTIN.dl
diff --git a/mk/emacs.mk b/mk/emacs.mk
deleted file mode 100644
index f3b20f55eaf..00000000000
--- a/mk/emacs.mk
+++ /dev/null
@@ -1,208 +0,0 @@
-# $NetBSD: emacs.mk,v 1.16.10.2 2005/05/17 18:29:44 tv Exp $
-#
-# A Makefile fragment for Emacs Lisp packages.
-#
-# * Determine the version of Emacs/XEmacs to be used.
-#
-# * Emacs Lisp files are installed...
-# GNU emacs
-# -> ${PREFIX}/share/emacs/site-lisp/foo/...
-# XEmacs
-# ->${PREFIX}/lib/xemacs/site-packages/lisp/foo/...
-#
-# * XEmacs package's names are prefix'ed by "xemacs-", since Emacs
-# {20,21} conflict, and XEmacs conflict.
-#
-# * Assume each package supports GNU Emacs {20,21} by default. If the
-# package supports XEmacsen too, define EMACS_VERSIONS_ACCEPTED
-# explicitly before including mk/emacs.mk. Note that the order is
-# important.
-#
-
-.if !defined(EMACS_MK)
-EMACS_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-# Assume only GNU emacsen are supported by default.
-#
-EMACS_VERSION_DEFAULT?= emacs21
-.if !defined(USE_XEMACS)
-EMACS_VERSIONS_ACCEPTED?= emacs21 emacs21nox emacs20
-#EMACS_VERSIONS_ACCEPTED?= emacs21 emacs21nox xemacs214 emacs20 xemacs215
-.else
-EMACS_VERSIONS_ACCEPTED?= xemacs214 xemacs215
-.endif
-
-# Actually BUILDLINK_ means little here...
-#
-BUILDLINK_DEPENDS.emacs20?= emacs>=20.7
-BUILDLINK_DEPENDS.emacs21?= emacs>=21.2
-BUILDLINK_DEPENDS.emacs21nox?= emacs-nox11>=21.2
-BUILDLINK_DEPENDS.xemacs214?= xemacs>=21.4
-BUILDLINK_DEPENDS.xemacs215?= xemacs>=21.5
-BUILDLINK_DEPENDS.leim20?= leim>=20.7
-BUILDLINK_DEPENDS.leim21?= leim>=21.2
-
-.for v in ${EMACS_VERSIONS_ACCEPTED}
-_EMACS_VERSION_${v}_OK= yes
-.endfor
-
-# Look for Emacs 21/Emacs 20
-#
-_TMP!= ${PKG_INFO} -e emacs || ${ECHO}
-.if ${_TMP} != ""
-_EMACS_VERSION_EMACS_FULL:= ${_TMP}
-_EMACS_VERSION_EMACS= ${_EMACS_VERSION_EMACS_FULL:C/^.*-//}
-_EMACS_VERSION_EMACS_MAJOR= ${_EMACS_VERSION_EMACS:C/\..*//}
-.if ${_EMACS_VERSION_EMACS_MAJOR} == "21"
-_EMACS_VERSION_emacs21_INSTALLED= yes
-.elif ${_EMACS_VERSION_EMACS_MAJOR} == "20"
-_EMACS_VERSION_emacs20_INSTALLED= yes
-.endif
-.endif
-
-# Look for Emacs21 without X11
-#
-_TMP!= ${PKG_INFO} -e emacs-nox11 || ${ECHO}
-.if ${_TMP} != ""
-_EMACS_VERSION_EMACS_FULL:= ${_TMP}
-_EMACS_VERSION_EMACS= ${_EMACS_VERSION_EMACS_FULL:C/^.*-//}
-_EMACS_VERSION_EMACS_MAJOR= ${_EMACS_VERSION_EMACS:C/\..*//}
-_EMACS_VERSION_emacs21nox_INSTALLED= yes
-.endif
-
-# Look for XEmacs 21.5/XEmacs 21.1
-#
-_TMP!= ${PKG_INFO} -e xemacs || ${ECHO}
-.if ${_TMP} != ""
-_EMACS_VERSION_XEMACS_FULL:= ${_TMP:C/^.*-//}
-_EMACS_VERSION_XEMACS= ${_EMACS_VERSION_XEMACS_FULL:C/^.*-//}
-_EMACS_VERSION_XEMACS_MAJOR= ${_EMACS_VERSION_XEMACS:C/\..*//}
-_EMACS_VERSION_XEMACS_MINOR= ${_EMACS_VERSION_XEMACS:C/^[0-9]*\.//:C/[^0-9].*//}
-.if ${_EMACS_VERSION_XEMACS_MAJOR} == "21" && \
- ${_EMACS_VERSION_XEMACS_MINOR} == "5"
-_EMACS_VERSION_xemacs215_INSTALLED= yes
-.elif ${_EMACS_VERSION_XEMACS_MAJOR} == "21" && \
- ${_EMACS_VERSION_XEMACS_MINOR} == "4"
-_EMACS_VERSION_xemacs214_INSTALLED= yes
-.endif
-.endif
-
-# Determine the Emacs version to be used.
-#
-.if defined(EMACS_VERSION_REQD)
-_EMACS_VERSION= ${EMACS_VERSION_REQD}
-.endif
-.if !defined(_EMACS_VERSION)
-.if defined(_EMACS_VERSION_${EMACS_VERSION_DEFAULT}_OK)
-.if defined(_EMACS_VERSION_${EMACS_VERSION_DEFAULT}_INSTALLED)
-_EMACS_VERSION= ${EMACS_VERSION_DEFAULT}
-.endif
-.endif
-.endif
-.if !defined(_EMACS_VERSION)
-.for v in ${EMACS_VERSIONS_ACCEPTED}
-.if defined(_EMACS_VERSION_${v}_INSTALLED)
-_EMACS_VERSION?= ${v}
-.else
-_EMACS_VERSION_FIRSTACCEPTED?= ${v}
-.endif
-.endfor
-.endif
-.if !defined(_EMACS_VERSION)
-.if defined(_EMACS_VERSION_${EMACS_VERSION_DEFAULT}_OK)
-_EMACS_VERSION= ${EMACS_VERSION_DEFAULT}
-.endif
-.endif
-.if !defined(_EMACS_VERSION)
-_EMACS_VERSION= ${_EMACS_VERSION_FIRSTACCEPTED}
-.endif
-
-# Set version specifics.
-#
-FOR.emacs21= "@comment "
-FOR.emacs21nox= "@comment "
-FOR.emacs20= "@comment "
-FOR.xemacs215= "@comment "
-FOR.xemacs214= "@comment "
-.if ${_EMACS_VERSION} == "emacs21"
-EMACS_DEPENDENCY= ${BUILDLINK_DEPENDS.emacs21}:../../editors/emacs
-FOR.emacs21= ""
-.if defined(EMACS_USE_LEIM)
-DEPENDS+= ${BUILDLINK_DEPENDS.leim21}:../../editors/leim
-.endif
-.elif ${_EMACS_VERSION} == "emacs21nox"
-EMACS_DEPENDENCY= ${BUILDLINK_DEPENDS.emacs21nox}:../../editors/emacs-nox11
-FOR.emacs21nox= ""
-.if defined(EMACS_USE_LEIM)
-DEPENDS+= ${BUILDLINK_DEPENDS.leim21}:../../editors/leim
-.endif
-.elif ${_EMACS_VERSION} == "emacs20"
-EMACS_DEPENDENCY= ${BUILDLINK_DEPENDS.emacs20}:../../editors/emacs20
-FOR.emacs20= ""
-.if defined(EMACS_USE_LEIM)
-DEPENDS+= ${BUILDLINK_DEPENDS.leim20}:../../editors/leim20
-.endif
-.elif ${_EMACS_VERSION} == "xemacs215"
-EMACS_DEPENDENCY= ${BUILDLINK_DEPENDS.xemacs215}:../../editors/xemacs-current
-FOR.xemacs215= ""
-.elif ${_EMACS_VERSION} == "xemacs214"
-EMACS_DEPENDENCY= ${BUILDLINK_DEPENDS.xemacs214}:../../editors/xemacs
-FOR.xemacs214= ""
-.else
-PKG_SKIP_REASON+= "Accepted versions are: ${EMACS_VERSIONS_ACCEPTED}"
-PKG_SKIP_REASON+= "No valid Emacs version installed found"
-.endif
-.if defined(EMACS_FOR_BUILD_ONLY)
-BUILD_DEPENDS+= ${EMACS_DEPENDENCY}
-.else
-DEPENDS+= ${EMACS_DEPENDENCY}
-.endif
-
-# Provide some macro definitions.
-#
-.if ${_EMACS_VERSION:Memacs*}
-EMACS_FLAVOR= emacs
-EMACS_BIN= ${PREFIX}/bin/emacs
-EMACS_PKG_VERSION= ${_EMACS_VERSION_EMACS_FULL:C|^.*-||}
-EMACS_LISPPREFIX= ${PREFIX}/share/emacs/site-lisp
-PKGNAME_PREFIX=
-CONFLICTS+= xemacs-${PKGBASE}-[0-9]*
-.else
-EMACS_FLAVOR= xemacs
-EMACS_BIN= ${PREFIX}/bin/xemacs
-EMACS_PKG_VERSION= ${_EMACS_VERSION_XEMACS_FULL:C|^.*-||}
-EMACS_LISPPREFIX= ${PREFIX}/lib/xemacs/site-packages/lisp
-PKGNAME_PREFIX= xemacs-
-.if defined(PKGNAME)
-PKGNAME:= ${PKGNAME_PREFIX}${PKGNAME}
-.else
-PKGNAME:= ${PKGNAME_PREFIX}${DISTNAME}${PKGREVISION}
-CONFLICTS+= ${PKGBASE:C|^xemacs-||}-[0-9]*
-.endif
-.endif
-# strip out nb?
-EMACS_VERSION=${EMACS_PKG_VERSION:C|nb[0-9]*$||}
-PLIST_SUBST+= EMACS_VERSION=${EMACS_VERSION}
-PLIST_SUBST+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||}
-PLIST_SUBST+= FOR_emacs21=${FOR.emacs21}
-PLIST_SUBST+= FOR_emacs21nox=${FOR.emacs21nox}
-PLIST_SUBST+= FOR_emacs20=${FOR.emacs20}
-PLIST_SUBST+= FOR_xemacs215=${FOR.xemacs215}
-PLIST_SUBST+= FOR_xemacs214=${FOR.xemacs214}
-
-_REPLACE_EMACS_SED= -e "1s;^\#!.*emacs;\#!${EMACS_BIN};"
-
-.if defined(REPLACE_EMACS)
-emacs-patch-scripts:
-.for s in ${REPLACE_EMACS}
- ${CP} ${WRKSRC}/$s ${WRKSRC}/${s}.tmp
- ${CHMOD} +w ${WRKSRC}/$s
- ${SED} ${_REPLACE_EMACS_SED} <${WRKSRC}/${s}.tmp >${WRKSRC}/$s
-.endfor
-
-post-patch: emacs-patch-scripts
-.endif
-
-.endif # EMACS_MK
diff --git a/mk/endian.mk b/mk/endian.mk
deleted file mode 100644
index 883cec7ad72..00000000000
--- a/mk/endian.mk
+++ /dev/null
@@ -1,51 +0,0 @@
-# $NetBSD: endian.mk,v 1.3.8.1 2005/05/17 18:29:44 tv 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/find-prefix.mk b/mk/find-prefix.mk
deleted file mode 100644
index d0036aa5ca1..00000000000
--- a/mk/find-prefix.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-# $NetBSD: find-prefix.mk,v 1.3.2.2 2005/05/17 18:29:44 tv 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 2f91651f7fe..00000000000
--- a/mk/fonts.mk
+++ /dev/null
@@ -1,60 +0,0 @@
-# $NetBSD: fonts.mk,v 1.5.6.1 2004/12/31 20:25:30 tv 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 bfe0b412b9f..00000000000
--- a/mk/ghostscript.mk
+++ /dev/null
@@ -1,93 +0,0 @@
-# $NetBSD: ghostscript.mk,v 1.12.8.1 2005/02/11 15:27:57 tv 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-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 6702e5528c1..00000000000
--- a/mk/gnu-config/config.rpath
+++ /dev/null
@@ -1,523 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: config.rpath,v 1.2.2.2 2005/01/24 18:25:28 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 cb5e518d6e6..00000000000
--- a/mk/install/bsd.pkginstall.mk
+++ /dev/null
@@ -1,567 +0,0 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.1.2.2 2005/05/17 18:29:45 tv 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.
-#
-# NOTE: This file must _not_ be included from anything else than bsd.pkg.mk.
-
-.if !defined(BSD_PKG_INSTALL_MK)
-BSD_PKG_INSTALL_MK= 1
-
-.include "../../mk/bsd.prefs.mk"
-
-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, then spaces
-# should be double backslash-escaped, 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}
-
-# 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
-INSTALL_UNPACK_TMPL+= ${INSTALL_USERGROUP_FILE}
-
-${INSTALL_USERGROUP_FILE}: ../../mk/install/usergroup
- ${_PKG_SILENT}${_PKG_DEBUG}{ \
- ${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} ${FILES_SUBST_SED} ../../mk/install/usergroup; \
- ${ECHO} ""; \
- eval set -- ${PKG_GROUPS} ; \
- while ${TEST} $$# -gt 0; do \
- i="$$1"; shift; \
- ${ECHO} "# GROUP: $$i"; \
- done; \
- eval set -- ${PKG_USERS} ; \
- 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"; \
- } > ${.TARGET}.tmp; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-
-# 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.
-#
-# 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_UNPACK_TMPL+= ${INSTALL_PERMS_FILE}
-
-${INSTALL_PERMS_FILE}: ../../mk/install/perms
- ${_PKG_SILENT}${_PKG_DEBUG}{ \
- ${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} ""; \
- eval set -- ${SPECIAL_PERMS} ; \
- while ${TEST} $$# -gt 0; do \
- file="$$1"; owner="$$2"; group="$$3"; mode="$$4"; \
- shift; shift; shift; shift; \
- ${ECHO} "# PERMS: $$file $$mode $$owner $$group"; \
- done; \
- ${ECHO} "EOF_PERMS"; \
- ${ECHO} " \$${CHMOD} +x ./+PERMS"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-perms"; \
- } > ${.TARGET}.tmp; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-
-# 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. SUPPORT_FILES is used the same way, but the package
-# admin isn't prompted to customize the file at post-install time.
-#
-# CONF_FILES_MODE and SUPPORT_FILES_MODE are the file permissions for the
-# files in CONF_FILES and SUPPORT_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. SUPPORT_FILES_PERMS is used in the
-# same way, but the package admin isn't prompted to customize the file
-# at post-install time.
-#
-# 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.
-#
-CONF_FILES?= # empty
-CONF_FILES_MODE?= 0644
-CONF_FILES_PERMS?= # empty
-SUPPORT_FILES?= # empty
-SUPPORT_FILES_MODE?= 0644
-SUPPORT_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_UNPACK_TMPL+= ${INSTALL_FILES_FILE}
-
-${INSTALL_FILES_FILE}: ../../mk/install/files
- ${_PKG_SILENT}${_PKG_DEBUG}{ \
- ${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} ""; \
- eval set -- ${CONF_FILES} ; \
- while ${TEST} $$# -gt 0; do \
- egfile="$$1"; file="$$2"; \
- shift; shift; \
- ${ECHO} "# FILE: $$file c $$egfile ${CONF_FILES_MODE}"; \
- done; \
- eval set -- ${SUPPORT_FILES} ; \
- while ${TEST} $$# -gt 0; do \
- egfile="$$1"; file="$$2"; \
- shift; shift; \
- ${ECHO} "# FILE: $$file c $$egfile ${SUPPORT_FILES_MODE}"; \
- done; \
- eval set -- ${CONF_FILES_PERMS} ${SUPPORT_FILES_PERMS} ; \
- while ${TEST} $$# -gt 0; do \
- egfile="$$1"; file="$$2"; \
- owner="$$3"; group="$$4"; mode="$$5"; \
- shift; shift; shift; shift; shift; \
- ${ECHO} "# FILE: $$file c $$egfile $$mode $$owner $$group"; \
- done; \
- ${ECHO} "EOF_FILES"; \
- ${ECHO} " \$${CHMOD} +x ./+FILES"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-files"; \
- } > ${.TARGET}.tmp; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-
-INSTALL_RCD_SCRIPTS_FILE= ${WRKDIR}/.install-rcd-scripts
-INSTALL_UNPACK_TMPL+= ${INSTALL_RCD_SCRIPTS_FILE}
-
-${INSTALL_RCD_SCRIPTS_FILE}: ../../mk/install/files
- ${_PKG_SILENT}${_PKG_DEBUG}{ \
- ${ECHO} "# start of install-rcd-scripts"; \
- ${ECHO} "#"; \
- ${ECHO} "# Generate a +RCD_SCRIPTS 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} > ./+RCD_SCRIPTS << 'EOF_RCD_SCRIPTS'"; \
- ${SED} ${FILES_SUBST_SED} ../../mk/install/files; \
- ${ECHO} ""; \
- eval set -- ${RCD_SCRIPTS} ; \
- while ${TEST} $$# -gt 0; do \
- script="$$1"; shift; \
- file="${RCD_SCRIPTS_DIR}/$$script"; \
- egfile="${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/$$script"; \
- ${ECHO} "# FILE: $$file c $$egfile ${RCD_SCRIPTS_MODE}"; \
- done; \
- ${ECHO} "EOF_RCD_SCRIPTS"; \
- ${ECHO} " \$${CHMOD} +x ./+RCD_SCRIPTS"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-rcd-scripts"; \
- } > ${.TARGET}.tmp; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-
-# 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.
-#
-# 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.
-#
-MAKE_DIRS?= # empty
-MAKE_DIRS_PERMS?= # empty
-OWN_DIRS?= # empty
-OWN_DIRS_PERMS?= # empty
-
-INSTALL_DIRS_FILE= ${WRKDIR}/.install-dirs
-INSTALL_UNPACK_TMPL+= ${INSTALL_DIRS_FILE}
-
-${INSTALL_DIRS_FILE}: ../../mk/install/dirs
- ${_PKG_SILENT}${_PKG_DEBUG}{ \
- ${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} ""; \
- case "${PKG_SYSCONFSUBDIR}${CONF_FILES}${CONF_FILES_PERMS}${SUPPORT_FILES}${SUPPORT_FILES_PERMS}" in \
- "") ;; \
- *) ${ECHO} "# DIR: ${PKG_SYSCONFDIR} m" ;; \
- esac; \
- case "${RCD_SCRIPTS}" in \
- "") ;; \
- *) ${ECHO} "# DIR: ${RCD_SCRIPTS_DIR} m" ;; \
- esac; \
- eval set -- ${MAKE_DIRS} ; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; shift; \
- ${ECHO} "# DIR: $$dir m"; \
- done; \
- eval set -- ${OWN_DIRS} ; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; shift; \
- ${ECHO} "# DIR: $$dir mo"; \
- done; \
- eval set -- ${MAKE_DIRS_PERMS} ; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; owner="$$2"; group="$$3"; mode="$$4"; \
- shift; shift; shift; shift; \
- ${ECHO} "# DIR: $$dir m $$owner $$group $$mode"; \
- done; \
- eval set -- ${OWN_DIRS_PERMS} ; \
- while ${TEST} $$# -gt 0; do \
- dir="$$1"; owner="$$2"; group="$$3"; mode="$$4"; \
- shift; shift; shift; shift; \
- ${ECHO} "# DIR: $$dir mo $$owner $$group $$mode"; \
- done; \
- ${ECHO} "EOF_DIRS"; \
- ${ECHO} " \$${CHMOD} +x ./+DIRS"; \
- ${ECHO} " ;;"; \
- ${ECHO} "esac"; \
- ${ECHO} ""; \
- ${ECHO} "# end of install-dirs"; \
- } > ${.TARGET}.tmp; \
- ${MV} -f ${.TARGET}.tmp ${.TARGET}
-
-# 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".
-#
-# 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
-FILES_SUBST+= PKG_CREATE_USERGROUP=${PKG_CREATE_USERGROUP}
-FILES_SUBST+= PKG_CONFIG=${PKG_CONFIG}
-FILES_SUBST+= PKG_RCD_SCRIPTS=${PKG_RCD_SCRIPTS}
-
-# PKG_REGISTER_SHELLS indicates whether to automatically register shells
-# in /etc/shells. It is either YES or NO and defaults to YES.
-#
-# PKG_SHELL contains the full pathname of the shell being installed.
-#
-
-PKG_REGISTER_SHELLS?= YES
-PKG_SHELL?= # empty
-FILES_SUBST+= PKG_REGISTER_SHELLS=${PKG_REGISTER_SHELLS}
-FILES_SUBST+= PKG_SHELL=${PKG_SHELL:Q}
-
-# 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+= 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 [ ! -d ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR} ]; then \
- ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \
- -m 0755 ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}; \
- fi
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ -f ${RCD_SCRIPT_WRK.${_script_}} ]; then \
- ${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 d1dec3c287a..00000000000
--- a/mk/install/deinstall
+++ /dev/null
@@ -1,78 +0,0 @@
-# -*- sh -*-
-# start of deinstall
-#
-# $NetBSD: deinstall,v 1.29.2.2 2005/05/17 18:29:45 tv 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
- if [ -n "${PKG_SHELL}" -a "${PKG_REGISTER_SHELLS}" = "YES" ]; then
- ${ECHO} "===> Updating /etc/shells"
- ${CP} /etc/shells /etc/shells.pkgsrc."$$"
- (${GREP} -v "^${PKG_SHELL}" /etc/shells.pkgsrc."$$" || ${TRUE}) > /etc/shells
- ${RM} /etc/shells.pkgsrc."$$"
- fi
- ;;
-
-DEINSTALL)
- # Remove configuration files if they don't differ from the default
- # config file.
- #
- case ${_PKG_CONFIG} in
- YES) ${TEST} -x ./+FILES &&
- ./+FILES REMOVE ${PKG_METADATA_DIR} ;;
- esac
- case ${_PKG_CONFIG}${_PKG_RCD_SCRIPTS} in
- YESYES) ${TEST} -x ./+RCD_SCRIPTS &&
- ./+RCD_SCRIPTS REMOVE ${PKG_METADATA_DIR} ;;
- esac
- ;;
-
-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.
- #
- case ${_PKG_CONFIG} in
- YES) ${TEST} -x ./+DIRS &&
- ./+DIRS REMOVE ${PKG_METADATA_DIR} ;;
- esac
- case ${_PKG_CREATE_USERGROUP} in
- YES) ${TEST} -x ./+USERGROUP &&
- ./+USERGROUP REMOVE ${PKG_METADATA_DIR} ;;
- esac
- #
- # 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 caedb17ecf4..00000000000
--- a/mk/install/dirs
+++ /dev/null
@@ -1,209 +0,0 @@
-#!@SH@
-#
-# $NetBSD: dirs,v 1.5.2.2 2005/02/11 15:27:57 tv 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
-#
-# The second field in each DIRS entry is a set of flags with the following
-# meaning:
-#
-# 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_REFCOUNT_DIRS_DBDIR="${PKG_REFCOUNT_DBDIR}/dirs"
-
-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 ;;
- 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
- ${MKDIR} $dir
- 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_user/$d_group/$d_mode in
- [!/]*/[!/]*/[!/]*)
- ${CHOWN} $d_user $dir
- ${CHGRP} $d_group $dir
- ${CHMOD} $d_mode $dir
- ;;
- 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 ;;
- 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" ||
- { ${RMDIR} -p $dir 2>/dev/null || ${TRUE}; }
- ${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 ;;
- *) ${TEST} -d "$dir" && continue ;;
- esac
- 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 ;;
- *) ${TEST} -d "$dir" || continue ;;
- esac
- 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 0ffc5363343..00000000000
--- a/mk/install/files
+++ /dev/null
@@ -1,275 +0,0 @@
-#!@SH@
-#
-# $NetBSD: files,v 1.1.2.4 2005/05/17 18:29:45 tv 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
-#
-# The second field in each FILE entry is a set of flags with the following
-# meaning:
-#
-# c file is copied into place
-#
-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
-
-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 ;;
- esac
- case $f_flags in
- *c*) ;;
- *) continue ;;
- 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 "$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
- 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 ;;
- esac
- case $f_flags in
- *c*) ;;
- *) continue ;;
- 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
- ${RM} -f "$file"
- 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}/*) ;;
- *) continue ;;
- esac
- link="${VIEWDIR}/${file#${DEPOTDIR}/}"
- 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 ;;
- *) ${TEST} -f "$file" && continue ;;
- esac
- case $f_flags in
- *c*) ;;
- *) continue ;;
- 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 ;;
- *) ${TEST} -f "$file" || continue ;;
- esac
- 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 77fadea14d9..00000000000
--- a/mk/install/fonts
+++ /dev/null
@@ -1,47 +0,0 @@
-# $NetBSD: fonts,v 1.5.6.1 2004/12/31 20:25:30 tv 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 ff8135f7866..00000000000
--- a/mk/install/header
+++ /dev/null
@@ -1,108 +0,0 @@
-#!@SH@
-#
-# start of header
-#
-# $NetBSD: header,v 1.26.6.2 2005/02/11 15:27:57 tv 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
-
-PKG_REGISTER_SHELLS="@PKG_REGISTER_SHELLS@"
-PKG_SHELL="@PKG_SHELL@"
-
-CONF_IGNORE_FILES="*[~#] *.OLD *.orig *,v .pkgsrc */.pkgsrc"
-
-PKG_INSTALLATION_TYPE="@PKG_INSTALLATION_TYPE@"
-
-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
-
-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
-
-# end of header
diff --git a/mk/install/install b/mk/install/install
deleted file mode 100644
index 2f82daa4c67..00000000000
--- a/mk/install/install
+++ /dev/null
@@ -1,92 +0,0 @@
-# -*- sh -*-
-# start of install
-#
-# $NetBSD: install,v 1.32.2.3 2005/05/17 18:29:45 tv Exp $
-
-case ${STAGE} in
-PRE-INSTALL)
- #
- # Require that necessary users and groups exist or else fail the
- # installation of the package.
- #
- case ${_PKG_CREATE_USERGROUP} in
- YES) ${TEST} -x ./+USERGROUP &&
- ./+USERGROUP ADD ${PKG_METADATA_DIR} ;;
- esac
- if ${TEST} -x ./+USERGROUP &&
- ./+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
- case ${_PKG_CONFIG} in
- YES) ${TEST} -x ./+DIRS &&
- ./+DIRS ADD ${PKG_METADATA_DIR} ;;
- esac
- ;;
-
-POST-INSTALL)
- #
- # Copy configuration/support files into place.
- #
- case ${_PKG_CONFIG} in
- YES) ${TEST} -x ./+FILES &&
- ./+FILES ADD ${PKG_METADATA_DIR} ;;
- esac
- case ${_PKG_CONFIG}${_PKG_RCD_SCRIPTS} in
- YESYES) ${TEST} -x ./+RCD_SCRIPTS &&
- ./+RCD_SCRIPTS ADD ${PKG_METADATA_DIR} ;;
- esac
- #
- # 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)
- if [ -n "${PKG_SHELL}" -a "${PKG_REGISTER_SHELLS}" = "YES" ]; then
- ${ECHO} "===> Updating /etc/shells"
- ${TOUCH} /etc/shells
- ${CP} /etc/shells /etc/shells.pkgsrc."$$"
- (${GREP} -v "^${PKG_SHELL}" /etc/shells.pkgsrc."$$" || ${TRUE}; ${ECHO} ${PKG_SHELL}) > /etc/shells
- ${RM} /etc/shells.pkgsrc."$$"
- fi
- #
- # 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 a1bb0488001..00000000000
--- a/mk/install/perms
+++ /dev/null
@@ -1,78 +0,0 @@
-#!@SH@
-#
-# $NetBSD: perms,v 1.1.2.3 2005/05/17 18:29:45 tv 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
-#
-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##*/}}
-
-${SED} -n "/^\# PERMS: /{s/^\# PERMS: //;p;}" ${SELF} | ${SORT} -u |
-{ while read file f_mode f_user f_group; do
- case $file in
- ""|[!/]*) continue ;;
- *) ${TEST} -f "$file" || continue ;;
- esac
- 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/usergroup b/mk/install/usergroup
deleted file mode 100644
index 37d2ea96949..00000000000
--- a/mk/install/usergroup
+++ /dev/null
@@ -1,386 +0,0 @@
-#!@SH@
-#
-# $NetBSD: usergroup,v 1.7.2.3 2005/05/17 18:29:45 tv 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@"
-GROUPADD="@GROUPADD@"
-ID="@ID@"
-MKDIR="@MKDIR@"
-PWD_CMD="@PWD_CMD@"
-RM="@RM@"
-RMDIR="@RMDIR@"
-SED="@SED@"
-SORT="@SORT@"
-TEST="@TEST@"
-USERADD="@USERADD@"
-
-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"
-
-PKG_USER_HOME="@PKG_USER_HOME@"
-PKG_USER_SHELL="@PKG_USER_SHELL@"
-
-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
-}
-
-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 group_exists $group; then
- :
- elif ${TEST} -n "${GROUPADD}" -a -x "${GROUPADD}"; then
- ${ECHO} "Creating group: $group";
- case $groupid in
- "") ${GROUPADD} $group ;;
- *) ${GROUPADD} -g $groupid $group ;;
- esac
- fi
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- :
- else
- ${ECHO} "${PKG_METADATA_DIR}" >> $token
- fi
- 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
- : ${descr:="${PKGNAME%-[0-9]*} $user user"}
- : ${home:="${PKG_USER_HOME}"}
- : ${shell:="${PKG_USER_SHELL}"}
- 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 user_exists $user && group_exists $group; then
- :
- elif ${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
- if ${TEST} -f "$token" && \
- ${GREP} "^${PKG_METADATA_DIR}$" $token >/dev/null; then
- :
- else
- ${ECHO} "${PKG_METADATA_DIR}" >> $token
- fi
- 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/java-env.mk b/mk/java-env.mk
deleted file mode 100644
index 5015258782a..00000000000
--- a/mk/java-env.mk
+++ /dev/null
@@ -1,87 +0,0 @@
-# $NetBSD: java-env.mk,v 1.3.6.2 2005/03/21 15:43:00 tv 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
-MAKE_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 c0e0ee78e5b..00000000000
--- a/mk/java-vm.mk
+++ /dev/null
@@ -1,311 +0,0 @@
-# $NetBSD: java-vm.mk,v 1.34.2.4 2005/05/17 18:29:44 tv 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".
-#
-# 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) && !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 63195a747d4..00000000000
--- a/mk/krb5.buildlink3.mk
+++ /dev/null
@@ -1,60 +0,0 @@
-# $NetBSD: krb5.buildlink3.mk,v 1.7.6.1 2005/01/10 16:15:25 tv 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 dd7225039ae..00000000000
--- a/mk/motif.buildlink3.mk
+++ /dev/null
@@ -1,91 +0,0 @@
-# $NetBSD: motif.buildlink3.mk,v 1.6 2004/08/27 06:33:17 jlam Exp $
-#
-# MOTIFBASE
-# choose the Motif-2.0 installation at the named location.
-#
-# MOTIF_TYPE
-# choose a specific Motif-2.0 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
-
-USE_X11?= # defined
-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 4bae6a1f182..00000000000
--- a/mk/mysql.buildlink3.mk
+++ /dev/null
@@ -1,73 +0,0 @@
-# $NetBSD: mysql.buildlink3.mk,v 1.1.2.1 2005/05/17 18:29:44 tv Exp $
-
-.if !defined(MYSQL_VERSION_MK)
-MYSQL_VERSION_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-MYSQL_VERSION_DEFAULT?= 41
-MYSQL_VERSIONS_ACCEPTED?= 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.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} == "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/nroff.buildlink3.mk b/mk/nroff.buildlink3.mk
deleted file mode 100644
index 213d65d4ced..00000000000
--- a/mk/nroff.buildlink3.mk
+++ /dev/null
@@ -1,17 +0,0 @@
-# $NetBSD: nroff.buildlink3.mk,v 1.1.2.2 2005/03/21 15:43:00 tv Exp $
-#
-# This fragment provides a NROFF macro, and includes a dependency
-# on textproc/groff if needed. This does not depend on the OS providing
-# groff; if any system-supplied nroff is available, it is accepted.
-#
-
-.include "../../mk/bsd.prefs.mk"
-
-.if !defined(NROFF)
-. if exists(/usr/bin/nroff)
-NROFF?= /usr/bin/nroff
-. else
-. include "../../textproc/groff/buildlink3.mk"
-NROFF?= ${BUILDLINK_PREFIX.groff}/bin/nroff
-. endif
-.endif
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 1ee00c22eb8..00000000000
--- a/mk/pam.buildlink3.mk
+++ /dev/null
@@ -1,89 +0,0 @@
-# $NetBSD: pam.buildlink3.mk,v 1.3.2.3 2005/05/17 18:29:44 tv 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 92f894984aa..00000000000
--- a/mk/pgsql.buildlink3.mk
+++ /dev/null
@@ -1,100 +0,0 @@
-# $NetBSD: pgsql.buildlink3.mk,v 1.3.2.3 2005/05/17 18:29:44 tv 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)
-_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}}
-
-.endif # PGVERSION_MK
diff --git a/mk/platform/AIX.mk b/mk/platform/AIX.mk
deleted file mode 100644
index 2bbcde28a25..00000000000
--- a/mk/platform/AIX.mk
+++ /dev/null
@@ -1,194 +0,0 @@
-# $NetBSD: AIX.mk,v 1.4.2.6 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the AIX operating system.
-
-CPP?= ${LOCALBASE}/bin/cpp
-ECHO_N?= ${ECHO} -n
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct 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
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /usr/bin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-.if exists(${LOCALBASE}/bin/gegrep)
-EGREP?= ${LOCALBASE}/bin/gegrep
-.else
-EGREP?= /usr/bin/grep -E
-.endif
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FETCH_CMD?= ${LOCALBASE}/bin/ftp
-.if exists(${LOCALBASE}/bin/gfgrep)
-FGREP?= ${LOCALBASE}/bin/gfgrep
-.else
-FGREP?= /usr/bin/grep -F
-.endif
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-.if exists(${LOCALBASE}/bin/ggrep)
-GREP?= ${LOCALBASE}/bin/ggrep
-.else
-GREP?= /usr/bin/grep
-.endif
-.if exists(/bin/tar)
-GTAR?= /bin/tar
-.else
-.if exists(${LOCALBASE}/bin/tar)
-GTAR?= ${LOCALBASE}/bin/tar
-.else
-GTAR?= /usr/bin/tar
-.endif
-.endif
-GUNZIP_CMD?= ${LOCALBASE}/bin/gunzip -f
-GZCAT?= ${LOCALBASE}/bin/zcat
-GZIP_CMD?= ${LOCALBASE}/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-#.if ${INSTALL} == "install"
-INSTALL= ${LOCALBASE}/bin/install-sh
-#.endif
-LDCONFIG?= /sbin/ldconfig
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mailx
-MKDIR?= /bin/mkdir -p
-MTREE?= ${LOCALBASE}/sbin/mtree
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= ${LOCALBASE}/bin/gpatch
-.if exists(${LOCALBASE}/bin/pax)
-PAX?= ${LOCALBASE}/bin/pax
-.else
-PAX?= /bin/pax
-.endif
-.if exists(${LOCALBASE}/bin/perl)
-PERL5?= ${LOCALBASE}/bin/perl
-.else
-PERL5?= /usr/bin/perl
-.endif
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-.if exists(${LOCALBASE}/bin/nbsed)
-SED?= ${LOCALBASE}/bin/nbsed
-.else
-SED?= /usr/bin/sed
-.endif
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SHLOCK= /usr/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-.if exists(${LOCALBASE}/bin/tar)
-TAR?= ${LOCALBASE}/bin/tar
-.else
-TAR?= /usr/bin/tar
-.endif
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.endif
-
-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
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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.mk b/mk/platform/BSDOS.mk
deleted file mode 100644
index 750d9d95238..00000000000
--- a/mk/platform/BSDOS.mk
+++ /dev/null
@@ -1,175 +0,0 @@
-# $NetBSD: BSDOS.mk,v 1.4.2.4 2005/05/17 18:29:46 tv 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
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-# sh doesn't have built-in type
-TYPE?= which
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /usr/sbin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /bin/egrep
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FGREP?= /bin/fgrep
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-.if exists(${LOCALBASE}/bin/gmake)
-GMAKE?= ${LOCALBASE}/bin/gmake
-.else
-GMAKE?= /usr/contrib/bin/gmake
-.endif
-GREP?= /bin/grep
-.if exists(${LOCALBASE}/bin/gtar)
-GTAR?= ${LOCALBASE}/bin/gtar
-.else
-GTAR?= /bin/tar
-.endif
-GUNZIP_CMD?= /usr/contrib/bin/gunzip -f
-GZCAT?= /usr/contrib/bin/gzcat
-GZIP_CMD?= /usr/contrib/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-LDCONFIG?= /sbin/ldconfig
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mail
-MKDIR?= /bin/mkdir -p
-.if exists(${LOCALBASE}/sbin/mtree)
-MTREE?= ${LOCALBASE}/sbin/mtree
-.else
-MTREE?= /usr/sbin/mtree
-.endif
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= /usr/contrib/bin/patch
-# native /bin/pax doesn't support -O
-PAX?= ${LOCALBASE}/bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= /usr/bin/sed
-SETENV?= /usr/bin/env
-# native sh and ksh both have problems under BSD/OS 4.3.1
-# /usr/contrib/bin/bash is a symlink to /bin/bash
-SH?= /bin/bash
-SHLOCK= ${LOCALBASE}/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-.if exists(/bin/tar)
-TAR?= /bin/tar
-.else
-TAR?= /usr/bin/tar
-.endif
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.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
-# XXX: assume NetBSD defaults until somebody determines correct values
-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 # fixup PLIST for shared libs/run ldconfig
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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.mk b/mk/platform/Darwin.mk
deleted file mode 100644
index 793c40b4d12..00000000000
--- a/mk/platform/Darwin.mk
+++ /dev/null
@@ -1,175 +0,0 @@
-# $NetBSD: Darwin.mk,v 1.4.2.4 2005/05/17 18:29:46 tv 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
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /usr/sbin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /usr/bin/egrep
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-FGREP?= /usr/bin/fgrep
-GMAKE?= /usr/bin/gnumake
-GREP?= /usr/bin/grep
-GTAR?= /usr/bin/gnutar
-GUNZIP_CMD?= /usr/bin/gunzip -f
-GZCAT?= /usr/bin/gzcat
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-LDCONFIG?= /sbin/ldconfig
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mail
-MKDIR?= /bin/mkdir -p
-MTREE?= /usr/sbin/mtree
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= /usr/bin/patch
-.if exists(${LOCALBASE}/bin/pax)
-PAX?= ${LOCALBASE}/bin/pax
-.else
-PAX?= /bin/pax
-.endif
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= /usr/bin/sed
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SHLOCK= /usr/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-.if exists(${LOCALBASE}/bin/tar)
-TAR?= ${LOCALBASE}/bin/tar
-.else
-TAR?= /usr/bin/tar
-.endif
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.endif
-
-.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
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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/DragonFly.mk b/mk/platform/DragonFly.mk
deleted file mode 100644
index 8187a79970c..00000000000
--- a/mk/platform/DragonFly.mk
+++ /dev/null
@@ -1,169 +0,0 @@
-# $NetBSD: DragonFly.mk,v 1.4.2.5 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the DragonFly operating system.
-
-BRANDELF?= /usr/bin/brandelf # used by linux compat layer
-ECHO_N?= ${ECHO} -n
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /usr/sbin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /usr/bin/egrep
-EXPR?= /bin/expr
-FALSE?= /usr/bin/false
-FGREP?= /usr/bin/fgrep
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /usr/bin/grep
-.if exists(${LOCALBASE}/bin/tar)
-GTAR?= ${LOCALBASE}/bin/tar
-.else
-GTAR?= /usr/bin/tar
-.endif
-GUNZIP_CMD?= /usr/bin/gunzip -f
-GZCAT?= /usr/bin/gzcat
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-LDCONFIG?= /sbin/ldconfig
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mail
-MKDIR?= /bin/mkdir -p
-.if exists(${LOCALBASE}/sbin/mtree)
-MTREE?= ${LOCALBASE}/sbin/mtree
-.else
-MTREE?= /usr/sbin/mtree
-.endif
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= /usr/bin/patch
-.if exists(${LOCALBASE}/bin/pax)
-PAX?= ${LOCALBASE}/bin/pax
-.else
-PAX?= /bin/pax
-.endif
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= /usr/bin/sed
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SHLOCK= /usr/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-.if exists(${LOCALBASE}/bin/tar)
-TAR?= ${LOCALBASE}/bin/tar
-.else
-TAR?= /usr/bin/tar
-.endif
-TEE?= /usr/bin/tee
-TEST?= /bin/test
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= /usr/bin/true
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.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
-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
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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= no # 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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-GAMEOWN= games
-GAMEGRP= games
-GAMEMODE= 2555
-.endif
diff --git a/mk/platform/FreeBSD.mk b/mk/platform/FreeBSD.mk
deleted file mode 100644
index d1d2ff7be50..00000000000
--- a/mk/platform/FreeBSD.mk
+++ /dev/null
@@ -1,169 +0,0 @@
-# $NetBSD: FreeBSD.mk,v 1.4.2.4 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the FreeBSD operating system.
-
-ECHO_N?= ${ECHO} -n
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-BRANDELF?= /usr/bin/brandelf # used by linux compat layer
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /usr/sbin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /usr/bin/egrep
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FGREP?= /usr/bin/fgrep
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /usr/bin/grep
-.if exists(${LOCALBASE}/bin/tar)
-GTAR?= ${LOCALBASE}/bin/tar
-.else
-GTAR?= /usr/bin/tar
-.endif
-GUNZIP_CMD?= /usr/bin/gunzip -f
-GZCAT?= /usr/bin/gzcat
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-LDCONFIG?= /sbin/ldconfig
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mail
-MKDIR?= /bin/mkdir -p
-.if exists(${LOCALBASE}/sbin/mtree)
-MTREE?= ${LOCALBASE}/sbin/mtree
-.else
-MTREE?= /usr/sbin/mtree
-.endif
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= /usr/bin/patch
-.if exists(${LOCALBASE}/bin/pax)
-PAX?= ${LOCALBASE}/bin/pax
-.else
-PAX?= /bin/pax
-.endif
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= /usr/bin/sed
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SHLOCK= /usr/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-.if exists(${LOCALBASE}/bin/tar)
-TAR?= ${LOCALBASE}/bin/tar
-.else
-TAR?= /usr/bin/tar
-.endif
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.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
-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
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-GAMEOWN= games
-GAMEGRP= games
-GAMEMODE= 2555
-.endif
diff --git a/mk/platform/IRIX.mk b/mk/platform/IRIX.mk
deleted file mode 100644
index 3977517a8d7..00000000000
--- a/mk/platform/IRIX.mk
+++ /dev/null
@@ -1,180 +0,0 @@
-# $NetBSD: IRIX.mk,v 1.6.2.4 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the IRIX operating system.
-
-ECHO_N?= ${ECHO} -n
-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
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/nawk
-BASENAME?= /sbin/basename
-CAT?= /sbin/cat
-CHMOD?= /sbin/chmod
-CHOWN?= /sbin/chown
-CHGRP?= /sbin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /sbin/cp
-CUT?= /usr/bin/cut
-DATE?= /sbin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /usr/bin/egrep
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FGREP?= /usr/bin/fgrep
-FILE_CMD?= /usr/bin/file
-FIND?= /sbin/find
-.if exists(${LOCALBASE}/bin/gmake)
-GMAKE?= ${LOCALBASE}/bin/gmake
-.endif
-GREP?= /sbin/grep
-.if exists(${LOCALBASE}/bin/tar)
-GTAR?= ${LOCALBASE}/bin/tar
-.else
-GTAR?= /sbin/tar
-.endif
-GUNZIP_CMD?= /usr/sbin/gunzip -f
-.if exists(/usr/sbin/gzcat)
-GZCAT?= /usr/sbin/gzcat
-.else
-GZCAT?= /usr/bsd/zcat
-.endif
-GZIP_CMD?= /usr/sbin/gzip -nf ${GZIP}
-HEAD?= /usr/bsd/head
-HOSTNAME_CMD?= /usr/bsd/hostname
-ID?= /usr/bin/id
-IMAKE?= /usr/bin/X11/imake ${IMAKEOPTS}
-LDCONFIG?= /usr/bin/true
-LN?= /sbin/ln
-LS?= /sbin/ls
-M4?= /sbin/m4
-MAIL_CMD?= /usr/sbin/mailx
-MKDIR?= /sbin/mkdir -p
-MTREE?= ${LOCALBASE}/sbin/mtree
-MV?= /sbin/mv
-NICE?= /sbin/nice
-.if exists(${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}patch)
-PATCH?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}patch
-_OPSYS_GPATCH_REQD= YES
-.else
-PATCHV!= /usr/sbin/patch -v 2>&1 | ${CUT} -d" " -f3
-. if ${PATCHV} == "2.1"
-_OPSYS_GPATCH_REQD= YES
-PATCH= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}patch
-. else
-PATCH?= /usr/sbin/patch -b
-. endif # PATCHV
-.endif
-PAX?= ${LOCALBASE}/bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /sbin/pwd # needs to print physical path
-RM?= /sbin/rm
-RMDIR?= /usr/bin/rmdir
-SED?= /sbin/sed
-SETENV?= /sbin/env
-SH?= /bin/ksh
-SHLOCK= ${LOCALBASE}/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-TAR?= ${LOCALBASE}/bin/tar
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /sbin/wc
-XARGS?= /sbin/xargs
-.endif
-
-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
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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.mk b/mk/platform/Interix.mk
deleted file mode 100644
index 114c0867a94..00000000000
--- a/mk/platform/Interix.mk
+++ /dev/null
@@ -1,210 +0,0 @@
-# $NetBSD: Interix.mk,v 1.13.2.4 2005/05/17 18:29:46 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
-# perl58 *
-# python22 *
-# python23 *
-# python24 *
-# ruby16 0x50000000 0x6fffffff 0x00040000 2048
-# (main lib) 0x48000000
-# ruby18 0x50000000 0x6fffffff 0x00040000 2048
-# (main lib) 0x48000000
-# zsh *
-
-BULK_PREREQ+= converters/libiconv devel/gettext-lib pkgtools/pkg_install-info
-BULK_PREREQ+= lang/gawk sysutils/coreutils
-
-# "catinstall" not yet supported as there's no shipped [gn]roff
-MANINSTALL= maninstall
-MAKE_FLAGS+= MKCATPAGES=no NOLINT=1
-
-ECHO_N?= /bin/printf %s # does not support "echo -n"
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-RSH?= /usr/bin/rsh
-SU?= /bin/su
-TYPE?= type # Shell builtin
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-
-# Use some pkgsrc versions as "better" replacements, if installed
-.if exists(${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}awk)
-AWK?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}awk
-.endif
-.if exists(${LOCALBASE}/bin/gtar)
-GTAR?= ${LOCALBASE}/bin/gtar
-.endif
-
-AWK?= /usr/contrib/bin/gawk
-BASENAME?= /bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /bin/chown
-CHGRP?= /bin/chgrp
-CMP?= /bin/cmp
-CP?= /bin/cp
-CUT?= /bin/cut
-DATE?= /bin/date
-DIRNAME?= /bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /bin/egrep
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FGREP?= /bin/fgrep
-FILE_CMD?= /bin/file
-FIND?= /bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /bin/grep
-GTAR?= ${LOCALBASE}/bin/tar
-GUNZIP_CMD?= /usr/contrib/bin/gunzip -f
-GZCAT?= /usr/contrib/bin/gunzip -c
-GZIP_CMD?= /usr/contrib/bin/gzip -nf ${GZIP}
-HEAD?= /bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /bin/id
-IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-LDCONFIG?= /bin/true
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /bin/m4
-MAIL_CMD?= /bin/mail
-MKDIR?= /bin/mkdir -p
-MTREE?= ${LOCALBASE}/sbin/mtree
-MV?= /bin/mv
-NICE?= /bin/nice
-PATCH?= ${LOCALBASE}/bin/gpatch
-PAX?= ${LOCALBASE}/bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= ${LOCALBASE}/bin/nbsed
-SETENV?= /bin/env
-SH?= /bin/sh
-SHLOCK= ${LOCALBASE}/bin/shlock
-SORT?= /bin/sort
-TAIL?= /bin/tail
-TAR?= ${LOCALBASE}/bin/tar
-TEE?= /bin/tee
-TEST?= /bin/test # shell builtin has bugs with symlinks
-TOUCH?= /bin/touch
-TR?= /bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /bin/tsort
-WC?= /bin/wc
-XARGS?= /bin/xargs
-.endif
-
-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
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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= 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}
-
-# 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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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.mk b/mk/platform/Linux.mk
deleted file mode 100644
index 4a84ff6e9f9..00000000000
--- a/mk/platform/Linux.mk
+++ /dev/null
@@ -1,213 +0,0 @@
-# $NetBSD: Linux.mk,v 1.5.2.5 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the Linux operating system.
-
-ECHO_N?= ${ECHO} -n
-IMAKEOPTS+= -DBuildHtmlManPages=NO
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /bin/su
-TYPE?= type # Shell builtin
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-.if exists(/bin/basename)
-BASENAME?= /bin/basename
-.elif exists(/usr/bin/basename)
-BASENAME?= /usr/bin/basename
-.endif
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /bin/chown
-CHGRP?= /bin/chgrp
-CMP?= cmp
-CP?= /bin/cp
-.if exists(/bin/cut)
-CUT?= /bin/cut
-.else
-CUT?= /usr/bin/cut
-.endif
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-.if exists(/bin/egrep)
-EGREP?= /bin/egrep
-.elif exists(/usr/bin/egrep)
-EGREP?= /usr/bin/egrep
-.endif
-EXPR?= /usr/bin/expr
-FALSE?= false # Shell builtin
-.if exists(/bin/fgrep)
-FGREP?= /bin/fgrep
-.elif exists(/usr/bin/fgrep)
-FGREP?= /usr/bin/fgrep
-.endif
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-.if exists(/usr/bin/make)
-GMAKE?= /usr/bin/make
-_TOOLS_OPSYS_HAS_GNU.make+= ${MACHINE_PLATFORM}
-.else
-GMAKE?= ${LOCALBASE}/bin/gmake
-.endif
-.if exists(/bin/grep)
-GREP?= /bin/grep
-.elif exists(/usr/bin/grep)
-GREP?= /usr/bin/grep
-.endif
-GTAR?= /bin/tar
-.if exists(/usr/bin/gunzip)
-GUNZIP_CMD?= /usr/bin/gunzip -f
-.else
-GUNZIP_CMD?= /bin/gunzip -f
-.endif
-.if exists(/usr/bin/gzip)
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-.else
-GZIP_CMD?= /bin/gzip -nf ${GZIP}
-.endif
-GZCAT?= /bin/zcat
-.if exists(/bin/head)
-HEAD?= /bin/head
-.else
-HEAD?= /usr/bin/head
-.endif
-HOSTNAME_CMD?= /bin/hostname
-.if exists(/bin/id)
-ID?= /bin/id
-.else
-ID?= /usr/bin/id
-.endif
-IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-LDCONFIG?= /sbin/ldconfig
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-.if exists(/bin/mail)
-MAIL_CMD?= /bin/mail # RH, Mandrake
-.else
-MAIL_CMD?= /usr/bin/mail # Debian, Slackware, SuSE
-.endif
-MKDIR?= /bin/mkdir -p
-MTREE?= ${LOCALBASE}/sbin/mtree
-MV?= /bin/mv
-.if exists(/bin/nice)
-NICE?= /bin/nice
-.else
-NICE?= /usr/bin/nice
-.endif
-PATCH?= /usr/bin/patch
-PAX?= ${LOCALBASE}/bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-.if exists(/bin/sed)
-SED?= /bin/sed
-.elif exists(/usr/bin/sed)
-SED?= /usr/bin/sed
-.endif
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SHLOCK= ${LOCALBASE}/bin/shlock
-.if exists(/bin/sort)
-SORT?= /bin/sort
-.else
-SORT?= /usr/bin/sort
-.endif
-TAIL?= /usr/bin/tail
-TAR?= ${LOCALBASE}/bin/tar
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-.if exists(/bin/touch)
-TOUCH?= /bin/touch
-.else
-TOUCH?= /usr/bin/touch
-.endif
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs -r
-.endif
-
-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}
-
-_DO_SHLIB_CHECKS= no # on installation, fixup PLIST for shared libs
-_IMAKE_TOOLS= gmake # extra tools required when we use imake
-_IMAKE_MAKE= ${GMAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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/NetBSD.mk b/mk/platform/NetBSD.mk
deleted file mode 100644
index d6eac49cab8..00000000000
--- a/mk/platform/NetBSD.mk
+++ /dev/null
@@ -1,216 +0,0 @@
-# $NetBSD: NetBSD.mk,v 1.5.2.3 2005/05/17 18:29:46 tv 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
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /usr/sbin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /usr/bin/egrep
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FGREP?= /usr/bin/fgrep
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /usr/bin/grep
-.if exists(/bin/tar)
-GTAR?= /bin/tar
-.else
-GTAR?= /usr/bin/tar
-.endif
-GUNZIP_CMD?= /usr/bin/gunzip -f
-GZCAT?= /usr/bin/gzcat
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-.if exists(/sbin/ldconfig)
-LDCONFIG?= /sbin/ldconfig
-.else
-LDCONFIG?= true
-.endif
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mail
-MKDIR?= /bin/mkdir -p
-MTREE?= /usr/sbin/mtree
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= /usr/bin/patch
-PAX?= /bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= /usr/bin/sed
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SHLOCK= /usr/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-.if exists(/bin/tar)
-TAR?= /bin/tar
-.else
-TAR?= /usr/bin/tar
-.endif
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.endif
-
-.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= 1
-IMAKE_LIBMAN_SUFFIX= 3
-IMAKE_KERNMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-IMAKE_FILEMAN_SUFFIX= 5
-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
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-GAMEOWN= games
-GAMEGRP= games
-GAMEMODE= 2555
-.endif
diff --git a/mk/platform/OSF1.mk b/mk/platform/OSF1.mk
deleted file mode 100644
index 6766857658a..00000000000
--- a/mk/platform/OSF1.mk
+++ /dev/null
@@ -1,149 +0,0 @@
-# $NetBSD: OSF1.mk,v 1.1.2.3 2005/05/17 18:29:46 tv 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
-PKGLOCALEDIR= share
-PS?= /bin/ps
-STRIP?= /usr/bin/strip
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /bin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= /usr/bin/echo
-EGREP?= /usr/bin/grep -E
-EXPR?= /bin/expr
-FALSE?= false # Shell builtin
-FGREP?= /usr/bin/grep -F
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /usr/bin/grep
-.if exists(${LOCALBASE}/bin/gtar)
-GTAR?= ${LOCALBASE}/bin/gtar
-.else
-GTAR?=/usr/bin/tar
-.endif
-GUNZIP_CMD?= /usr/bin/gunzip -f
-GZCAT?= /usr/bin/gzcat
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-INSTALL= ${LOCALBASE}/bin/install-sh
-LDCONFIG?= ${TRUE}
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mailx
-MKDIR?= /bin/mkdir -p
-MTREE?= ${LOCALBASE}/sbin/mtree
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= ${LOCALBASE}/bin/gpatch
-PAX?= ${LOCALBASE}/bin/pax
-.if exists(${LOCALBASE}/bin/perl)
-PERL5?= ${LOCALBASE}/bin/perl
-.else
-PERL5?= /usr/bin/perl
-.endif
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= ${LOCALBASE}/bin/nbsed
-SETENV?= /usr/bin/env
-SH?= /bin/ksh # recommendend on Tru64
-#SHLOCK= ${LOCALBASE}/bin/shlock # need to make this work
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-TAR?= /usr/bin/tar
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.endif
-
-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= 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= 1
-
-_DO_SHLIB_CHECKS= yes # fixup PLIST
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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/OpenBSD.mk b/mk/platform/OpenBSD.mk
deleted file mode 100644
index 3d6cbc6b036..00000000000
--- a/mk/platform/OpenBSD.mk
+++ /dev/null
@@ -1,180 +0,0 @@
-# $NetBSD: OpenBSD.mk,v 1.7.2.4 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the OpenBSD operating system.
-
-ECHO_N?= ${ECHO} -n
-PKGLOCALEDIR?= share
-PS?= /bin/ps
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= type # Shell builtin
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/awk
-BASENAME?= /usr/bin/basename
-CAT?= /bin/cat
-CHMOD?= /bin/chmod
-CHOWN?= /usr/sbin/chown
-CHGRP?= /bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /bin/cp
-CUT?= /usr/bin/cut
-DATE?= /bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= echo # Shell builtin
-EGREP?= /usr/bin/egrep
-EXPR?= /bin/expr
-FGREP?= /usr/bin/fgrep
-FALSE?= false # Shell builtin
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /usr/bin/grep
-.if exists(/bin/tar)
-GTAR?= /bin/tar
-.else
-GTAR?= /usr/bin/tar
-.endif
-GUNZIP_CMD?= /usr/bin/gunzip -f
-GZCAT?= /usr/bin/gzcat
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/bin/id
-LDCONFIG?= /sbin/ldconfig
-LN?= /bin/ln
-LS?= /bin/ls
-M4?= /usr/bin/m4
-MAIL_CMD?= /usr/bin/mail
-MKDIR?= /bin/mkdir -p
-MTREE?= /usr/sbin/mtree
-MV?= /bin/mv
-NICE?= /usr/bin/nice
-PATCH?= /usr/bin/patch
-PAX?= ${LOCALBASE}/bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /bin/rm
-RMDIR?= /bin/rmdir
-SED?= /usr/bin/sed
-SETENV?= /usr/bin/env
-SH?= /bin/sh
-SHLOCK= ${LOCALBASE}/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-.if exists(/bin/tar)
-TAR?= /bin/tar
-.else
-TAR?= /usr/bin/tar
-.endif
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= true # Shell builtin
-TSORT?= /usr/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.endif
-
-.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_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 # fixup PLIST for shared libs/run ldconfig
-_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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.mk b/mk/platform/SunOS.mk
deleted file mode 100644
index 16afffac362..00000000000
--- a/mk/platform/SunOS.mk
+++ /dev/null
@@ -1,203 +0,0 @@
-# $NetBSD: SunOS.mk,v 1.7.2.3 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the SunOS/Solaris operating system.
-
-ECHO_N?= ${ECHO} -n
-PKGLOCALEDIR?= lib
-PS?= /bin/ps
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= /usr/bin/type
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/nawk
-BASENAME?= /usr/bin/basename
-CAT?= /usr/bin/cat
-CHMOD?= /usr/bin/chmod
-CHOWN?= /usr/bin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= cmp
-CP?= /usr/bin/cp
-CUT?= /usr/bin/cut
-DATE?= /usr/xpg4/bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= /usr/ucb/echo
-EGREP?= /usr/xpg4/bin/grep -E
-EXPR?= /usr/xpg4/bin/expr
-FALSE?= /usr/bin/false
-FGREP?= /usr/xpg4/bin/fgrep
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /usr/xpg4/bin/grep
-.if exists(${LOCALBASE}/bin/gtar)
-GTAR?= ${LOCALBASE}/bin/gtar
-.else
-GTAR?= ${LOCALBASE}/bin/tar
-.endif
-.if exists(${LOCALBASE}/bin/gzip)
-GUNZIP_CMD?= ${LOCALBASE}/bin/gunzip -f
-GZCAT?= ${LOCALBASE}/bin/zcat
-GZIP_CMD?= ${LOCALBASE}/bin/gzip -nf ${GZIP}
-.elif exists(/usr/bin/gzip)
-GUNZIP_CMD?= /usr/bin/gzip -df
-GZCAT?= /usr/bin/gzip -cd
-GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
-.endif
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /bin/hostname
-ID?= /usr/xpg4/bin/id
-IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-LDCONFIG?= /usr/bin/true
-LN?= /usr/bin/ln
-LS?= /usr/bin/ls
-M4?= /usr/ccs/bin/m4
-MAIL_CMD?= /usr/bin/mailx
-MKDIR?= /usr/bin/mkdir -p
-MTREE?= ${LOCALBASE}/sbin/mtree
-MV?= /usr/bin/mv
-NICE?= /usr/xpg4/bin/nice
-.if exists(/usr/bin/gpatch)
-PATCH?= /usr/bin/gpatch
-.else
-PATCH?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}patch
-.endif
-PAX?= ${LOCALBASE}/bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /bin/pwd # needs to print physical path
-RM?= /usr/bin/rm
-RMDIR?= /usr/bin/rmdir
-.if exists(${LOCALBASE}/bin/nbsed)
-SED?= ${LOCALBASE}/bin/nbsed
-.else
-SED?= /usr/xpg4/bin/sed
-.endif
-SETENV?= /usr/bin/env
-SH?= /bin/ksh
-SHLOCK= ${LOCALBASE}/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/xpg4/bin/tail
-TAR?= ${LOCALBASE}/bin/tar
-TEE?= /usr/bin/tee
-TEST?= test
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= /usr/bin/true
-TSORT?= /usr/ccs/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.endif
-
-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
-IMAKE_MAN_SOURCE_PATH= share/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 # fixup PLIST for shared libs
-_IMAKE_MAKE= /usr/ccs/bin/make # program which gets invoked by imake
-.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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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.mk b/mk/platform/UnixWare.mk
deleted file mode 100644
index 1964ec9ddc8..00000000000
--- a/mk/platform/UnixWare.mk
+++ /dev/null
@@ -1,171 +0,0 @@
-# $NetBSD: UnixWare.mk,v 1.4.2.4 2005/05/17 18:29:46 tv Exp $
-#
-# Variable definitions for the UnixWare 7 operating system.
-
-ECHO_N?= ${ECHO} -n
-PKGLOCALEDIR?= lib
-PS?= /usr/bin/ps
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
-SU?= /usr/bin/su
-TYPE?= /usr/bin/type
-
-.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
-AWK?= /usr/bin/nawk
-BASENAME?= /usr/bin/basename
-CAT?= /usr/bin/cat
-CHMOD?= /usr/bin/chmod
-CHOWN?= /usr/bin/chown
-CHGRP?= /usr/bin/chgrp
-CMP?= /usr/bin/cmp
-CP?= /usr/bin/cp
-CUT?= /usr/bin/cut
-DATE?= /usr/bin/date
-DIRNAME?= /usr/bin/dirname
-ECHO?= /usr/ucb/echo
-EGREP?= /usr/bin/grep -E
-EXPR?= /usr/bin/expr
-FALSE?= /usr/bin/false
-FGREP?= /usr/bin/grep -F
-FILE_CMD?= /usr/bin/file
-FIND?= /usr/bin/find
-GMAKE?= ${LOCALBASE}/bin/gmake
-GREP?= /usr/bin/grep
-.if exists(${LOCALBASE}/bin/gtar)
-GTAR?= ${LOCALBASE}/bin/gtar
-.else
-GTAR?= ${LOCALBASE}/bin/tar
-.endif
-.if exists(${LOCALBASE}/bin/gzip)
-GUNZIP_CMD?= ${LOCALBASE}/bin/gunzip -f
-GZCAT?= ${LOCALBASE}/bin/zcat
-GZIP_CMD?= ${LOCALBASE}/bin/gzip -nf ${GZIP}
-.elif exists(/usr/local/bin/gzip)
-GUNZIP_CMD?= /usr/local/bin/gzip -df
-GZCAT?= /usr/local/bin/gzip -cd
-GZIP_CMD?= /usr/local/bin/gzip -nf ${GZIP}
-.endif
-HEAD?= /usr/bin/head
-HOSTNAME_CMD?= /usr/bin/hostname
-ID?= /usr/bin/id
-IMAKE?= # XXX only available in the SDK? what about xmkmf?
-LDCONFIG?= /usr/bin/true
-LN?= /usr/bin/ln
-LS?= /usr/bin/ls
-M4?= /usr/ccs/bin/m4
-MAIL_CMD?= /usr/bin/mailx
-MKDIR?= ${LOCALBASE}/sbin/mkdir-sh -p
-MTREE?= ${LOCALBASE}/sbin/mtree
-MV?= /usr/bin/mv
-NICE?= /usr/bin/nice
-PATCH?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}patch
-PAX?= ${LOCALBASE}/bin/pax
-PERL5?= ${LOCALBASE}/bin/perl
-PWD_CMD?= /usr/bin/pwd # needs to print physical path
-RM?= /usr/bin/rm
-RMDIR?= /usr/bin/rmdir
-.if exists(${LOCALBASE}/bin/nbsed)
-SED?= ${LOCALBASE}/bin/nbsed
-.else
-SED?= /usr/bin/sed
-.endif
-SETENV?= /usr/bin/env
-SH?= /usr/bin/ksh
-SHLOCK= ${LOCALBASE}/bin/shlock
-SORT?= /usr/bin/sort
-TAIL?= /usr/bin/tail
-TAR?= ${LOCALBASE}/bin/tar
-TEE?= /usr/bin/tee
-TEST?= test # Shell builtin
-TOUCH?= /usr/bin/touch
-TR?= /usr/bin/tr
-TRUE?= /usr/bin/true
-TSORT?= /usr/ccs/bin/tsort
-WC?= /usr/bin/wc
-XARGS?= /usr/bin/xargs
-.endif
-
-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= 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 # fixup PLIST for shared libs
-_IMAKE_MAKE= /usr/ccs/bin/make # program which gets invoked by imake
-.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/a.out # 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 bsd.pkg.defaults.mk).
-# Set the group and mode to meaningful values in that case (defaults to
-# BINOWN, BINGRP and BINMODE as per bsd.pkg.defaults.mk).
-# 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/plist.mk b/mk/plist.mk
deleted file mode 100644
index 08256e94123..00000000000
--- a/mk/plist.mk
+++ /dev/null
@@ -1,659 +0,0 @@
-# $NetBSD: plist.mk,v 1.1.2.3 2005/02/25 14:46:51 tv Exp $
-#
-# PLIST generation logic, invoked from the "install" target in bsd.pkg.mk.
-# This file should only be ".include"d from bsd.pkg.mk.
-#
-# The following variables should be set before this is included:
-#
-## _PLIST_IGNORE_FILES (optional) - files to filter from final PLIST
-## GENERATE_PLIST (optional) - commands to generate static PLIST fragments
-## PKG_INSTALLATION_TYPE - "pkgviews" or "overwrite"
-## PLIST - filename for final PLIST
-## PLIST_SRC - source files for final PLIST
-## PLIST_SUBST - substitutions that should be made when transforming
-## PLIST_TYPE - "dynamic" or "static"
-## SHLIB_HANDLING - "YES" or "NO"
-## USE_LANGUAGES - if non-empty, implies shlib handling
-#
-# Targets defined:
-#
-## ${PLIST}
-## do-shlib-handling (internal only)
-## plist (convenience form of ${PLIST})
-## print-PLIST (user only)
-## show-shlib-type (user only)
-#
-
-.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}
-
-PKG_ARGS_INSTALL+= -U # don't update the pkgdb.byfile.db
-PKG_ARGS_BINPKG+= -E # create an empty views file in the binpkg
-.endif # PKG_INSTALLATION_TYPE
-
-BUILD_DEFS_FIXED+= _PLIST_IGNORE_FILES
-
-# Macro to print out the actual shared library type.
-.if !empty(USE_LANGUAGES)
-. if ${_OPSYS_SHLIB_TYPE} == "ELF/a.out"
-. if (${OBJECT_FMT} == "ELF" || ${OBJECT_FMT} == "a.out")
-_GET_SHLIB_TYPE= ${ECHO} '${OBJECT_FMT}' # speedup if already known
-. else
-_GET_SHLIB_TYPE=\
- @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*|*dynamically*) \
- sotype="a.out" ;; \
- esac; \
- fi; \
- ${ECHO} "$$sotype"; \
- ${RM} -f a.$$$$.c a.$$$$.out
-. endif
-. else
-_GET_SHLIB_TYPE= ${ECHO} '${_OPSYS_SHLIB_TYPE}'
-. endif
-.endif
-_GET_SHLIB_TYPE?= ${ECHO} none
-
-# Not to be used by pkgsrc; available for human inspection only.
-show-shlib-type:
- @${_GET_SHLIB_TYPE}
-
-# 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++; \
- } \
- } \
- }
-
-# XXX tv: should somehow be a variable, not a recursive target
-.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=`${_GET_SHLIB_TYPE}`; \
- if [ "${SHLIB_PLIST_MODE}" = "0" ]; then \
- ${ECHO_MSG} "${_PKGSRC_IN}> [Automatic $$shlib_type shared object handling]"; \
- fi; \
- case "$$shlib_type" in \
- ELF) ;; \
- "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 ; \
- ;; \
- "aixlib") \
- ${AWK} '${_AIXLIB_AWK}' <${PLIST} >${PLIST}.tmp && \
- ${MV} ${PLIST}.tmp ${PLIST}; \
- ;; \
- "*") \
- 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"
-
-#
-# print-PLIST: 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"); \
-}
-
-_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
-print-PLIST:
- ${_PKG_SILENT}${_PKG_DEBUG}\
- ${ECHO} '@comment $$'NetBSD'$$'
- ${_PKG_SILENT}${_PKG_DEBUG}\
- shlib_type=`${_GET_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}/\\\\./", ""); } \
- ${_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; }'
-
-#
-# generate ${PLIST} from ${PLIST_SRC} by:
-# - substituting for PLIST_SUBST entries
-# - fixing list of man-pages according to MANZ, MANINSTALL.
-# - adding symlinks for shared libs (ELF) or ldconfig calls (a.out).
-#
-
-# 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)\.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)$$/ { \
- $$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
-# 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) && ${_PREFORMATTED_MAN_DIR} == "man"
-_PLIST_AWK_SCRIPT+= ${_PLIST_AWK_IMAKE_MAN}
-.endif
-# Add '.gz' suffixes on man entries if needed
-.if defined(MANZ)
-_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
-
-.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
diff --git a/mk/pthread.buildlink3.mk b/mk/pthread.buildlink3.mk
deleted file mode 100644
index c4100a1ca97..00000000000
--- a/mk/pthread.buildlink3.mk
+++ /dev/null
@@ -1,194 +0,0 @@
-# $NetBSD: pthread.buildlink3.mk,v 1.17.2.3 2005/05/17 18:29:44 tv Exp $
-#
-# The pthreads strategy for pkgsrc is to "bless" a particular pthread
-# package as the Official Pthread Replacement (OPR). A package that uses
-# pthreads may do one of the following:
-#
-# (1) Simply include pthread.buildlink3.mk. This will make the package
-# use the native pthread library if it's available, or else the OPR
-# package. The value of PTHREAD_TYPE may be checked to be either
-# "native", or the name of the OPR package, or "none", e.g.
-#
-# #
-# # package Makefile stuff...
-# #
-# .include "../../mk/pthread.buildlink3.mk"
-#
-# .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
-# CONFIGURE_ARGS+= --without-pthreads
-# .endif
-#
-# .include "../../mk/bsd.pkg.mk"
-#
-# Note that it's only safe to check and use the value of PTHREAD_TYPE
-# after all other buildlink3.mk files have been included.
-#
-# (2) Add "native" to PTHREAD_OPTS prior to including
-# pthread.buildlink3.mk. This is like case (1), but we only check for
-# the native pthread library, e.g.,
-#
-# PTHREAD_OPTS+= native
-# #
-# # package Makefile stuff...
-# #
-# .include "../../mk/pthread.buildlink3.mk"
-#
-# .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
-# CONFIGURE_ARGS+= --without-pthreads
-# .endif
-#
-# .include "../../mk/bsd.pkg.mk"
-#
-# (3) Add "require" to PTHREAD_OPTS prior to including
-# pthread.buildlink3.mk. This will make the package use the native
-# pthread library or else use the OPR package, and will otherwise set
-# PKG_SKIP_REASON if neither can be used, e.g.,
-#
-# PTHREAD_OPTS+= require
-# #
-# # package Makefile stuff...
-# #
-# .include "../../mk/pthread.buildlink3.mk"
-# .include "../../mk/bsd.pkg.mk"
-#
-# (4) Add both "require" and "native" to PTHREAD_OPTS prior to including
-# pthread.buildlink3.mk. This is like case (3), but we only check for
-# the native pthread library, e.g.,
-#
-# PTHREAD_OPTS+= require native
-# #
-# # more package Makefile stuff...
-# #
-# .include "../../mk/pthread.buildlink3.mk"
-# .include "../../mk/bsd.pkg.mk"
-#
-# The case where a package must use either the native pthread library or
-# some pthread package aside from the OPR is a special case of (2), e.g.,
-# if the required pthread package is "ptl2", then:
-#
-# 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"
-#
-# A package Makefile may add the word "optional" to PTHREAD_OPTS, which
-# will override the effects of any instance of the word "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 only only www/mozilla, which uses its own
-# threading library if native pthreads is unavailable, despite that it
-# uses GTK+, which _does_ need pthreads.
-#
-###########################################################################
-#
-# PTHREAD_OPTS represents whether this package requires pthreads, and also
-# whether it needs to be native. It may include the word "require"
-# to denote that a pthreads implementation is required, and may also
-# include the word "native" to denote that only native pthreads are
-# acceptable.
-#
-# PTHREAD_AUTO_VARS is "yes" or "no" for whether the values of the variables
-# PTHREAD_{CFLAGS,CPPFLAGS,LDFLAGS,LIBS} should be automatically added
-# to their respective variables. Defaults to "no".
-#
-# _PKG_PTHREAD is the fall-back package pthread implementation use by
-# pthread.buildlink3.mk.
-#
-# _PKG_PTHREAD_COMPAT_PATTERNS matches the ONLY_FOR_PLATFORMS from the
-# Makefile for ${_PKG_PTHREAD}. It's used to see if ${_PKG_PTHREADS}
-# can actually be used to replace a native pthreads.
-#
-PTHREAD_BUILDLINK3_MK:= ${PTHREAD_BUILDLINK3_MK}+
-
-_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= *-*-*
-
-.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 4b9102572d7..00000000000
--- a/mk/pthread.builtin.mk
+++ /dev/null
@@ -1,78 +0,0 @@
-# $NetBSD: pthread.builtin.mk,v 1.2.2.3 2005/01/24 18:40:01 tv Exp $
-
-.for _lib_ in pthread c_r rt
-. if !defined(_BLNK_LIB_FOUND.${_lib_})
-_BLNK_LIB_FOUND.${_lib_}!= \
- if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" != "/usr/lib/lib${_lib_}.*"; then \
- ${ECHO} "yes"; \
- elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" != "/lib/lib${_lib_}.*"; then \
- ${ECHO} "yes"; \
- else \
- ${ECHO} "no"; \
- fi
-BUILDLINK_VARS+= _BLNK_LIB_FOUND.${_lib_}
-. endif
-.endfor
-.undef _lib_
-
-.if !defined(IS_BUILTIN.pthread)
-IS_BUILTIN.pthread= no
-. if exists(/usr/include/pthread.h)
-IS_BUILTIN.pthread= yes
-. endif
-BUILDLINK_VARS+= IS_BUILTIN.pthread
-.endif # IS_BUILTIN.pthread
-
-# 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 !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
-USE_BUILTIN.pthread= ${IS_BUILTIN.pthread}
-.else
-USE_BUILTIN.pthread= no
-.endif
-
-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(_BLNK_LIB_FOUND.pthread:M[yY][eE][sS])
-BUILDLINK_LIBS.pthread= -lpthread
-. if !empty(_BLNK_LIB_FOUND.rt:M[yY][eE][sS])
-BUILDLINK_LIBS.pthread+= -lrt
-. endif
-. elif !empty(_BLNK_LIB_FOUND.c_r:M[yY][eE][sS])
-BUILDLINK_LIBS.pthread= -lc_r
-. else
-BUILDLINK_LIBS.pthread= # empty
-. endif
-.endif # USE_BUILTIN.pthread
-
-.endif # CHECK_BUILTIN.pthread
diff --git a/mk/reduce-depends.mk b/mk/reduce-depends.mk
deleted file mode 100644
index 3863be5dd9d..00000000000
--- a/mk/reduce-depends.mk
+++ /dev/null
@@ -1,119 +0,0 @@
-# $NetBSD: reduce-depends.mk,v 1.2.2.1 2004/11/22 22:48:05 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 takes the dependencies listed in ${DEPENDS} and
-# creates a smaller set of dependencies in ${REDUCED_DEPENDS} that imply
-# the same dependency relationships as ${DEPENDS}.
-
-# Create temporary variable for the reduction work.
-_DEPENDS:= ${DEPENDS}
-
-# _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}
-. if !defined(_DEPENDS_PKGPATH.${_dep_:C/^[^:]*://:C/:.*$//})
-_DEPENDS_PKGPATH.${_dep_:C/^[^:]*://:C/:.*$//}!= \
- cd ${_dep_:C/^[^:]*://:C/:.*$//} && ${PWD_CMD}
-. endif
-_DEPENDS_PKGPATH.${_DEPENDS_PKGPATH.${_dep_:C/^[^:]*://:C/:.*$//}}?= \
- ${_dep_:C/^[^:]*://:C/:.*$//}
-_DEPENDS.${_DEPENDS_PKGPATH.${_dep_:C/^[^:]*://:C/:.*$//}}+= \
- ${_dep_:C/:.*$//}
-. if empty(_DEPENDS_PKGPATHS:M${_DEPENDS_PKGPATH.${_dep_:C/^[^:]*://:C/:.*$//}})
-_DEPENDS_PKGPATHS+= ${_DEPENDS_PKGPATH.${_dep_:C/^[^:]*://:C/:.*$//}}
-. endif
-.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
-
-DEPENDS:= ${REDUCED_DEPENDS}
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 a653f592511..00000000000
--- a/mk/scripts/genreadme.awk
+++ /dev/null
@@ -1,770 +0,0 @@
-#!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.12 2004/07/06 22:49:18 wiz 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 {
- do_pkg_readme=1;
-# set to 1 to use "README-new.html" as the name
- use_readme_new=0;
- printf("Reading database file\n");
- fflush("/dev/stdout");
-}
-
-#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;
- }
- 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 {
- if (use_readme_new) {
- readme_name = "README-new.html";
- }
- else {
- readme_name = "README.html";
- }
- readme = TMPDIR "/" readme_name;
-
- if ( dependsfile == "" ) dependsfile = "/dev/stdout";
- if ( builddependsfile == "" ) builddependsfile = "/dev/stdout";
-
- printf("Flattening dependencies\n");
- fflush("/dev/stdout");
- 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
- delete alldepends;
- printf("Flattening build dependencies\n");
- fflush("/dev/stdout");
- 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);
- fflush("/dev/stdout");
- 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);
- fflush("/dev/stdout");
-
- if (SINGLEPKG != "" ) {
- printf("Only creating README for %s\n",SINGLEPKG);
- delete topdepends;
- topdepends[SINGLEPKG] = "yes";
- }
-
- printf("Generating README.html files\n");
- fflush("/dev/stdout");
- 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);
- }
- fflush("/dev/stdout");
- printf("") > readme;
- htmldeps = "";
- delete dpkgs;
- split(alldepends[toppkg], dpkgs);
- i = 1;
- while(i in dpkgs){
- if (debug) {
- printf("\tdpkg=%s, pat2dir[%s] = %s\n",
- dpkgs[i],
- dpkgs[i],
- pat2dir[dpkgs[i]]);
- }
- nm=dpkgs[i];
-
-# we need a zillion escapes here because we need to end up
-# with \\&lt; in 'htmldeps' so that when
-# we gsub htmldeps into the output file, we end up with &lt;
-
- 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);
- i = i + 1;
- }
- if ( htmldeps == "" ) {
- htmldeps = "<EM>none</EM>";
- }
- if (debug) printf("htmldeps = \"%s\"\n", htmldeps);
-
- 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 (MULTIARCH == "no"){
- cmd="ls -1 "PACKAGES "/" PKGREPOSITORYSUBDIR "/" wildcard[toppkg] PKG_SUFX " 2>/dev/null";
- if (debug) {
- printf("Checking for binary package with %s\n",
- cmd);
- }
- binpkgs = "";
- while((cmd | getline) > 0) {
- pkgfile = $0;
- gsub(/.*\//, "", pkgfile);
- pkgnm = pkgfile;
- gsub(/\.tgz$/, "", pkgnm);
- binpkgs = sprintf("%s\n<TR><TD>%s:<TD><a href=\"%s/%s\">%s</a><TD>(%s %s)",
- binpkgs,
- MACHINE_ARCH,
- PKG_URL,
- pkgfile,
- pkgnm,
- OPSYS,
- OS_VERSION);
- }
- close(cmd);
- }
- else {
- cmd = "ls -1 -d "PACKAGES"/[0-9].*/*/" PKGREPOSITORYSUBDIR "/" wildcard[toppkg] PKG_SUFX " 2>/dev/null";
- oldfs = FS;
- FS = "[/]";
- binpkgs = "";
- while((cmd | getline) > 0) {
- release = $(NF-3);
- arch = $(NF-2);
- pkg = $NF;
- pkgnm = pkg;
- gsub(PKG_SUFX "$", "", pkgnm)
- if (debug) {
- printf("%s:%s:%s (%s)\n",
- release,
- arch,
- pkg,
- pkgnm);
- }
- binpkgs = sprintf("%s\n<TR><TD>%s:<TD><a href=\"%s/%s/%s/%s/%s\">%s</a><TD>(%s-%s)",
- binpkgs, arch,
- PKG_URL, release,
- arch,
- PKGREPOSITORYSUBDIR,
- pkg, pkgnm,
- OPSYS, release);
- }
- FS = oldfs;
- close(cmd);
- }
-
-# sort the binary pkgs (XXX would be nice to implement in memory in awk)
- sfile = TMPDIR "/sorted";
- spipe = "sort > " sfile;
- printf("%s",binpkgs) | spipe;
- close(spipe);
- binpkgs = "";
- while((getline < sfile) > 0) {
- binpkgs = sprintf("%s\n%s", binpkgs, $0);
- }
- close(sfile);
-
- if (debug) printf("binary packages: \n%s\n\n",
- binpkgs);
-
- 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(/%%BUILD_DEPENDS%%/, ""htmldeps"");
- gsub(/%%RUN_DEPENDS%%/, ""rundeps"");
- gsub(/%%BIN_PKGS%%/, ""binpkgs"");
- gsub(/README.html/, readme_name);
- print >> 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 = "";
- 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]);
- 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);
- gsub(/%%SUBDIR%%/, pkgs);
- gsub(/README.html/, readme_name);
- print >> 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);
-}
-
-#
-# 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 = " if ! cmp -s "new" "old" ; then mv -f " 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";
- }
-
-# 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";
- }
-
-}
-
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 231cdb36ee1..00000000000
--- a/mk/scripts/mkreadme
+++ /dev/null
@@ -1,488 +0,0 @@
-#!/bin/sh
-# $NetBSD: mkreadme,v 1.4 2003/09/23 01:51:44 yyamano Exp $
-#
-# Script for README.html generation
-#
-# Copyright (c) 2002 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}
-BMAKE=${BMAKE:-make}
-AWK=${AWK:-/usr/bin/awk}
-EXPR=${EXPR:-expr}
-
-usage(){
- echo "$prog - Generates README.html files for a pkgsrc tree"
- echo "Usage: $prog [-c|--cdrom] [-C|--prune] [-d|--debug] [-f|--ftp] "
- echo " [-m|--multi-arch] [-p|--pkgsrc directory] "
- echo " [-P|--packages directory] [-r|--restart] "
- echo " [-s|--single-arch] [-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 " -m|--multi-arch Assumes a packages directory layout like:"
- echo " OS_VERSION/MACHINE_ARCH/ for example:"
- echo " 1.{5,6}/{alpha,i386,sparc,vax}"
- 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|--single-arch Assumes a single OS release and MACHINE_ARCH binary"
- echo " packages directory structure."
- 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
-#
-######################################################################
-
-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
- ;;
-
- # assume a OS_RELEASE/MACHINE_ARCH/ layout for the binary pkgs
- -m|--multi-arch)
- multiarch=yes
- shift
- ;;
-
- # 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
- ;;
-
- # assume a single directory structure layout for the binary pkgs
- -s|--single-arch)
- multiarch=no
- 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 configuration variables:"
-echo " "
-if [ -d ${PKGSRCDIR}/pkgtools/pkglint ]; then
- cd ${PKGSRCDIR}/pkgtools/pkglint
-
- for v in DISTDIR PACKAGES PKGREPOSITORYSUBDIR PKG_SUFX MACHINE_ARCH PKG_URL OPSYS OS_VERSION FTP_PKG_URL_HOST FTP_PKG_URL_DIR CDROM_PKG_URL_HOST CDROM_PKG_URL_DIR
- 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/pkglint 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
-
-######################################################################
-#
-# Decide in binary package directory layout
-#
-######################################################################
-
-
-# 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.
-#
-# This is the logic from bsd.pkg.mk, but I think I'd like to change it to
-# come from a command line switch
-
-if [ -z "$multiarch" -a -e ${PACKAGES} ]; then
- cd ${PACKAGES}
- case `pwd` in
- */pkgsrc/packages)
- multiarch=no
- ;;
-
- *)
- multiarch=yes
- ;;
- esac
-fi
-
-if [ "x$multiarch" = "xyes" ]; then
- echo "Will generate multi-release, multi-arch readme files"
-else
- echo "Will generate single-release, single-arch readme files"
-fi
-
-
-######################################################################
-#
-# Extract Database for All Packages (longest step)
-#
-######################################################################
-
-if [ "x$restart" = "xno" ] ; then
- echo " "
- echo "Extracting data. This could take a while"
- echo " "
- npkg=1
-
- # make sure we don't have an old database lying around
- rm -fr $DATABASEFILE
-
- cd ${PKGSRCDIR}
- list=`grep '^[[:space:]]*'SUBDIR */Makefile | 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
-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 \
- DISTDIR=$DISTDIR \
- MACHINE_ARCH=$MACHINE_ARCH \
- MULTIARCH=$multiarch \
- OPSYS=$OPSYS \
- OS_VERSION=$OS_VERSION \
- PACKAGES=$PACKAGES \
- PKG_SUFX=$PKG_SUFX \
- PKG_URL=$PKG_URL \
- PKGREPOSITORYSUBDIR=$PKGREPOSITORYSUBDIR \
- PKGSRCDIR=$PKGSRCDIR \
- 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 '^BUILD_DEFS.*=.*USE_INET6' */*/Makefile | sed 's;Makefile;;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 ] || ! cmp -s ${TMPDIR}/README-IPv6.html README-IPv6.html ; then
- mv -f ${TMPDIR}/README-IPv6.html README-IPv6.html
-else
- echo "README-IPv6.html is unchanged (no changes were needed)"
-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 1d8cb95ac40..00000000000
--- a/mk/scripts/shell-lib
+++ /dev/null
@@ -1,385 +0,0 @@
-# $NetBSD: shell-lib,v 1.2 2004/09/21 15:14: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 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
-}
diff --git a/mk/solaris-pam.builtin.mk b/mk/solaris-pam.builtin.mk
deleted file mode 100644
index 86ab3d32aca..00000000000
--- a/mk/solaris-pam.builtin.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# $NetBSD: solaris-pam.builtin.mk,v 1.2.2.2 2005/01/24 18:40:01 tv Exp $
-
-_SOLARIS_PAM_APPL_HEADERS= /usr/include/security/pam_appl.h
-_SOLARIS_PAM_IDENT= Copyright.*Sun Microsystems
-
-.if !defined(IS_BUILTIN.solaris-pam)
-IS_BUILTIN.solaris-pam= no
-. for _inc_ in ${_SOLARIS_PAM_APPL_HEADERS}
-. if !empty(IS_BUILTIN.solaris-pam:M[nN][oO]) && exists(${_inc_})
-IS_BUILTIN.solaris-pam!= \
- case ${_inc_} in \
- ${LOCALBASE}/*) \
- ${ECHO} "no"; \
- ;; \
- *) \
- if ${GREP} -q "${_SOLARIS_PAM_IDENT}" ${_inc_}; then \
- ${ECHO} "yes"; \
- else \
- ${ECHO} "no"; \
- fi; \
- ;; \
- esac
-. endif
-. endfor
-BUILDLINK_VARS+= IS_BUILTIN.solaris-pam
-.endif # IS_BUILTIN.solaris-pam
-
-USE_BUILTIN.solaris-pam?= ${IS_BUILTIN.solaris-pam}
diff --git a/mk/subst.mk b/mk/subst.mk
deleted file mode 100644
index f6e194e15b6..00000000000
--- a/mk/subst.mk
+++ /dev/null
@@ -1,99 +0,0 @@
-# $NetBSD: subst.mk,v 1.16.4.1 2005/05/17 18:29:44 tv Exp $
-#
-# This Makefile fragment implements a general text replacement facility.
-# Package makefiles define a ``class'', for each of which a paricular
-# 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, e.g. pre-configure,
-# post-build, etc.
-#
-# SUBST_MESSAGE.<class>
-# message to display, noting what is being substituted
-#
-# SUBST_FILES.<class>
-# files on which to run the substitution; these 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?= \
- ${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 $$file${_SUBST_BACKUP_SUFFIX}
-
-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}; \
- files="${SUBST_FILES.${_class_}}"; \
- case "$$files" in \
- "") ;; \
- *) for file in $${files}; do \
- if ${_SUBST_IS_TEXT_FILE}; then \
- ${MV} -f $$file $$file${_SUBST_BACKUP_SUFFIX} || exit 1; \
- ${CAT} $$file${_SUBST_BACKUP_SUFFIX} \
- | ${SUBST_FILTER_CMD.${_class_}} \
- > $$file; \
- if [ -x $$file${_SUBST_BACKUP_SUFFIX} ]; then \
- ${CHMOD} +x $$file; \
- fi; \
- if ${CMP} -s $$file${_SUBST_BACKUP_SUFFIX} $$file; then \
- ${MV} -f $$file${_SUBST_BACKUP_SUFFIX} $$file; \
- else \
- ${SUBST_POSTCMD.${_class_}}; \
- ${ECHO} $$file >> ${.TARGET}; \
- fi; \
- fi; \
- done ;; \
- esac
-.endfor
diff --git a/mk/texinfo.mk b/mk/texinfo.mk
deleted file mode 100644
index b6d97c2941f..00000000000
--- a/mk/texinfo.mk
+++ /dev/null
@@ -1,162 +0,0 @@
-# $NetBSD: texinfo.mk,v 1.24.10.2 2005/05/17 18:29:44 tv 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.mk b/mk/tools.mk
deleted file mode 100644
index dbbfc482fa0..00000000000
--- a/mk/tools.mk
+++ /dev/null
@@ -1,450 +0,0 @@
-# $NetBSD: tools.mk,v 1.46.2.7 2005/05/17 18:29:44 tv Exp $
-#
-# This Makefile creates a ${TOOLS_DIR} directory and populates the bin
-# subdir with tools that hide the ones outside of ${TOOLS_DIR}.
-
-.if !defined(TOOLS_MK)
-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
-
-# Create shell scripts in ${TOOLS_DIR}/bin that simply return an error
-# status for each of the GNU auto* tools, which should cause GNU configure
-# scripts to think that they can't be found.
-#
-AUTOMAKE_OVERRIDE?= yes
-_GNU_MISSING= ${.CURDIR}/../../mk/gnu-config/missing
-_HIDE_PROGS.autoconf= bin/autoconf bin/autoconf-2.13 \
- bin/autoheader bin/autoheader-2.13 \
- bin/autom4te \
- bin/autoreconf bin/autoreconf-2.13 \
- bin/autoscan bin/autoscan-2.13 \
- bin/autoupdate bin/autoupdate-2.13 \
- bin/ifnames bin/ifnames-2.13
-_HIDE_PROGS.automake= bin/aclocal bin/aclocal-1.4 \
- bin/aclocal-1.5 \
- bin/aclocal-1.6 \
- bin/aclocal-1.7 \
- bin/aclocal-1.8 \
- bin/aclocal-1.9 \
- bin/automake bin/automake-1.4 \
- bin/automake-1.5 \
- bin/automake-1.6 \
- bin/automake-1.7 \
- bin/automake-1.8 \
- bin/automake-1.9
-
-.if empty(AUTOMAKE_OVERRIDE:M[nN][oO])
-_CONFIGURE_PREREQ+= override-autotools
-.PHONY: override-autotools
-. for _autotool_ in autoconf automake
-. for _prog_ in ${_HIDE_PROGS.${_autotool_}}
-override-autotools: ${TOOLS_DIR}/${_prog_}
-${TOOLS_DIR}/${_prog_}: ${_GNU_MISSING}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ( ${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'exec ${_GNU_MISSING} ${_prog_:T:C/-[0-9].*$//}' \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-. endfor
-. endfor
-.endif # AUTOMAKE_OVERRIDE != NO
-
-# Create an install-info script that is a "no operation" command,
-# as registration of info files is handled by the INSTALL script.
-#
-CONFIGURE_ENV+= INSTALL_INFO="${TOOLS_DIR}/bin/install-info"
-MAKE_ENV+= INSTALL_INFO="${TOOLS_DIR}/bin/install-info"
-
-override-tools: ${TOOLS_DIR}/bin/install-info
-${TOOLS_DIR}/bin/install-info:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ( ${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-${_TOOLS_WRAP_LOG}}"'; \
- ${ECHO} '${ECHO} "==> No-op install-info $$*" >> $$wrapperlog' \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-
-# Create a makeinfo script that will invoke the right makeinfo
-# command if USE_MAKEINFO is 'yes' or will exit on error if not.
-#
-CONFIGURE_ENV+= MAKEINFO="${TOOLS_DIR}/bin/makeinfo"
-MAKE_ENV+= MAKEINFO="${TOOLS_DIR}/bin/makeinfo"
-
-override-tools: ${TOOLS_DIR}/bin/makeinfo
-.if empty(USE_MAKEINFO:M[nN][oO])
-${TOOLS_DIR}/bin/makeinfo:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ( ${ECHO} "#!${TOOLS_SHELL}"; \
- ${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-${_TOOLS_WRAP_LOG}}"'; \
- ${ECHO} '${ECHO} "${MAKEINFO} $$*" >> $$wrapperlog'; \
- ${ECHO} 'exec ${MAKEINFO} "$$@"' \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-.else # !USE_MAKEINFO
-${TOOLS_DIR}/bin/makeinfo: ${_GNU_MISSING}
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ( ${ECHO} "#!${TOOLS_SHELL}"; \
- ${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-${_TOOLS_WRAP_LOG}}"'; \
- ${ECHO} '${ECHO} "==> Error: makeinfo $$*" >> $$wrapperlog'; \
- ${ECHO} 'exit 1' \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-.endif # USE_MAKEINFO
-
-# Handle platforms with broken tools in the base system, e.g. sed, awk.
-#
-# Symlink the suitable versions of tools into ${TOOLS_DIR}/bin (if they
-# exist in the base system) and allow packages to force the use of
-# pkgsrc GNU tools when they are not present in the base system by
-# defining e.g. USE_GNU_TOOLS+="awk sed". Version numbers are not
-# considered.
-
-_TOOLS= awk grep lex m4 make patch sed yacc
-
-.if defined(_IGNORE_GNU_TOOL) && defined(USE_GNU_TOOLS)
-. for _tool_ in ${USE_GNU_TOOLS}
-. if !defined(_IGNORE_GNU_TOOL.${_tool_})
-_tools+= ${_tool_}
-. endif
-. endfor
-USE_GNU_TOOLS= ${_tools}
-.endif
-
-# These platforms already have GNU versions of the tools in the base
-# system, so no need to pull in the pkgsrc versions; we will use these
-# instead.
-#
-#_TOOLS_OPSYS_HAS_GNU.awk+= Interix-*-* # too old and buggy; use lang/gawk
-_TOOLS_OPSYS_HAS_GNU.awk+= FreeBSD-*-* Linux-*-* OpenBSD-*-*
-_TOOLS_OPSYS_HAS_GNU.awk+= NetBSD-1.[0-6]*-* DragonFly-*-*
-_TOOLS_OPSYS_HAS_GNU.grep+= Darwin-*-* FreeBSD-*-* Linux-*-*
-_TOOLS_OPSYS_HAS_GNU.grep+= NetBSD-*-* OpenBSD-*-* DragonFly-*-*
-_TOOLS_OPSYS_HAS_GNU.lex+= FreeBSD-*-* Linux-*-* NetBSD-*-*
-_TOOLS_OPSYS_HAS_GNU.lex+= OpenBSD-*-* DragonFly-*-*
-_TOOLS_OPSYS_HAS_GNU.m4+= # empty
-_TOOLS_OPSYS_HAS_GNU.make+= Darwin-*-*
-_TOOLS_OPSYS_HAS_GNU.patch+= Darwin-*-* FreeBSD-*-* Linux-*-*
-_TOOLS_OPSYS_HAS_GNU.patch+= NetBSD-*-* OpenBSD-*-* DragonFly-*-*
-_TOOLS_OPSYS_HAS_GNU.sed+= FreeBSD-*-* Linux-*-* NetBSD-*-* DragonFly-*-*
-_TOOLS_OPSYS_HAS_GNU.yacc+= Linux-*-*
-
-# These platforms have GNUish versions of the tools available in the base
-# system, which we already define as ${AWK}, ${SED}, etc. (refer to
-# mk/platform/*.mk for the definitions), so no need to pull in the pkgsrc
-# versions; we will use these instead.
-#
-_TOOLS_REPLACE_OPSYS.awk+= SunOS-*-* Interix-*-*
-_TOOLS_REPLACE_OPSYS.grep+= SunOS-*-*
-_TOOLS_REPLACE_OPSYS.lex+= # empty
-_TOOLS_REPLACE_OPSYS.m4+= # empty
-_TOOLS_REPLACE_OPSYS.make+= # empty
-_TOOLS_REPLACE_OPSYS.patch+= SunOS-*-*
-_TOOLS_REPLACE_OPSYS.sed+= SunOS-*-* Interix-*-*
-_TOOLS_REPLACE_OPSYS.yacc+= # empty
-
-# These platforms have completely unusable versions of these tools, and
-# no suitable replacement is available.
-#
-_TOOLS_OPSYS_INCOMPAT.awk+= IRIX-*-*
-_TOOLS_OPSYS_INCOMPAT.grep+= # empty
-_TOOLS_OPSYS_INCOMPAT.lex+= # empty
-_TOOLS_OPSYS_INCOMPAT.m4+= # empty
-_TOOLS_OPSYS_INCOMPAT.make+= # empty
-_TOOLS_OPSYS_INCOMPAT.patch+= # empty
-_TOOLS_OPSYS_INCOMPAT.sed+= # empty
-_TOOLS_OPSYS_INCOMPAT.yacc+= # empty
-
-# Default to not requiring GNU tools.
-.for _tool_ in ${_TOOLS}
-_TOOLS_HAS_GNU.${_tool_}?= NO
-_TOOLS_NEED_GNU.${_tool_}?= NO
-_TOOLS_REPLACE.${_tool_}?= NO
-_TOOLS_OVERRIDE.${_tool_}?= NO
-.endfor
-
-.for _tool_ in ${USE_GNU_TOOLS}
-#
-# What GNU tools did the package or user ask for, and does the base
-# system already have it?
-#
-_TOOLS_NEED_GNU.${_tool_}= YES
-. for _pattern_ in ${_TOOLS_OPSYS_HAS_GNU.${_tool_}}
-_TOOLS_HAS_GNU.${_tool_}= YES
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-_TOOLS_NEED_GNU.${_tool_}= NO
-. endif
-. endfor
-#
-# Do we know the base system tool is broken?
-#
-. for _pattern_ in ${_TOOLS_OPSYS_INCOMPAT.${_tool_}}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-_TOOLS_NEED_GNU.${_tool_}= YES
-. endif
-. endfor
-.endfor # USE_GNU_TOOLS
-#
-# Are we using a GNUish system tool in place of the needed GNU tool?
-#
-.for _tool_ in ${_TOOLS}
-. for _pattern_ in ${_TOOLS_REPLACE_OPSYS.${_tool_}}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-_TOOLS_REPLACE.${_tool_}= YES
-. endif
-. endfor
-.endfor # _TOOLS
-
-.if ${_TOOLS_REPLACE.awk} == "YES"
-_TOOLS_OVERRIDE.awk= YES
-_TOOLS_PROGNAME.awk= ${AWK}
-.endif
-.if (${_TOOLS_NEED_GNU.awk} == "YES") && empty(PKGPATH:Mlang/gawk)
-BUILD_DEPENDS+= gawk>=3.1.1:../../lang/gawk
-_TOOLS_OVERRIDE.awk= YES
-_TOOLS_PROGNAME.awk= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}awk
-. if exists(${_TOOLS_PROGNAME.awk})
-AWK:= ${_TOOLS_PROGNAME.awk}
-. endif
-.endif
-.if !empty(PKGPATH:Mlang/gawk)
-_TOOLS_OVERRIDE.awk= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOL.awk=
-.endif
-
-.if ${_TOOLS_REPLACE.grep} == "YES"
-_TOOLS_OVERRIDE.grep= YES
-_TOOLS_PROGNAME.grep= ${GREP}
-.endif
-.if (${_TOOLS_NEED_GNU.grep} == "YES") && empty(PKGPATH:Mtextproc/grep)
-BUILD_DEPENDS+= grep>=2.5.1:../../textproc/grep
-_TOOLS_OVERRIDE.grep= YES
-_TOOLS_PROGNAME.grep= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}grep
-. if exists(${_TOOLS_PROGNAME.grep})
-GREP:= ${_TOOLS_PROGNAME.grep}
-. endif
-.endif
-.if !empty(PKGPATH:Mtextproc/grep)
-_TOOLS_OVERRIDE.grep= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOL.grep=
-.endif
-
-.if ${_TOOLS_REPLACE.lex} == "YES"
-_TOOLS_OVERRIDE.lex= YES
-_TOOLS_PROGNAME.lex= ${LEX}
-.endif
-.if (${_TOOLS_NEED_GNU.lex} == "YES") && empty(PKGPATH:Mdevel/flex)
-.include "../../devel/flex/buildlink3.mk"
-_TOOLS_OVERRIDE.lex= YES
-_TOOLS_PROGNAME.lex= ${LOCALBASE}/bin/flex
-. if exists(${_TOOLS_PROGNAME.lex})
-LEX:= ${_TOOLS_PROGNAME.lex}
-. endif
-.endif
-.if !empty(PKGPATH:Mdevel/flex)
-_TOOLS_OVERRIDE.lex= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOL.lex=
-.endif
-
-.if ${_TOOLS_REPLACE.m4} == "YES"
-_TOOLS_OVERRIDE.m4= YES
-_TOOLS_PROGNAME.m4= ${M4}
-.endif
-.if (${_TOOLS_NEED_GNU.m4} == "YES") && empty(PKGPATH:Mdevel/m4)
-BUILD_DEPENDS+= m4>=1.4:../../devel/m4
-_TOOLS_OVERRIDE.m4= YES
-_TOOLS_PROGNAME.m4= ${LOCALBASE}/bin/gm4 # "gm4" always exists
-. if exists(${_TOOLS_PROGNAME.m4})
-M4:= ${_TOOLS_PROGNAME.m4}
-. endif
-.endif
-.if !empty(PKGPATH:Mdevel/m4)
-_TOOLS_OVERRIDE.m4= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOLS.m4=
-.endif
-
-.if ${_TOOLS_REPLACE.make} == "YES"
-_TOOLS_OVERRIDE.make= YES
-_TOOLS_PROGNAME.make= ${GMAKE}
-.endif
-.if (${_TOOLS_NEED_GNU.make} == "YES") && empty(PKGPATH:Mdevel/gmake)
-BUILD_DEPENDS+= gmake>=3.78:../../devel/gmake
-_TOOLS_OVERRIDE.make= YES
-_TOOLS_PROGNAME.make= ${LOCALBASE}/bin/gmake # "gmake" always exists
-. if exists(${_TOOLS_PROGNAME.make})
-GMAKE:= ${_TOOLS_PROGNAME.make}
-. endif
-.endif
-.if !empty(PKGPATH:Mdevel/gmake)
-_TOOLS_OVERRIDE.make= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOL.make=
-.endif
-
-.if ${_TOOLS_REPLACE.patch} == "YES"
-_TOOLS_OVERRIDE.patch= YES
-_TOOLS_PROGNAME.patch= ${PATCH}
-.endif
-.if (${_TOOLS_NEED_GNU.patch} == "YES") && empty(PKGPATH:Mdevel/patch)
-BUILD_DEPENDS+= patch>=2.2:../../devel/patch
-_TOOLS_OVERRIDE.patch= YES
-_TOOLS_PROGNAME.patch= ${LOCALBASE}/bin/gpatch # "gpatch" always exists
-. if exists(${_TOOLS_PROGNAME.patch})
-PATCH:= ${_TOOLS_PROGNAME.patch}
-. endif
-.endif
-.if !empty(PKGPATH:Mdevel/patch)
-_TOOLS_OVERRIDE.patch= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOL.patch=
-.endif
-
-.if ${_TOOLS_REPLACE.sed} == "YES"
-_TOOLS_OVERRIDE.sed= YES
-_TOOLS_PROGNAME.sed= ${SED}
-.endif
-.if (${_TOOLS_NEED_GNU.sed} == "YES") && empty(PKGPATH:Mtextproc/gsed)
-BUILD_DEPENDS+= gsed>=3.0.2:../../textproc/gsed
-_TOOLS_OVERRIDE.sed= YES
-_TOOLS_PROGNAME.sed= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}sed
-. if exists(${_TOOLS_PROGNAME.sed})
-SED:= ${_TOOLS_PROGNAME.sed}
-. endif
-.endif
-.if !empty(PKGPATH:Mtextproc/gsed)
-_TOOLS_OVERRIDE.sed= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOL.sed=
-.endif
-
-.if ${_TOOLS_HAS_GNU.yacc} == "YES"
-. undef YACC
-.endif
-.if ${_TOOLS_REPLACE.yacc} == "YES"
-_TOOLS_OVERRIDE.yacc= YES
-_TOOLS_PROGNAME.yacc= ${YACC}
-.endif
-.if (${_TOOLS_NEED_GNU.yacc} == "YES") && empty(PKGPATH:Mdevel/bison)
-BUILD_DEPENDS+= bison>=1.0:../../devel/bison
-_TOOLS_OVERRIDE.yacc= YES
-_TOOLS_PROGNAME.yacc= ${LOCALBASE}/bin/bison
-. if exists(${_TOOLS_PROGNAME.yacc})
-YACC:= ${_TOOLS_PROGNAME.yacc} -y
-. endif
-.endif
-.if !empty(PKGPATH:Mdevel/bison)
-_TOOLS_OVERRIDE.yacc= NO
-MAKEFLAGS+= _IGNORE_GNU_TOOL.yacc=
-.endif
-
-# If _TOOLS_OVERRIDE.<tool> is actually set to "YES", then we override
-# the tool with the one specified in _TOOLS_PROGNAME.<tool>.
-#
-.for _tool_ in ${_TOOLS}
-. if ${_TOOLS_OVERRIDE.${_tool_}} == "YES"
-override-tools: ${TOOLS_DIR}/bin/${_tool_}
-
-${TOOLS_DIR}/bin/${_tool_}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- src="${_TOOLS_PROGNAME.${_tool_}}"; \
- if [ -x $$src -a ! -f ${.TARGET} ]; then \
- ${MKDIR} ${.TARGET:H}; \
- ${LN} -sf $$src ${.TARGET}; \
- fi
-. endif
-.endfor
-
-# Always provide a symlink from ${TOOLS_DIR}/bin/make to the "make"
-# used to build the package. The following only creates the symlink
-# if GNU make isn't required (and already symlinked from above).
-#
-override-tools: ${TOOLS_DIR}/bin/make
-
-.if !target(${TOOLS_DIR}/bin/make)
-${TOOLS_DIR}/bin/make:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- case ${MAKE_PROGRAM} in \
- /*) src="${MAKE_PROGRAM}" ;; \
- *) src=`${TYPE} ${MAKE_PROGRAM} | ${AWK} '{ print $$NF }'` ;; \
- esac; \
- if [ -x $$src -a ! -f ${.TARGET} ]; then \
- ${MKDIR} ${.TARGET:H}; \
- ${LN} -sf $$src ${.TARGET}; \
- fi
-.endif
-
-# Create a symlink from ${TOOLS_DIR}/bin/perl to ${PERL5} when USE_PERL5
-# is defined.
-.if defined(USE_PERL5)
-override-tools: ${TOOLS_DIR}/bin/perl
-. if !target(${TOOLS_DIR}/bin/perl)
-${TOOLS_DIR}/bin/perl:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- src="${PERL5}"; \
- if [ -x $$src -a ! -f ${.TARGET} ]; then \
- ${MKDIR} ${.TARGET:H}; \
- ${LN} -sf $$src ${.TARGET}; \
- fi
-. endif
-.endif
-
-# Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
-# The wrapper will correctly set the CPP environment variable to a
-# stat((2)able path to a C preprocessor, then rely on the PATH to
-# find and invoke the real rpcgen.
-#
-RPCGEN?= rpcgen
-RPCGEN_ARGS.NetBSD= -b
-RPCGEN_ARGS?= ${RPCGEN_ARGS.${OPSYS}}
-override-tools: ${TOOLS_DIR}/bin/rpcgen
-.if !target(${TOOLS_DIR}/bin/rpcgen)
-${TOOLS_DIR}/bin/rpcgen:
- ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ( ${ECHO} '#!${TOOLS_SHELL}'; \
- ${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-${_TOOLS_WRAP_LOG}}"'; \
- ${ECHO} 'CPP="${WRAPPER_BINDIR}/cpp"; export CPP'; \
- PATH=`${ECHO} "${PATH}" | ${SED} -e "s,.*${.TARGET:H}:,,"`; \
- ${ECHO} "PATH=\"$$PATH\"; export PATH"; \
- ${ECHO} '${ECHO} "<.> ${RPCGEN} ${RPCGEN_ARGS} $$*" >> $$wrapperlog'; \
- ${ECHO} '${RPCGEN} ${RPCGEN_ARGS} "$$@"'; \
- ) > ${.TARGET}
- ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
-.endif
-
-.if defined(USE_TBL) && !empty(USE_TBL:M[yY][eE][sS])
-. if exists(/usr/bin/tbl)
-_TOOLS_PROGNAME.tbl= /usr/bin/tbl
-. else
-BUILD_DEPENDS+= groff>=1.19nb4:../../textproc/groff
-_TOOLS_PROGNAME.tbl= ${LOCALBASE}/bin/tbl
-. endif
-. if exists(${_TOOLS_PROGNAME.tbl})
-TBL:= ${_TOOLS_PROGNAME.tbl}
-. endif
-
-override-tools: ${TOOLS_DIR}/bin/tbl
-${TOOLS_DIR}/bin/tbl:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- src="${_TOOLS_PROGNAME.tbl}"; \
- if [ -x $$src -a ! -f ${.TARGET} ]; then \
- ${MKDIR} ${.TARGET:H}; \
- ${LN} -sf $$src ${.TARGET}; \
- fi
-.endif # USE_TBL
-
-.endif # TOOLS_MK
diff --git a/mk/tools/autoconf.mk b/mk/tools/autoconf.mk
deleted file mode 100644
index c0750cb4610..00000000000
--- a/mk/tools/autoconf.mk
+++ /dev/null
@@ -1,190 +0,0 @@
-# $NetBSD: autoconf.mk,v 1.7.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# 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:Mautoconf) && !empty(USE_TOOLS: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_
-.undef _t_
-
-.if !defined(TOOLS_IGNORE.autoconf) && !empty(USE_TOOLS:Mautoconf)
-. if !empty(PKGPATH:Mdevel/autoconf)
-MAKEFLAGS+= TOOLS_IGNORE.autoconf=
-. else
-AUTOCONF_REQD?= 2.50
-
-TOOLS_DEPMETHOD.autoconf?= BUILD_DEPENDS
-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_REAL_CMD.autoconf= ${_TOOLS_AC_PREFIX}/bin/autoconf
-
-_TOOLS_AC_TYPE.autoheader= TOOLS_CREATE
-TOOLS_REAL_CMD.autoheader= ${_TOOLS_AC_PREFIX}/bin/autoheader
-
-_TOOLS_AC_TYPE.autom4te= TOOLS_CREATE
-TOOLS_REAL_CMD.autom4te= ${_TOOLS_AC_PREFIX}/bin/autom4te
-
-_TOOLS_AC_TYPE.autoreconf= TOOLS_CREATE
-TOOLS_REAL_CMD.autoreconf= ${_TOOLS_AC_PREFIX}/bin/autoreconf
-
-_TOOLS_AC_TYPE.autoscan= TOOLS_CREATE
-TOOLS_REAL_CMD.autoscan= ${_TOOLS_AC_PREFIX}/bin/autoscan
-
-_TOOLS_AC_TYPE.autoupdate= TOOLS_CREATE
-TOOLS_REAL_CMD.autoupdate= ${_TOOLS_AC_PREFIX}/bin/autoupdate
-
-_TOOLS_AC_TYPE.ifnames= TOOLS_CREATE
-TOOLS_REAL_CMD.ifnames= ${_TOOLS_AC_PREFIX}/bin/ifnames
-
-# Continue to define the following variables until packages have been
-# taught to just use "autoconf", "autoheader", and "autoreconf" instead.
-#
-AUTOCONF= ${TOOLS_CMD.autoconf}
-AUTOHEADER= ${TOOLS_CMD.autoheader}
-AUTORECONF= ${TOOLS_CMD.autoreconf}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.autoconf213) && !empty(USE_TOOLS:Mautoconf213)
-. if !empty(PKGPATH:Mdevel/autoconf213)
-MAKEFLAGS+= TOOLS_IGNORE.autoconf213=
-. else
-AUTOCONF_REQD?= 2.13
-
-TOOLS_DEPMETHOD.autoconf213?= BUILD_DEPENDS
-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_REAL_CMD.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_REAL_CMD.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_REAL_CMD.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_REAL_CMD.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_REAL_CMD.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_REAL_CMD.ifnames-2.13= ${_TOOLS_AC_PREFIX}/bin/ifnames-2.13
-TOOLS_ALIASES.ifnames-2.13= ifnames
-
-# Continue to define the following variables until packages have been
-# taught to just use "autoconf", "autoheader", and "autoreconf" instead.
-#
-AUTOCONF= ${TOOLS_CMD.autoconf-2.13}
-AUTOHEADER= ${TOOLS_CMD.autoheader-2.13}
-AUTORECONF= ${TOOLS_CMD.autoreconf-2.13}
-
-. 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
-. undef _t_
-.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
-.undef _pattern_
diff --git a/mk/tools/automake.mk b/mk/tools/automake.mk
deleted file mode 100644
index 3480084aa66..00000000000
--- a/mk/tools/automake.mk
+++ /dev/null
@@ -1,146 +0,0 @@
-# $NetBSD: automake.mk,v 1.7.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# 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:Mautomake) && !empty(USE_TOOLS: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
-.undef _t_
-
-.if !defined(TOOLS_IGNORE.automake) && !empty(USE_TOOLS:Mautomake)
-. if !empty(PKGPATH:Mdevel/automake)
-MAKEFLAGS+= TOOLS_IGNORE.automake=
-. else
-AUTOMAKE_REQD?= 1.9
-AUTOCONF_REQD?= 2.58
-USE_TOOLS+= autoconf
-
-TOOLS_DEPMETHOD.automake?= BUILD_DEPENDS
-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_REAL_CMD.aclocal= ${_TOOLS_AM_PREFIX}/bin/aclocal
-
-_TOOLS_AM_TYPE.automake= TOOLS_CREATE
-TOOLS_REAL_CMD.automake= ${_TOOLS_AM_PREFIX}/bin/automake
-
-# Continue to define the following variables until packages have been
-# taught to just use "aclocal" and "automake" instead.
-#
-ACLOCAL= ${TOOLS_CMD.aclocal}
-AUTOMAKE= ${TOOLS_CMD.automake}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.automake14) && !empty(USE_TOOLS:Mautomake14)
-. if !empty(PKGPATH:Mdevel/automake14)
-MAKEFLAGS+= TOOLS_IGNORE.automake14=
-. else
-AUTOMAKE_REQD?= 1.4
-AUTOCONF_REQD?= 2.13
-USE_TOOLS+= autoconf213
-
-TOOLS_DEPMETHOD.automake14?= BUILD_DEPENDS
-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_REAL_CMD.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_REAL_CMD.automake-1.4= ${_TOOLS_AM_PREFIX}/bin/automake-1.4
-TOOLS_ALIASES.automake-1.4= automake
-
-# Continue to define the following variables until packages have been
-# taught to just use "aclocal" and "automake" instead.
-#
-ACLOCAL= ${TOOLS_CMD.aclocal-1.4}
-AUTOMAKE= ${TOOLS_CMD.automake-1.4}
-. 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_AM_NAMES}
-. if !empty(_TOOLS_AM_TYPE.${_t_})
-${_TOOLS_AM_TYPE.${_t_}}+= ${_t_}
-. endif
-. endfor
-. undef _t_
-.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 e396106ef32..00000000000
--- a/mk/tools/bootstrap.mk
+++ /dev/null
@@ -1,105 +0,0 @@
-# $NetBSD: bootstrap.mk,v 1.2.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# 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.gtar?= ${TOOLS_PLATFORM.tar}
-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.gtar?= ${TOOLS_PLATFORM.tar}
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "DragonFly"
-TOOLS_PLATFORM.gtar?= ${TOOLS_PLATFORM.tar}
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "FreeBSD"
-TOOLS_PLATFORM.gtar?= ${TOOLS_PLATFORM.tar}
-TOOLS_PLATFORM.mtree?= ${LOCALBASE}/sbin/mtree
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "HPUX"
-TOOLS_PLATFORM.gtar?= ${TOOLS_PLATFORM.tar}
-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.gtar?= ${TOOLS_PLATFORM.tar}
-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.gtar?= ${TOOLS_PLATFORM.tar}
-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.gtar?= ${TOOLS_PLATFORM.tar}
-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.gtar?= ${TOOLS_PLATFORM.tar}
-TOOLS_PLATFORM.pax?= ${LOCALBASE}/bin/pax
-TOOLS_PLATFORM.tar?= ${LOCALBASE}/bin/tar
-
-.elif ${OPSYS} == "OSF1"
-TOOLS_PLATFORM.gtar?= ${TOOLS_PLATFORM.tar}
-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.gtar?= ${TOOLS_PLATFORM.tar}
-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.gtar?= ${TOOLS_PLATFORM.tar}
-TOOLS_PLATFORM.mkdir?= ${LOCALBASE}/sbin/mkdir-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
-
-.else
-TOOLS_PLATFORM.gtar?= ${TOOLS_PLATFORM.tar}
-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 f4bee8f1889..00000000000
--- a/mk/tools/bsd.tools.mk
+++ /dev/null
@@ -1,185 +0,0 @@
-# $NetBSD: bsd.tools.mk,v 1.23.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# 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_REAL_CMD.<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_REAL_CMDLINE.<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_REAL_ARGS.<tool> additional arguments that are passed to the
-# real command ahead of any command-line arguments. This variable
-# is optional.
-#
-# TOOLS_REAL_CMDLINE.<tool> specifies the full command-line to invoke
-# in the wrapper script when <tool> is called. This variable is
-# optional, and if left unspecified, then this is built up from
-# TOOLS_REAL_CMD.<tool> and TOOLS_REAL_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/replace.mk"
-.include "../../mk/tools/perl.mk"
-.include "../../mk/tools/make.mk"
-
-######################################################################
-
-.for _t_ in ${TOOLS_NOOP}
-TOOLS_CREATE+= ${_t_}
-TOOLS_REAL_CMDLINE.${_t_}?= exit 0
-.endfor
-.undef _t_
-
-.for _t_ in ${TOOLS_BROKEN}
-TOOLS_CREATE+= ${_t_}
-TOOLS_REAL_CMDLINE.${_t_}?= exit 1
-.endfor
-.undef _t_
-
-.for _t_ in ${TOOLS_GNU_MISSING}
-TOOLS_CREATE+= ${_t_}
-TOOLS_REAL_CMD.${_t_}?= ${PKGSRCDIR}/mk/gnu-config/missing
-TOOLS_REAL_CMDLINE.${_t_}?= ${TOOLS_REAL_CMD.${_t_}} ${_t_:T:C/-[0-9].*$//}
-.endfor
-.undef _t_
-
-######################################################################
-
-# 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_REAL_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_REAL_CMD.${_t_}?= ${FALSE}
-TOOLS_REAL_CMDLINE_DFLT.${_t_}= \
- ${TOOLS_REAL_CMD.${_t_}} ${TOOLS_REAL_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_REAL_CMDLINE.${_t_}:Q}""; then \
- create=wrapper; \
- cmdline=${TOOLS_REAL_CMDLINE.${_t_}:Q}; \
- elif ${TEST} -n ${TOOLS_REAL_CMD.${_t_}:Q}""; then \
- if ${TEST} -n ${TOOLS_REAL_ARGS.${_t_}:Q}""; then \
- create=wrapper; \
- cmdline=${TOOLS_REAL_CMDLINE_DFLT.${_t_}:Q}; \
- else \
- case ${TOOLS_REAL_CMD.${_t_}:Q}"" in \
- /*) create=symlink ;; \
- *) create=wrapper; \
- cmdline=${TOOLS_REAL_CMDLINE_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} \"<.> $$cmdline\" >> \$$wrapperlog"; \
- ${ECHO} "$$cmdline"; \
- } > ${.TARGET:Q}; \
- ${CHMOD} +x ${.TARGET:Q}; \
- ;; \
- *) \
- ${LN} -fs ${TOOLS_REAL_CMD.${_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
-. undef _a_
-.endfor
-.undef _t_
-
-.endif # BSD_TOOLS_MK
diff --git a/mk/tools/defaults.mk b/mk/tools/defaults.mk
deleted file mode 100644
index 3603a16e24b..00000000000
--- a/mk/tools/defaults.mk
+++ /dev/null
@@ -1,108 +0,0 @@
-# $NetBSD: defaults.mk,v 1.15.2.2 2005/05/17 18:29:46 tv Exp $
-
-.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.bison-yacc= 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.cut= CUT
-_TOOLS_VARNAME.date= DATE
-_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.ldconfig= LDCONFIG
-_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.mtree= MTREE
-_TOOLS_VARNAME.mv= MV
-_TOOLS_VARNAME.nice= NICE
-_TOOLS_VARNAME.patch= PATCH
-_TOOLS_VARNAME.pax= PAX
-_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.sort= SORT
-_TOOLS_VARNAME.tail= TAIL
-_TOOLS_VARNAME.tar= TAR
-_TOOLS_VARNAME.tbl= TBL
-_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.xargs= XARGS
-_TOOLS_VARNAME.xmkmf= XMKMF_CMD
-_TOOLS_VARNAME.yacc= YACC
-
-######################################################################
-
-# Set a default value for the TOOL names for each of the tools we claim
-# we'll use in PKGSRC_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 ${PKGSRC_USE_TOOLS: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
-. undef _v_
-. endif
-.endfor
-.undef _t_
-
-.endif # TOOLS_DEFAULTS_MK
diff --git a/mk/tools/imake.mk b/mk/tools/imake.mk
deleted file mode 100644
index e44275b1b5b..00000000000
--- a/mk/tools/imake.mk
+++ /dev/null
@@ -1,91 +0,0 @@
-# $NetBSD: imake.mk,v 1.9.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# This Makefile fragment handles packages that need imake and xmkmf
-# to build X11-related packages. The correct imake and xmkmf tools
-# are placed under ${TOOLS_DIR}/bin, so that they may be invoked by
-# their bare names. The tools are chosen based on which type of X11
-# distribution pkgsrc will be using, e.g. X11_TYPE.
-#
-# Variables defined by this file are:
-#
-# IMAKE path to imake tool + any imake-specific args
-# XMKMF_CMD path to xmkmf tool + any xmkmf-specific args
-# XMKMF command to create all Makefiles from Imakefiles,
-# usually "xmkmf -a".
-#
-# TOOLS_IMAKE, TOOLS_XMKMF_CMD and TOOLS_XMKMF are set to the same
-# corresponding values.
-#
-# Optional variables that may be defined by the package are:
-#
-# IMAKEOPTS Options to pass to imake
-# XMKMF_FLAGS Options to pass to xmkmf
-#
-# If they are non-empty, then a wrapper script will be created instead
-# of a symlink for the corresponding tool.
-#
-# 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 is included by mk/tools/replace.mk and follows the same
-# rules as for other replacement tools.
-#
-
-.if defined(USE_IMAKE)
-USE_TOOLS+= imake
-.endif
-
-# Skip the processing at the end of replace.mk. If we need to use
-# imake, then we always want the clause below to trigger.
-#
-_TOOLS_USE_PKGSRC.imake= yes
-
-.if !defined(TOOLS_IGNORE.imake) && !empty(USE_TOOLS:Mimake)
-. if !empty(PKGPATH:Mx11/imake) || !empty(PKGPATH:Mx11/xorg-imake)
-MAKEFLAGS+= TOOLS_IGNORE.imake=
-. else
-#
-# Depending on which X11_TYPE we're using, depend on the correct package
-# to pull in imake and xmkmf.
-#
-. if defined(X11_TYPE) && (${X11_TYPE} == "XFree86")
-TOOLS_DEPENDS.imake?= imake>=4.4.0:../../x11/imake
-TOOLS_REAL_CMD.imake?= ${X11PREFIX}/${X11ROOT_PREFIX}/bin/imake
-TOOLS_REAL_CMD.xmkmf?= ${X11PREFIX}/${X11ROOT_PREFIX}/bin/xmkmf
-. elif defined(X11_TYPE) && (${X11_TYPE} == "xorg")
-TOOLS_DEPENDS.imake?= xorg-imake>=6.8:../../x11/xorg-imake
-TOOLS_REAL_CMD.imake?= ${X11PREFIX}/${X11ROOT_PREFIX}/bin/imake
-TOOLS_REAL_CMD.xmkmf?= ${X11PREFIX}/${X11ROOT_PREFIX}/bin/xmkmf
-. else # ${X11_TYPE} == "native"
-TOOLS_REAL_CMD.imake?= ${X11BASE}/bin/imake
-TOOLS_REAL_CMD.xmkmf?= ${X11BASE}/bin/xmkmf
-. endif
-TOOLS_REAL_ARGS.imake?= ${IMAKEOPTS}
-TOOLS_REAL_ARGS.xmkmf?= ${XMKMF_FLAGS}
-#
-# 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_REAL_CMD.xmkmf= ${X11PREFIX}/bin/pkgxmkmf
-. endif
-#
-# Add any extra tools that may be required when using imake, e.g. gmake.
-#
-USE_TOOLS+= ${_IMAKE_TOOLS:Nimake}
-#
-# Define IMAKE and XMKMF_CMD and create wrappers/symlinks corresponding
-# to imake and xmkmf.
-#
-TOOLS_CREATE+= imake xmkmf
-TOOLS_${_TOOLS_VARNAME.imake}= ${TOOLS_REAL_CMD.imake} ${TOOLS_REAL_ARGS.imake}
-TOOLS_${_TOOLS_VARNAME.xmkmf}= ${TOOLS_REAL_CMD.xmkmf} ${TOOLS_REAL_ARGS.xmkmf}
-TOOLS_XMKMF= ${${_TOOLS_VARNAME.xmkmf}} -a
-${_TOOLS_VARNAME.imake}= ${TOOLS_${_TOOLS_VARNAME.imake}}
-${_TOOLS_VARNAME.xmkmf}= ${TOOLS_${_TOOLS_VARNAME.xmkmf}}
-XMKMF?= ${TOOLS_XMKMF}
-. endif
-.endif
diff --git a/mk/tools/ldconfig.mk b/mk/tools/ldconfig.mk
deleted file mode 100644
index afd8fa05b8e..00000000000
--- a/mk/tools/ldconfig.mk
+++ /dev/null
@@ -1,17 +0,0 @@
-# $NetBSD: ldconfig.mk,v 1.1.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# Depending on whether the platform has ldconfig, we cause
-# ${TOOLS_DIR}/bin/ldconfig to be either the correct ldconfig tool or
-# a no-op.
-#
-.if !defined(TOOLS_PLATFORM.ldconfig)
-TOOLS_NOOP+= ldconfig
-.else
-TOOLS_CREATE+= ldconfig
-TOOLS_REAL_CMD.ldconfig= ${TOOLS_PLATFORM.ldconfig}
-.endif
-
-# Make ${LDCONFIG} call "ldconfig" through the PATH, which should find
-# the one under ${TOOLS_DIR}.
-#
-LDCONFIG?= ldconfig
diff --git a/mk/tools/make.mk b/mk/tools/make.mk
deleted file mode 100644
index a9a09f2d77d..00000000000
--- a/mk/tools/make.mk
+++ /dev/null
@@ -1,25 +0,0 @@
-# $NetBSD: make.mk,v 1.9.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# 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_REAL_CMD.make= ${MAKE_PROGRAM}
-
-CONFIGURE_ENV+= MAKE=make
diff --git a/mk/tools/perl.mk b/mk/tools/perl.mk
deleted file mode 100644
index 4e74ee44879..00000000000
--- a/mk/tools/perl.mk
+++ /dev/null
@@ -1,38 +0,0 @@
-# $NetBSD: perl.mk,v 1.9.2.2 2005/05/17 18:29:46 tv Exp $
-
-# Create a symlink from ${TOOLS_DIR}/bin/perl to ${PERL5} when USE_PERL5
-# is defined. This ensures that when "perl" is invoked, the pkgsrc perl
-# is executed on systems that also provide a perl binary.
-#
-.if defined(USE_PERL5) && !defined(TOOLS_IGNORE.perl)
-. if !empty(PKGPATH:Mlang/perl58)
-MAKEFLAGS+= TOOLS_IGNORE.perl=
-. else
-. include "../../lang/perl5/buildlink3.mk"
-TOOLS_DEPMETHOD.perl?= BUILD_DEPENDS
-_TOOLS_DEPENDS.perl= # empty
-. for _dep_ in ${BUILDLINK_DEPENDS.perl}
-_TOOLS_DEPENDS.perl+= ${_dep_}:${BUILDLINK_PKGSRCDIR.perl}
-. endfor
-. undef _dep_
-TOOLS_DEPENDS.perl?= ${_TOOLS_DEPENDS.perl}
-TOOLS_CREATE+= perl
-FIND_PREFIX:= TOOLS_PREFIX.perl=perl
-. include "../../mk/find-prefix.mk"
-TOOLS_REAL_CMD.perl= ${TOOLS_PREFIX.perl}/bin/perl
-PERL5= ${TOOLS_REAL_CMD.perl}
-CONFIGURE_ENV+= PERL=${PERL5:Q}
-. endif
-. if defined(TOOLS_DEPMETHOD.perl) && defined(TOOLS_DEPENDS.perl)
-. if empty(${TOOLS_DEPMETHOD.perl}:M${TOOLS_DEPENDS.perl})
-${TOOLS_DEPMETHOD.perl}+= ${TOOLS_DEPENDS.perl}
-. endif
-. endif
-
-# Define PERL5_* variables that locate the site directories for ${PERL5}.
-# These variables depend on PERL5 being properly defined and existing
-# on the filesystem.
-#
-. include "../../lang/perl5/vars.mk"
-
-.endif
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
deleted file mode 100644
index 1bf1a9cfe20..00000000000
--- a/mk/tools/replace.mk
+++ /dev/null
@@ -1,1070 +0,0 @@
-# $NetBSD: replace.mk,v 1.81.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# 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_TOOL" variables, e.g. TOOLS_AWK, TOOLS_SED, etc. are set to
-# the full command lines necessary to invoke the real tools on the
-# filesystem, and represent the tools required by the package.
-#
-# "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, should be listed as:
-#
-# PKGSRC_USE_TOOLS+= awk sed
-#
-# The tools that are required by the package itself, i.e. within the
-# software's own build system, should be listed as:
-#
-# USE_TOOLS+= gawk gmake lex
-#
-# 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 explicitly setting TOOLS_DEPMETHOD.<tool>,
-# e.g.:
-#
-# TOOLS_DEPMETHOD.tbl= DEPENDS
-#
-
-# Continue to allow USE_GNU_TOOLS and USE_TBL until packages have been
-# taught to use the new syntax.
-#
-.if defined(USE_GNU_TOOLS) && !empty(USE_GNU_TOOLS)
-USE_TOOLS+= ${USE_GNU_TOOLS:S/^awk$/gawk/:S/^m4$/gm4/:S/^make$/gmake/:S/^sed$/gsed/:S/^yacc$/bison/}
-.endif
-.if defined(USE_TBL) && !empty(USE_TBL:M[yY][eE][sS])
-USE_TOOLS+= tbl
-.endif
-
-# bison implies "bison-yacc"
-.if !empty(USE_TOOLS:Mbison)
-USE_TOOLS+= bison-yacc
-.endif
-
-.include "../../mk/tools/imake.mk"
-
-######################################################################
-
-# Create _USE_TOOLS, a sanitized version of PKGSRC_USE_TOOLS and
-# USE_TOOLS that removes the ones that are overridden by superseding
-# ones.
-#
-.if !defined(_USE_TOOLS)
-_USE_TOOLS:= ${PKGSRC_USE_TOOLS} ${USE_TOOLS}
-_USE_TOOLS:= ${_USE_TOOLS:O:u}
-. if !empty(USE_TOOLS:Mbison-yacc) # bison-yacc > yacc
-_USE_TOOLS:= ${_USE_TOOLS:Nyacc}
-. 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
-
-######################################################################
-
-# _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
-.undef _t_
-
-# TOOLS_DEPMETHOD.<tool> defaults to BUILD_DEPENDS.
-.for _t_ in ${_USE_TOOLS}
-TOOLS_DEPMETHOD.${_t_}?= BUILD_DEPENDS
-.endfor
-.undef _t_
-
-######################################################################
-
-# 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.[) && !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_REAL_CMD.[= ${TOOLS_PREFIX.[}/bin/${GNU_PROGRAM_PREFIX}[
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.awk) && !empty(_USE_TOOLS:Mawk)
-. if !empty(PKGPATH:Mlang/gawk)
-MAKEFLAGS+= TOOLS_IGNORE.awk=
-. elif !empty(_TOOLS_USE_PKGSRC.awk:M[yY][eE][sS])
-TOOLS_DEPENDS.awk?= gawk>=3.1.1:../../lang/gawk
-TOOLS_CREATE+= awk
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.awk=gawk
-TOOLS_REAL_CMD.awk= ${TOOLS_PREFIX.awk}/bin/${GNU_PROGRAM_PREFIX}awk
-TOOLS_${_TOOLS_VARNAME.awk}= ${TOOLS_REAL_CMD.awk}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.basename) && !empty(_USE_TOOLS:Mbasename)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.basename=
-. elif !empty(_TOOLS_USE_PKGSRC.basename:M[yY][eE][sS])
-TOOLS_DEPENDS.basename?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= basename
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.basename=coreutils
-TOOLS_REAL_CMD.basename= ${TOOLS_PREFIX.basename}/bin/${GNU_PROGRAM_PREFIX}basename
-TOOLS_${_TOOLS_VARNAME.basename}= ${TOOLS_REAL_CMD.basename}
-. 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_REAL_CMD.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_REAL_CMD.bison-yacc= ${TOOLS_PREFIX.bison-yacc}/bin/bison
-TOOLS_REAL_ARGS.bison-yacc= -y
-TOOLS_${_TOOLS_VARNAME.bison-yacc}= \
- ${TOOLS_REAL_CMD.bison-yacc} ${TOOLS_REAL_ARGS.bison-yacc}
-. endif
-TOOLS_CMD.bison-yacc= ${TOOLS_DIR}/bin/yacc
-.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_REAL_CMD.bzcat= ${TOOLS_PREFIX.bzcat}/bin/bzcat
-TOOLS_${_TOOLS_VARNAME.bzcat}= ${TOOLS_REAL_CMD.bzcat}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.cat) && !empty(_USE_TOOLS:Mcat)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.cat=
-. elif !empty(_TOOLS_USE_PKGSRC.cat:M[yY][eE][sS])
-TOOLS_DEPENDS.cat?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= cat
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.cat=coreutils
-TOOLS_REAL_CMD.cat= ${TOOLS_PREFIX.cat}/bin/${GNU_PROGRAM_PREFIX}cat
-TOOLS_${_TOOLS_VARNAME.cat}= ${TOOLS_REAL_CMD.cat}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.chgrp) && !empty(_USE_TOOLS:Mchgrp)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.chgrp=
-. elif !empty(_TOOLS_USE_PKGSRC.chgrp:M[yY][eE][sS])
-TOOLS_DEPENDS.chgrp?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= chgrp
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.chgrp=coreutils
-TOOLS_REAL_CMD.chgrp= ${TOOLS_PREFIX.chgrp}/bin/${GNU_PROGRAM_PREFIX}chgrp
-TOOLS_${_TOOLS_VARNAME.chgrp}= ${TOOLS_REAL_CMD.chgrp}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.chmod) && !empty(_USE_TOOLS:Mchmod)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.chmod=
-. elif !empty(_TOOLS_USE_PKGSRC.chmod:M[yY][eE][sS])
-TOOLS_DEPENDS.chmod?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= chmod
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.chmod=coreutils
-TOOLS_REAL_CMD.chmod= ${TOOLS_PREFIX.chmod}/bin/${GNU_PROGRAM_PREFIX}chmod
-TOOLS_${_TOOLS_VARNAME.chmod}= ${TOOLS_REAL_CMD.chmod}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.chown) && !empty(_USE_TOOLS:Mchown)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.chown=
-. elif !empty(_TOOLS_USE_PKGSRC.chown:M[yY][eE][sS])
-TOOLS_DEPENDS.chown?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= chown
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.chown=coreutils
-TOOLS_REAL_CMD.chown= ${TOOLS_PREFIX.chown}/bin/${GNU_PROGRAM_PREFIX}chown
-TOOLS_${_TOOLS_VARNAME.chown}= ${TOOLS_REAL_CMD.chown}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.cmp) && !empty(_USE_TOOLS:Mcmp)
-. if !empty(PKGPATH:Mdevel/diffutils)
-MAKEFLAGS+= TOOLS_IGNORE.cmp=
-. elif !empty(_TOOLS_USE_PKGSRC.cmp:M[yY][eE][sS])
-TOOLS_DEPENDS.cmp?= diffutils>=2.8.1:../../devel/diffutils
-TOOLS_CREATE+= cmp
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.cmp=diffutils
-TOOLS_REAL_CMD.cmp= ${TOOLS_PREFIX.cmp}/bin/cmp
-TOOLS_${_TOOLS_VARNAME.cmp}= ${TOOLS_REAL_CMD.cmp}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.cp) && !empty(_USE_TOOLS:Mcp)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.cp=
-. elif !empty(_TOOLS_USE_PKGSRC.cp:M[yY][eE][sS])
-TOOLS_DEPENDS.cp?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= cp
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.cp=coreutils
-TOOLS_REAL_CMD.cp= ${TOOLS_PREFIX.cp}/bin/${GNU_PROGRAM_PREFIX}cp
-TOOLS_${_TOOLS_VARNAME.cp}= ${TOOLS_REAL_CMD.cp}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.cut) && !empty(_USE_TOOLS:Mcut)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.cut=
-. elif !empty(_TOOLS_USE_PKGSRC.cut:M[yY][eE][sS])
-TOOLS_DEPENDS.cut?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= cut
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.cut=coreutils
-TOOLS_REAL_CMD.cut= ${TOOLS_PREFIX.cut}/bin/${GNU_PROGRAM_PREFIX}cut
-TOOLS_${_TOOLS_VARNAME.cut}= ${TOOLS_REAL_CMD.cut}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.date) && !empty(_USE_TOOLS:Mdate)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.date=
-. elif !empty(_TOOLS_USE_PKGSRC.date:M[yY][eE][sS])
-TOOLS_DEPENDS.date?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= date
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.date=coreutils
-TOOLS_REAL_CMD.date= ${TOOLS_PREFIX.date}/bin/${GNU_PROGRAM_PREFIX}date
-TOOLS_${_TOOLS_VARNAME.date}= ${TOOLS_REAL_CMD.date}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.dirname) && !empty(_USE_TOOLS:Mdirname)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.dirname=
-. elif !empty(_TOOLS_USE_PKGSRC.dirname:M[yY][eE][sS])
-TOOLS_DEPENDS.dirname?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= dirname
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.dirname=coreutils
-TOOLS_REAL_CMD.dirname= ${TOOLS_PREFIX.dirname}/bin/${GNU_PROGRAM_PREFIX}dirname
-TOOLS_${_TOOLS_VARNAME.dirname}= ${TOOLS_REAL_CMD.dirname}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.echo) && !empty(_USE_TOOLS:Mecho)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.echo=
-. elif !empty(_TOOLS_USE_PKGSRC.echo:M[yY][eE][sS])
-TOOLS_DEPENDS.echo?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= echo
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.echo=coreutils
-TOOLS_REAL_CMD.echo= ${TOOLS_PREFIX.echo}/bin/${GNU_PROGRAM_PREFIX}echo
-TOOLS_${_TOOLS_VARNAME.echo}= ${TOOLS_REAL_CMD.echo}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.egrep) && !empty(_USE_TOOLS:Megrep)
-. if !empty(PKGPATH:Mtextproc/grep)
-MAKEFLAGS+= TOOLS_IGNORE.egrep=
-. elif !empty(_TOOLS_USE_PKGSRC.egrep:M[yY][eE][sS])
-TOOLS_DEPENDS.egrep?= grep>=2.5.1:../../textproc/grep
-TOOLS_CREATE+= egrep
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.egrep=grep
-TOOLS_REAL_CMD.egrep= ${TOOLS_PREFIX.egrep}/bin/${GNU_PROGRAM_PREFIX}egrep
-TOOLS_${_TOOLS_VARNAME.egrep}= ${TOOLS_REAL_CMD.egrep}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.env) && !empty(_USE_TOOLS:Menv)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.env=
-. elif !empty(_TOOLS_USE_PKGSRC.env:M[yY][eE][sS])
-TOOLS_DEPENDS.env?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= env
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.env=coreutilsj
-TOOLS_REAL_CMD.env= ${TOOLS_PREFIX.env}/bin/${GNU_PROGRAM_PREFIX}env
-TOOLS_${_TOOLS_VARNAME.env}= ${TOOLS_REAL_CMD.env}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.expr) && !empty(_USE_TOOLS:Mexpr)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.expr=
-. elif !empty(_TOOLS_USE_PKGSRC.expr:M[yY][eE][sS])
-TOOLS_DEPENDS.expr?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= expr
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.expr=coreutils
-TOOLS_REAL_CMD.expr= ${TOOLS_PREFIX.expr}/bin/${GNU_PROGRAM_PREFIX}expr
-TOOLS_${_TOOLS_VARNAME.expr}= ${TOOLS_REAL_CMD.expr}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.false) && !empty(_USE_TOOLS:Mfalse)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.false=
-. elif !empty(_TOOLS_USE_PKGSRC.false:M[yY][eE][sS])
-TOOLS_DEPENDS.false?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= false
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.false=coreutils
-TOOLS_REAL_CMD.false= ${TOOLS_PREFIX.false}/bin/${GNU_PROGRAM_PREFIX}false
-TOOLS_${_TOOLS_VARNAME.false}= ${TOOLS_REAL_CMD.false}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.fgrep) && !empty(_USE_TOOLS:Mfgrep)
-. if !empty(PKGPATH:Mtextproc/grep)
-MAKEFLAGS+= TOOLS_IGNORE.fgrep=
-. elif !empty(_TOOLS_USE_PKGSRC.fgrep:M[yY][eE][sS])
-TOOLS_DEPENDS.fgrep?= grep>=2.5.1:../../textproc/grep
-TOOLS_CREATE+= fgrep
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.fgrep=grep
-TOOLS_REAL_CMD.fgrep= ${TOOLS_PREFIX.fgrep}/bin/${GNU_PROGRAM_PREFIX}fgrep
-TOOLS_${_TOOLS_VARNAME.fgrep}= ${TOOLS_REAL_CMD.fgrep}
-. 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_REAL_CMD.file= ${TOOLS_PREFIX.file}/bin/file
-TOOLS_${_TOOLS_VARNAME.file}= ${TOOLS_REAL_CMD.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_REAL_CMD.find= ${TOOLS_PREFIX.find}/bin/${GNU_PROGRAM_PREFIX}find
-TOOLS_${_TOOLS_VARNAME.find}= ${TOOLS_REAL_CMD.find}
-. endif
-.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_REAL_CMD.gawk= ${TOOLS_PREFIX.gawk}/bin/${GNU_PROGRAM_PREFIX}awk
-TOOLS_${_TOOLS_VARNAME.gawk}= ${TOOLS_REAL_CMD.gawk}
-. 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_REAL_CMD.gm4= ${TOOLS_PREFIX.gm4}/bin/gm4
-TOOLS_${_TOOLS_VARNAME.gm4}= ${TOOLS_REAL_CMD.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_REAL_CMD.gmake= ${TOOLS_PREFIX.gmake}/bin/gmake
-TOOLS_${_TOOLS_VARNAME.gmake}= ${TOOLS_REAL_CMD.gmake}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.grep) && !empty(_USE_TOOLS:Mgrep)
-. if !empty(PKGPATH:Mtextproc/grep)
-MAKEFLAGS+= TOOLS_IGNORE.grep=
-. elif !empty(_TOOLS_USE_PKGSRC.grep:M[yY][eE][sS])
-TOOLS_DEPENDS.grep?= grep>=2.5.1:../../textproc/grep
-TOOLS_CREATE+= grep
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.grep=grep
-TOOLS_REAL_CMD.grep= ${TOOLS_PREFIX.grep}/bin/${GNU_PROGRAM_PREFIX}grep
-TOOLS_${_TOOLS_VARNAME.grep}= ${TOOLS_REAL_CMD.grep}
-. 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_REAL_CMD.gsed= ${TOOLS_PREFIX.gsed}/bin/${GNU_PROGRAM_PREFIX}sed
-TOOLS_${_TOOLS_VARNAME.gsed}= ${TOOLS_REAL_CMD.gsed}
-. 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_REAL_CMD.gtar= ${TOOLS_PREFIX.gtar}/bin/${GNU_PROGRAM_PREFIX}tar
-TOOLS_${_TOOLS_VARNAME.gtar}= ${TOOLS_REAL_CMD.gtar}
-. 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_REAL_CMD.gunzip= ${TOOLS_PREFIX.gunzip}/bin/gunzip
-TOOLS_REAL_ARGS.gunzip= -f
-TOOLS_${_TOOLS_VARNAME.gunzip}= ${TOOLS_REAL_CMD.gunzip} ${TOOLS_REAL_ARGS.gunzip}
-. 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_REAL_CMD.gzcat= ${TOOLS_PREFIX.gzcat}/bin/zcat
-TOOLS_${_TOOLS_VARNAME.gzcat}= ${TOOLS_REAL_CMD.gzcat}
-. 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_REAL_CMD.gzip= ${TOOLS_PREFIX.gzip}/bin/gzip
-TOOLS_REAL_ARGS.gzip= -nf ${GZIP}
-TOOLS_${_TOOLS_VARNAME.gzip}= ${TOOLS_REAL_CMD.gzip} ${TOOLS_REAL_ARGS.gzip}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.head) && !empty(_USE_TOOLS:Mhead)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.head=
-. elif !empty(_TOOLS_USE_PKGSRC.head:M[yY][eE][sS])
-TOOLS_DEPENDS.head?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= head
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.head=coreutils
-TOOLS_REAL_CMD.head= ${TOOLS_PREFIX.head}/bin/${GNU_PROGRAM_PREFIX}head
-TOOLS_${_TOOLS_VARNAME.head}= ${TOOLS_REAL_CMD.head}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.hostname) && !empty(_USE_TOOLS:Mhostname)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.hostname=
-. elif !empty(_TOOLS_USE_PKGSRC.hostname:M[yY][eE][sS])
-TOOLS_DEPENDS.hostname?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= hostname
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.hostname=coreutils
-TOOLS_REAL_CMD.hostname= ${TOOLS_PREFIX.hostname}/bin/${GNU_PROGRAM_PREFIX}hostname
-TOOLS_${_TOOLS_VARNAME.hostname}= ${TOOLS_REAL_CMD.hostname}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.id) && !empty(_USE_TOOLS:Mid)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.id=
-. elif !empty(_TOOLS_USE_PKGSRC.id:M[yY][eE][sS])
-TOOLS_DEPENDS.id?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= id
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.id=coreutils
-TOOLS_REAL_CMD.id= ${TOOLS_PREFIX.id}/bin/${GNU_PROGRAM_PREFIX}id
-TOOLS_${_TOOLS_VARNAME.id}= ${TOOLS_REAL_CMD.id}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.install) && !empty(_USE_TOOLS:Minstall)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.install=
-. elif !empty(_TOOLS_USE_PKGSRC.install:M[yY][eE][sS])
-TOOLS_DEPENDS.install?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= install
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.install=coreutils
-TOOLS_REAL_CMD.install= ${TOOLS_PREFIX.install}/bin/${GNU_PROGRAM_PREFIX}install
-TOOLS_${_TOOLS_VARNAME.install}= ${TOOLS_REAL_CMD.install}
-. 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
-. undef _dep_
-TOOLS_DEPENDS.lex?= ${_TOOLS_DEPENDS.lex}
-TOOLS_CREATE+= lex
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.lex=flex
-TOOLS_REAL_CMD.lex= ${TOOLS_PREFIX.lex}/bin/flex
-TOOLS_${_TOOLS_VARNAME.lex}= ${TOOLS_REAL_CMD.lex}
-. 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_REAL_CMD.lha= ${TOOLS_PREFIX.lha}/bin/lha
-TOOLS_${_TOOLS_VARNAME.lha}= ${TOOLS_REAL_CMD.lha}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.ln) && !empty(_USE_TOOLS:Mln)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.ln=
-. elif !empty(_TOOLS_USE_PKGSRC.ln:M[yY][eE][sS])
-TOOLS_DEPENDS.ln?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= ln
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.ln=coreutils
-TOOLS_REAL_CMD.ln= ${TOOLS_PREFIX.ln}/bin/${GNU_PROGRAM_PREFIX}ln
-TOOLS_${_TOOLS_VARNAME.ln}= ${TOOLS_REAL_CMD.ln}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.ls) && !empty(_USE_TOOLS:Mls)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.ls=
-. elif !empty(_TOOLS_USE_PKGSRC.ls:M[yY][eE][sS])
-TOOLS_DEPENDS.ls?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= ls
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.ls=coreutils
-TOOLS_REAL_CMD.ls= ${TOOLS_PREFIX.ls}/bin/${GNU_PROGRAM_PREFIX}ls
-TOOLS_${_TOOLS_VARNAME.ls}= ${TOOLS_REAL_CMD.ls}
-. 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_REAL_CMD.m4= ${TOOLS_PREFIX.m4}/bin/gm4
-TOOLS_${_TOOLS_VARNAME.m4}= ${TOOLS_REAL_CMD.m4}
-. 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_REAL_CMD.mail= ${TOOLS_PREFIX.mail}/bin/nail
-TOOLS_${_TOOLS_VARNAME.mail}= ${TOOLS_REAL_CMD.mail}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.mkdir) && !empty(_USE_TOOLS:Mmkdir)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.mkdir=
-. elif !empty(_TOOLS_USE_PKGSRC.mkdir:M[yY][eE][sS])
-TOOLS_DEPENDS.mkdir?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= mkdir
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mkdir=coreutils
-TOOLS_REAL_CMD.mkdir= ${TOOLS_PREFIX.mkdir}/bin/${GNU_PROGRAM_PREFIX}mkdir
-TOOLS_REAL_ARGS.mkdir= -p
-TOOLS_${_TOOLS_VARNAME.mkdir}= ${TOOLS_REAL_CMD.mkdir} ${TOOLS_REAL_ARGS.mkdir}
-. 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_REAL_CMD.mtree= ${TOOLS_PREFIX.mtree}/bin/mtree
-TOOLS_${_TOOLS_VARNAME.mtree}= ${TOOLS_REAL_CMD.mtree}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.mv) && !empty(_USE_TOOLS:Mmv)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.mv=
-. elif !empty(_TOOLS_USE_PKGSRC.mv:M[yY][eE][sS])
-TOOLS_DEPENDS.mv?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= mv
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.mv=coreutils
-TOOLS_REAL_CMD.mv= ${TOOLS_PREFIX.mv}/bin/${GNU_PROGRAM_PREFIX}mv
-TOOLS_${_TOOLS_VARNAME.mv}= ${TOOLS_REAL_CMD.mv}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.nice) && !empty(_USE_TOOLS:Mnice)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.nice=
-. elif !empty(_TOOLS_USE_PKGSRC.nice:M[yY][eE][sS])
-TOOLS_DEPENDS.nice?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= nice
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.nice=coreutils
-TOOLS_REAL_CMD.nice= ${TOOLS_PREFIX.nice}/bin/${GNU_PROGRAM_PREFIX}nice
-TOOLS_${_TOOLS_VARNAME.nice}= ${TOOLS_REAL_CMD.nice}
-. 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_REAL_CMD.patch= ${TOOLS_PREFIX.patch}/bin/gpatch
-TOOLS_${_TOOLS_VARNAME.patch}= ${TOOLS_REAL_CMD.patch}
-. 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_REAL_CMD.pax= ${TOOLS_PREFIX.pax}/bin/pax
-TOOLS_${_TOOLS_VARNAME.pax}= ${TOOLS_REAL_CMD.pax}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.pwd) && !empty(_USE_TOOLS:Mpwd)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.pwd=
-. elif !empty(_TOOLS_USE_PKGSRC.pwd:M[yY][eE][sS])
-TOOLS_DEPENDS.pwd?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= pwd
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.pwd=coreutils
-TOOLS_REAL_CMD.pwd= ${TOOLS_PREFIX.pwd}/bin/${GNU_PROGRAM_PREFIX}pwd
-TOOLS_${_TOOLS_VARNAME.pwd}= ${TOOLS_REAL_CMD.pwd}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.rm) && !empty(_USE_TOOLS:Mrm)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.rm=
-. elif !empty(_TOOLS_USE_PKGSRC.rm:M[yY][eE][sS])
-TOOLS_DEPENDS.rm?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= rm
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.rm=coreutils
-TOOLS_REAL_CMD.rm= ${TOOLS_PREFIX.rm}/bin/${GNU_PROGRAM_PREFIX}rm
-TOOLS_${_TOOLS_VARNAME.rm}= ${TOOLS_REAL_CMD.rm}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.rmdir) && !empty(_USE_TOOLS:Mrmdir)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.rmdir=
-. elif !empty(_TOOLS_USE_PKGSRC.rmdir:M[yY][eE][sS])
-TOOLS_DEPENDS.rmdir?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= rmdir
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.rmdir=coreutils
-TOOLS_REAL_CMD.rmdir= ${TOOLS_PREFIX.rmdir}/bin/${GNU_PROGRAM_PREFIX}rmdir
-TOOLS_${_TOOLS_VARNAME.rmdir}= ${TOOLS_REAL_CMD.rmdir}
-. 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_REAL_CMD.sed= ${TOOLS_PREFIX.nbsed}/bin/nbsed
-TOOLS_${_TOOLS_VARNAME.sed}= ${TOOLS_REAL_CMD.sed}
-. 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_REAL_CMD.sh= ${TOOLS_PREFIX.sh}/bin/pdksh
-TOOLS_${_TOOLS_VARNAME.sh}= ${TOOLS_REAL_CMD.sh}
-. 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_REAL_CMD.shlock= ${TOOLS_PREFIX.shlock}/bin/shlock
-TOOLS_${_TOOLS_VARNAME.shlock}= ${TOOLS_REAL_CMD.shlock}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.sort) && !empty(_USE_TOOLS:Msort)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.sort=
-. elif !empty(_TOOLS_USE_PKGSRC.sort:M[yY][eE][sS])
-TOOLS_DEPENDS.sort?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= sort
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.sort=coreutils
-TOOLS_REAL_CMD.sort= ${TOOLS_PREFIX.sort}/bin/${GNU_PROGRAM_PREFIX}sort
-TOOLS_${_TOOLS_VARNAME.sort}= ${TOOLS_REAL_CMD.sort}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.tail) && !empty(_USE_TOOLS:Mtail)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.tail=
-. elif !empty(_TOOLS_USE_PKGSRC.tail:M[yY][eE][sS])
-TOOLS_DEPENDS.tail?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= tail
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tail=coreutils
-TOOLS_REAL_CMD.tail= ${TOOLS_PREFIX.tail}/bin/${GNU_PROGRAM_PREFIX}tail
-TOOLS_${_TOOLS_VARNAME.tail}= ${TOOLS_REAL_CMD.tail}
-. 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_REAL_CMD.tar= ${TOOLS_PREFIX.tar}/bin/tar
-TOOLS_${_TOOLS_VARNAME.tar}= ${TOOLS_REAL_CMD.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_REAL_CMD.tbl= ${TOOLS_PREFIX.tbl}/bin/tbl
-TOOLS_${_TOOLS_VARNAME.tbl}= ${TOOLS_REAL_CMD.tbl}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.tee) && !empty(_USE_TOOLS:Mtee)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.tee=
-. elif !empty(_TOOLS_USE_PKGSRC.tee:M[yY][eE][sS])
-TOOLS_DEPENDS.tee?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= tee
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tee=coreutils
-TOOLS_REAL_CMD.tee= ${TOOLS_PREFIX.tee}/bin/${GNU_PROGRAM_PREFIX}tee
-TOOLS_${_TOOLS_VARNAME.tee}= ${TOOLS_REAL_CMD.tee}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.test) && !empty(_USE_TOOLS:Mtest)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.test=
-. elif !empty(_TOOLS_USE_PKGSRC.test:M[yY][eE][sS])
-TOOLS_DEPENDS.test?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= test
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.test=coreutils
-TOOLS_REAL_CMD.test= ${TOOLS_PREFIX.test}/bin/${GNU_PROGRAM_PREFIX}test
-TOOLS_${_TOOLS_VARNAME.test}= ${TOOLS_REAL_CMD.test}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.touch) && !empty(_USE_TOOLS:Mtouch)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.touch=
-. elif !empty(_TOOLS_USE_PKGSRC.touch:M[yY][eE][sS])
-TOOLS_DEPENDS.touch?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= touch
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.touch=coreutils
-TOOLS_REAL_CMD.touch= ${TOOLS_PREFIX.touch}/bin/${GNU_PROGRAM_PREFIX}touch
-TOOLS_${_TOOLS_VARNAME.touch}= ${TOOLS_REAL_CMD.touch}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.tr) && !empty(_USE_TOOLS:Mtr)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.tr=
-. elif !empty(_TOOLS_USE_PKGSRC.tr:M[yY][eE][sS])
-TOOLS_DEPENDS.tr?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= tr
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tr=coreutils
-TOOLS_REAL_CMD.tr= ${TOOLS_PREFIX.tr}/bin/${GNU_PROGRAM_PREFIX}tr
-TOOLS_${_TOOLS_VARNAME.tr}= ${TOOLS_REAL_CMD.tr}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.true) && !empty(_USE_TOOLS:Mtrue)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.true=
-. elif !empty(_TOOLS_USE_PKGSRC.true:M[yY][eE][sS])
-TOOLS_DEPENDS.true?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= true
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.true=coreutils
-TOOLS_REAL_CMD.true= ${TOOLS_PREFIX.true}/bin/${GNU_PROGRAM_PREFIX}true
-TOOLS_${_TOOLS_VARNAME.true}= ${TOOLS_REAL_CMD.true}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.tsort) && !empty(_USE_TOOLS:Mtsort)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.tsort=
-. elif !empty(_TOOLS_USE_PKGSRC.tsort:M[yY][eE][sS])
-TOOLS_DEPENDS.tsort?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= tsort
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tsort=coreutils
-TOOLS_REAL_CMD.tsort= ${TOOLS_PREFIX.tsort}/bin/${GNU_PROGRAM_PREFIX}tsort
-TOOLS_${_TOOLS_VARNAME.tsort}= ${TOOLS_REAL_CMD.tsort}
-. 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_REAL_CMD.unrar= ${TOOLS_PREFIX.unrar}/bin/unrar
-TOOLS_${_TOOLS_VARNAME.unrar}= ${TOOLS_REAL_CMD.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_REAL_CMD.unzip= ${TOOLS_PREFIX.unzip}/bin/unzip
-TOOLS_${_TOOLS_VARNAME.unzip}= ${TOOLS_REAL_CMD.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_REAL_CMD.unzoo= ${TOOLS_PREFIX.unzoo}/bin/unzoo
-TOOLS_${_TOOLS_VARNAME.unzoo}= ${TOOLS_REAL_CMD.unzoo}
-. endif
-.endif
-
-.if !defined(TOOLS_IGNORE.wc) && !empty(_USE_TOOLS:Mwc)
-. if !empty(PKGPATH:Msysutils/coreutils)
-MAKEFLAGS+= TOOLS_IGNORE.wc=
-. elif !empty(_TOOLS_USE_PKGSRC.wc:M[yY][eE][sS])
-TOOLS_DEPENDS.wc?= coreutils>=5.2.1:../../sysutils/coreutils
-TOOLS_CREATE+= wc
-TOOLS_FIND_PREFIX+= TOOLS_PREFIX.wc=coreutils
-TOOLS_REAL_CMD.wc= ${TOOLS_PREFIX.wc}/bin/${GNU_PROGRAM_PREFIX}wc
-TOOLS_${_TOOLS_VARNAME.wc}= ${TOOLS_REAL_CMD.wc}
-. 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_REAL_CMD.xargs= ${TOOLS_PREFIX.xargs}/bin/${GNU_PROGRAM_PREFIX}xargs
-TOOLS_REAL_ARGS.xargs= -r # don't run command if stdin is empty
-TOOLS_${_TOOLS_VARNAME.xargs}= ${TOOLS_REAL_CMD.xargs} ${TOOLS_REAL_ARGS.xargs}
-. 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_REAL_CMD.yacc= ${TOOLS_PREFIX.yacc}/bin/bison
-TOOLS_REAL_ARGS.yacc= -y
-TOOLS_${_TOOLS_VARNAME.yacc}= ${TOOLS_REAL_CMD.yacc} ${TOOLS_REAL_ARGS.yacc}
-. endif
-.endif
-
-# Compute the locations of the pkgsrc-supplied tools.
-FIND_PREFIX:= ${TOOLS_FIND_PREFIX}
-.include "../../mk/find-prefix.mk"
-
-######################################################################
-
-# Add the dependencies for each pkgsrc-supplied tool.
-#
-.for _t_ in ${_USE_TOOLS}
-. if defined(TOOLS_DEPMETHOD.${_t_}) && defined(TOOLS_DEPENDS.${_t_})
-. if empty(${TOOLS_DEPMETHOD.${_t_}}:M${TOOLS_DEPENDS.${_t_}})
-${TOOLS_DEPMETHOD.${_t_}}+= ${TOOLS_DEPENDS.${_t_}}
-. 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 ${PKGSRC_USE_TOOLS: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
-.undef _t_
-
-######################################################################
-
-# If we are using the system-supplied tool, create symlinks or wrappers
-# for each of the tools requested.
-#
-# Set TOOLS_REAL_CMD.<tool> appropriately in the case where we are
-# using the system-supplied tool. Here, we first check to see if
-# TOOLS_PLATFORM.<tool> is defined. If it is, then use that as the
-# path to the real command and extract any arguments into
-# TOOLS_REAL_ARGS.<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 the "TOOL" name is undefined, then
-# set it to the same value to provide a simple name for use by package
-# Makefiles.
-#
-.for _t_ in ${_USE_TOOLS}
-. if !defined(TOOLS_IGNORE.${_t_}) && \
- !empty(_TOOLS_USE_PKGSRC.${_t_}:M[nN][oO])
-. if defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
-TOOLS_REAL_CMD.${_t_}?= \
- ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-TOOLS_REAL_ARGS.${_t_}?= \
- ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:N_asdf_*}
-. if defined(_TOOLS_VARNAME.${_t_})
-TOOLS_${_TOOLS_VARNAME.${_t_}}= ${TOOLS_PLATFORM.${_t_}}
-. endif
-TOOLS_CREATE+= ${_t_}
-. elif defined(_TOOLS_VARNAME.${_t_})
-. if defined(TOOLS_REAL_CMD.${_t_})
-TOOLS_${_TOOLS_VARNAME.${_t_}}= ${TOOLS_REAL_CMD.${_t_}} ${TOOLS_REAL_ARGS.${_t_}}
-. else
-TOOLS_${_TOOLS_VARNAME.${_t_}}= ${_TOOLS_VARNAME.${_t_}}_not_defined_
-. endif
-. endif
-. endif
-. if defined(_TOOLS_VARNAME.${_t_})
-. if defined(TOOLS_${_TOOLS_VARNAME.${_t_}})
-. for _v_ in ${_TOOLS_VARNAME.${_t_}}
-${_v_}?= ${TOOLS_${_TOOLS_VARNAME.${_t_}}}
-. endfor
-. undef _v_
-. endif
-. endif
-.endfor
-.undef _t_
diff --git a/mk/tools/rpcgen.mk b/mk/tools/rpcgen.mk
deleted file mode 100644
index b6c1e362474..00000000000
--- a/mk/tools/rpcgen.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# $NetBSD: rpcgen.mk,v 1.5.2.2 2005/05/17 18:29:46 tv Exp $
-
-# 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_REAL_CMD.rpcgen)
-TOOLS_EXECDIRS.rpcgen?= /bin /sbin /usr/bin /usr/sbin
-. for _d_ in ${TOOLS_EXECDIRS.rpcgen}
-. if exists(${_d_}/rpcgen)
-TOOLS_REAL_CMD.rpcgen?= ${_d_}/rpcgen
-. endif
-. endfor
-. undef _d_
-TOOLS_REAL_CMD.rpcgen?= ${FALSE}
-.endif
-TOOLS_CMD.rpcgen= ${TOOLS_DIR}/bin/rpcgen
-.if ${OPSYS} == "NetBSD"
-TOOLS_REAL_ARGS.rpcgen?= -b
-.endif
-TOOLS_REAL_CMDLINE.rpcgen= \
- CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_REAL_CMD.rpcgen} ${TOOLS_REAL_ARGS.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 79153e769b5..00000000000
--- a/mk/tools/strip.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-# $NetBSD: strip.mk,v 1.1.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# 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_REAL_CMD.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 1259f26f970..00000000000
--- a/mk/tools/texinfo.mk
+++ /dev/null
@@ -1,23 +0,0 @@
-# $NetBSD: texinfo.mk,v 1.5.2.2 2005/05/17 18:29:46 tv Exp $
-
-# 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_REAL_CMD.makeinfo= ${MAKEINFO:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-TOOLS_REAL_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 4ec43953160..00000000000
--- a/mk/tools/tools.AIX.mk
+++ /dev/null
@@ -1,53 +0,0 @@
-# $NetBSD: tools.AIX.mk,v 1.8.2.2 2005/05/17 18:29:46 tv 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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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.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.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 645f46241b8..00000000000
--- a/mk/tools/tools.BSDOS.mk
+++ /dev/null
@@ -1,63 +0,0 @@
-# $NetBSD: tools.BSDOS.mk,v 1.11.2.2 2005/05/17 18:29:46 tv 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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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
-TOOLS_PLATFORM.gunzip?= /usr/contrib/bin/gunzip -f
-TOOLS_PLATFORM.gzcat?= /usr/contrib/bin/gzcat
-TOOLS_PLATFORM.gzip?= /usr/contrib/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.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.patch?= /usr/contrib/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/bash
-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 35a80339aa2..00000000000
--- a/mk/tools/tools.Darwin.mk
+++ /dev/null
@@ -1,63 +0,0 @@
-# $NetBSD: tools.Darwin.mk,v 1.10.2.2 2005/05/17 18:29:46 tv 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.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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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.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.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-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
-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 6b9c7952238..00000000000
--- a/mk/tools/tools.DragonFly.mk
+++ /dev/null
@@ -1,65 +0,0 @@
-# $NetBSD: tools.DragonFly.mk,v 1.12.2.2 2005/05/17 18:29:46 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.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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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.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.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.pax?= /bin/pax
-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.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 37d311fe124..00000000000
--- a/mk/tools/tools.FreeBSD.mk
+++ /dev/null
@@ -1,67 +0,0 @@
-# $NetBSD: tools.FreeBSD.mk,v 1.12.2.2 2005/05/17 18:29:46 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
-.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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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.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.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.pax?= /bin/pax
-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.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 88e0b089353..00000000000
--- a/mk/tools/tools.IRIX.mk
+++ /dev/null
@@ -1,63 +0,0 @@
-# $NetBSD: tools.IRIX.mk,v 1.12.2.2 2005/05/17 18:29:46 tv 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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /sbin/date
-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.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 da09a4ba003..00000000000
--- a/mk/tools/tools.Interix.mk
+++ /dev/null
@@ -1,53 +0,0 @@
-# $NetBSD: tools.Interix.mk,v 1.11.2.2 2005/05/17 18:29:46 tv Exp $
-#
-# System-supplied tools for the Interix operating system.
-
-TOOLS_PLATFORM.[?= /bin/[
-TOOLS_PLATFORM.awk?= /usr/contrib/bin/gawk
-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.cut?= /bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /bin/rm
-TOOLS_PLATFORM.rmdir?= /bin/rmdir
-TOOLS_PLATFORM.sh?= /bin/sh
-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 4cc80b59a97..00000000000
--- a/mk/tools/tools.Linux.mk
+++ /dev/null
@@ -1,129 +0,0 @@
-# $NetBSD: tools.Linux.mk,v 1.17.2.2 2005/05/17 18:29:46 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
-.if exists(/usr/bin/bison)
-TOOLS_PLATFORM.bison?= /usr/bin/bison
-TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y
-.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
-.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
-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
-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
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-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
-.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}
-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 83fbc92853d..00000000000
--- a/mk/tools/tools.NetBSD.mk
+++ /dev/null
@@ -1,77 +0,0 @@
-# $NetBSD: tools.NetBSD.mk,v 1.13.2.2 2005/05/17 18:29:46 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
-.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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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
-.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.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-TOOLS_PLATFORM.patch?= /usr/bin/patch
-TOOLS_PLATFORM.pax?= /bin/pax
-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.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 cba5b7ee649..00000000000
--- a/mk/tools/tools.OSF1.mk
+++ /dev/null
@@ -1,54 +0,0 @@
-# $NetBSD: tools.OSF1.mk,v 1.9.2.2 2005/05/17 18:29:46 tv 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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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 553e4742ebb..00000000000
--- a/mk/tools/tools.OpenBSD.mk
+++ /dev/null
@@ -1,66 +0,0 @@
-# $NetBSD: tools.OpenBSD.mk,v 1.11.2.2 2005/05/17 18:29:46 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.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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /bin/date
-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.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.mtree?= /usr/sbin/mtree
-TOOLS_PLATFORM.mv?= /bin/mv
-TOOLS_PLATFORM.nice?= /usr/bin/nice
-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
-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 13ab85dc293..00000000000
--- a/mk/tools/tools.SunOS.mk
+++ /dev/null
@@ -1,66 +0,0 @@
-# $NetBSD: tools.SunOS.mk,v 1.13.2.2 2005/05/17 18:29:46 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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /usr/xpg4/bin/date
-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
-TOOLS_PLATFORM.mv?= /usr/bin/mv
-TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice
-.if exists(/usr/bin/gpatch)
-TOOLS_PLATFORM.patch?= /usr/bin/gpatch
-.endif
-TOOLS_PLATFORM.pwd?= /bin/pwd
-TOOLS_PLATFORM.rm?= /usr/bin/rm
-TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir
-TOOLS_PLATFORM.sh?= /bin/ksh
-TOOLS_PLATFORM.sort?= /usr/bin/sort
-TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip
-TOOLS_PLATFORM.tail?= /usr/xpg4/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/tools/tools.UnixWare.mk b/mk/tools/tools.UnixWare.mk
deleted file mode 100644
index b44248ec11c..00000000000
--- a/mk/tools/tools.UnixWare.mk
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: tools.UnixWare.mk,v 1.9.2.2 2005/05/17 18:29:46 tv 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.cut?= /usr/bin/cut
-TOOLS_PLATFORM.date?= /usr/bin/date
-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.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/wrapper/NOTES b/mk/wrapper/NOTES
deleted file mode 100644
index f3262979360..00000000000
--- a/mk/wrapper/NOTES
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: NOTES,v 1.1.2.1 2005/01/24 18:40:01 tv 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 d50b204975e..00000000000
--- a/mk/wrapper/arg-pp-darwin-gcc
+++ /dev/null
@@ -1,76 +0,0 @@
-# $NetBSD: arg-pp-darwin-gcc,v 1.1.2.3 2005/02/15 16:25:23 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.
-
-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 abebcdde1b9..00000000000
--- a/mk/wrapper/arg-pp-main
+++ /dev/null
@@ -1,157 +0,0 @@
-# $NetBSD: arg-pp-main,v 1.1.2.4 2005/02/15 16:25:23 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.
-
-case $arg in
-######################################################################
-# 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 fdb5598cc59..00000000000
--- a/mk/wrapper/arg-pp-mipspro-cc
+++ /dev/null
@@ -1,48 +0,0 @@
-# $NetBSD: arg-pp-mipspro-cc,v 1.1.2.2 2005/01/24 18:40: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.
-
-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-source b/mk/wrapper/arg-source
deleted file mode 100644
index efd54bf0ad4..00000000000
--- a/mk/wrapper/arg-source
+++ /dev/null
@@ -1,112 +0,0 @@
-# $NetBSD: arg-source,v 1.3 2004/09/26 21:09:34 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 -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}"
- ;;
- ##############################################################
- # "-Xlinker arg" is the equivalent of "-Wl,arg" so convert it
- # here before queueing it up. We also need to keep converting
- # as long as there are consecutive "-Xlinker ..." options
- # because they are most likely part of the same long option
- # list for the linker.
- ##############################################################
- -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 53fd2f49da7..00000000000
--- a/mk/wrapper/bsd.wrapper.mk
+++ /dev/null
@@ -1,723 +0,0 @@
-# $NetBSD: bsd.wrapper.mk,v 1.12.2.12 2005/05/17 18:29:46 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.
-
-.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
-
-# 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(PKG_PHASES:Mwrapper)
-
-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)
-_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:Msunpro)
-_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
-
-# 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"
-
-BUILD_ENV?= # empty
-.if !empty(BUILD_ENV)
-_WRAP_SUBST_SED+= -e 's|@BUILD_ENV@|export '${BUILD_ENV:Q}'|'
-.endif
-
-.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}/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}/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}/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= \
- \( ${_UNWRAP_PATTERNS:S/$/!/:S/^/-o -name !/:S/!/"/g:S/-o//1} \)
-UNWRAP_FILES?= # empty
-_UNWRAP_FILES= \
- ${UNWRAP_FILES} \
- `${FIND} . ${_UNWRAP_PATTERNS_FIND} -print | ${SED} -e 's|^\./||' | ${SORT} -u`
-_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 # !empty(PKG_PHASES:Mwrapper)
-###
-### END: after "wrapper" phase
-###
-
-do-wrapper: .OPTIONAL
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 83e1c54b759..00000000000
--- a/mk/wrapper/cmd-sink-aix-cc
+++ /dev/null
@@ -1,87 +0,0 @@
-# $NetBSD: cmd-sink-aix-cc,v 1.1.2.3 2005/05/17 18:29:46 tv 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 68a4e41b0d1..00000000000
--- a/mk/wrapper/cmd-sink-aix-ld
+++ /dev/null
@@ -1,87 +0,0 @@
-# $NetBSD: cmd-sink-aix-ld,v 1.1.2.3 2005/05/17 18:29:46 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.
-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 cfcef9c3a9a..00000000000
--- a/mk/wrapper/cmd-sink-aix-xlc
+++ /dev/null
@@ -1,74 +0,0 @@
-# $NetBSD: cmd-sink-aix-xlc,v 1.1.2.1 2005/05/17 18:29:46 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.
-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 comand 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 54bef45f3ca..00000000000
--- a/mk/wrapper/cmd-sink-darwin-xlc
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: cmd-sink-darwin-xlc,v 1.1.2.2 2004/12/09 17:15:01 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-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 12f139164ab..00000000000
--- a/mk/wrapper/cmd-sink-icc-cc
+++ /dev/null
@@ -1,59 +0,0 @@
-# $NetBSD: cmd-sink-icc-cc,v 1.2.2.2 2005/02/15 16:25:23 tv 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 7c66ddd156c..00000000000
--- a/mk/wrapper/cmd-sink-icc81-cc
+++ /dev/null
@@ -1,64 +0,0 @@
-# $NetBSD: cmd-sink-icc81-cc,v 1.2.2.2 2005/02/25 14:46:51 tv 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 384a45da52c..00000000000
--- a/mk/wrapper/cmd-sink-interix-gcc
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: cmd-sink-interix-gcc,v 1.3.2.1 2005/02/11 15:27: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.
-
-# 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-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 0f14e164b3d..00000000000
--- a/mk/wrapper/logic
+++ /dev/null
@@ -1,173 +0,0 @@
-# $NetBSD: logic,v 1.6.2.4 2005/02/15 16:25:23 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 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 8de02fa38f6..00000000000
--- a/mk/wrapper/transform-aix-cc
+++ /dev/null
@@ -1,52 +0,0 @@
-# $NetBSD: transform-aix-cc,v 1.1.2.2 2005/02/25 14:46:51 tv 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 72817732193..00000000000
--- a/mk/wrapper/transform-icc-cc
+++ /dev/null
@@ -1,68 +0,0 @@
-# $NetBSD: transform-icc-cc,v 1.2.2.3 2005/02/25 14:46:51 tv 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-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-sunpro-cc b/mk/wrapper/transform-sunpro-cc
deleted file mode 100644
index 44bd5b80b27..00000000000
--- a/mk/wrapper/transform-sunpro-cc
+++ /dev/null
@@ -1,121 +0,0 @@
-# $NetBSD: transform-sunpro-cc,v 1.2 2004/11/10 16:20:40 sketch 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 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 doesn't understand -pthread, and only -lpthread is needed on
-# Solaris.
-######################################################################
--pthread)
- arg="-lpthread"
- msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
- addtocache=yes
- ;;
-######################################################################
-# Ignore some flags that are unnecessary for SunPro.
-######################################################################
--ansi|-fno-gnu-keywords|-fstrict-prototypes|-pedantic)
- 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 ceab5093287..00000000000
--- a/mk/wrapper/transform-xlc-cc
+++ /dev/null
@@ -1,75 +0,0 @@
-# $NetBSD: transform-xlc-cc,v 1.1.2.2 2004/12/20 20:46:00 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.
-
-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 4b98b0ef7e3..00000000000
--- a/mk/wrapper/wrapper-defs.mk
+++ /dev/null
@@ -1,46 +0,0 @@
-# $NetBSD: wrapper-defs.mk,v 1.1 2004/09/27 12:05:53 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.
-
-.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 4793dcdcdfd..00000000000
--- a/mk/wrapper/wrapper.sh
+++ /dev/null
@@ -1,120 +0,0 @@
-#! @WRAPPER_SHELL@
-#
-# $NetBSD: wrapper.sh,v 1.4.2.2 2005/01/24 18:40:01 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.
-
-@BUILD_ENV@
-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-clients.buildlink3.mk b/mk/x11-clients.buildlink3.mk
deleted file mode 100644
index 856d7a2db15..00000000000
--- a/mk/x11-clients.buildlink3.mk
+++ /dev/null
@@ -1,42 +0,0 @@
-# $NetBSD: x11-clients.buildlink3.mk,v 1.1.2.2 2005/05/17 18:29:44 tv Exp $
-#
-# This Makefile fragment is meant to be used for packages requiring
-# X11 applications like bdftopcf and so on, this Makefile is useless
-# if you are using the X11 distribution that comes with your system,
-# but it's useful if you use xorg or XFree86 from pkgsrc.
-
-.if !defined(X11CLIENTS_BUILDLINK3_MK)
-X11CLIENTS_BUILDLINK3_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-X11CLIENTS_DEPMETHOD?= build
-
-# Require at least these versions for now.
-
-XORG_DISTVER?= 6.8.0
-XFREE86_DISTVER?= 4.4.0
-
-.if defined(X11_TYPE) && empty(X11_TYPE:Mnative)
-. if !empty(X11CLIENTS_DEPMETHOD:Mbuild)
-. if !empty(X11_TYPE:Mxorg)
-BUILD_DEPENDS+= \
- xorg-clients>=${XORG_DISTVER}:../../x11/xorg-clients
-. elif !empty(X11_TYPE:MXFree86)
-BUILD_DEPENDS+= \
- XFree86-clients>=${XFREE86_DISTVER}:../../x11/XFree86-clients
-. endif
-. endif
-
-. if !empty(X11CLIENTS_DEPMETHOD:Mfull)
-. if !empty(X11_TYPE:Mxorg)
-DEPENDS+= \
- xorg-clients>=${XORG_DISTVER}:../../x11/xorg-clients
-. elif !empty(X11_TYPE:MXFree86)
-DEPENDS+= \
- XFree86-clients>=${XFREE86_DISTVER}:../../x11/XFree86-clients
-. endif
-. endif
-.endif # X11_TYPE=native
-
-.endif # X11CLIENTS_BUILDLINK3_MK
diff --git a/mk/xaw.buildlink3.mk b/mk/xaw.buildlink3.mk
deleted file mode 100644
index 471cd55e855..00000000000
--- a/mk/xaw.buildlink3.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-# $NetBSD: xaw.buildlink3.mk,v 1.1 2004/04/11 23:35:16 xtraeme 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
-BUILDLINK_PREFIX.Xaw?= ${X11BASE}
-.endif
-
-MAKE_ENV+= LIBXAW="${LIBXAW}"
-
-.endif # XAW_BUILDLINK3_MK