1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# The include file <bsd.own.mk> set common variables for owner,
|
|
|
|
# group, mode, and directories. Defaults are in brackets.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# +++ variables +++
|
|
|
|
#
|
|
|
|
# DESTDIR Change the tree where the file gets installed. [not set]
|
|
|
|
#
|
|
|
|
# DISTDIR Change the tree where the file for a distribution
|
|
|
|
# gets installed (see /usr/src/release/Makefile). [not set]
|
|
|
|
#
|
2005-01-06 11:12:43 +00:00
|
|
|
# COMPRESS_CMD Program to compress documents.
|
1998-03-19 13:32:43 +00:00
|
|
|
# Output is to stdout. [gzip -cn]
|
1997-03-08 23:46:56 +00:00
|
|
|
#
|
|
|
|
# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
|
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# BINOWN Binary owner. [root]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# BINGRP Binary group. [wheel]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# BINMODE Binary mode. [555]
|
|
|
|
#
|
|
|
|
# NOBINMODE Mode for non-executable files. [444]
|
|
|
|
#
|
|
|
|
# LIBDIR Base path for libraries. [/usr/lib]
|
|
|
|
#
|
1998-01-03 19:07:30 +00:00
|
|
|
# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
|
|
|
|
#
|
|
|
|
# LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
|
|
|
|
#
|
2011-02-10 19:13:54 +00:00
|
|
|
# LIBEXECDIR Base path for system daemons and utilities. [/usr/libexec]
|
|
|
|
#
|
1996-05-25 23:09:49 +00:00
|
|
|
# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
|
|
|
|
#
|
|
|
|
# SHLIBDIR Base path for shared libraries. [${LIBDIR}]
|
|
|
|
#
|
2003-08-18 00:33:35 +00:00
|
|
|
# LIBOWN Library owner. [${BINOWN}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# LIBGRP Library group. [${BINGRP}]
|
|
|
|
#
|
|
|
|
# LIBMODE Library mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# KMODDIR Base path for loadable kernel modules
|
2000-09-05 22:37:46 +00:00
|
|
|
# (see kld(4)). [/boot/kernel]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2009-01-08 12:22:37 +00:00
|
|
|
# KMODOWN Kernel and KLD owner. [${BINOWN}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2009-01-08 12:22:37 +00:00
|
|
|
# KMODGRP Kernel and KLD group. [${BINGRP}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1999-11-09 00:08:58 +00:00
|
|
|
# KMODMODE KLD mode. [${BINMODE}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# SHAREDIR Base path for architecture-independent ascii
|
|
|
|
# text files. [/usr/share]
|
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# SHAREOWN ASCII text file owner. [root]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# SHAREGRP ASCII text file group. [wheel]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# SHAREMODE ASCII text file mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# DOCDIR Base path for system documentation (e.g. PSD, USD,
|
|
|
|
# handbook, FAQ etc.). [${SHAREDIR}/doc]
|
|
|
|
#
|
|
|
|
# DOCOWN Documentation owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# DOCGRP Documentation group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# DOCMODE Documentation mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# INFODIR Base path for GNU's hypertext system
|
|
|
|
# called Info (see info(1)). [${SHAREDIR}/info]
|
|
|
|
#
|
|
|
|
# INFOOWN Info owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# INFOGRP Info group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# INFOMODE Info mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
|
|
|
|
#
|
|
|
|
# MANOWN Manual owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# MANGRP Manual group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# MANMODE Manual mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# NLSDIR Base path for National Language Support files
|
2002-02-13 18:18:13 +00:00
|
|
|
# installation. [${SHAREDIR}/nls]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2002-02-13 18:16:34 +00:00
|
|
|
# NLSOWN National Language Support files owner. [${SHAREOWN}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2002-02-13 18:16:34 +00:00
|
|
|
# NLSGRP National Language Support files group. [${SHAREGRP}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2000-06-09 19:15:51 +00:00
|
|
|
# NLSMODE National Language Support files mode. [${NOBINMODE}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1998-01-03 19:07:30 +00:00
|
|
|
# INCLUDEDIR Base path for standard C include files [/usr/include]
|
1996-05-25 23:09:49 +00:00
|
|
|
|
2002-04-18 06:37:48 +00:00
|
|
|
.if !target(__<bsd.own.mk>__)
|
|
|
|
__<bsd.own.mk>__:
|
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.if !defined(_WITHOUT_SRCCONF)
|
2006-03-17 18:54:44 +00:00
|
|
|
SRCCONF?= /etc/src.conf
|
2006-03-18 10:54:09 +00:00
|
|
|
.if exists(${SRCCONF})
|
|
|
|
.include "${SRCCONF}"
|
|
|
|
.endif
|
2006-11-19 16:28:52 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
# Binaries
|
1998-09-14 08:34:45 +00:00
|
|
|
BINOWN?= root
|
|
|
|
BINGRP?= wheel
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
BINMODE?= 555
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
NOBINMODE?= 444
|
1996-03-24 00:31:56 +00:00
|
|
|
|
2003-03-03 22:54:35 +00:00
|
|
|
.if defined(MODULES_WITH_WORLD)
|
|
|
|
KMODDIR?= /boot/modules
|
|
|
|
.else
|
2000-09-05 22:37:46 +00:00
|
|
|
KMODDIR?= /boot/kernel
|
2003-03-03 22:54:35 +00:00
|
|
|
.endif
|
1999-06-24 22:50:24 +00:00
|
|
|
KMODOWN?= ${BINOWN}
|
|
|
|
KMODGRP?= ${BINGRP}
|
|
|
|
KMODMODE?= ${BINMODE}
|
|
|
|
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
LIBDIR?= /usr/lib
|
1998-01-04 00:00:21 +00:00
|
|
|
LIBCOMPATDIR?= /usr/lib/compat
|
|
|
|
LIBDATADIR?= /usr/libdata
|
2011-02-10 19:13:54 +00:00
|
|
|
LIBEXECDIR?= /usr/libexec
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
LINTLIBDIR?= /usr/libdata/lint
|
|
|
|
SHLIBDIR?= ${LIBDIR}
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
LIBOWN?= ${BINOWN}
|
|
|
|
LIBGRP?= ${BINGRP}
|
|
|
|
LIBMODE?= ${NOBINMODE}
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
|
|
|
|
# Share files
|
|
|
|
SHAREDIR?= /usr/share
|
1998-09-14 08:34:45 +00:00
|
|
|
SHAREOWN?= root
|
|
|
|
SHAREGRP?= wheel
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
SHAREMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
MANDIR?= ${SHAREDIR}/man/man
|
|
|
|
MANOWN?= ${SHAREOWN}
|
|
|
|
MANGRP?= ${SHAREGRP}
|
|
|
|
MANMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
DOCDIR?= ${SHAREDIR}/doc
|
|
|
|
DOCOWN?= ${SHAREOWN}
|
|
|
|
DOCGRP?= ${SHAREGRP}
|
|
|
|
DOCMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
INFODIR?= ${SHAREDIR}/info
|
|
|
|
INFOOWN?= ${SHAREOWN}
|
|
|
|
INFOGRP?= ${SHAREGRP}
|
|
|
|
INFOMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
NLSDIR?= ${SHAREDIR}/nls
|
2002-02-13 18:16:34 +00:00
|
|
|
NLSOWN?= ${SHAREOWN}
|
|
|
|
NLSGRP?= ${SHAREGRP}
|
2000-06-09 19:15:51 +00:00
|
|
|
NLSMODE?= ${NOBINMODE}
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
|
1998-01-03 19:07:30 +00:00
|
|
|
INCLUDEDIR?= /usr/include
|
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
# Common variables
|
2004-02-05 20:48:44 +00:00
|
|
|
.if !defined(DEBUG_FLAGS)
|
|
|
|
STRIP?= -s
|
|
|
|
.endif
|
|
|
|
|
1998-03-19 13:32:43 +00:00
|
|
|
COMPRESS_CMD?= gzip -cn
|
1997-03-08 23:46:56 +00:00
|
|
|
COMPRESS_EXT?= .gz
|
2002-04-18 06:37:48 +00:00
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.if !defined(_WITHOUT_SRCCONF)
|
2006-03-17 18:54:44 +00:00
|
|
|
#
|
|
|
|
# Define MK_* variables (which are either "yes" or "no") for users
|
|
|
|
# to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
|
|
|
|
# make(1) environment.
|
|
|
|
# These should be tested with `== "no"' or `!= "no"' in makefiles.
|
|
|
|
# The NO_* variables should only be set by makefiles.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Supported NO_* options (if defined, MK_* will be forced to "no",
|
|
|
|
# regardless of user's setting).
|
|
|
|
#
|
|
|
|
.for var in \
|
2007-10-20 19:01:50 +00:00
|
|
|
INSTALLLIB \
|
2006-03-19 06:14:07 +00:00
|
|
|
MAN \
|
|
|
|
PROFILE
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(NO_${var})
|
|
|
|
WITHOUT_${var}=
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compat NO_* options (same as above, except their use is deprecated).
|
|
|
|
#
|
|
|
|
.if !defined(BURN_BRIDGES)
|
|
|
|
.for var in \
|
|
|
|
ACPI \
|
|
|
|
ATM \
|
|
|
|
AUDIT \
|
|
|
|
AUTHPF \
|
|
|
|
BIND \
|
|
|
|
BIND_DNSSEC \
|
|
|
|
BIND_ETC \
|
|
|
|
BIND_LIBS_LWRES \
|
|
|
|
BIND_MTREE \
|
|
|
|
BIND_NAMED \
|
|
|
|
BIND_UTILS \
|
|
|
|
BLUETOOTH \
|
|
|
|
BOOT \
|
|
|
|
CALENDAR \
|
|
|
|
CPP \
|
|
|
|
CRYPT \
|
|
|
|
CVS \
|
|
|
|
CXX \
|
|
|
|
DICT \
|
|
|
|
DYNAMICROOT \
|
|
|
|
EXAMPLES \
|
|
|
|
FORTH \
|
|
|
|
FP_LIBC \
|
|
|
|
GAMES \
|
|
|
|
GCOV \
|
|
|
|
GDB \
|
|
|
|
GNU \
|
|
|
|
GPIB \
|
|
|
|
GROFF \
|
|
|
|
HTML \
|
|
|
|
INET6 \
|
|
|
|
INFO \
|
|
|
|
IPFILTER \
|
|
|
|
IPX \
|
|
|
|
KERBEROS \
|
2006-03-25 06:37:36 +00:00
|
|
|
LIB32 \
|
2006-03-17 18:54:44 +00:00
|
|
|
LIBPTHREAD \
|
|
|
|
LIBTHR \
|
|
|
|
LOCALES \
|
|
|
|
LPR \
|
|
|
|
MAILWRAPPER \
|
|
|
|
NETCAT \
|
|
|
|
NIS \
|
|
|
|
NLS \
|
|
|
|
NLS_CATALOGS \
|
2006-04-28 12:03:38 +00:00
|
|
|
NS_CACHING \
|
2006-03-17 18:54:44 +00:00
|
|
|
OBJC \
|
|
|
|
OPENSSH \
|
|
|
|
OPENSSL \
|
|
|
|
PAM \
|
|
|
|
PF \
|
|
|
|
RCMDS \
|
|
|
|
RCS \
|
|
|
|
RESCUE \
|
|
|
|
SENDMAIL \
|
|
|
|
SETUID_LOGIN \
|
|
|
|
SHAREDOCS \
|
|
|
|
SYSCONS \
|
|
|
|
TCSH \
|
|
|
|
TOOLCHAIN \
|
|
|
|
USB \
|
|
|
|
WPA_SUPPLICANT_EAPOL
|
|
|
|
.if defined(NO_${var})
|
|
|
|
#.warning NO_${var} is deprecated in favour of WITHOUT_${var}=
|
|
|
|
WITHOUT_${var}=
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif # !defined(BURN_BRIDGES)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Older-style variables that enabled behaviour when set.
|
|
|
|
#
|
|
|
|
.if defined(YES_HESIOD)
|
|
|
|
WITH_HESIOD=
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_IDEA)
|
|
|
|
WITH_IDEA=
|
|
|
|
.endif
|
|
|
|
|
2011-02-22 04:49:57 +00:00
|
|
|
#
|
|
|
|
# Default behaviour of MK_CLANG depends on the architecture.
|
|
|
|
#
|
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
|
|
|
|
${MACHINE_ARCH} == "powerpc"
|
|
|
|
_clang_yes=CLANG
|
|
|
|
_clang_no=
|
|
|
|
.else
|
|
|
|
_clang_yes=
|
|
|
|
_clang_no=CLANG
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
#
|
|
|
|
# MK_* options which default to "yes".
|
|
|
|
#
|
|
|
|
.for var in \
|
2008-09-21 22:02:26 +00:00
|
|
|
ACCT \
|
2006-03-17 18:54:44 +00:00
|
|
|
ACPI \
|
2008-09-21 22:02:26 +00:00
|
|
|
AMD \
|
|
|
|
APM \
|
2006-09-11 05:35:57 +00:00
|
|
|
ASSERT_DEBUG \
|
2008-09-21 22:02:26 +00:00
|
|
|
AT \
|
2006-03-17 18:54:44 +00:00
|
|
|
ATM \
|
|
|
|
AUDIT \
|
|
|
|
AUTHPF \
|
|
|
|
BIND \
|
|
|
|
BIND_DNSSEC \
|
|
|
|
BIND_ETC \
|
|
|
|
BIND_LIBS_LWRES \
|
|
|
|
BIND_MTREE \
|
|
|
|
BIND_NAMED \
|
|
|
|
BIND_UTILS \
|
2011-02-22 04:49:57 +00:00
|
|
|
BINUTILS \
|
2006-03-17 18:54:44 +00:00
|
|
|
BLUETOOTH \
|
|
|
|
BOOT \
|
2008-06-16 07:23:12 +00:00
|
|
|
BSD_CPIO \
|
2008-09-21 22:02:26 +00:00
|
|
|
BSNMP \
|
2007-01-26 10:19:08 +00:00
|
|
|
BZIP2 \
|
2006-03-17 18:54:44 +00:00
|
|
|
CALENDAR \
|
2006-11-01 09:02:11 +00:00
|
|
|
CDDL \
|
2011-02-22 04:49:57 +00:00
|
|
|
${_clang_yes} \
|
2006-03-17 18:54:44 +00:00
|
|
|
CPP \
|
|
|
|
CRYPT \
|
2008-09-21 22:02:26 +00:00
|
|
|
CTM \
|
2006-03-17 18:54:44 +00:00
|
|
|
CVS \
|
|
|
|
CXX \
|
|
|
|
DICT \
|
|
|
|
DYNAMICROOT \
|
|
|
|
EXAMPLES \
|
2010-12-22 14:59:22 +00:00
|
|
|
FDT \
|
2008-09-21 22:02:26 +00:00
|
|
|
FLOPPY \
|
2006-03-17 18:54:44 +00:00
|
|
|
FORTH \
|
|
|
|
FP_LIBC \
|
2008-09-21 22:02:26 +00:00
|
|
|
FREEBSD_UPDATE \
|
2006-03-17 18:54:44 +00:00
|
|
|
GAMES \
|
2011-02-22 04:49:57 +00:00
|
|
|
GCC \
|
2006-03-17 18:54:44 +00:00
|
|
|
GCOV \
|
|
|
|
GDB \
|
|
|
|
GNU \
|
|
|
|
GPIB \
|
|
|
|
GROFF \
|
|
|
|
HTML \
|
|
|
|
INET6 \
|
|
|
|
INFO \
|
2007-10-20 19:01:50 +00:00
|
|
|
INSTALLLIB \
|
2006-03-17 18:54:44 +00:00
|
|
|
IPFILTER \
|
2008-09-21 22:02:26 +00:00
|
|
|
IPFW \
|
2006-03-17 18:54:44 +00:00
|
|
|
IPX \
|
2008-09-21 22:02:26 +00:00
|
|
|
JAIL \
|
2006-03-17 18:54:44 +00:00
|
|
|
KERBEROS \
|
2007-06-13 02:08:04 +00:00
|
|
|
KVM \
|
2008-09-21 22:02:26 +00:00
|
|
|
LEGACY_CONSOLE \
|
2006-03-25 06:37:36 +00:00
|
|
|
LIB32 \
|
2006-03-17 18:54:44 +00:00
|
|
|
LIBPTHREAD \
|
|
|
|
LIBTHR \
|
|
|
|
LOCALES \
|
2008-09-21 22:02:26 +00:00
|
|
|
LOCATE \
|
2006-03-17 18:54:44 +00:00
|
|
|
LPR \
|
2008-09-21 22:02:26 +00:00
|
|
|
MAIL \
|
2006-03-17 18:54:44 +00:00
|
|
|
MAILWRAPPER \
|
2008-09-21 22:02:26 +00:00
|
|
|
MAKE \
|
2006-03-17 18:54:44 +00:00
|
|
|
MAN \
|
2006-03-20 14:24:58 +00:00
|
|
|
NCP \
|
2008-09-21 22:02:26 +00:00
|
|
|
NDIS \
|
2006-03-17 18:54:44 +00:00
|
|
|
NETCAT \
|
2008-09-21 22:02:26 +00:00
|
|
|
NETGRAPH \
|
2006-03-17 18:54:44 +00:00
|
|
|
NIS \
|
|
|
|
NLS \
|
|
|
|
NLS_CATALOGS \
|
2006-04-28 12:03:38 +00:00
|
|
|
NS_CACHING \
|
2008-09-21 22:02:26 +00:00
|
|
|
NTP \
|
2006-03-17 18:54:44 +00:00
|
|
|
OBJC \
|
|
|
|
OPENSSH \
|
|
|
|
OPENSSL \
|
|
|
|
PAM \
|
|
|
|
PF \
|
2008-09-21 22:02:26 +00:00
|
|
|
PKGTOOLS \
|
|
|
|
PMC \
|
|
|
|
PORTSNAP \
|
|
|
|
PPP \
|
2006-03-19 06:14:07 +00:00
|
|
|
PROFILE \
|
2008-09-21 22:02:26 +00:00
|
|
|
QUOTAS \
|
2006-03-17 18:54:44 +00:00
|
|
|
RCMDS \
|
|
|
|
RCS \
|
|
|
|
RESCUE \
|
2008-09-21 22:02:26 +00:00
|
|
|
ROUTED \
|
2006-03-17 18:54:44 +00:00
|
|
|
SENDMAIL \
|
|
|
|
SETUID_LOGIN \
|
|
|
|
SHAREDOCS \
|
2007-05-19 04:42:59 +00:00
|
|
|
SSP \
|
2008-09-21 22:02:26 +00:00
|
|
|
SYSINSTALL \
|
2007-05-13 14:12:40 +00:00
|
|
|
SYMVER \
|
2006-03-17 18:54:44 +00:00
|
|
|
SYSCONS \
|
|
|
|
TCSH \
|
2008-09-21 22:02:26 +00:00
|
|
|
TELNET \
|
|
|
|
TEXTPROC \
|
2006-03-17 18:54:44 +00:00
|
|
|
TOOLCHAIN \
|
|
|
|
USB \
|
2008-09-21 22:02:26 +00:00
|
|
|
WIRELESS \
|
2007-04-06 02:13:30 +00:00
|
|
|
WPA_SUPPLICANT_EAPOL \
|
2008-01-24 07:03:21 +00:00
|
|
|
ZFS \
|
|
|
|
ZONEINFO
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITH_${var}) && defined(WITHOUT_${var})
|
|
|
|
.error WITH_${var} and WITHOUT_${var} can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${var})
|
|
|
|
.error MK_${var} can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_${var})
|
|
|
|
MK_${var}:= no
|
|
|
|
.else
|
|
|
|
MK_${var}:= yes
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# MK_* options which default to "no".
|
|
|
|
#
|
|
|
|
.for var in \
|
2009-06-01 21:58:59 +00:00
|
|
|
BIND_IDN \
|
|
|
|
BIND_LARGE_FILE \
|
2006-03-17 18:54:44 +00:00
|
|
|
BIND_LIBS \
|
2009-06-01 21:58:59 +00:00
|
|
|
BIND_SIGCHASE \
|
|
|
|
BIND_XML \
|
2010-08-23 10:04:26 +00:00
|
|
|
BSD_GREP \
|
2011-02-22 04:49:57 +00:00
|
|
|
${_clang_no} \
|
2010-10-05 21:19:20 +00:00
|
|
|
GPIO \
|
2006-03-17 18:54:44 +00:00
|
|
|
HESIOD \
|
Add the BSD-licensed Citrus iconv to the base system with default off
setting. It can be built by setting the WITH_ICONV knob. While this
knob is unset, the library part, the binaries, the header file and
the metadata files will not be built or installed so it makes no impact
on the system if left turned off.
This work is based on the iconv implementation in NetBSD but a great
number of improvements and feature additions have been included:
- Some utilities have been added. There is a conversion table generator,
which can compare conversion tables to reference data generated by
GNU libiconv. This helps ensuring conversion compatibility.
- UTF-16 surrogate support and some endianness issues have been fixed.
- The rather chaotic Makefiles to build metadata have been refactored
and cleaned up, now it is easy to read and it is also easier to add
support for new encodings.
- A bunch of new encodings and encoding aliases have been added.
- Support for 1->2, 1->3 and 1->4 mappings, which is needed for
transliterating with flying accents as GNU does, like "u.
- Lots of warnings have been fixed, the major part of the code is
now WARNS=6 clean.
- New section 1 and section 5 manual pages have been added.
- Some GNU-specific calls have been implemented:
iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into()
- Support for GNU's //IGNORE suffix has been added.
- The "-" argument for stdin is now recognized in iconv(1) as per POSIX.
- The Big5 conversion module has been fixed.
- The iconv.h header files is supposed to be compatible with the
GNU version, i.e. sources should build with base iconv.h and
GNU libiconv. It also includes a macro magic to deal with the
char ** and const char ** incompatibility.
- GNU compatibility: "" or "char" means the current local
encoding in use
- Various cleanups and style(9) fixes.
Approved by: delphij (mentor)
Obtained from: The NetBSD Project
Sponsored by: Google Summer of Code 2009
2011-02-25 00:04:39 +00:00
|
|
|
ICONV \
|
2011-03-21 09:58:24 +00:00
|
|
|
IDEA \
|
|
|
|
OFED
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITH_${var}) && defined(WITHOUT_${var})
|
|
|
|
.error WITH_${var} and WITHOUT_${var} can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${var})
|
|
|
|
.error MK_${var} can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_${var})
|
|
|
|
MK_${var}:= yes
|
|
|
|
.else
|
|
|
|
MK_${var}:= no
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# Force some options off if their dependencies are off.
|
2007-10-12 08:03:51 +00:00
|
|
|
# Order is somewhat important.
|
2006-03-17 18:54:44 +00:00
|
|
|
#
|
2007-10-12 08:03:51 +00:00
|
|
|
.if ${MK_LIBPTHREAD} == "no"
|
|
|
|
MK_LIBTHR:= no
|
|
|
|
.endif
|
|
|
|
|
2008-03-29 17:44:40 +00:00
|
|
|
.if ${MK_LIBTHR} == "no"
|
2007-10-12 08:03:51 +00:00
|
|
|
MK_BIND:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND} == "no"
|
|
|
|
MK_BIND_DNSSEC:= no
|
|
|
|
MK_BIND_ETC:= no
|
|
|
|
MK_BIND_LIBS:= no
|
|
|
|
MK_BIND_LIBS_LWRES:= no
|
|
|
|
MK_BIND_MTREE:= no
|
|
|
|
MK_BIND_NAMED:= no
|
|
|
|
MK_BIND_UTILS:= no
|
|
|
|
.endif
|
|
|
|
|
2006-04-01 18:11:42 +00:00
|
|
|
.if ${MK_BIND_MTREE} == "no"
|
|
|
|
MK_BIND_ETC:= no
|
|
|
|
.endif
|
|
|
|
|
2007-04-06 02:13:30 +00:00
|
|
|
.if ${MK_CDDL} == "no"
|
|
|
|
MK_ZFS:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_CRYPT} == "no"
|
|
|
|
MK_OPENSSL:= no
|
|
|
|
MK_OPENSSH:= no
|
|
|
|
MK_KERBEROS:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-20 14:24:58 +00:00
|
|
|
.if ${MK_IPX} == "no"
|
|
|
|
MK_NCP:= no
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_MAIL} == "no"
|
|
|
|
MK_MAILWRAPPER:= no
|
|
|
|
MK_SENDMAIL:= no
|
|
|
|
.endif
|
|
|
|
|
2010-01-16 12:20:26 +00:00
|
|
|
.if ${MK_NETGRAPH} == "no"
|
|
|
|
MK_ATM:= no
|
|
|
|
MK_BLUETOOTH:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSL} == "no"
|
|
|
|
MK_OPENSSH:= no
|
|
|
|
MK_KERBEROS:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_PF} == "no"
|
|
|
|
MK_AUTHPF:= no
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_TEXTPROC} == "no"
|
|
|
|
MK_GROFF:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_TOOLCHAIN} == "no"
|
2010-06-09 19:57:20 +00:00
|
|
|
MK_CLANG:= no
|
2006-03-17 18:54:44 +00:00
|
|
|
MK_GDB:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Set defaults for the MK_*_SUPPORT variables.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# MK_*_SUPPORT options which default to "yes" unless their corresponding
|
|
|
|
# MK_* variable is set to "no".
|
|
|
|
#
|
|
|
|
.for var in \
|
2007-01-26 10:19:08 +00:00
|
|
|
BZIP2 \
|
2006-03-17 18:54:44 +00:00
|
|
|
GNU \
|
|
|
|
INET6 \
|
|
|
|
IPX \
|
|
|
|
KERBEROS \
|
2007-06-13 02:08:04 +00:00
|
|
|
KVM \
|
2008-09-21 22:02:26 +00:00
|
|
|
NETGRAPH \
|
|
|
|
PAM \
|
|
|
|
WIRELESS
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT)
|
|
|
|
.error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${var}_SUPPORT)
|
|
|
|
.error MK_${var}_SUPPORT can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no"
|
|
|
|
MK_${var}_SUPPORT:= no
|
|
|
|
.else
|
|
|
|
MK_${var}_SUPPORT:= yes
|
|
|
|
.endif
|
|
|
|
.endfor
|
2007-12-12 16:39:32 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MK_* options whose default value depends on another option.
|
|
|
|
#
|
|
|
|
.for vv in \
|
2010-05-19 23:56:26 +00:00
|
|
|
GSSAPI/KERBEROS \
|
|
|
|
MAN_UTILS/MAN
|
2007-12-12 16:39:32 +00:00
|
|
|
.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H})
|
|
|
|
.error WITH_${vv:H} and WITHOUT_${vv:H} can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${vv:H})
|
|
|
|
.error MK_${vv:H} can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_${vv:H})
|
|
|
|
MK_${vv:H}:= yes
|
|
|
|
.elif defined(WITHOUT_${vv:H})
|
|
|
|
MK_${vv:H}:= no
|
|
|
|
.else
|
|
|
|
MK_${vv:H}:= ${MK_${vv:T}}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.endif # !_WITHOUT_SRCCONF
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2005-04-11 07:13:29 +00:00
|
|
|
.endif # !target(__<bsd.own.mk>__)
|