Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.pkg.mk,v 1.1992 2013/06/05 08:19:57 tron Exp $
# $NetBSD: bsd.pkg.mk,v 1.1997 2014/03/11 14:07:04 jperkin Exp $
#
# This file is in the public domain.
#
@@ -97,7 +97,7 @@ MAINTAINER?= pkgsrc-users@NetBSD.org
PKGWILDCARD?= ${PKGBASE}-[0-9]*
SVR4_PKGNAME?= ${PKGNAME}
TOOL_DEPENDS?= # empty
WRKSRC?= ${WRKDIR}/${DISTNAME}
WRKSRC?= ${WRKDIR}/${DISTNAME:U${PKGNAME_NOREV}}
# Override for SU_CMD user check
_IS_ROOT_CMD?= ${TEST} `${ID} -u` = `${ID} -u ${_SU_ROOT_USER}`
@@ -133,8 +133,12 @@ PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite
PKG_FAIL_REASON+= "This package doesn't support PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}."
.endif
.if !defined(CATEGORIES) || !defined(DISTNAME)
PKG_FAIL_REASON+='CATEGORIES and DISTNAME are mandatory.'
.if !defined(CATEGORIES)
PKG_FAIL_REASON+='CATEGORIES are mandatory.'
.endif
.if !defined(PKGNAME) && !defined(DISTNAME)
PKG_FAIL_REASON+='PKGNAME and/or DISTNAME are mandatory.'
.endif
.if defined(PKG_PATH)
@@ -180,6 +184,7 @@ ALL_ENV+= LDFLAGS=${LDFLAGS:M*:Q}
ALL_ENV+= LINKER_RPATH_FLAG=${LINKER_RPATH_FLAG:Q}
ALL_ENV+= PATH=${PATH:Q}:${LOCALBASE}/bin:${X11BASE}/bin
ALL_ENV+= PREFIX=${PREFIX}
ALL_ENV+= MAKELEVEL=0
# This variable can be added to MAKE_ENV to ease installation of packages
# that use BSD-style Makefiles.
@@ -310,6 +315,14 @@ OVERRIDE_DIRDEPTH?= 2
#
.include "alternatives.mk"
# Support alternative init systems.
#
INIT_SYSTEM?= rc.d
.if ${INIT_SYSTEM} == "smf"
. include "smf.mk"
.endif
_BUILD_DEFS+= INIT_SYSTEM
# Define SMART_MESSAGES in /etc/mk.conf for messages giving the tree
# of dependencies for building, and the current target.
_PKGSRC_IN?= ===${SMART_MESSAGES:D> ${.TARGET} [${PKGNAME}${_PKGSRC_DEPS}] ===}

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.pkg.update.mk,v 1.23 2011/05/04 09:49:34 obache Exp $
# $NetBSD: bsd.pkg.update.mk,v 1.26 2014/02/14 07:14:23 obache Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and contains the targets
# and variables for "make update".
@@ -16,7 +16,7 @@ REINSTALL?= NO # reinstall upon update
#
.if !defined(UPDATE_TARGET)
. if defined(DEPENDS_TARGET) && (${DEPENDS_TARGET} == "update")
. if ${_USE_DESTDIR} != "no" || make(package) || make(package-install)
. if make(package) || make(package-install)
UPDATE_TARGET= package-install
. else
UPDATE_TARGET= install
@@ -127,7 +127,7 @@ ${_DDIR}: ${_DLIST}
if [ "$$pkgs" ]; then ${PKG_INFO} -Q PKGPATH $$pkgs; fi > ${_DDIR}
${_DLIST}: ${WRKDIR}
if ${PKG_INFO} -qe "${PKGWILDCARD}"; then \
${RUN} if ${PKG_INFO} -qe "${PKGWILDCARD}"; then \
${PKG_INFO} -qr "${PKGWILDCARD}" > ${_DLIST}; \
else \
${TOUCH} ${_DLIST}; \

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.pkg.use.mk,v 1.54 2013/05/10 09:07:37 obache Exp $
# $NetBSD: bsd.pkg.use.mk,v 1.56 2013/09/09 16:35:40 joerg Exp $
#
# Turn USE_* macros into proper depedency logic. Included near the top of
# bsd.pkg.mk, after bsd.prefs.mk.
@@ -21,6 +21,12 @@
.if defined(USE_BSD_MAKEFILE)
MAKE_ENV+= ${BSD_MAKE_ENV} INSTALL=${TOOLS_INSTALL:Q}
. if defined(HAVE_LLVM)
MAKE_ENV+= HAVE_LLVM=${HAVE_LLVM:Q}
. endif
. if defined(HAVE_GCC)
MAKE_ENV+= HAVE_GCC=${HAVE_GCC:Q}
. endif
.endif
.if defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake)

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.prefs.mk,v 1.336 2013/04/28 13:21:47 obache Exp $
# $NetBSD: bsd.prefs.mk,v 1.344 2014/03/14 22:05:18 ryoon Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -240,7 +240,7 @@ MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q}
LOWER_VENDOR?= debian
. elif exists(/etc/mandrake-release)
LOWER_VENDOR?= mandrake
. elif exists(/etc/redhat-version)
. elif exists(/etc/redhat-version) || exists(/etc/redhat-release)
LOWER_VENDOR?= redhat
. elif exists(/etc/slackware-version)
LOWER_VENDOR?= slackware
@@ -293,6 +293,21 @@ LOWER_OPSYS_VERSUFFIX= 2.${OS_VERSION:C/5.//}
_UNAME_V!= ${UNAME} -v
. if !empty(_UNAME_V:Mjoyent_*)
OS_VARIANT= SmartOS
. elif !empty(_UNAME_V:Momnios-*)
OS_VARIANT= OmniOS
. endif
.elif ${OPSYS} == "SCO_SV"
SCO_RELEASE!= ${UNAME} -r
SCO_VERSION!= ${UNAME} -v
LOWER_VENDOR?= pc
LOWER_OPSYS?= sco${SCO_RELEASE}v${SCO_VERSION}
MACHINE_GNU_PLATFORM?= ${MACHINE_GNU_ARCH}-${LOWER_VENDOR}-${LOWER_OPSYS}
_UNAME_V!= ${UNAME} -v
. if !empty(_UNAME_V:M5.0*)
OS_VARIANT= SCOOSR5
. elif !empty(_UNAME_V:M6.0*)
OS_VARIANT= SCOOSR6
. endif
.elif ${OPSYS} == "Minix"
@@ -579,6 +594,8 @@ X11BASE?= /opt/X11
X11BASE?= /usr/X11R7
. elif exists(/usr/X11R7/lib/libX11.so)
X11BASE?= /usr/X11R7
. elif exists(/usr/lib/libX11.so) || exists(/usr/lib64/libX11.so)
X11BASE?= /usr
. else
X11BASE?= /usr/X11R6
. endif
@@ -604,6 +621,8 @@ X11_ENCODINGSDIR?= ${X11BASE}/share/fonts/X11/encodings
X11_ENCODINGSDIR?= ${X11BASE}/lib/X11/fonts/encodings
.endif
CATMAN_SECTION_SUFFIX?= no
IMAKE_MAN_SOURCE_PATH= man/man
IMAKE_MAN_SUFFIX= 1
IMAKE_LIBMAN_SUFFIX= 3
@@ -669,6 +688,18 @@ USE_TOOLS+= awk:pkgsrc cut:pkgsrc echo:pkgsrc pwd:pkgsrc \
.include "${_PKGSRC_TOPDIR}/mk/tools/defaults.mk"
.if ${FETCH_USING} == "auto"
. if defined(TOOLS_PLATFORM.fetch)
FETCH_USING= fetch
. elif defined(TOOLS_PLATFORM.curl)
FETCH_USING= curl
. elif defined(TOOLS_PLATFORM.wget)
FETCH_USING= wget
. else
FETCH_USING= ftp
. endif
.endif
.if !defined(_PKGSRCDIR)
_PKGSRCDIR!= cd ${_PKGSRC_TOPDIR} && ${PWD_CMD}
MAKEFLAGS+= _PKGSRCDIR=${_PKGSRCDIR:Q}

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.buildlink3.mk,v 1.223 2013/06/08 20:23:02 dholland Exp $
# $NetBSD: bsd.buildlink3.mk,v 1.224 2014/03/10 12:06:35 jperkin Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -737,12 +737,12 @@ _BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}= # empty
# 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}]\)/usr\(/lib${LIBABISUFFIX}/[^${_BLNK_SEP}]*lib[^/${_BLNK_SEP}]*\.la[${_BLNK_SEP}]\),\\1${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}\\2,g" \
-e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)/usr\(/lib${LIBABISUFFIX}/[^${_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"
.if ${X11_TYPE} != "modular"
.if ${X11_TYPE} != "modular" && ${X11BASE} != "/usr"
_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
-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"
@@ -768,10 +768,10 @@ _BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
# 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"
-e "/^dependency_libs=/s,\([${_BLNK_SEP}]\)-L${LOCALBASE}/[^${_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${X11BASE}/[^${_BLNK_SEP}]*\([${_BLNK_SEP}]\),\\1\\2,g"
#
# Unmangle.
#
@@ -797,16 +797,16 @@ _BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
. 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,/usr\(/lib${LIBABISUFFIX}/[^${_BLNK_SEP}]*\),${BUILDLINK_DIR}\\1,g" \
-e "/^libdir=/s,${DEPOTBASE}/[^/${_BLNK_SEP}]*\(/[^${_BLNK_SEP}]*\),${BUILDLINK_DIR}\\1,g"
. if ${X11_TYPE} != "modular"
_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
-e "/^libdir=/s,${X11BASE}\(/[^${_BLNK_SEP}]*\),${BUILDLINK_X11_DIR}\\1,g"
. endif
_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
-e "/^libdir=/s,${LOCALBASE}\(/[^${_BLNK_SEP}]*\),${BUILDLINK_DIR}\\1,g"
. if ${X11_TYPE} != "modular" && ${X11BASE} != "/usr"
_BLNK_LT_ARCHIVE_FILTER_SED_SCRIPT.${_pkg_}+= \
-e "/^libdir=/s,${X11BASE}\(/[^${_BLNK_SEP}]*\),${BUILDLINK_X11_DIR}\\1,g"
. endif
. endif
.endfor
@@ -1050,10 +1050,10 @@ _BLNK_TRANSFORM+= depot:${DEPOTBASE}:${LOCALBASE}
# ${LOCALBASE} or ${X11BASE} into references into ${BUILDLINK_DIR}.
#
.if ${PKG_INSTALLATION_TYPE} == "overwrite"
_BLNK_TRANSFORM+= P:${LOCALBASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}
. if defined(USE_X11) && ${X11_TYPE} != "modular"
_BLNK_TRANSFORM+= P:${X11BASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_X11_DIR}}
. endif
_BLNK_TRANSFORM+= P:${LOCALBASE}:${_BLNK_MANGLE_DIR.${BUILDLINK_DIR}}
.endif
#
# Transform references to ${X11BASE} into ${BUILDLINK_X11_DIR}.

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.builtin.mk,v 1.11 2010/05/19 09:12:15 sbd Exp $
# $NetBSD: bsd.builtin.mk,v 1.13 2013/11/23 09:06:09 obache Exp $
#
# Copyright (c) 2004-2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -124,14 +124,29 @@
.for _pkg_ in ${BUILTIN_PKG}
#
# Define PREFER.<pkg> to be either "pkgsrc" or "native" depending on
# whether to prefer the pkgsrc or native versions of software that's
# also part of the base system. Its value is determined from the
# user-settable values PREFER_PKGSRC and PREFER_NATIVE. Preferences are
# determined by the most specific instance of the package in either
# PREFER_PKGSRC or PREFER_NATIVE. If a package is specified in neither
# or in both variables, then PREFER_PKGSRC has precedence over
# PREFER_NATIVE.
# Define PREFER.<pkg> to be either "pkgsrc" or "native" depending on whether
# to prefer the pkgsrc or native version of a particular package. Its value
# is determined by a number of variables described below.
#
# PREFER.<pkg>
# This variable has the highest precedence, and should generally only be
# used by packages when it is known that a specific version should always
# be used or avoided.
#
# PREFER_PKGSRC
# PREFER_NATIVE
# These user-settable variables either take "yes" or a list of package
# names. The "yes" form has a lower precedence than a specific package,
# so the most common case is to set one variable to "yes" and then override
# specific packages in the other variable.
#
# If a package is specified in neither or in both variables, then the
# PREFER_PKGSRC setting takes precedence.
#
# _OPSYS_PREFER.<pkg>
# This variable should only be set in mk/platform files, and provides a
# per-platform default that takes precedence over "yes" in PREFER_* but is
# overridden by a more specific package name match.
#
_BLTN_PREFER.${_pkg_}= pkgsrc
. if !empty(PREFER_NATIVE:M[yY][eE][sS])
@@ -140,6 +155,9 @@ _BLTN_PREFER.${_pkg_}= native
. if !empty(PREFER_PKGSRC:M[yY][eE][sS])
_BLTN_PREFER.${_pkg_}= pkgsrc
. endif
. if defined(_OPSYS_PREFER.${_pkg_})
_BLTN_PREFER.${_pkg_}= ${_OPSYS_PREFER.${_pkg_}}
. endif
. if !empty(PREFER_NATIVE:M${_pkg_})
_BLTN_PREFER.${_pkg_}= native
. endif
@@ -153,4 +171,5 @@ _BUILTIN_PKGS+= ${_pkg_}
.endfor
.include "../../mk/buildlink3/find-libs.mk"
.include "../../mk/buildlink3/find-headers.mk"
.include "../../mk/buildlink3/find-files.mk"

View File

@@ -0,0 +1,106 @@
# $NetBSD: find-headers.mk,v 1.2 2013/11/23 12:35:39 obache Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Johnny C. Lam.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by the NetBSD
# Foundation, Inc. and its contributors.
# 4. Neither the name of The NetBSD Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
#
# This is a "subroutine" that can be included to detect the presence of
# header files in the base system.
#
# The following variables must be defined before including this file:
#
# BUILTIN_FIND_HEADERS_VAR is a list of variables to define. These
# variables take the value of the path to the file that is
# "found".
#
# BUILTIN_FIND_HEADERS.<var> is the list of header files to find, in
# order, on the ${BUILTIN_INCLUDE_DIRS}. The variable <var> is set
# to the first path "found" on the filesystem.
#
# Optionally, the following variables may also be defined:
#
# BUILTIN_FIND_GREP.<var> is a regular expression that must be
# matched within a file in order for the file to be considered
# "found". If it isn't defined, then we simply check for the
# existence of the file.
#
# After including this file, the following variables are defined:
#
# <var> is the first of the header file listed in
# ${BUILTIN_FIND_HEADERS.<var>} that is "found" in
# ${BUILTIN_INCLUDE_DIRS}, or else it is "__nonexistent__".
#
# An example use is:
#
# BUILTIN_FIND_HEADERS_VAR:= FOO BAR
#
# BUILTIN_FIND_HEADERS.FOO= header1.h header2.h
# BUILTIN_FIND_GREP.FOO= \#define.*FOO
#
# BUILTIN_FIND_HEADERS.BAR= header3.h heaer/4.h
# .include "../../mk/buildlink3/builtin-files.mk"
#
.if empty(USE_TOOLS:Mecho)
USE_TOOLS+= echo
.endif
.if empty(USE_TOOLS:Mgrep)
USE_TOOLS+= grep
.endif
BUILTIN_INCLUDE_DIRS?= ${COMPILER_INCLUDE_DIRS} ${"${X11_TYPE:Mnative}":?${X11BASE}/include:}
.for _var_ in ${BUILTIN_FIND_HEADERS_VAR}
. if !defined(${_var_})
${_var_}= __nonexistent__
. for _file_ in ${BUILTIN_FIND_HEADERS.${_var_}}
. for _dir_ in ${BUILTIN_INCLUDE_DIRS}
. if !empty(${_var_}:M__nonexistent__) && exists(${_dir_}/${_file_})
. if !defined(BUILTIN_FIND_GREP.${_var_})
${_var_}= ${_dir_}/${_file_}
. else
${_var_}!= \
if ${GREP} -q ${BUILTIN_FIND_GREP.${_var_}:Q} ${_dir_:Q}/${_file_:Q}; then \
${ECHO} ${_dir_:Q}/${_file_:Q}; \
else \
${ECHO} __nonexistent__; \
fi
. endif
. endif
. endfor
. endfor
. endif
MAKEVARS+= ${_var_}
.endfor

View File

@@ -1,4 +1,4 @@
# $NetBSD: check-files.mk,v 1.29 2013/03/08 15:32:52 wiz Exp $
# $NetBSD: check-files.mk,v 1.30 2014/02/20 09:15:15 obache Exp $
#
# This file checks that the list of installed files matches the PLIST.
# For that purpose it records the file list of LOCALBASE before and
@@ -144,7 +144,7 @@ _CHECK_FILES_ERRMSGS+= ${_CHECK_FILES_ERRMSG.varbase}
# building the check-files-pre target. These targets should cause the
# "pre" file lists to be generated.
#
_CHECK_FILES_PRE= check-files-pre-message
_CHECK_FILES_PRE= #
_CHECK_FILES_PRE+= ${_CHECK_FILES_PRE.prefix}
.if empty(CHECK_FILES_STRICT:M[nN][oO])
_CHECK_FILES_PRE+= ${_CHECK_FILES_PRE.sysconfdir}
@@ -156,7 +156,7 @@ _CHECK_FILES_PRE+= ${_CHECK_FILES_PRE.varbase}
# building the check-files-post target. These targets should cause the
# "post" file lists to be generated.
#
_CHECK_FILES_POST= check-files-post-message
_CHECK_FILES_POST= #
_CHECK_FILES_POST+= ${_CHECK_FILES_POST.prefix}
.if empty(CHECK_FILES_STRICT:M[nN][oO])
_CHECK_FILES_POST+= ${_CHECK_FILES_POST.sysconfdir}
@@ -171,8 +171,8 @@ privileged-install-hook: check-files
# check-files-pre and check-files-post targets and subtargets
#
.PHONY: check-files-pre check-files-post
check-files-pre: ${_CHECK_FILES_PRE}
check-files-post: ${_CHECK_FILES_POST}
check-files-pre: check-files-pre-message ${_CHECK_FILES_PRE}
check-files-post: check-files-post-message ${_CHECK_FILES_POST}
.PHONY: check-files-pre-message check-files-post-message
check-files-pre-message:

View File

@@ -1,4 +1,4 @@
# $NetBSD: check-portability.awk,v 1.4 2006/11/13 23:21:53 rillig Exp $
# $NetBSD: check-portability.awk,v 1.8 2014/03/11 23:27:40 ryoon Exp $
#
# Checks a shell file for possible portability problems.
#

View File

@@ -1,4 +1,4 @@
# $NetBSD: check-shlibs-elf.awk,v 1.5 2012/06/16 11:58:07 obache Exp $
# $NetBSD: check-shlibs-elf.awk,v 1.6 2013/10/25 14:11:13 joerg Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -31,9 +31,9 @@
#
# Read a list of potential ELF binaries from stdin.
# For each, extract the DT_RPATH and DT_NEEDED fields.
# Check that DT_RPATH is not relative to WRKDIR.
# Check that DT_NEEDED can be resolved either via DT_RPATH
# For each, extract the DT_RPATH, DT_RUNPATH and DT_NEEDED fields.
# Check that DT_RPATH and DT_RUNPATH is not relative to WRKDIR.
# Check that DT_NEEDED can be resolved either via DT_RPATH, DT_RUNPATH
# or a system specific default path.
# Check that the resolved DSO belongs to full dependency.
#
@@ -99,8 +99,8 @@ function check_pkg(DSO, pkg, found) {
function checkshlib(DSO, needed, rpath, found, dso_rath, got_rpath) {
cmd = readelf " -Wd " shquote(DSO) " 2> /dev/null"
while ((cmd | getline) > 0) {
if ($2 == "(RPATH)") {
sub("^[[:space:]]*0[xX][[:xdigit:]]+[[:space:]]+\\(RPATH\\)[[:space:]]+Library rpath: \\[", "")
if ($2 == "(RPATH)" || $2 == "(RUNPATH)") {
sub("^[[:space:]]*0[xX][[:xdigit:]]+[[:space:]]+\\(RU?N?PATH\\)[[:space:]]+Library ru?n?path: \\[", "")
dso_rpath = substr($0, 1, length($0) - 1)
if (length(system_rpath) > 0)
split(dso_rpath ":" system_rpath, rpath, ":")

View File

@@ -1,4 +1,4 @@
# $NetBSD: check-shlibs.mk,v 1.22 2013/02/20 06:00:51 obache Exp $
# $NetBSD: check-shlibs.mk,v 1.23 2014/03/02 05:43:16 obache Exp $
#
# This file verifies that all libraries used by the package can be found
# at run-time.
@@ -12,6 +12,13 @@
#
# Package-settable variables:
#
# CHECK_SHLIBS_SKIP
# A list of shell patterns (like man/*) that should be excluded
# from the check. Note that a * in a pattern also matches a slash
# in a pathname.
#
# Default value: empty.
#
# CHECK_SHLIBS_SUPPORTED
# Whether the check should be enabled for this package or not.
#
@@ -27,6 +34,7 @@ CHECK_SHLIBS?= yes
.endif
CHECK_SHLIBS?= no
CHECK_SHLIBS_SUPPORTED?= yes
CHECK_SHLIBS_SKIP?= # none
# All binaries and shared libraries.
_CHECK_SHLIBS_ERE= (bin/|sbin/|libexec/|\.so$$|lib/lib.*\.so|lib/lib.*\.dylib|lib/lib.*\.sl)
@@ -60,6 +68,13 @@ _check-shlibs: error-check .PHONY
cd ${DESTDIR:Q}${PREFIX:Q}; \
${_CHECK_SHLIBS_FILELIST_CMD} | \
${EGREP} -h ${_CHECK_SHLIBS_ERE:Q} | \
while read file; do \
case "$$file" in \
${CHECK_SHLIBS_SKIP:@p@${p}) continue ;;@} \
*) ;; \
esac; \
${ECHO} $$file; \
done | \
${PKGSRC_SETENV} ${CHECK_SHLIBS_ELF_ENV} ${AWK} -f ${CHECK_SHLIBS_ELF} > ${ERROR_DIR}/${.TARGET}
.else
@@ -81,6 +96,10 @@ _check-shlibs: error-check .PHONY
${_CHECK_SHLIBS_FILELIST_CMD} | \
${EGREP} -h ${_CHECK_SHLIBS_ERE:Q} | \
while read file; do \
case "$$file" in \
${CHECK_SHLIBS_SKIP:@p@${p}) continue ;;@} \
*) ;; \
esac; \
err=`$$ldd $$file 2>&1 | ${GREP} "not found" || ${TRUE}`; \
${TEST} -z "$$err" || ${ECHO} "${DESTDIR}${PREFIX}/$$file: $$err"; \
done

View File

@@ -1,4 +1,4 @@
# $NetBSD: checksum.mk,v 1.19 2013/06/14 15:09:47 tron Exp $
# $NetBSD: checksum.mk,v 1.20 2013/11/16 15:29:39 jakllsch Exp $
#
# See bsd.checksum.mk for helpful comments.
#
@@ -122,5 +122,5 @@ depends-checksum:
while read dir; do \
${ECHO} "===> Checksumming for $${dir}" && \
cd ${.CURDIR}/../../$$dir && \
${RECURSIVE_MAKE} ${MAKEFLAGS} checksum; \
${RECURSIVE_MAKE} ${MAKEFLAGS} checksum || exit 1; \
done

View File

@@ -1,4 +1,4 @@
# $NetBSD: compiler.mk,v 1.80 2012/12/12 20:49:01 marino Exp $
# $NetBSD: compiler.mk,v 1.81 2013/07/07 09:06:23 marino Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -99,6 +99,12 @@ _ACCEPTABLE_COMPILERS+= ${_compiler_}
_ACCEPTABLE_COMPILERS+= ${_COMPILERS}
.endif
# Currently only gcc-based compilers support Ada
# Override PKGSRC_COMPILER if Ada language specified
.if !empty(USE_LANGUAGES:Mada)
PKGSRC_COMPILER= gcc
.endif
.if defined(_ACCEPTABLE_COMPILERS)
. for _acceptable_ in ${_ACCEPTABLE_COMPILERS}
. for _compiler_ in ${PKGSRC_COMPILER}

View File

@@ -1,4 +1,4 @@
# $NetBSD: clang.mk,v 1.12 2013/05/29 13:19:02 joerg Exp $
# $NetBSD: clang.mk,v 1.13 2013/07/31 06:37:27 adam Exp $
#
# This is the compiler definition for the clang compiler.
#
@@ -41,7 +41,7 @@ PKG_CPP:= ${CPPPATH}
.if exists(${CCPATH})
CC_VERSION_STRING!= ${CCPATH} -v 2>&1
CC_VERSION!= ${CCPATH} --version 2>&1 | ${SED} -n "s/clang version /clang-/p"
CC_VERSION!= ${CCPATH} --version 2>&1 | ${SED} -n "s/^.* version /clang-/p"
.else
CC_VERSION_STRING?= ${CC_VERSION}
CC_VERSION?= clang

View File

@@ -1,4 +1,4 @@
# $NetBSD: gcc.mk,v 1.141 2013/06/15 22:32:18 wiz Exp $
# $NetBSD: gcc.mk,v 1.144 2014/02/04 12:11:57 fhajny Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -690,6 +690,7 @@ PKG_CXX:= ${_GCC_CXX}
_GCC_VARS+= FC
_GCC_FC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}g77
_ALIASES.FC= f77 g77
FC= g77
FCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77
F77PATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}g77
PKG_FC:= ${_GCC_FC}
@@ -699,6 +700,7 @@ PKGSRC_FORTRAN?= g77
_GCC_VARS+= FC
_GCC_FC= ${_GCC_DIR}/bin/${_GCC_BIN_PREFIX}gfortran
_ALIASES.FC= gfortran
FC= gfortran
FCPATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran
F77PATH= ${_GCCBINDIR}/${_GCC_BIN_PREFIX}gfortran
PKG_FC:= ${_GCC_FC}
@@ -794,9 +796,9 @@ PREPEND_PATH+= ${_GCC_DIR}/bin
.if (defined(_USE_GCC_SHLIB) && !empty(_USE_GCC_SHLIB:M[Yy][Ee][Ss])) && !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss])
# Special case packages which are themselves a dependency of gcc runtime.
. if empty(PKGPATH:Mdevel/libtool-base) && empty(PKGPATH:Mdevel/binutils) && empty(PKGPATH:Mlang/gcc??)
. if !empty(_GCC_VERSION:M4.7*)
. if !empty(CC_VERSION:Mgcc-4.7*)
. include "../../lang/gcc47-libs/buildlink3.mk"
. elif !empty(_GCC_VERSION:M4.8*)
. elif !empty(CC_VERSION:Mgcc-4.8*)
. include "../../lang/gcc48-libs/buildlink3.mk"
. else
PKG_FAIL_REASON= "No USE_PKGSRC_GCC_RUNTIME support for ${CC_VERSION}"
@@ -848,4 +850,9 @@ _GCC_NEEDS_A_FORTRAN= yes
. include "../../mk/compiler/${PKGSRC_FORTRAN}.mk"
.endif
.if ${OPSYS} == "Interix" && !empty(_GCCBINDIR:M/opt/gcc.*)
COMPILER_INCLUDE_DIRS= ${_GCCBINDIR:H}/include ${_OPSYS_INCLUDE_DIRS}
COMPILER_LIB_DIRS= ${_GCCBINDIR:H}/lib ${_OPSYS_LIB_DIRS}
.endif
.endif # COMPILER_GCC_MK

View File

@@ -1,4 +1,4 @@
# $NetBSD: cmake.mk,v 1.9 2013/02/22 22:45:12 markd Exp $
# $NetBSD: cmake.mk,v 1.10 2013/10/08 12:03:53 obache Exp $
#
# This file handles packages that use CMake as their primary build
# system. For more information about CMake, see http://www.cmake.org/.
@@ -29,6 +29,13 @@ CMAKE_ARGS+= -DCMAKE_INSTALL_NAME_DIR:PATH=${PREFIX}/lib
CMAKE_ARGS+= -DOPENAL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenAL.framework/Headers
CMAKE_ARGS+= -DOPENGL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenGL.framework/Headers
.endif
CMAKE_ARGS+= -DCMAKE_INSTALL_MANDIR:PATH=${PKGMANDIR}
.if defined(INFO_FILES)
CMAKE_ARGS+= -DCMAKE_INSTALL_INFODIR:PATH=${PKGINFODIR}
.endif
.if defined(USE_PKGLOCALEDIR) && empty(USE_PKGLOCALEDIR:M[nN][oO])
CMAKE_ARGS+= -DCMAKE_INSTALL_LOCALEDIR:PATH=${PKGLOCALEDIR}/locale
.endif
CMAKE_MODULE_PATH_OVERRIDE+= CMakeLists.txt

View File

@@ -1,27 +1,22 @@
# $NetBSD: config-override.mk,v 1.6 2008/02/07 21:36:13 rillig Exp $
# $NetBSD: config-override.mk,v 1.7 2013/10/13 10:10:05 wiz Exp $
######################################################################
### config-{guess,sub,rpath}-override (PRIVATE)
### config-{guess,sub}-override (PRIVATE)
######################################################################
### config-{guess,sub,rpath}-override replace any existing config.guess,
### config.sub, and config-rpath under ${WRKSRC} with the specially-kept
### versions under pkgsrc/mk/gnu-config.
### config-{guess,sub}-override replace any existing config.guess and
### config.sub under ${WRKSRC} with the specially-kept versions
### under pkgsrc/mk/gnu-config.
###
do-configure-pre-hook: config-guess-override
do-configure-pre-hook: config-sub-override
.if defined(CONFIG_RPATH_OVERRIDE)
do-configure-pre-hook: config-rpath-override
.endif
_OVERRIDE_VAR.guess= CONFIG_GUESS_OVERRIDE
_OVERRIDE_VAR.sub= CONFIG_SUB_OVERRIDE
_OVERRIDE_VAR.rpath= CONFIG_RPATH_OVERRIDE
OVERRIDE_DIRDEPTH.config-guess?= ${OVERRIDE_DIRDEPTH}
OVERRIDE_DIRDEPTH.config-sub?= ${OVERRIDE_DIRDEPTH}
OVERRIDE_DIRDEPTH.config-rpath?= ${OVERRIDE_DIRDEPTH}
.for _sub_ in guess sub rpath
.for _sub_ in guess sub
_SCRIPT.config-${_sub_}-override= \
${RM} -f $$file; \
${LN} -fs ${PKGSRCDIR}/mk/gnu-config/config.${_sub_} $$file

View File

@@ -1,11 +1,11 @@
# $NetBSD: gnu-configure.mk,v 1.14 2013/06/12 12:35:35 wiz Exp $
# $NetBSD: gnu-configure.mk,v 1.16 2014/01/28 11:32:30 obache Exp $
_VARGROUPS+= gnu-configure
_USER_VARS.gnu-configure= # none
_PKG_VARS.gnu-configure= GNU_CONFIGURE GNU_CONFIGURE_PREFIX \
SET_LIBDIR GNU_CONFIGURE_LIBSUBDIR \
GNU_CONFIGURE_INFODIR GNU_CONFIGURE_MANDIR \
CONFIGURE_HAS_MANDIR CONFIGURE_HAS_INFODIR \
GNU_CONFIGURE_LIBDIR GNU_CONFIGURE_INFODIR GNU_CONFIGURE_MANDIR \
CONFIGURE_HAS_LIBDIR CONFIGURE_HAS_MANDIR CONFIGURE_HAS_INFODIR \
OVERRIDE_DIRDEPTH.configure \
USE_GNU_CONFIGURE_HOST
@@ -29,10 +29,20 @@ CONFIGURE_ENV+= lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+
GNU_CONFIGURE_PREFIX?= ${PREFIX}
CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX:Q}
.if (defined(SET_LIBDIR) && !empty(SET_LIBDIR)) || \
(defined(GNU_CONFIGURE_LIBDIR) && !empty(GNU_CONFIGURE_LIBDIR)) || \
(defined(GNU_CONFIGURE_LIBSUBDIR) && !empty(GNU_CONFIGURE_LIBSUBDIR))
CONFIGURE_HAS_LIBDIR= yes
.else
CONFIGURE_HAS_LIBDIR?= no
.endif
.if defined(GNU_CONFIGURE_LIBSUBDIR) && !empty(GNU_CONFIGURE_LIBSUBDIR)
CONFIGURE_ARGS+= --libdir=${GNU_CONFIGURE_PREFIX}/lib/${GNU_CONFIGURE_LIBSUBDIR}
.elif defined(SET_LIBDIR) && !empty(SET_LIBDIR)
CONFIGURE_ARGS+= --libdir=${GNU_CONFIGURE_PREFIX}/lib
GNU_CONFIGURE_LIBDIR?= ${GNU_CONFIGURE_PREFIX}/lib/${GNU_CONFIGURE_LIBSUBDIR}
.else
GNU_CONFIGURE_LIBDIR?= ${GNU_CONFIGURE_PREFIX}/lib
.endif
.if !empty(CONFIGURE_HAS_LIBDIR:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --libdir=${GNU_CONFIGURE_LIBDIR}
.endif
USE_GNU_CONFIGURE_HOST?= yes
@@ -151,8 +161,7 @@ _SCRIPT.configure-scripts-osdep= \
configure-scripts-osdep:
.if defined(_SCRIPT.configure-scripts-osdep) && !empty(_SCRIPT.configure-scripts-osdep)
@${STEP_MSG} "Modifying GNU configure scripts for OS dependent support"
${_PKG_SILENT}${_PKG_DEBUG}set -e; \
cd ${WRKSRC}; \
${RUN} cd ${WRKSRC}; \
depth=0; pattern=${CONFIGURE_SCRIPT:T}; \
while ${TEST} $$depth -le ${OVERRIDE_DIRDEPTH.configure}; do \
for file in $$pattern; do \

View File

@@ -1,4 +1,4 @@
# $NetBSD: curses.buildlink3.mk,v 1.17 2010/02/07 10:28:13 roy Exp $
# $NetBSD: curses.buildlink3.mk,v 1.20 2014/03/12 08:38:47 obache Exp $
#
# This Makefile fragment is meant to be included by packages that require
# any curses implementation instead of one particular one. The available
@@ -16,7 +16,7 @@
# system. Setting this to "curses" means that the system curses
# implementation is fine.
#
# Possible: curses, ncurses, pdcurses
# Possible: curses, ncurses, ncursesw, pdcurses
# Default: (depends)
#
# === Variables set by this file ===
@@ -29,10 +29,14 @@ CURSES_BUILDLINK3_MK:= ${CURSES_BUILDLINK3_MK}+
.if !empty(CURSES_BUILDLINK3_MK:M+)
.if !defined(USE_CURSES) && !empty(PKG_OPTIONS:Mwide-curses)
USE_CURSES?= wide
.endif
# _CURSES_PKGS is an exhaustive list of all of the curses implementations
# that may be used with curses.buildlink3.mk.
#
_CURSES_PKGS?= curses ncurses pdcurses
_CURSES_PKGS?= curses ncurses ncursesw pdcurses
CHECK_BUILTIN.curses:= yes
. include "curses.builtin.mk"
@@ -43,6 +47,8 @@ CHECK_BUILTIN.curses:= no
#
.if defined(USE_BUILTIN.curses) && !empty(USE_BUILTIN.curses:M[yY][eE][sS])
CURSES_DEFAULT?= curses
.elif !empty(USE_CURSES:U:Mwide) || !empty(PKG_OPTIONS:U:Mwide-curses)
CURSES_DEFAULT?= ncursesw
.else
CURSES_DEFAULT?= ncurses
.endif
@@ -51,7 +57,11 @@ _CURSES_ACCEPTED= # empty
.if defined(USE_BUILTIN.curses) && !empty(USE_BUILTIN.curses:M[yY][eE][sS])
_CURSES_ACCEPTED+= curses # system curses exists
.endif
.if defined(USE_BUILTIN.cursesw) && !empty(USE_BUILTIN.cursesw:M[yY][eE][sS])
_CURSES_ACCEPTED+= curses # system curses exists
.endif
_CURSES_ACCEPTED+= ncurses # pkgsrc ncurses
_CURSES_ACCEPTED+= ncursesw # pkgsrc ncursesw
_CURSES_ACCEPTED+= pdcurses # pkgsrc pdcurses
_CURSES_TYPE= ${CURSES_DEFAULT}
@@ -70,21 +80,48 @@ BUILD_DEFS_EFFECTS+= CURSES_TYPE
#
_PKG_USE_CURSES= yes
.PHONY: buildlink-curses-ncurses-h
buildlink-curses-ncurses-h:
${RUN} \
src="${H_CURSES}"; \
dest=${BUILDLINK_DIR}"/include/ncurses.h"; \
if ${TEST} ! -f "$$dest" -a -f "$$src"; then \
${ECHO_BUILDLINK_MSG} "Linking ${H_CURSES} -> ncurses.h.";\
${MKDIR} `${DIRNAME} "$$dest"`; \
${LN} -s "$$src" "$$dest"; \
fi
.endif # CURSES_BUILDLINK3_MK
.if ${CURSES_TYPE} == "none"
PKG_FAIL_REASON= \
"${_CURSES_TYPE} is not an acceptable curses type for ${PKGNAME}."
.elif ${CURSES_TYPE} == "curses"
. include "curses.builtin.mk"
BUILDLINK_TREE+= curses -curses
BUILDLINK_LDADD.curses?= ${BUILDLINK_LIBNAME.curses:S/^/-l/:S/^-l$//}
BUILDLINK_BUILTIN_MK.curses= ../../mk/curses.builtin.mk
BUSILDLINK_BUILTIN_MK.curses= ../../mk/curses.builtin.mk
# Some packages only look for ncurses
# The correct action would be to write a patch and pass it upstream
# but by setting FAKE_NCURSES=yes in the package we can temporarily work
# around the short-coming.
. if defined(FAKE_NCURSES) && !empty(FAKE_NCURSES:M[yY][eE][sS])
BUILDLINK_TARGETS+= buildlink-curses-ncurses-h
BUILDLINK_TRANSFORM+= l:ncurses:${BUILDLINK_LIBNAME.curses}
BUILDLINK_TRANSFORM+= l:ncursesw:${BUILDLINK_LIBNAME.curses}
. endif
.elif ${CURSES_TYPE} == "ncurses"
USE_NCURSES= yes
. include "../../devel/ncurses/buildlink3.mk"
BUILDLINK_PREFIX.curses?= ${BUILDLINK_PREFIX.ncurses}
BUILDLINK_LIBNAME.curses?= ${BUILDLINK_LIBNAME.ncurses}
BUILDLINK_LDADD.curses?= ${BUILDLINK_LDADD.ncurses}
.elif ${CURSES_TYPE} == "ncursesw"
. include "../../devel/ncursesw/buildlink3.mk"
BUILDLINK_PREFIX.curses?= ${BUILDLINK_PREFIX.ncursesw}
BUILDLINK_LIBNAME.curses?= ${BUILDLINK_LIBNAME.ncursesw}
BUILDLINK_LDADD.curses?= ${BUILDLINK_LDADD.ncursesw}
.elif ${CURSES_TYPE} == "pdcurses"
. include "../../devel/pdcurses/buildlink3.mk"
BUILDLINK_PREFIX.curses?= ${BUILDLINK_PREFIX.pdcurses}

View File

@@ -1,11 +1,38 @@
# $NetBSD: curses.builtin.mk,v 1.6 2013/04/21 07:53:14 obache Exp $
# $NetBSD: curses.builtin.mk,v 1.8 2014/03/09 10:15:32 roy Exp $
BUILTIN_PKG:= curses
BUILTIN_FIND_LIBS:= curses
BUILTIN_FIND_FILES_VAR:= H_CURSES
BUILTIN_FIND_FILES.H_CURSES= /usr/include/curses.h
BUILTIN_FIND_FILES.H_CURSES+= /boot/develop/headers/3rdparty/curses.h
BUILTIN_FIND_HEADERS_VAR:= H_CURSES
BUILTIN_FIND_HEADERS.H_CURSES= curses.h
BUILTIN_FIND_FILES_VAR+= H_CURSES_HALFDELAY
BUILTIN_FIND_FILES.H_CURSES_HALFDELAY= ${BUILTIN_FIND_FILES.H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_HALFDELAY= halfdelay
BUILTIN_FIND_FILES_VAR+= H_CURSES_RESIZETERM
BUILTIN_FIND_FILES.H_CURSES_RESIZETERM= ${BUILTIN_FIND_FILES.H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_RESIZETERM= resizeterm
BUILTIN_FIND_FILES_VAR+= H_CURSES_PUTWIN
BUILTIN_FIND_FILES.H_CURSES_PUTWIN= ${BUILTIN_FIND_FILES.H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_PUTWIN= putwin
BUILTIN_FIND_FILES_VAR+= H_CURSES_WA_NORMAL
BUILTIN_FIND_FILES.H_CURSES_WA_NORMAL= ${BUILTIN_FIND_FILES.H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_WA_NORMAL= WA_NORMAL
BUILTIN_FIND_FILES_VAR+= H_CURSES_WGETNSTR
BUILTIN_FIND_FILES.H_CURSES_WGETNSTR= ${BUILTIN_FIND_FILES.H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_WGETNSTR= wgetnstr
BUILTIN_FIND_FILES_VAR+= H_CURSES_WSYNCUP
BUILTIN_FIND_FILES.H_CURSES_WSYNCUP= ${BUILTIN_FIND_FILES.H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_WSYNCUP= wsyncup
BUILTIN_FIND_FILES_VAR+= H_CURSES_MVWCHGAT
BUILTIN_FIND_FILES.H_CURSES_MVWCHGAT= ${BUILTIN_FIND_FILES.H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_MVWCHGAT= mvwchgat
.include "buildlink3/bsd.builtin.mk"
@@ -45,6 +72,68 @@ USE_BUILTIN.curses!= \
. endif
. endif # PREFER.curses
.endif
# If it is set to chgat, a curses implementation with chgat(3) support
# is considered good enough.
.if defined(USE_CURSES) && empty(USE_CURSES:M[yY][eE][sS])
. if !empty(USE_CURSES:Mchgat) && !empty(H_CURSES_MVWCHGAT:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
# same for halfdelay(3)
. if !empty(USE_CURSES:Mhalfdelay)
. if !empty(H_CURSES_HALFDELAY:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
. endif
## same for putwin(3)
. if !empty(USE_CURSES:Mputwin) && !empty(H_CURSES_PUTWIN:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
# same for resizeterm(3)
. if !empty(USE_CURSES:Mresizeterm)
. if !empty(H_CURSES_RESIZETERM:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
. endif
## same for WA_NORMAL
. if !empty(USE_CURSES:MWA_NORMAL)
. if !empty(H_CURSES_WA_NORMAL:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
. endif
## same for wgetnstr(3)
. if !empty(USE_CURSES:Mwgetnstr) && !empty(H_CURSES_WGETNSTR:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
# same for wsyncup(3)
. if !empty(USE_CURSES:Mwsyncup) && !empty(H_CURSES_WSYNCUP:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
# AFAIK there is no way of working out if a system curses library has wide
# character support. So be safe and say no unless we know for sure.
. if !empty(USE_CURSES:Mwide)
. if ${OPSYS} == "NetBSD"
. if !empty(MACHINE_PLATFORM:MNetBSD-[0-4].*-*)
USE_BUILTIN.curses= no
. endif
. else
USE_BUILTIN.curses= no
. endif
. endif
.endif
# Even if the package requested tests above pass,
# some system curses just are not good enough.
# If your system is one, add it here so a suitable
# curses from pkgsrc can be installed.
_INCOMPAT_CURSES?= NetBSD-0.*-* NetBSD-1.[0123]*-* \
NetBSD-1.4.*-* NetBSD-1.4[A-X]-*
.for _pattern_ in ${_INCOMPAT_CURSES} ${INCOMPAT_CURSES}
. if !empty(MACHINE_PLATFORM:M${_pattern_})
USE_BUILTIN.curses= no
. endif
.endfor
MAKEVARS+= USE_BUILTIN.curses
# Define BUILTIN_LIBNAME.curses to be the base name of the built-in
@@ -54,6 +143,8 @@ MAKEVARS+= USE_BUILTIN.curses
BUILTIN_LIBNAME.curses= curses
.endif
BUILTIN_LIBNAME.curses= curses
###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.

View File

@@ -1,10 +1,10 @@
# $NetBSD: db1.builtin.mk,v 1.22 2012/02/05 12:16:56 obache Exp $
# $NetBSD: db1.builtin.mk,v 1.23 2013/11/23 09:10:14 obache Exp $
BUILTIN_PKG:= db1
BUILTIN_FIND_LIBS:= db1 db
BUILTIN_FIND_FILES_VAR:= H_DB
BUILTIN_FIND_FILES.H_DB= /usr/include/db1/db.h /usr/include/db.h
BUILTIN_FIND_HEADERS_VAR:= H_DB
BUILTIN_FIND_HEADERS.H_DB= db1/db.h db.h
#
# The builtin Berkeley database library must support hash version 2 or
# else it doesn't support db-1.85 databases.

View File

@@ -1,4 +1,4 @@
# $NetBSD: mk.conf,v 1.224.2.1 2013/09/04 09:10:10 tron Exp $
# $NetBSD: mk.conf,v 1.238 2014/03/11 14:07:04 jperkin Exp $
#
# This file provides default values for variables that may be overridden
@@ -204,6 +204,9 @@ PREFER_PKGSRC?= MesaLib Xft2 Xrandr Xrender fontconfig \
.elif (!empty(MACHINE_PLATFORM:MOpenBSD-*-*) && \
exists(/usr/X11R6/lib/X11/config/xorgversion.def))
PREFER_PKGSRC?=
.elif !empty(MACHINE_PLATFORM:MLinux-*-*) && \
(!defined(X11_TYPE) || ${X11_TYPE} == "native")
PREFER_PKGSRC?=
.elif !empty(MACHINE_PLATFORM:MDarwin-??.*-*) && \
(!defined(X11_TYPE) || ${X11_TYPE} == "native")
PREFER_PKGSRC?=
@@ -318,8 +321,9 @@ PKGGNUDIR?= gnu/
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
# currently only used by package support scripts for packages that
# include their source to find their upstream source
#
# Possible: any path
# Default: /usr/src
@@ -351,7 +355,7 @@ DEFAULT_VIEW?= ""
# This is the default view to which packages are added after installation.
# Default: "" (the empty view)
FETCH_USING?= ftp
FETCH_USING?= auto
# The program type to fetch files.
# "manual" will explicitly fail if the DISTFILES don't exist locally.
# "custom" requires setting FETCH_CMD, FETCH_BEFORE_ARGS, FETCH_AFTER_ARGS,
@@ -359,7 +363,7 @@ FETCH_USING?= ftp
#
# The default value can be overriden by a package before including
# bsd.prefs.mk and by the user in mk.conf.
# Possible: curl, custom, fetch, ftp, manual, wget
# Possible: auto, curl, custom, fetch, ftp, manual, wget
#FIX_SYSTEM_HEADERS=
# Make pkgtools/posix_headers an automatic build dependency for all
@@ -391,6 +395,11 @@ PKG_SYSCONFBASE?= ${PREFIX}/etc
# Possible: any path you like
# Default: ${PREFIX}/etc
#INIT_SYSTEM=
# This determines the type of init system to be used.
# Possible: any of: rc.d, smf
# Default: Platform-dependent, otherwise rc.d
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
@@ -825,8 +834,8 @@ ELK_GUI?= none
# Default: none
EMACS_TYPE?= emacs24
# Used by emacs.mk to determine which emacs version should be installed and
# emacs lisp packages should be built for.
# Used by emacs/modules.mk to determine which emacs version should be installed
# and emacs lisp packages should be built for.
# Possible: emacs24, emacs23, emacs23nox, emacs22, emacs22nox,
# emacs21, emacs21nox, emacs20,
# xemacs214, xemacs215
@@ -952,6 +961,12 @@ GAMEOWN?= ${GAMES_USER}
# card at I/O offset 0x300.
# Default: not defined
HASKELL_COMPILER?= ghc
# Used by haskell.mk to determine which Haskell compiler should be
# used for building Haskell packages.
# Possible: ghc
# Default: ghc
HOWL_GROUP?= howl
# System group to run howl's mDNS responder as.
# Possible: any group name
@@ -1244,18 +1259,6 @@ MONOTONE_USER?= monotone
# 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 packages set this value to YES unconditionally.
# Possible: YES, NO
# Default: NO
#MOTIF_TYPE?= openmotif
# Used by motif.buildlink3.mk to choose which Motif-2.0-compatible
# installation to use. This value is also automatically set by
@@ -1271,11 +1274,6 @@ MOZILLA_USE_XFT?= NO
# Possible: motif, openmotif, lesstif, dt (Irix and Solaris only)
# Default: motif, 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
@@ -1596,7 +1594,7 @@ SSYNC_PAWD?= pwd
#SUSE_PREFER?= 10.0
# Which version of the suse packages to prefer.
# Possible: 12.1, 10.0
# Possible: 13.1, 12.1, 10.0
# Default: depends on operating system version
TEX_DEFAULT?= teTeX3
@@ -1721,11 +1719,6 @@ XAW_TYPE?=standard
# 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

View File

@@ -41,6 +41,12 @@ aterm-kanji Enable kanji support.
aterm-xterm-scroll Use xterm-scrollbar instead of a NeXT-like one.
atheme-large-net Enable support for large networks (i.e. > 2000 users).
audiofile Enable audio conversion using libaudiofile.
auth-db Use Berkley DB for the jabberd2 authorization database.
auth-ldap Use LDAP for jabberd2 authorization.
auth-mysql Use MySQL for the jabberd2 authorization database.
auth-pam Use PAM for jabberd2 authorization.
auth-pgsql Use PostgreSQL for jabberd2 the authorization database.
auth-sqlite Use SQLite for jabberd2 the authorization database.
avahi Enable DNS service discovery and multicast DNS support.
avahi-howl Enable howl compatibility in avahi.
bacula-static Enable building of statically linked versions of the Bacula daemons.
@@ -208,6 +214,7 @@ ghostscript Enable GhostScript support.
gif Enable GIF support.
gimp Enable GIMP support.
gimp1-helpbrowser Link against gnome1 to get a help browser.
git-gui Build the GUI in Tcl/Tk.
glade Enable Glade support
gmp Enable gmp (GNU Multiple Precision Arithmetic Library) support.
gmp-fat Build-in all x86 assembler code, detecting CPU at run-time.
@@ -223,6 +230,7 @@ gqmpeg-japanese Japanese ID3 tag support.
gqmpeg-russian Russian ID3 tag support.
graphicsmagick Use GraphicsMagick as imaging library.
groff-docs Install documentation images.
groonga-httpd Enable nginx used for groonga-httpd.
groonga-suggest-learner Enable Groonga suggest learner.
gsasl Enable SASL support with gsasl.
gsl Use GNU Scientific Library.
@@ -404,6 +412,7 @@ lprng-suid Install LPRng executables setuid root.
lsof-less-secure-sockets If 'lsof-more-secure' is set, allow all sockets to be viewed at all times.
lsof-more-secure Only allow root to view all open files with lsof.
lua Enable Lua support.
luit Enable luit support.
lynx Use and enable support for the lynx browser.
lzma Enable LZMA (de)compression support.
lzo Enable LZO (de)compression support.
@@ -423,6 +432,10 @@ mecab Use MeCab as the Japanese Morphological Analzer.
mex Enable matlab mex support (Linux and Solaris only).
migemo Enable migemo (Japanese text search tool/library) support.
mikmod Enable MikMod sound library.
mio-epoll Use epoll to watch for incoming messages/connections.
mio-kqueue Use kqueue to watch for incoming messages/connections.
mio-poll Use poll to watch for incoming messages/connections.
mio-select Use select to watch for incoming messages/connections.
mitshm Enable MIT-SHM X extension support.
mlib Enable usage of medialib (SunOS only).
mlterm-fb Enable framebuffer support.
@@ -507,8 +520,10 @@ p0f Enable support for passive OS fingerprinting.
pam Enable PAM support.
pcb-motif Use Motif for the gui instead of GTK for cad/pcb.
pcre Enable Perl-compatible regular expressions.
pcsc Enable PC/SC support.
pdf Enable PDF support.
perl Enable Perl support.
pgadmin-db-designer Enable pgAdmin database-designer functionality.
pgsql Enable PostgreSQL support.
pim Enable pim (personal information management) support.
pinepwd Enable $HOME/.pinepwd stored IMAP password file.
@@ -526,9 +541,11 @@ pstack Enable pstack backtrace library.
psycopg1 Enable psycopg 1.1.x support.
psycopg2 Enable psycopg 2.x support.
pulseaudio Enable support for the PulseAudio sound server.
py-numpy Enable support for NumPy.
pyrex Enable Pyrex language support.
python Enable Python support.
qdbm Enable qdbm support.
qemu-0 Use qemu-0.x.
qmail-badrcptto Patch to SMTP-reject particular envelope recipients.
qmail-bigdns Patch to handle oversized responses to MX queries.
qmail-netqmail Patch collection prepared by respected list members.
@@ -539,6 +556,7 @@ qmail-viruscan Patch to SMTP-reject certain types of MIME attachments.
qpopper-servermode Enable server mode.
qt Enable support for QT.
qt3 Enable support for QT3.
qt4 Enable support for QT4.
quartz Enable Quartz support on Mac OS X.
quickml-analog Enable quickml log analizer.
quickml-limit Enable quickml creators and members limitation.
@@ -556,12 +574,14 @@ samplerate Enable libsamplerate support.
sane Enable support for SANE scanners.
sane-backends-hp3900 Include HP3900 driver.
sasl Enable SASL support.
sasl-cyrus Use Cyrus SASL for the SASL layer.
sasl-gnu Use GNU SASL for the SASL layer
saslauthd Use the Cyrus saslauthd daemon for authentication.
sbcl Use Steel-Bank Common Lisp.
scapy-crypto Add in crypto support.
scapy-pyx Add in py-X support.
scmgit-gui Build the GUI in Tcl/Tk.
sdl Use SDL as display library.
sdl2 Use SDL2 as display library.
seamonkey Use seamonkey as gecko rendering engine.
sendmail-milter Build the milter with support for the Sendmail MTA.
sendmail-socketmap Enable Sendmail SOCKETMAP support.
@@ -619,6 +639,10 @@ squid-unlinkd Enable use of unlinkd.
ssl Enable SSL support.
starttls Enable TLS support.
static Allows you to build static libraries.
storage-db Use Berkley DB for the jabberd2 message store.
storage-mysql Use MySQL for the jabberd2 message store.
storage-pgsql Use PostgreSQL for the jabberd2 message store.
storage-sqlite Use SQLite for the jabberd2 message store.
streamtuner-local Enable local metadata support.
streamtuner-xiph Enable the Xiph plugin.
suexec Enable suEXEC support in Apache web server.
@@ -648,6 +672,7 @@ trn-inn Use INN as NNTP client.
trn-nntpclnt Use nntpclnt as NNTP client.
ucspi-ssl-perl Enable Perl support in ucspi-ssl.
ucspi-tcp-nodefaultrbl Remove the (nonexistent) default RBL from rblsmtpd.
udev Enable support for the udev device manager.
uds Enable support for Unix domain sockets.
uim Enable UIM support.
uim-fep Enable UIM FEP support.
@@ -656,8 +681,6 @@ unicode Enable support for Unicode.
unixodbc Enable ODBC support via unixODBC.
unrealircd-chroot Enable support for running in a chroot jail.
unrealircd-disableusermod Disable /sethost, /setident, /chgname, /chghost, and /chgident.
unrealircd-hub IRC hub server.
unrealircd-leaf IRC leaf node server.
unrealircd-no-operoverride Disable operator override.
unrealircd-nospoof Enable anti-spoof protection for older TCP/IP stacks.
unrealircd-operoverride-verify Require opers to /invite themselves into a +s or +p channel.
@@ -674,6 +697,7 @@ uulib Enable support for uulib.
v4l2 Enable V4L2 (Video4Linux2) support.
vaapi Enable support for VAAPI.
valgrind Enable Valgrind debugging and profiling support.
vatnumber-suds Enable lightweight soap-based web services client (net/py-suds).
vbr Enable Vouch By Reference support.
vdpau Enable support for VDPAU.
vflib Enable support for Japanese vector font library.
@@ -717,9 +741,11 @@ xpm Enable X PixMap image format support.
xrandr Enable Xrandr support.
xrender Enable Xrender support.
xscreensaver-webcollage Install webcollage screensaver.
xscrnsaver Enable X11 Screen Saver support.
xterm-256color Enable 256 color support.
xterm-88color Enable 88 color support.
xterm-luit Enable locale <> UTF encoding translation.
xterm-toolbar Enable toolbar support in xterm.
xtest Use XTEST Extension Library.
xvid Enable usage of XVid codecs.
xvideo Enable X-Video Motion Compensation library support.

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.depends.mk,v 1.24 2013/05/09 23:37:26 riastradh Exp $
# $NetBSD: bsd.depends.mk,v 1.25 2014/02/14 06:39:32 obache Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to dependencies.
@@ -30,7 +30,7 @@ DEPENDS_TARGET= update
. endif
. elif make(bin-install) || make(su-bin-install)
DEPENDS_TARGET= bin-install
. elif !empty(USE_DESTDIR:M[Yy][Ee][Ss]) || make(package) || make(package-install)
. elif make(package) || make(package-install)
DEPENDS_TARGET= package-install
. else
DEPENDS_TARGET= reinstall

View File

@@ -1,4 +1,4 @@
# $NetBSD: depends.mk,v 1.16 2011/10/15 00:23:08 reed Exp $
# $NetBSD: depends.mk,v 1.18 2014/01/14 12:28:47 cheusov Exp $
######################################################################
### depends (PUBLIC)

View File

@@ -1,12 +1,10 @@
# $NetBSD: dlopen.builtin.mk,v 1.25 2013/04/28 13:43:55 obache Exp $
# $NetBSD: dlopen.builtin.mk,v 1.27 2013/11/23 09:10:14 obache Exp $
BUILTIN_PKG:= dl
BUILTIN_FIND_LIBS:= dl
BUILTIN_FIND_FILES_VAR:= H_DL
BUILTIN_FIND_FILES.H_DL= /usr/include/dlfcn.h \
/opt/gcc.3.3/include/dlfcn.h \
/boot/develop/headers/posix/dlfcn.h
BUILTIN_FIND_HEADERS_VAR:= H_DL
BUILTIN_FIND_HEADERS.H_DL= dlfcn.h
.include "../../mk/buildlink3/bsd.builtin.mk"
@@ -27,15 +25,12 @@ MAKEVARS+= IS_BUILTIN.dl
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
#
# We ignore the value of PREFER_PKGSRC and PREFER_NATIVE because for
# every platform except for Darwin-[56].*, we can only use the built-in
# dynamic linker functions, so USE_BUILTIN.dl must match IS_BUILTIN.dl.
# We ignore the value of PREFER_PKGSRC and PREFER_NATIVE because for every
# platform (unless overridden in the platform file), we can only use the
# built-in dynamic linker functions.
#
.if !defined(USE_BUILTIN.dl)
USE_BUILTIN.dl= ${IS_BUILTIN.dl}
. if !empty(MACHINE_PLATFORM:MDarwin-[56].*)
USE_BUILTIN.dl= no # Darwin-[56].* uses devel/dlcompat
. endif
USE_BUILTIN.dl= ${IS_BUILTIN.dl}
.endif
MAKEVARS+= USE_BUILTIN.dl

View File

@@ -1,4 +1,4 @@
# $NetBSD: linux-suse.mk,v 1.7 2012/08/18 16:30:00 chs Exp $
# $NetBSD: linux-suse.mk,v 1.8 2013/12/05 11:42:12 obache Exp $
#
# SuSE Linux
#
@@ -19,6 +19,9 @@ EMUL_TYPE.linux= suse-${SUSE_VERSION}
.elif !empty(EMUL_TYPE.linux:Msuse-12.[1x])
. include "${PKGSRCDIR}/emulators/suse121_linux/emulator.mk"
.elif !empty(EMUL_TYPE.linux:Msuse-13.[1x])
. include "${PKGSRCDIR}/emulators/suse131_linux/emulator.mk"
.else
EMUL_DISTRO= suse-0
PKG_FAIL_REASON+= "[linux-suse.mk] ${EMUL_TYPE.linux} is not a supported EMUL_TYPE.linux"

View File

@@ -1,4 +1,4 @@
# $NetBSD: linux.mk,v 1.19 2012/08/18 16:30:00 chs Exp $
# $NetBSD: linux.mk,v 1.23 2014/01/22 12:34:22 obache Exp $
#
# Linux binary emulation framework
#
@@ -63,19 +63,32 @@ _EMUL_MODULES+= base
_EMUL_MODULES+= compat
_EMUL_MODULES+= cups
_EMUL_MODULES+= curl
_EMUL_MODULES+= cyrus-sasl
_EMUL_MODULES+= drm
_EMUL_MODULES+= dbus
_EMUL_MODULES+= dbus-glib
_EMUL_MODULES+= expat
_EMUL_MODULES+= fontconfig
_EMUL_MODULES+= freetype2
_EMUL_MODULES+= glib2
_EMUL_MODULES+= glx
_EMUL_MODULES+= gtk2
_EMUL_MODULES+= jpeg
_EMUL_MODULES+= krb5
_EMUL_MODULES+= libffi
_EMUL_MODULES+= libjson
_EMUL_MODULES+= libsigc++2
_EMUL_MODULES+= libsndfile
_EMUL_MODULES+= libssh
_EMUL_MODULES+= libwrap
_EMUL_MODULES+= locale
_EMUL_MODULES+= motif
_EMUL_MODULES+= nspr
_EMUL_MODULES+= nss
_EMUL_MODULES+= openldap
_EMUL_MODULES+= openssl
_EMUL_MODULES+= png
_EMUL_MODULES+= pulseaudio
_EMUL_MODULES+= qt4
_EMUL_MODULES+= resmgr
_EMUL_MODULES+= slang

View File

@@ -1,4 +1,4 @@
# $NetBSD: endian.mk,v 1.6 2009/01/14 17:27:37 sketch Exp $
# $NetBSD: endian.mk,v 1.9 2013/11/26 07:25:53 obache Exp $
#
# Determine the endianness of the platform by checking header files.
#
@@ -16,16 +16,14 @@
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if !defined(MACHINE_ENDIAN)
. if exists(/usr/include/endian.h)
_ENDIAN_H= endian.h # Linux
. elif exists(/usr/include/sys/endian.h)
_ENDIAN_H= sys/endian.h # NetBSD>=1.5
. elif exists(/usr/include/machine/endian.h)
_ENDIAN_H= machine/endian.h # NetBSD<1.5
. elif exists(/usr/include/sys/byteorder.h)
_ENDIAN_H= sys/byteorder.h # Solaris
. else
BUILTIN_FIND_HEADERS_VAR:= _ENDIAN_H
BUILTIN_FIND_HEADERS.ENDIAN_H= endian.h sys/endian.h machine/endian.h \
sys/byteorder.h
.include "../../mk/buildlink3/find-headers.mk"
. if !empty(_ENDIAN_H:M__nonexistent__)
_ENDIAN_H= /dev/null
. endif
@@ -41,7 +39,7 @@ MACHINE_ENDIAN!= \
${ECHO} "\#define BYTE_ORDER 1234"; \
${ECHO} "\#endif"; \
${ECHO} "\#endif"; \
${ECHO} "BYTE_ORDER"; } | ${CC} -E - | \
${ECHO} "BYTE_ORDER"; } | ${CCPATH:U${CC}} -E - | \
{ while read line; do \
case $$line in \
1234) ${ECHO} "little"; exit 0 ;; \

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.extract-vars.mk,v 1.15 2013/04/12 12:38:14 obache Exp $
# $NetBSD: bsd.extract-vars.mk,v 1.16 2013/11/16 07:45:26 shattered Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -53,6 +53,9 @@ USE_TOOLS+= pax
!empty(EXTRACT_ONLY:M*.tbz2)
USE_TOOLS+= bzcat
.endif
.if !empty(EXTRACT_ONLY:M*.lz)
USE_TOOLS+= lzip
.endif
.if !empty(EXTRACT_ONLY:M*.lzma)
USE_TOOLS+= xzcat
.endif

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: extract,v 1.15 2013/02/28 18:26:22 jperkin Exp $
# $NetBSD: extract,v 1.16 2013/11/16 07:45:26 shattered Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -108,6 +108,7 @@ set -u # treat undefined variables as errors
: ${GEM:="gem unpack"}
: ${GZCAT:="gzip -cd"}
: ${LHA:=lha}
: ${LZCAT:="lzip -cd"}
: ${MKDIR:=mkdir}
: ${PAX:=pax}
: ${RM:=rm}
@@ -184,6 +185,7 @@ case "$distfile" in
*.gz|*.tgz|*.z) _cformat=gzip ;;
*.7z) _cformat=7z ;;
*.bz2|*.tbz|*.tbz2|*.bz) _cformat=bzip ;;
*.lz) _cformat=lzip ;;
*.lzma) _cformat=lzma ;;
*.xz) _cformat=xz ;;
*.Z) _cformat=compress ;;
@@ -198,6 +200,7 @@ case "$cformat" in
gzip|compress) decompress_cat="${GZCAT}" ;;
7z) decompress_cat="${P7ZA_SO}" ;;
bzip) decompress_cat="${BZCAT}" ;;
lzip) decompress_cat="${LZCAT}" ;;
lzma) decompress_cat="${XZCAT}" ;;
xz) decompress_cat="${XZCAT}" ;;
none) decompress_cat="${CAT}" ;;
@@ -206,7 +209,7 @@ esac
# Derive the format of the archive based on the file extension.
case "$distfile" in
*.tar.gz|*.tgz|*-tar.gz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.lzma|*.tar.xz|*.tar.Z|*.tar.z|*.tar|*.tar.bz|*.tar.7z)
*.tar.gz|*.tgz|*-tar.gz|*_tar.gz|*.tar.bz2|*.tbz|*.tbz2|*.tar.lz|*.tar.lzma|*.tar.xz|*.tar.Z|*.tar.z|*.tar|*.tar.bz|*.tar.7z)
_format=tar ;;
*.cpio|*.cpio.gz|*.cpio.bz2)
_format=cpio ;;

View File

@@ -1,4 +1,4 @@
# $NetBSD: extract.mk,v 1.36 2012/10/06 22:16:08 ryoon Exp $
# $NetBSD: extract.mk,v 1.37 2014/03/02 09:45:42 obache Exp $
#
# The following variables may be set by the package Makefile and
# specify how extraction happens:
@@ -13,6 +13,9 @@
#
# Default: ${EXTRACT_DIR}
#
# EXTRACT_ENV is the shell environment that is exported to the extract
# process.
#
# EXTRACTOR is the the the environment and path used to execute the
# all-purpose extract script.
#

View File

@@ -1,4 +1,4 @@
# $NetBSD: features-vars.mk,v 1.20 2012/03/02 16:19:17 hans Exp $
# $NetBSD: features-vars.mk,v 1.21 2013/11/26 07:04:55 obache Exp $
#
# The platforms that are supported by pkgsrc differ in the amount of
# functions they provide in the C library (libc). Functions that are
@@ -87,8 +87,13 @@ MISSING_FEATURES+= ${f}
. endif
.endfor
.if !exists(/usr/include/sys/cdefs.h) && !empty(USE_FEATURES:Mcdefs)
.if !empty(USE_FEATURES:Mcdefs)
BUILTIN_FIND_HEADERS_VAR:= _FEATURES_SYS_CDEFS_H
BUILTIN_FIND_HEADERS._FEATURES_SYS_CDEFS_H= sys/cdefs.h
.include "../../mk/buildlink3/find-headers.mk"
. if !empty(_FEATURES_SYS_CDEFS_H:M__nonexistent__)
MISSING_FEATURES+= cdefs
. endif
.endif
.for _feature_ in err warn
@@ -101,7 +106,12 @@ MISSING_FEATURES+= ${_feature_}
.for _feature_ in fts_close fts_open fts_read fts_set
. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/fts.h)
. ifndef (_FEATURES_FTS_H)
BUILTIN_FIND_HEADERS_VAR:= _FEATURES_FTS_H
BUILTIN_FIND_HEADERS._FEATURES_FTS_H= fts.h
.include "../../mk/buildlink3/find-headers.mk"
. endif
. if !empty(_FEATURES_FTS_H:M__nonexistent__)
MISSING_FEATURES+= ${_feature_}
. endif
. endif
@@ -109,7 +119,13 @@ MISSING_FEATURES+= ${_feature_}
.for _feature_ in getopt_long
. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/getopt.h) || ${OPSYS} == "IRIX" || ${OPSYS} == "OSF1"
. ifndef (_FEATURES_GETOPT_LONG)
BUILTIN_FIND_HEADERS_VAR:= _FEATURES_GETOPT_LONG
BUILTIN_FIND_HEADERS._FEATURES_GETOPT_LONG= getopt.h
BUILTIN_FIND_GREP._FEATURES_GETOPT_LONG= getopt_long
.include "../../mk/buildlink3/find-headers.mk"
. endif
. if !empty(_FEATURES_GETOPT_LONG:M_nonexistent__)
MISSING_FEATURES+= ${_feature_}
. endif
. endif
@@ -125,7 +141,12 @@ MISSING_FEATURES+= ${_feature_}
.for _feature_ in glob
. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/glob.h)
. ifndef (_FEATURES_GLOB_H)
BUILTIN_FIND_HEADERS_VAR:= _FEATURES_GLOB_H
BUILTIN_FIND_HEADERS._FEATURES_GLOB_H= glob.h
.include "../../mk/buildlink3/find-headers.mk"
. endif
. if !empty(_FEATURES_GLOB_H:M__nonexistent__)
MISSING_FEATURES+= ${_feature_}
. endif
. endif
@@ -133,7 +154,12 @@ MISSING_FEATURES+= ${_feature_}
.for _feature_ in regcomp
. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/regex.h)
. ifndef (_FEATURES_REGEX_H)
BUILTIN_FIND_HEADERS_VAR:= _FEATURES_REGEX_H
BUILTIN_FIND_HEADERS._FEATURES_REGEX_H= regex.h
.include "../../mk/buildlink3/find-headers.mk"
. endif
. if !empty(_FEATURES_REGEX_H:M__nonexistent__)
MISSING_FEATURES+= ${_feature_}
. endif
. endif

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.fetch-vars.mk,v 1.14 2012/07/27 10:48:36 jperkin Exp $
# $NetBSD: bsd.fetch-vars.mk,v 1.16 2014/03/02 08:54:41 obache Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -36,7 +36,9 @@ _SYS_VARS.fetch= DEFAULT_DISTFILES
#DISTDIR?= ${PKGSRCDIR}/distfiles
_DISTDIR= ${DISTDIR}/${DIST_SUBDIR}
.if defined(DISTNAME) && !empty(DISTNAME)
DEFAULT_DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
.endif
DISTFILES?= ${DEFAULT_DISTFILES}
# File lists, defined early to allow tool dependencies.
@@ -79,7 +81,7 @@ USE_TOOLS+= digest:bootstrap
_FETCH_TOOLS.ftp= ftp
_FETCH_TOOLS.fetch= fetch
_FETCH_DEPENDS.wget= wget-[0-9]*:../../net/wget
_FETCH_TOOLS.wget= wget
_FETCH_TOOLS.curl= curl
_FETCH_TOOLS.manual= false

View File

@@ -1,4 +1,4 @@
# $NetBSD: fetch.mk,v 1.60 2013/02/16 07:32:28 obache Exp $
# $NetBSD: fetch.mk,v 1.63 2014/02/14 07:43:46 obache Exp $
_MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
_MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@@ -219,7 +219,7 @@ _FETCH_BEFORE_ARGS.wget= ${PASSIVE_FETCH:D--passive-ftp} \
_FETCH_AFTER_ARGS.wget= # empty
_FETCH_RESUME_ARGS.wget= -c
_FETCH_OUTPUT_ARGS.wget= -O
_FETCH_CMD.wget= ${PREFIX}/bin/wget
_FETCH_CMD.wget= ${TOOLS_PATH.wget}
_FETCH_BEFORE_ARGS.curl= ${PASSIVE_FETCH:D--ftp-pasv} \
--fail --insecure --location \
@@ -335,7 +335,7 @@ depends-fetch:
${RUN} \
${_DEPENDS_WALK_CMD} ${PKGPATH} | \
while read dir; do \
${ECHO} "===> Checksumming for $${dir}" && \
${ECHO} "===> Fetching for $${dir}" && \
cd ${.CURDIR}/../../$$dir && \
${RECURSIVE_MAKE} ${MAKEFLAGS} fetch; \
${RECURSIVE_MAKE} ${MAKEFLAGS} fetch || exit 1; \
done

View File

@@ -1,4 +1,4 @@
# $NetBSD: sites.mk,v 1.98 2013/06/14 07:40:15 wiz Exp $
# $NetBSD: sites.mk,v 1.99 2014/01/25 09:29:42 obache Exp $
#
# This Makefile fragment defines read-only MASTER_SITE_* variables
# representing some well-known master distribution sites for software.
@@ -396,6 +396,9 @@ MASTER_SITE_RUBYGEMS+= \
http://rubygems.org/gems/ \
http://gems.rubyforge.org/gems/
MASTER_SITE_HASKELL_HACKAGE+= \
http://hackage.haskell.org/package/
# The primary backup site.
MASTER_SITE_BACKUP?= \
ftp://ftp.fi.NetBSD.org/pub/NetBSD/packages/distfiles/ \

View File

@@ -1,10 +1,10 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012 Free Software Foundation, Inc.
timestamp='2009-12-30'
timestamp='2012-02-10'
# 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
@@ -17,9 +17,7 @@ timestamp='2009-12-30'
# 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., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -57,8 +55,8 @@ GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
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."
@@ -145,7 +143,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
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*,
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
@@ -181,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
fi
;;
*)
os=netbsd
os=netbsd
;;
esac
# The OS release
@@ -224,7 +222,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
;;
*5.*)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
;;
esac
# According to Compaq, /usr/sbin/psrinfo has been available on
@@ -270,7 +268,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# 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 ;;
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
exitcode=$?
trap '' 0
exit $exitcode ;;
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
@@ -296,7 +297,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
echo s390-ibm-zvmoe
exit ;;
*:OS400:*:*)
echo powerpc-ibm-os400
echo powerpc-ibm-os400
exit ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
@@ -395,23 +396,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# 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}
echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
echo m68k-milan-mint${UNAME_RELEASE}
exit ;;
echo m68k-milan-mint${UNAME_RELEASE}
exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
echo m68k-hades-mint${UNAME_RELEASE}
exit ;;
echo m68k-hades-mint${UNAME_RELEASE}
exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
echo m68k-unknown-mint${UNAME_RELEASE}
exit ;;
echo m68k-unknown-mint${UNAME_RELEASE}
exit ;;
m68k:machten:*:*)
echo m68k-apple-machten${UNAME_RELEASE}
exit ;;
@@ -481,8 +482,8 @@ EOF
echo m88k-motorola-sysv3
exit ;;
AViiON:dgux:*:*)
# DG/UX returns AViiON for all architectures
UNAME_PROCESSOR=`/usr/bin/uname -p`
# 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 ] || \
@@ -495,7 +496,7 @@ EOF
else
echo i586-dg-dgux${UNAME_RELEASE}
fi
exit ;;
exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
exit ;;
@@ -552,7 +553,7 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
*:AIX:*:[456])
*:AIX:*:[4567])
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
@@ -595,52 +596,52 @@ EOF
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" ;;
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
esac ;;
esac
fi
if [ "${HP_ARCH}" = "" ]; then
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
sed 's/^ //' << EOF >$dummy.c
#define _HPUX_SOURCE
#include <stdlib.h>
#include <unistd.h>
#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);
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);
}
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
@@ -731,22 +732,22 @@ EOF
exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
exit ;;
exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
exit ;;
exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
exit ;;
exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
exit ;;
exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
exit ;;
exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
@@ -770,14 +771,14 @@ EOF
exit ;;
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 ;;
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 ;;
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}"
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 ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
@@ -789,13 +790,12 @@ EOF
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
case ${UNAME_MACHINE} in
pc98)
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
UNAME_PROCESSOR=`/usr/bin/uname -p`
case ${UNAME_PROCESSOR} in
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
esac
exit ;;
i*:CYGWIN*:*)
@@ -804,15 +804,18 @@ EOF
*:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
exit ;;
i*:MSYS*:*)
echo ${UNAME_MACHINE}-pc-msys
exit ;;
i*:windows32*:*)
# uname -m includes "-pc" on this system.
echo ${UNAME_MACHINE}-mingw32
# uname -m includes "-pc" on this system.
echo ${UNAME_MACHINE}-mingw32
exit ;;
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
*:Interix*:*)
case ${UNAME_MACHINE} in
case ${UNAME_MACHINE} in
x86)
echo i586-pc-interix${UNAME_RELEASE}
exit ;;
@@ -858,6 +861,13 @@ EOF
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
aarch64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
aarch64_be:Linux:*:*)
UNAME_MACHINE=aarch64_be
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
EV5) UNAME_MACHINE=alphaev5 ;;
@@ -867,7 +877,7 @@ EOF
EV6) UNAME_MACHINE=alphaev6 ;;
EV67) UNAME_MACHINE=alphaev67 ;;
EV68*) UNAME_MACHINE=alphaev68 ;;
esac
esac
objdump --private-headers /bin/sh | grep -q ld.so.1
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
@@ -879,20 +889,29 @@ EOF
then
echo ${UNAME_MACHINE}-unknown-linux-gnu
else
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_PCS_VFP
then
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
else
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
fi
fi
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
cris:Linux:*:*)
echo cris-axis-linux-gnu
echo ${UNAME_MACHINE}-axis-linux-gnu
exit ;;
crisv32:Linux:*:*)
echo crisv32-axis-linux-gnu
echo ${UNAME_MACHINE}-axis-linux-gnu
exit ;;
frv:Linux:*:*)
echo frv-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
hexagon:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
i*86:Linux:*:*)
LIBC=gnu
@@ -934,7 +953,7 @@ EOF
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
;;
or32:Linux:*:*)
echo or32-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
padre:Linux:*:*)
echo sparc-unknown-linux-gnu
@@ -960,7 +979,7 @@ EOF
echo ${UNAME_MACHINE}-ibm-linux
exit ;;
sh64*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
sh*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -968,14 +987,17 @@ EOF
sparc:Linux:*:* | sparc64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
tile*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
vax:Linux:*:*)
echo ${UNAME_MACHINE}-dec-linux-gnu
exit ;;
x86_64:Linux:*:*)
echo x86_64-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
xtensa*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -984,11 +1006,11 @@ EOF
echo i386-sequent-sysv4
exit ;;
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,
# 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.
# Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
exit ;;
i*86:OS/2:*:*)
@@ -1020,7 +1042,7 @@ EOF
fi
exit ;;
i*86:*:5:[678]*)
# UnixWare 7.x, OpenUNIX and OpenServer 6.
# UnixWare 7.x, OpenUNIX and OpenServer 6.
case `/bin/uname -X | grep "^Machine"` in
*486*) UNAME_MACHINE=i486 ;;
*Pentium) UNAME_MACHINE=i586 ;;
@@ -1048,13 +1070,13 @@ EOF
exit ;;
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 i586.
# uname -m prints for DJGPP always 'pc', but it prints nothing about
# the processor, so we play safe by assuming i586.
# Note: whatever this is, it MUST be the same as what config.sub
# prints for the "djgpp" host, or else GDB configury will decide that
# this is a cross-build.
echo i586-pc-msdosdjgpp
exit ;;
exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit ;;
@@ -1089,8 +1111,8 @@ EOF
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& { echo i486-ncr-sysv4; exit; } ;;
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& { echo i486-ncr-sysv4; exit; } ;;
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
OS_REL='.3'
test -r /etc/.relid \
@@ -1133,10 +1155,10 @@ EOF
echo ns32k-sni-sysv
fi
exit ;;
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
# says <Richard.M.Bartel@ccMail.Census.GOV>
echo i586-unisys-sysv4
exit ;;
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
# says <Richard.M.Bartel@ccMail.Census.GOV>
echo i586-unisys-sysv4
exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes <hewes@openmarket.com>.
# How about differentiating between stratus architectures? -djm
@@ -1162,11 +1184,11 @@ EOF
exit ;;
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
if [ -d /usr/nec ]; then
echo mips-nec-sysv${UNAME_RELEASE}
echo mips-nec-sysv${UNAME_RELEASE}
else
echo mips-unknown-sysv${UNAME_RELEASE}
echo mips-unknown-sysv${UNAME_RELEASE}
fi
exit ;;
exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
exit ;;
@@ -1231,6 +1253,9 @@ EOF
*:QNX:*:4*)
echo i386-pc-qnx
exit ;;
NEO-?:NONSTOP_KERNEL:*:*)
echo neo-tandem-nsk${UNAME_RELEASE}
exit ;;
NSE-?:NONSTOP_KERNEL:*:*)
echo nse-tandem-nsk${UNAME_RELEASE}
exit ;;
@@ -1276,13 +1301,13 @@ EOF
echo pdp10-unknown-its
exit ;;
SEI:*:*:SEIUX)
echo mips-sei-seiux${UNAME_RELEASE}
echo mips-sei-seiux${UNAME_RELEASE}
exit ;;
*:DragonFly:*:*)
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
*:*VMS:*:*)
UNAME_MACHINE=`(uname -p) 2>/dev/null`
UNAME_MACHINE=`(uname -p) 2>/dev/null`
case "${UNAME_MACHINE}" in
A*) echo alpha-dec-vms ; exit ;;
I*) echo ia64-dec-vms ; exit ;;
@@ -1300,6 +1325,9 @@ EOF
i*86:AROS:*:*)
echo ${UNAME_MACHINE}-pc-aros
exit ;;
x86_64:VMkernel:*:*)
echo ${UNAME_MACHINE}-unknown-esx
exit ;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
@@ -1322,11 +1350,11 @@ main ()
#include <sys/param.h>
printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
"4"
"4"
#else
""
""
#endif
); exit (0);
); exit (0);
#endif
#endif

View File

@@ -1,523 +0,0 @@
#! /bin/sh
#
# $NetBSD: config.rpath,v 1.3 2009/12/13 08:13:07 obache 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.
;;
interix[3-9]*)
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
;;
interix[3-9]*)
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

View File

@@ -1,10 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012 Free Software Foundation, Inc.
timestamp='2009-12-31'
timestamp='2012-04-18'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -21,9 +21,7 @@ timestamp='2009-12-31'
# 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., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -76,8 +74,8 @@ version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
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."
@@ -124,13 +122,18 @@ esac
# 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-newlib* | linux-uclibc* | \
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | \
kopensolaris*-gnu* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
android-linux)
os=-linux-android
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
@@ -157,8 +160,8 @@ case $os in
os=
basic_machine=$1
;;
-bluegene*)
os=-cnk
-bluegene*)
os=-cnk
;;
-sim | -cisco | -oki | -wec | -winbond)
os=
@@ -174,10 +177,10 @@ case $os in
os=-chorusos
basic_machine=$1
;;
-chorusrdb)
os=-chorusrdb
-chorusrdb)
os=-chorusrdb
basic_machine=$1
;;
;;
-hiux*)
os=-hiuxwe2
;;
@@ -222,6 +225,12 @@ case $os in
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
-lynx*178)
os=-lynxos178
;;
-lynx*5)
os=-lynxos5
;;
-lynx*)
os=-lynxos
;;
@@ -246,17 +255,22 @@ case $basic_machine in
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
| aarch64 | aarch64_be \
| 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 | avr32 \
| be32 | be64 \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| epiphany \
| fido | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| hexagon \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| le32 | le64 \
| lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
| maxq | mb | microblaze | mcore | mep | metag \
@@ -282,29 +296,39 @@ case $basic_machine in
| moxie \
| mt \
| msp430 \
| nds32 | nds32le | nds32be \
| nios | nios2 \
| ns16k | ns32k \
| open8 \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
| rx \
| rl78 | rx \
| score \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
| spu | strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
| spu \
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \
| v850 | v850e \
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
| we32k \
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
| x86 | xc16x | xstormy16 | xtensa \
| z8k | z80)
basic_machine=$basic_machine-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12 | picochip)
# Motorola 68HC11/12.
c54x)
basic_machine=tic54x-unknown
;;
c55x)
basic_machine=tic55x-unknown
;;
c6x)
basic_machine=tic6x-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
basic_machine=$basic_machine-unknown
os=-none
;;
@@ -314,6 +338,21 @@ case $basic_machine in
basic_machine=mt-unknown
;;
strongarm | thumb | xscale)
basic_machine=arm-unknown
;;
xgate)
basic_machine=$basic_machine-unknown
os=-none
;;
xscaleeb)
basic_machine=armeb-unknown
;;
xscaleel)
basic_machine=armel-unknown
;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
@@ -328,21 +367,25 @@ case $basic_machine in
# Recognize the basic CPU types with company name.
580-* \
| a29k-* \
| aarch64-* | aarch64_be-* \
| 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-* | avr32-* \
| be32-* | be64-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| hexagon-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
| le32-* | le64-* \
| lm32-* \
| m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
@@ -368,25 +411,29 @@ case $basic_machine in
| mmix-* \
| mt-* \
| msp430-* \
| nds32-* | nds32le-* | nds32be-* \
| nios-* | nios2-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| open8-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pyramid-* \
| romp-* | rs6000-* | rx-* \
| rl78-* | romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
| tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile*-* \
| tron-* \
| ubicom32-* \
| v850-* | v850e-* | vax-* \
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
| vax-* \
| we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
| x86-* | x86_64-* | xc16x-* | xps100-* \
| xstormy16-* | xtensa*-* \
| ymp-* \
| z8k-* | z80-*)
@@ -411,7 +458,7 @@ case $basic_machine in
basic_machine=a29k-amd
os=-udi
;;
abacus)
abacus)
basic_machine=abacus-unknown
;;
adobe68k)
@@ -481,11 +528,20 @@ case $basic_machine in
basic_machine=powerpc-ibm
os=-cnk
;;
c54x-*)
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c55x-*)
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c6x-*)
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
c90)
basic_machine=c90-cray
os=-unicos
;;
cegcc)
cegcc)
basic_machine=arm-unknown
os=-cegcc
;;
@@ -517,7 +573,7 @@ case $basic_machine in
basic_machine=craynv-cray
os=-unicosmp
;;
cr16)
cr16 | cr16-*)
basic_machine=cr16-unknown
os=-elf
;;
@@ -675,7 +731,6 @@ case $basic_machine in
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
@@ -733,7 +788,7 @@ case $basic_machine in
basic_machine=ns32k-utek
os=-sysv
;;
microblaze)
microblaze)
basic_machine=microblaze-xilinx
;;
mingw32)
@@ -772,10 +827,18 @@ case $basic_machine in
ms1-*)
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
;;
msys)
basic_machine=i386-pc
os=-msys
;;
mvs)
basic_machine=i370-ibm
os=-mvs
;;
nacl)
basic_machine=le32-unknown
os=-nacl
;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
@@ -840,6 +903,12 @@ case $basic_machine in
np1)
basic_machine=np1-gould
;;
neo-tandem)
basic_machine=neo-tandem
;;
nse-tandem)
basic_machine=nse-tandem
;;
nsr-tandem)
basic_machine=nsr-tandem
;;
@@ -922,9 +991,10 @@ case $basic_machine in
;;
power) basic_machine=power-ibm
;;
ppc) basic_machine=powerpc-unknown
ppc | ppcbe) basic_machine=powerpc-unknown
;;
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
ppc-* | ppcbe-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
@@ -1018,6 +1088,9 @@ case $basic_machine in
basic_machine=i860-stratus
os=-sysv4
;;
strongarm-* | thumb-*)
basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
sun2)
basic_machine=m68000-sun
;;
@@ -1074,20 +1147,8 @@ case $basic_machine in
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
;;
tile*)
basic_machine=tile-unknown
basic_machine=$basic_machine-unknown
os=-linux-gnu
;;
tx39)
@@ -1157,6 +1218,9 @@ case $basic_machine in
xps | xps100)
basic_machine=xps100-honeywell
;;
xscale-* | xscalee[bl]-*)
basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
;;
ymp)
basic_machine=ymp-cray
os=-unicos
@@ -1254,11 +1318,11 @@ esac
if [ x"$os" != x"" ]
then
case $os in
# First match some system type aliases
# that might get confused with valid system types.
# First match some system type aliases
# that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
-auroraux)
os=-auroraux
-auroraux)
os=-auroraux
;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
@@ -1294,8 +1358,9 @@ case $os in
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
@@ -1342,7 +1407,7 @@ case $os in
-opened*)
os=-openedition
;;
-os400*)
-os400*)
os=-os400
;;
-wince*)
@@ -1391,7 +1456,7 @@ case $os in
-sinix*)
os=-sysv4
;;
-tpf*)
-tpf*)
os=-tpf
;;
-triton*)
@@ -1436,8 +1501,8 @@ case $os in
-dicos*)
os=-dicos
;;
-nacl*)
;;
-nacl*)
;;
-none)
;;
*)
@@ -1460,10 +1525,10 @@ else
# system, and we'll never get to this point.
case $basic_machine in
score-*)
score-*)
os=-elf
;;
spu-*)
spu-*)
os=-elf
;;
*-acorn)
@@ -1475,8 +1540,17 @@ case $basic_machine in
arm*-semi)
os=-aout
;;
c4x-* | tic4x-*)
os=-coff
c4x-* | tic4x-*)
os=-coff
;;
tic54x-*)
os=-coff
;;
tic55x-*)
os=-coff
;;
tic6x-*)
os=-coff
;;
# This must come before the *-dec entry.
pdp10-*)
@@ -1496,14 +1570,11 @@ case $basic_machine in
;;
m68000-sun)
os=-sunos3
# This also exists in the configure program, but was not the
# default.
# os=-sunos4
;;
m68*-cisco)
os=-aout
;;
mep-*)
mep-*)
os=-elf
;;
mips*-cisco)
@@ -1530,7 +1601,7 @@ case $basic_machine in
*-ibm)
os=-aix
;;
*-knuth)
*-knuth)
os=-mmixware
;;
*-wec)

View File

@@ -1,13 +1,9 @@
#! /bin/sh
#
# $NetBSD: missing,v 1.2 2006/10/29 23:57:48 wiz Exp $
#
# Common stub for a few missing GNU programs while installing.
scriptversion=2006-05-10.23
scriptversion=2012-01-06.18; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
# Copyright (C) 1996-2012 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
@@ -21,9 +17,7 @@ scriptversion=2006-05-10.23
# 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., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -31,7 +25,7 @@ scriptversion=2006-05-10.23
# 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"
echo 1>&2 "Try '$0 --help' for more information"
exit 1
fi
@@ -39,7 +33,7 @@ run=:
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
# In the cases where this matters, `missing' is being run in the
# In the cases where this matters, 'missing' is being run in the
# srcdir already.
if test -f configure.ac; then
configure_ac=configure.ac
@@ -70,7 +64,7 @@ case $1 in
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
@@ -79,18 +73,20 @@ Options:
--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'
aclocal touch file 'aclocal.m4'
autoconf touch file 'configure'
autoheader touch file 'config.h.in'
autom4te touch the output file, or create a stub one
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
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
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]
yacc create 'y.tab.[ch]', if possible, from existing .[ch]
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
'g' are ignored when checking the name.
Send bug reports to <bug-automake@gnu.org>."
exit $?
@@ -102,37 +98,35 @@ Send bug reports to <bug-automake@gnu.org>."
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
echo 1>&2 "$0: Unknown '$1' option"
echo 1>&2 "Try '$0 --help' for more information"
exit 1
;;
esac
# normalize program name to check for.
program=`echo "$1" | sed '
s/^gnu-//; t
s/^gnu//; t
s/^g//; t'`
# Now exit if we have it, but it failed. Also exit now if we
# don't have it and --version was passed (most likely to detect
# the program).
# the program). This is about non-GNU programs, so use $1 not
# $program.
case $1 in
lex|yacc)
lex*|yacc*)
# Not GNU programs, they don't have --version.
;;
tar)
if test -n "$run"; then
echo 1>&2 "ERROR: \`tar' requires --run"
exit 1
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
exit 1
fi
;;
*)
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
# We have it, but it failed.
exit 1
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
# Could not run --version or --help. This is probably someone
# running `$TOOL --version' or `$TOOL --help' to check whether
# running '$TOOL --version' or '$TOOL --help' to check whether
# $TOOL exists and not knowing $TOOL uses missing.
exit 1
fi
@@ -141,30 +135,30 @@ esac
# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
case $1 in
case $program in
aclocal*)
echo 1>&2 "\
WARNING: \`$1' is $msg. 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
WARNING: '$1' is $msg. 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)
autoconf*)
echo 1>&2 "\
WARNING: \`$1' is $msg. 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
WARNING: '$1' is $msg. 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)
autoheader*)
echo 1>&2 "\
WARNING: \`$1' is $msg. 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
WARNING: '$1' is $msg. 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"
@@ -181,21 +175,21 @@ WARNING: \`$1' is $msg. You should only need it if
automake*)
echo 1>&2 "\
WARNING: \`$1' is $msg. 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.
WARNING: '$1' is $msg. 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)
autom4te*)
echo 1>&2 "\
WARNING: \`$1' is needed, but is $msg.
WARNING: '$1' is needed, but is $msg.
You might have modified some files without having the
proper tools for further handling them.
You can get \`$1' as part of \`Autoconf' from any GNU
You can get '$1' as part of Autoconf from any GNU
archive site."
file=`echo "$*" | sed -n "$sed_output"`
@@ -213,15 +207,15 @@ WARNING: \`$1' is needed, but is $msg.
fi
;;
bison|yacc)
bison*|yacc*)
echo 1>&2 "\
WARNING: \`$1' $msg. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
WARNING: '$1' $msg. 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."
Bison from any GNU archive site."
rm -f y.tab.c y.tab.h
if test $# -ne 1; then
eval LASTARG="\${$#}"
eval LASTARG=\${$#}
case $LASTARG in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
@@ -243,15 +237,15 @@ WARNING: \`$1' $msg. You should only need it if
fi
;;
lex|flex)
lex*|flex*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
WARNING: '$1' is $msg. 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."
Flex from any GNU archive site."
rm -f lex.yy.c
if test $# -ne 1; then
eval LASTARG="\${$#}"
eval LASTARG=\${$#}
case $LASTARG in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
@@ -266,12 +260,12 @@ WARNING: \`$1' is $msg. You should only need it if
fi
;;
help2man)
help2man*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
WARNING: '$1' is $msg. 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."
Help2man package in order for those modifications to take
effect. You can get Help2man from any GNU archive site."
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
@@ -280,18 +274,18 @@ WARNING: \`$1' is $msg. You should only need it if
else
test -z "$file" || exec >$file
echo ".ab help2man is required to generate this page"
exit 1
exit $?
fi
;;
makeinfo)
makeinfo*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
WARNING: '$1' is $msg. 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."
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."
# The file to touch is that specified with -o ...
file=`echo "$*" | sed -n "$sed_output"`
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
@@ -313,49 +307,14 @@ WARNING: \`$1' is $msg. You should only need it if
touch $file
;;
tar)
shift
# 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 is $msg.
WARNING: '$1' is needed, and is $msg.
You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
proper tools for further handling them. Check the 'README' file,
it often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
some other package would contain this missing '$1' program."
exit 1
;;
esac
@@ -366,5 +325,6 @@ exit 0
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:

238
mk/haskell.mk Normal file
View File

@@ -0,0 +1,238 @@
# $NetBSD: haskell.mk,v 1.1 2014/02/05 07:02:30 obache Exp $
#
# This Makefile fragment handles Haskell Cabal packages.
# See: http://www.haskell.org/cabal/
#
# Note to users:
#
# * Users choose one favourite Haskell compiler. Though the only
# compiler currently supported is GHC.
#
# * You can't install a cabal package for more than one compilers
# simultaneously. In the future, this limitation can possibly be
# eliminated using the method used by
# "../../lang/python/pyversion.mk".
#
# Note to package developers:
#
# * This file must be included *before* "../../mk/bsd.pkg.mk", or
# you'll get target-redefinition errors.
#
# * PKGNAME will automatically be "hs-${DISTNAME}" unless you
# explicitly declare it.
#
# * If your package is on the HackageDB, MASTER_SITES and HOMEPAGE
# can be omitted.
#
# * Package configuration, building, installation, registration and
# unregistration are fully automated. You usually don't need to do
# anything special.
#
# * When Haskell libraries depend on other Haskell libraries, they
# MUST depend on, not build-depend on, such libraries. So if your
# package installs a library, you MUST NOT set
# BUILDLINK_DEPMETHOD.${PKG} to "build" in your buildlink3.mk
# file. Reason:
# 1. Assume we have two libraries A and B, and B build-depends
# on A.
# 2. We install package A.
# 3. We then install package B, which build-depends on A.
# 4. After that, a new upstream version of package A is
# released. We therefore update package A to the new version.
# 5. Package B had a build-dependency on A, so pkgsrc assumes
# that it's still safe to use package B without
# recompilation of B. But in fact package B requires the
# very version of package A which was available when
# package B was compiled. So the installed package B is
# completely broken at this time.
#
# User-settable variables:
#
# HASKELL_COMPILER
# Description:
# The user's favourite Haskell compiler.
# Possible values:
# ghc
# Default value:
# ghc
#
# Package-settable variables:
#
# HASKELL_ENABLE_LIBRARY_PROFILING
# Description:
# Whether profiling library should be built or not.
# Possible values:
# yes, no
# Default value:
# yes
#
# HASKELL_ENABLE_HADDOCK_DOCUMENTATION
# Description:
# Whether haddock documentation should be built or not.
# Possible values:
# yes, no
# Default value:
# no
.if !defined(HASKELL_MK)
HASKELL_MK= # defined
.include "../../mk/bsd.fast.prefs.mk"
# Declare HASKELL_COMPILER as one of BUILD_DEFS variables. See
# ../../mk/misc/show.mk
BUILD_DEFS+= HASKELL_COMPILER
# Declarations for ../../mk/misc/show.mk
_VARGROUPS+= haskell
_DEF_VARS.haskell= \
_DISTBASE \
_DISTVERSION \
_GHC_BIN \
_GHC_PKG_BIN \
_GHC_VERSION \
_GHC_VERSION_CMD \
_GHC_VERSION_FULL \
_HASKELL_BIN \
_HASKELL_PKG_BIN \
_HASKELL_PKG_DESCR_FILE \
_HASKELL_VERSION
_PKG_VARS.haskell= \
HASKELL_ENABLE_LIBRARY_PROFILING \
HASKELL_ENABLE_HADDOCK_DOCUMENTATION
# PKGNAME is usually named after DISTNAME.
PKGNAME?= hs-${DISTNAME}
# Default value of MASTER_SITES.
_DISTBASE?= ${DISTNAME:C/-[^-]*$//}
_DISTVERSION?= ${DISTNAME:C/^.*-//}
MASTER_SITES?= ${MASTER_SITE_HASKELL_HACKAGE:=${DISTNAME}/}
# Default value of HOMEPAGE.
HOMEPAGE?= http://hackage.haskell.org/cgi-bin/hackage-scripts/package/${_DISTBASE}
# Cabal packages may use pkg-config, but url2pkg can't detect
# that. (PHO: I think that should be handled by url2pkg (2009-05-20))
USE_TOOLS+= pkg-config
# Default value of HASKELL_ENABLE_LIBRARY_PROFILING
HASKELL_ENABLE_LIBRARY_PROFILING?= yes
# Default value of HASKELL_ENABLE_HADDOCK_DOCUMENTATION
HASKELL_ENABLE_HADDOCK_DOCUMENTATION?= no
# Compiler specific variables and targets.
.if ${HASKELL_COMPILER} == "ghc"
# Add dependency to the GHC.
.include "../../lang/ghc7/buildlink3.mk"
# Tools
_GHC_BIN= ${BUILDLINK_PREFIX.ghc}/bin/ghc
_GHC_PKG_BIN= ${BUILDLINK_PREFIX.ghc}/bin/ghc-pkg
_HASKELL_BIN= ${_GHC_BIN} # Expose to the outer scope.
_HASKELL_PKG_BIN= ${_GHC_PKG_BIN} # Expose to the outer scope.
# Determine GHC version.
_GHC_VERSION_CMD= ${_GHC_BIN} -V | ${CUT} -d ' ' -f 8
_GHC_VERSION= ${_GHC_VERSION_CMD:sh}
_GHC_VERSION_FULL= ghc-${_GHC_VERSION}
_HASKELL_VERSION= ${_GHC_VERSION_FULL} # Expose to the outer scope.
# GHC requires C compiler.
USE_LANGUAGES+= c
# Declarations for ../../mk/configure/configure.mk
CONFIGURE_ARGS+= --ghc
CONFIGURE_ARGS+= --with-compiler=${_GHC_BIN}
CONFIGURE_ARGS+= --with-hc-pkg=${_GHC_PKG_BIN}
CONFIGURE_ARGS+= --prefix=${PREFIX}
.endif # ${HASKELL_COMPILER}
# Library profiling
PLIST_VARS+= prof
.if ${HASKELL_ENABLE_LIBRARY_PROFILING} == "yes"
CONFIGURE_ARGS+= -p
PLIST.prof= yes
.endif
# Haddock documentations
PLIST_VARS+= doc
.if ${HASKELL_ENABLE_HADDOCK_DOCUMENTATION} == "yes"
CONFIGURE_ARGS+= --with-haddock=${BUILDLINK_PREFIX.ghc}/bin/haddock
PLIST.doc= yes
.endif
# Optimization
CONFIGURE_ARGS+= -O2
# package.conf and package.conf.old should be ignored at all.
PRINT_PLIST_AWK+= \
/\/package\.conf(\.old)?$$/ { next; }
# _HASKELL_VERSION should be substituted in PLIST.
PLIST_SUBST+= HASKELL_VERSION=${_HASKELL_VERSION}
PRINT_PLIST_AWK+= \
{ gsub(/${_HASKELL_VERSION}/, "$${HASKELL_VERSION}"); }
# We might not have any working Haskell interpreter so compile
# Setup.?hs to a binary.
pre-configure: ${WRKSRC}/Setup
${WRKSRC}/Setup:
${RUN} cd ${WRKSRC} && \
${_HASKELL_BIN} --make Setup
# Define configure target.
do-configure:
${RUN} cd ${WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} \
./Setup configure ${CONFIGURE_ARGS}
# Define build target.
do-build:
${RUN} cd ${WRKSRC} && \
./Setup build
.if ${HASKELL_ENABLE_HADDOCK_DOCUMENTATION} == "yes"
${RUN} cd ${WRKSRC} && \
./Setup haddock
.endif
# Define install target. We need installed-pkg-config to be installed
# for package registration (if any).
_HASKELL_PKG_DESCR_FILE= ${PREFIX}/lib/${DISTNAME}/${_HASKELL_VERSION}/package-description
do-install:
${RUN} cd ${WRKSRC} && \
./Setup register --gen-pkg-config=dist/package-description && \
if [ "${_USE_DESTDIR}" = "no" ]; then \
./Setup copy && \
if [ -f dist/package-description ]; then \
${INSTALL_DATA} dist/package-description ${_HASKELL_PKG_DESCR_FILE}; \
fi \
else \
./Setup copy --destdir=${DESTDIR} && \
if [ -f dist/package-description ]; then \
${INSTALL_DATA} dist/package-description ${DESTDIR}${_HASKELL_PKG_DESCR_FILE}; \
fi \
fi
# Define test target.
do-test:
${RUN} cd ${WRKSRC} && \
./Setup test
# Substitutions for INSTALL and DEINSTALL.
FILES_SUBST+= DISTNAME=${DISTNAME}
FILES_SUBST+= HASKELL_PKG_BIN=${_HASKELL_PKG_BIN}
FILES_SUBST+= HASKELL_PKG_DESCR_FILE=${_HASKELL_PKG_DESCR_FILE}
INSTALL_TEMPLATES+= ../../mk/haskell/INSTALL.in
DEINSTALL_TEMPLATES+= ../../mk/haskell/DEINSTALL.in
.endif # HASKELL_MK

14
mk/haskell/DEINSTALL.in Normal file
View File

@@ -0,0 +1,14 @@
# -*- sh -*-
# $NetBSD: DEINSTALL.in,v 1.1 2014/02/05 07:02:30 obache Exp $
#
DISTNAME="@DISTNAME@"
HASKELL_PKG_BIN="@HASKELL_PKG_BIN@"
HASKELL_PKG_DESCR_FILE="@HASKELL_PKG_DESCR_FILE@"
case ${STAGE} in
DEINSTALL)
if [ -f ${HASKELL_PKG_DESCR_FILE} ]; then
${HASKELL_PKG_BIN} unregister --force ${DISTNAME}
fi
;;
esac

13
mk/haskell/INSTALL.in Normal file
View File

@@ -0,0 +1,13 @@
# -*- sh -*-
# $NetBSD: INSTALL.in,v 1.1 2014/02/05 07:02:30 obache Exp $
#
HASKELL_PKG_BIN="@HASKELL_PKG_BIN@"
HASKELL_PKG_DESCR_FILE="@HASKELL_PKG_DESCR_FILE@"
case ${STAGE} in
POST-INSTALL)
if [ -f ${HASKELL_PKG_DESCR_FILE} ]; then
${HASKELL_PKG_BIN} update ${HASKELL_PKG_DESCR_FILE};
fi
;;
esac

View File

@@ -1,6 +1,6 @@
# $NetBSD: c.help,v 1.2 2008/01/10 02:34:09 rillig Exp $
# $NetBSD: c.help,v 1.3 2013/08/31 20:44:43 rillig Exp $
# This file contains typical error messages from C++ compilers and
# This file contains typical error messages from C compilers and
# instructions how to fix them properly.
# === Invalid lvalue in increment ===
@@ -32,4 +32,4 @@
# 2. In default mode (-Xa), __STDC__ is defined and has the value 0.
# 3. In conformance mode (-Xc), __STDC__ is defined and has the value 1.
#
# Keywords: __STDC__
# Keywords: __STDC__ sunpro

View File

@@ -1,4 +1,4 @@
# $NetBSD: help.awk,v 1.26 2009/05/15 21:10:31 rillig Exp $
# $NetBSD: help.awk,v 1.27 2013/08/31 21:27:53 rillig Exp $
#
# This program extracts the inline documentation from *.mk files.
@@ -126,8 +126,9 @@ $1 ~ /:$/ && $2 == ".PHONY" {
NF >= 1 && !/^[\t.]/ && !/^#*$/ {
w = ($1 ~ /^\#[A-Z]/) ? substr($1, 2) : ($1 == "#") ? $2 : $1;
# Reduce FOO.<param> and FOO.${param} to FOO.
# Reduce VAR.<param>, VAR.${param} and VAR.* to VAR.
sub(/\.[<$].*[>}]$/, "", w);
sub(/\.\*$/, "", w);
if (w ~ /\+=$/) {
# Appending to a variable is usually not a definition.
@@ -136,7 +137,7 @@ NF >= 1 && !/^[\t.]/ && !/^#*$/ {
# Words in mixed case are not taken as keywords. If you
# want them anyway, list them in a "Keywords:" line.
} else if (w !~ /^[A-Za-z][-0-9A-Z_a-z]*[0-9A-Za-z](:|\?=|=)?$/) {
} else if (w !~ /^[_A-Za-z][-0-9A-Z_a-z]*[0-9A-Za-z](:|\?=|=)?$/) {
# Keywords must consist only of letters, digits, hyphens
# and underscores; except for some trailing type specifier.

40
mk/install/install-smf Normal file
View File

@@ -0,0 +1,40 @@
# $NetBSD: install-smf,v 1.1 2014/03/11 14:07:04 jperkin Exp $
#
# Print post-install messages instructing the user how to handle the
# newly-installed SMF services.
#
case ${STAGE} in
POST-INSTALL)
cat <<EOF
============================================================================
This package has SMF support. You may use svcadm(1M) to 'enable', 'disable'
or 'restart' services. To enable the instance(s) for this package, run:
EOF
for svc in @SMF_INSTANCES@; do
cat <<EOF
/usr/sbin/svcadm enable svc:/@SMF_PREFIX@/@SMF_NAME@:${svc}
EOF
done
cat <<EOF
Use svcs(1) to check on service status. See smf(5) for more information.
EOF
if [ -z "${PKG_SKIP_SMF}" ]; then
/usr/sbin/svccfg import ${PKG_PREFIX}/@SMF_MANIFEST_FILE@
else
cat <<EOF
The PKG_SKIP_SMF variable was set, automatic import of SMF manifests was
skipped. You must import the SMF manifest first with:
/usr/sbin/svccfg import ${PKG_PREFIX}/@SMF_MANIFEST_FILE@
EOF
fi
cat <<EOF
============================================================================
EOF
;;
esac

View File

@@ -1,4 +1,4 @@
# $NetBSD: java-vm.mk,v 1.92 2013/06/23 17:43:39 jperkin Exp $
# $NetBSD: java-vm.mk,v 1.94 2013/12/27 00:11:38 tron Exp $
#
# This Makefile fragment handles Java dependencies and make variables,
# and is meant to be included by packages that require Java either at
@@ -133,6 +133,9 @@ _ONLY_FOR_PLATFORMS.sun-jdk6= \
Linux-*-i[3-6]86 \
Linux-*-x86_64 \
NetBSD-*-i386 NetBSD-*-x86_64 \
SunOS-5.10-i386 \
SunOS-5.10-sparc \
SunOS-5.10-x86_64 \
SunOS-5.11-i386 \
SunOS-5.11-x86_64
_ONLY_FOR_PLATFORMS.openjdk7= \

View File

@@ -1,4 +1,4 @@
# $NetBSD: krb5.buildlink3.mk,v 1.11 2007/03/07 10:42:30 rillig Exp $
# $NetBSD: krb5.buildlink3.mk,v 1.12 2013/08/16 12:11:17 jperkin Exp $
#
# This Makefile fragment is meant to be included by packages that
# require a Kerberos 5 implementation. krb5.buildlink3.mk will:
@@ -28,11 +28,7 @@ KRB5_BUILDLINK3_MK:= ${KRB5_BUILDLINK3_MK}+
.include "../../mk/bsd.prefs.mk"
.if !empty(KRB5_BUILDLINK3_MK:M+)
.if ${OPSYS} != Darwin
KRB5_DEFAULT?= heimdal
.else
KRB5_DEFAULT?= mit-krb5
.endif
KRB5_ACCEPTED?= ${_KRB5_PKGS}
# This is an exhaustive list of all of the Kerberos 5 implementations

View File

@@ -1,4 +1,4 @@
# $NetBSD: license.mk,v 1.58 2013/05/05 21:09:59 rodent Exp $
# $NetBSD: license.mk,v 1.61 2014/03/19 21:45:12 wiz Exp $
#
# This file handles everything about the LICENSE variable. It is
# included automatically by bsd.pkg.mk.
@@ -107,9 +107,11 @@ DEFAULT_ACCEPTABLE_LICENSES= \
artistic artistic-2.0 \
boost-license \
cc-by-sa-v3.0 \
cc0-1.0-universal \
cddl-1.0 \
cpl-1.0 \
epl-v1.0 \
eupl-v1.1 \
gnu-fdl-v1.1 gnu-fdl-v1.2 gnu-fdl-v1.3 \
gnu-gpl-v1 \
gnu-gpl-v2 gnu-lgpl-v2 gnu-lgpl-v2.1 \

View File

@@ -1,4 +1,4 @@
# $NetBSD: developer.mk,v 1.20 2013/04/12 13:53:57 joerg Exp $
# $NetBSD: developer.mk,v 1.22 2014/02/22 13:11:22 obache Exp $
#
# Public targets for developers:
#
@@ -53,7 +53,12 @@
# cce:
# Like changes-entry, plus the CHANGES and TODO files are committed.
#
# Keywords: commit update add rename changes
# upload-distfiles:
# Upload files that wish to provide distfiles that others may fetch.
# It only upload distfiles that are freely re-distributable by setting
# NO_SKIP (see mk/fetch/bsd.fetch-vars.mk).
#
# Keywords: commit update add rename changes upload
#
CTYPE?= Updated
@@ -139,3 +144,47 @@ changes-entry: .PHONY ce-error-check changes-entry-update changes-entry-add todo
commit-changes-entry cce: .PHONY ce-error-check changes-entry-update changes-entry-add todo-entry-remove changes-entry-commit
@${DO_NADA}
.PHONY: upload-distfiles
.if defined(NO_SRC_ON_FTP) || empty(_ALLFILES)
upload-distfiles:
@${DO_NADA}
.else
. if defined(EMUL_PLATFORMS) && !empty(EMUL_PLATFORMS)
upload-distfiles:
. for _platform_ in ${EMUL_PLATFORMS}
${RUN} ${MAKE} ${MAKEFLAGS} do-upload-distfiles NO_SKIP=yes \
_BOOTSTRAP_VERBOSE= EMUL_PLATFORM=${_platform_}
. endfor
. else
upload-distfiles: do-upload-distfiles
. endif
.PHONY: do-upload-distfiles
do-upload-distfiles: checksum
${RUN} \
disthost='ftp.NetBSD.org'; \
distdir='~ftp/pub/pkgsrc/distfiles'; \
ssh_cmd="ssh -l ${NETBSD_LOGIN_NAME} $${disthost}"; \
${STEP_MSG} "Checking uploaded files"; \
uploaded_files=`${ECHO} "(cd $${distdir} && /bin/ls -1d ${_ALLFILES}) 2>/dev/null || ${TRUE}" | $${ssh_cmd} /bin/sh`; \
pending_files=""; \
for file in ${_ALLFILES}; do \
found=0; \
for ufile in "" $${uploaded_files}; do \
if ${TEST} x$${file} = x$${ufile}; then \
found=1; \
break; \
fi; \
done; \
if ${TEST} $${found} -ne 1; then \
pending_files="$${pending_files} $${file}"; \
fi; \
done; \
if ${TEST} -n "$${pending_files}"; then \
${STEP_MSG} "Uploading distfiles"; \
cd ${DISTDIR} && ${TAR:U${TOOLS_PLATFORM.tar:Utar}} cf - $${pending_files} | \
$${ssh_cmd} /bin/tar xpf - -C "$${distdir}"; \
fi
.endif

View File

@@ -1,16 +1,17 @@
# $NetBSD: uac-manifest.mk,v 1.1 2013/02/10 13:04:08 obache Exp $
# $NetBSD: uac-manifest.mk,v 1.2 2013/08/31 20:54:07 rillig Exp $
#
# This file generates manifest files for Windows.
#
# This file generate manifest files for Windows.
# For Windows Vista or later, executable files including special keywords
# (install, update, patch, and so on) in its name are expected as requireing
# privileged permissions by default (UAC).
# If not, it must be specified with manifest file, or it will be failed to
# execute as "Permission denied".
# (install, update, patch, and so on) in its name are expected to require
# privileged permissions by default (UAC). If not, it must be specified
# with a manifest file, or it will fail to execute with a "Permission
# denied" error message.
#
# Package-settable variables:
#
# UAC_REQD_EXECS
# A list of files requireing manifest file for UAC.
# A list of files requiring manifest file for UAC.
# Paths are relative to PREFIX.
#
# Default value: not defined

View File

@@ -1,4 +1,4 @@
# $NetBSD: mysql.buildlink3.mk,v 1.17 2013/04/15 22:31:22 abs Exp $
# $NetBSD: mysql.buildlink3.mk,v 1.18 2013/09/13 11:53:24 obache Exp $
#
# This file is included by packages that require some version of the
# MySQL database client.
@@ -8,7 +8,7 @@
# MYSQL_VERSION_DEFAULT
# The preferred MySQL version.
#
# Possible: 56 55 51 50
# Possible: 56 55 51
# Default: 55
#
# === Package-settable variables ===
@@ -31,7 +31,7 @@ _SYS_VARS.mysql= MYSQL_PKGSRCDIR
.include "../../mk/bsd.prefs.mk"
MYSQL_VERSION_DEFAULT?= 55
MYSQL_VERSIONS_ACCEPTED?= 56 55 51 50
MYSQL_VERSIONS_ACCEPTED?= 56 55 51
# transform the list into individual variables
.for mv in ${MYSQL_VERSIONS_ACCEPTED}
@@ -53,10 +53,6 @@ _MYSQL_VERSION_INSTALLED= 55
_MYSQL_VERSION_51_INSTALLED= yes
_MYSQL_VERSION_INSTALLED= 51
. endif
. if exists(${LOCALBASE}/lib/mysql/libmysqlclient.15.dylib)
_MYSQL_VERSION_50_INSTALLED= yes
_MYSQL_VERSION_INSTALLED= 50
. endif
.else
. if exists(${LOCALBASE}/lib/libmysqlclient.so.18)
. if exists(${LOCALBASE}/include/mysql/mysql/client_authentication.h)
@@ -71,10 +67,6 @@ _MYSQL_VERSION_INSTALLED= 55
_MYSQL_VERSION_51_INSTALLED= yes
_MYSQL_VERSION_INSTALLED= 51
. endif
. if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.15)
_MYSQL_VERSION_50_INSTALLED= yes
_MYSQL_VERSION_INSTALLED= 50
. endif
.endif
@@ -121,8 +113,6 @@ MYSQL_PKGSRCDIR= ../../databases/mysql56-client
MYSQL_PKGSRCDIR= ../../databases/mysql55-client
.elif ${_MYSQL_VERSION} == "51"
MYSQL_PKGSRCDIR= ../../databases/mysql51-client
.elif ${_MYSQL_VERSION} == "50"
MYSQL_PKGSRCDIR= ../../databases/mysql5-client
.else
# force an error
PKG_FAIL_REASON+= "[mysql.buildlink3.mk] ${_MYSQL_VERSION} is not a valid mysql package."

View File

@@ -1,4 +1,4 @@
# $NetBSD: oss.buildlink3.mk,v 1.10 2009/03/20 19:25:01 joerg Exp $
# $NetBSD: oss.buildlink3.mk,v 1.11 2014/02/10 12:21:44 richard Exp $
#
# This Makefile fragment is included by packages that require an Open Sound
# System (OSS) implementation. After inclusion of this file, the following
@@ -47,6 +47,9 @@ DEVOSSSOUND?= /dev/dsp
DEVOSSAUDIO?= /dev/dsp0.0
DEVOSSSOUND?= /dev/dsp0.0
. endif
. elif !empty(MACHINE_PLATFORM:MSunOS-5.11-*) && exists(/dev/dsp)
DEVOSSAUDIO?= /dev/dsp
DEVOSSSOUND?= /dev/dsp
. else
DEVOSSAUDIO?= /dev/audio
DEVOSSSOUND?= /dev/sound

View File

@@ -1,11 +1,11 @@
# $NetBSD: oss.builtin.mk,v 1.3 2009/03/17 22:13:36 rillig Exp $
# $NetBSD: oss.builtin.mk,v 1.4 2013/11/23 09:10:14 obache Exp $
BUILTIN_PKG:= oss
BUILTIN_FIND_LIBS:= ossaudio
BUILTIN_FIND_FILES_VAR:= H_SOUNDCARD
BUILTIN_FIND_FILES.H_SOUNDCARD= /usr/include/soundcard.h \
/usr/include/sys/soundcard.h
BUILTIN_FIND_HEADERS_VAR:= H_SOUNDCARD
BUILTIN_FIND_HEADERS.H_SOUNDCARD= soundcard.h \
sys/soundcard.h
.include "../../mk/buildlink3/bsd.builtin.mk"

View File

@@ -1,4 +1,4 @@
# $NetBSD: pbulk-index.mk,v 1.18 2013/06/02 04:41:39 sbd Exp $
# $NetBSD: pbulk-index.mk,v 1.19 2013/10/30 06:18:34 dholland Exp $
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to the parallel bulk build
@@ -16,12 +16,16 @@
# _PBULK_MULTI_VAR.foo forces a specific version
# _PBULK_MULTI_DEFAULT.foo contains the default value
_PBULK_MULTI?= apache mysql php postgresql python ruby
_PBULK_MULTI?= apache lua mysql php postgresql python ruby
_PBULK_MULTI_LIST.apache= PKG_APACHE_ACCEPTED
_PBULK_MULTI_VAR.apache= PKG_APACHE
_PBULK_MULTI_DEFAULT.apache= PKG_APACHE_DEFAULT
_PBULK_MULTI_LIST.lua= _LUA_VERSIONS_ACCEPTED
_PBULK_MULTI_VAR.lua= LUA_VERSION_REQD
_PBULK_MULTI_DEFAULT.lua= LUA_VERSION_DEFAULT
_PBULK_MULTI_LIST.mysql= MYSQL_VERSIONS_ACCEPTED
_PBULK_MULTI_VAR.mysql= MYSQL_VERSION_REQD
_PBULK_MULTI_DEFAULT.mysql= MYSQL_VERSION_DEFAULT

View File

@@ -1,4 +1,4 @@
# $NetBSD: pgsql.buildlink3.mk,v 1.35 2013/04/04 21:08:25 adam Exp $
# $NetBSD: pgsql.buildlink3.mk,v 1.36 2013/09/10 15:35:30 adam Exp $
#
# User-settable variables:
#
@@ -25,7 +25,7 @@ _SYS_VARS.pgsql= PG_LIB_EXT PGSQL_TYPE PGPKGSRCDIR
.include "../../mk/bsd.prefs.mk"
PGSQL_VERSION_DEFAULT?= 91
PGSQL_VERSIONS_ACCEPTED?= 92 91 90 84
PGSQL_VERSIONS_ACCEPTED?= 93 92 91 90 84
# transform the list into individual variables
.for pv in ${PGSQL_VERSIONS_ACCEPTED}
@@ -40,6 +40,9 @@ PG_LIB_EXT=so
# check what is installed
.if ${OPSYS} == "Darwin"
. if exists(${LOCALBASE}/lib/libecpg.6.5.dylib)
_PGSQL_VERSION_93_INSTALLED= yes
. endif
. if exists(${LOCALBASE}/lib/libecpg.6.4.dylib)
_PGSQL_VERSION_92_INSTALLED= yes
. endif
@@ -53,6 +56,9 @@ _PGSQL_VERSION_90_INSTALLED= yes
_PGSQL_VERSION_84_INSTALLED= yes
. endif
.else
. if exists(${LOCALBASE}/lib/libecpg.so.6.5)
_PGSQL_VERSION_93_INSTALLED= yes
. endif
. if exists(${LOCALBASE}/lib/libecpg.so.6.4)
_PGSQL_VERSION_92_INSTALLED= yes
. endif
@@ -102,7 +108,10 @@ _PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED}
.endif
# set variables for the version we decided to use:
.if ${_PGSQL_VERSION} == "92"
.if ${_PGSQL_VERSION} == "93"
PGSQL_TYPE= postgresql93-client
PGPKGSRCDIR= ../../databases/postgresql93-client
.elif ${_PGSQL_VERSION} == "92"
PGSQL_TYPE= postgresql92-client
PGPKGSRCDIR= ../../databases/postgresql92-client
.elif ${_PGSQL_VERSION} == "91"

View File

@@ -1,4 +1,4 @@
# $NetBSD: depends.mk,v 1.3 2013/05/09 23:37:26 riastradh Exp $
# $NetBSD: depends.mk,v 1.4 2014/03/08 11:46:14 obache Exp $
# This command prints out the dependency patterns for all full (run-time)
# dependencies of the package.
@@ -162,13 +162,13 @@ _DEPENDS_INSTALL_CMD= \
${_DEPENDS_FILE}:
${RUN} ${MKDIR} ${.TARGET:H}
${RUN} ${_LIST_DEPENDS_CMD} > ${.TARGET}
${RUN} ${_LIST_DEPENDS_CMD} > ${.TARGET} || (${RM} -f ${.TARGET} && ${FALSE})
${_RDEPENDS_FILE}: ${_DEPENDS_FILE}
${RUN} ${_RESOLVE_DEPENDS_CMD} > ${.TARGET}
${RUN} ${_RESOLVE_DEPENDS_CMD} > ${.TARGET} || (${RM} -f ${.TARGET} && ${FALSE})
${_RRDEPENDS_FILE}: ${_RDEPENDS_FILE}
${RUN} ${_REDUCE_RESOLVED_DEPENDS_CMD} > ${.TARGET}
${RUN} ${_REDUCE_RESOLVED_DEPENDS_CMD} > ${.TARGET} || (${RM} -f ${.TARGET} && ${FALSE})
# _pkgformat-install-dependencies:
# Installs any missing dependencies.

View File

@@ -1,4 +1,4 @@
# $NetBSD: metadata.mk,v 1.5 2013/03/07 13:15:29 obache Exp $
# $NetBSD: metadata.mk,v 1.8 2014/03/02 07:18:36 obache Exp $
######################################################################
### The targets below are all PRIVATE.
@@ -24,7 +24,7 @@ _BUILD_DATE_cmd= ${DATE} "+%Y-%m-%d %H:%M:%S %z"
_BUILD_HOST_cmd= ${UNAME} -a
_METADATA_TARGETS+= ${_BUILD_INFO_FILE}
${_BUILD_INFO_FILE}: plist
${_BUILD_INFO_FILE}: ${_PLIST_NOKEYWORDS}
${RUN}${MKDIR} ${.TARGET:H}
${RUN}${RM} -f ${.TARGET}.tmp
${RUN} (${_BUILD_DEFS:NPATH:@v@${ECHO} ${v}=${${v}:Q} ;@}) \
@@ -70,6 +70,10 @@ ${_BUILD_INFO_FILE}: plist
fi; \
linklibs=`${AWK} '/.*\.so(\.[0-9]+)*$$/ { print "${DESTDIR}${PREFIX}/" $$0 }' ${_PLIST_NOKEYWORDS}`; \
for i in $$linklibs; do \
case "$$i" in \
${CHECK_SHLIBS_SKIP:U:@p@${DESTDIR}${PREFIX}/${p}) continue ;;@} \
*);; \
esac; \
if ${TEST} -r $$i -a ! -x $$i -a ! -h $$i; then \
${TEST} ${PKG_DEVELOPER:Uno:Q}"" = "no" || \
${ECHO} "$$i: installed without execute permission; fixing (should use [BSD_]INSTALL_LIB)"; \
@@ -293,7 +297,7 @@ ${_PRESERVE_FILE}:
_SIZE_PKG_FILE= ${PKG_DB_TMPDIR}/+SIZE_PKG
_METADATA_TARGETS+= ${_SIZE_PKG_FILE}
${_SIZE_PKG_FILE}: plist
${_SIZE_PKG_FILE}: ${PLIST}
${RUN}${MKDIR} ${.TARGET:H}
${RUN} \
${CAT} ${PLIST} | \
@@ -386,7 +390,6 @@ _CONTENTS_TARGETS+= ${_DEPENDS_FILE}
_CONTENTS_TARGETS+= ${_DESCR_FILE}
_CONTENTS_TARGETS+= ${_MESSAGE_FILE}
_CONTENTS_TARGETS+= ${_DEPENDS_PLIST}
_CONTENTS_TARGETS+= plist
_CONTENTS_TARGETS+= ${_PRESERVE_FILE}
_CONTENTS_TARGETS+= ${_SIZE_ALL_FILE}
_CONTENTS_TARGETS+= ${_SIZE_PKG_FILE}

View File

@@ -1,4 +1,4 @@
# $NetBSD: package.mk,v 1.2 2013/05/23 13:18:56 obache Exp $
# $NetBSD: package.mk,v 1.3 2013/08/10 06:05:57 obache Exp $
.if defined(PKG_SUFX)
WARNINGS+= "PKG_SUFX is deprecated, please use PKG_COMPRESSION"
@@ -49,7 +49,7 @@ package-create: package-remove ${PKGFILE} package-links
.if ${_USE_DESTDIR} == "no"
stage-package-create: package-create
.else
stage-package-create: stage-install stage-package-remove ${STAGE_PKGFILE}
stage-package-create: stage-install ${STAGE_PKGFILE}
.endif
_PKG_ARGS_PACKAGE+= ${_PKG_CREATE_ARGS}

View File

@@ -1,4 +1,4 @@
# $NetBSD: bsd.pkginstall.mk,v 1.57 2012/07/09 21:56:38 wiz Exp $
# $NetBSD: bsd.pkginstall.mk,v 1.58 2014/03/11 13:45:07 jperkin Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and implements the
# common INSTALL/DEINSTALL scripts framework. To use the pkginstall
@@ -503,13 +503,20 @@ _INSTALL_FILES_DATAFILE= ${_PKGINSTALL_DIR}/files-data
_INSTALL_UNPACK_TMPL+= ${_INSTALL_FILES_FILE}
_INSTALL_DATA_TMPL+= ${_INSTALL_FILES_DATAFILE}
# Only generate init scripts if we are using rc.d
_INSTALL_RCD_SCRIPTS= # empty
.if ${INIT_SYSTEM} == "rc.d"
_INSTALL_RCD_SCRIPTS= ${RCD_SCRIPTS}
.endif
privileged-install-hook: _pkginstall-postinstall-check
_pkginstall-postinstall-check: .PHONY
${RUN} p="${DESTDIR}${PREFIX}"; \
${_FUNC_STRIP_PREFIX}; \
canon() { f=`strip_prefix "$$1"`; case $$f in [!/]*) f="$$p/$$f"; esac; echo "$$f"; }; \
needargs() { [ $$3 -ge $$2 ] || ${FAIL_MSG} "[bsd.pkginstall.mk] $$1 must have a multiple of $$2 words. Rest: $$4"; }; \
set args ${RCD_SCRIPTS}; shift; \
set args ${_INSTALL_RCD_SCRIPTS}; shift; \
while [ $$# -gt 0 ]; do \
egfile=`canon "${RCD_SCRIPTS_EXAMPLEDIR}/$$1"`; shift; \
[ -f "$$egfile" ] || [ -c "$$egfile" ] || ${FAIL_MSG} "RCD_SCRIPT $$egfile does not exist."; \
@@ -542,7 +549,7 @@ _pkginstall-postinstall-check: .PHONY
${_INSTALL_FILES_DATAFILE}:
${RUN}${MKDIR} ${.TARGET:H}
${RUN}${_FUNC_STRIP_PREFIX}; \
set -- dummy ${RCD_SCRIPTS}; shift; \
set -- dummy ${_INSTALL_RCD_SCRIPTS}; shift; \
exec 1>>${.TARGET}; \
while ${TEST} $$# -gt 0; do \
script="$$1"; shift; \
@@ -664,7 +671,7 @@ ${_INSTALL_DIRS_DATAFILE}:
esac
${RUN} \
exec 1>>${.TARGET}; \
case ${RCD_SCRIPTS:M*:Q}"" in \
case ${_INSTALL_RCD_SCRIPTS:M*:Q}"" in \
"") ;; \
*) ${ECHO} "# DIR: ${RCD_SCRIPTS_DIR:S/${PREFIX}\///} m" ;; \
esac
@@ -1172,7 +1179,7 @@ generate-rcd-scripts: # do nothing
post-install: install-rcd-scripts
install-rcd-scripts: # do nothing
.for _script_ in ${RCD_SCRIPTS}
.for _script_ in ${_INSTALL_RCD_SCRIPTS}
RCD_SCRIPT_SRC.${_script_}?= ${FILESDIR}/${_script_}.sh
RCD_SCRIPT_WRK.${_script_}?= ${WRKDIR}/${_script_}
@@ -1192,6 +1199,8 @@ install-rcd-${_script_}: ${RCD_SCRIPT_WRK.${_script_}}
${DESTDIR}${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/${_script_}; \
fi
. endif
GENERATE_PLIST+= ${ECHO} ${RCD_SCRIPTS_EXAMPLEDIR}/${_script_};
PRINT_PLIST_AWK+= /^${RCD_SCRIPTS_EXAMPLEDIR:S|/|\\/|g}\/${_script_}/ { next; }
.endfor
_PKGINSTALL_TARGETS+= acquire-pkginstall-lock

View File

@@ -1,4 +1,4 @@
# $NetBSD: Cygwin.mk,v 1.12 2013/04/28 12:53:56 obache Exp $
# $NetBSD: Cygwin.mk,v 1.15 2013/10/13 10:10:05 wiz Exp $
#
# Variable definitions for the Windows with Cygwin.
@@ -6,6 +6,7 @@
### Platform definitions common to pkgsrc/mk/platform/*.mk
###
CPP?= /bin/cpp
ECHO_N?= ${ECHO} -n
IMAKE_MAKE?= ${GMAKE} # program which gets invoked by imake
IMAKEOPTS+= -DBuildHtmlManPages=NO
@@ -17,10 +18,9 @@ TYPE?= type # Shell builtin
USERADD?= ${LOCALBASE}/sbin/useradd
GROUPADD?= ${LOCALBASE}/sbin/groupadd
_PKG_USER_HOME?= # empty by default
_USER_DEPENDS= user>=20130313:../../sysutils/user_cygwin
_USER_DEPENDS= user-cygwin>=20130712:../../sysutils/user_cygwin
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

View File

@@ -1,4 +1,4 @@
# $NetBSD: Darwin.mk,v 1.52 2013/04/28 12:53:56 obache Exp $
# $NetBSD: Darwin.mk,v 1.61 2013/12/31 11:13:43 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -15,6 +15,7 @@
# Snow Leopard 10.6.x 10.x.y 3.2+ (gcc 4.0.1 and 4.2.1)
# Lion 10.7.x 11.x.y 4.1 (llvm gcc 4.2.1)
# Mountain Lion 10.8.x 12.x.y 4.5 (llvm gcc 4.2.1)
# Mavericks 10.9.x 13.x.y 5 (llvm clang 5.0)
# Tiger (and earlier) use Xfree 4.4.0 (and earlier)
.if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
@@ -67,13 +68,25 @@ 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
_USER_DEPENDS= user>=20040801:../../sysutils/user_darwin
_USER_DEPENDS= user-darwin>=20130712:../../sysutils/user_darwin
_OPSYS_EMULDIR.darwin= # empty
#
# From Xcode 5 onwards system headers are no longer installed by default
# into /usr/include, so we need to query their location.
#
.if exists(/usr/bin/xcrun)
OSX_SDK_PATH!= /usr/bin/xcrun --show-sdk-path 2>/dev/null || echo /nonexistent
.endif
_OPSYS_SYSTEM_RPATH?= /usr/lib
_OPSYS_LIB_DIRS?= /usr/lib
.if exists(/usr/include/stdio.h)
_OPSYS_INCLUDE_DIRS?= /usr/include
.elif exists(${OSX_SDK_PATH}/usr/include/stdio.h)
_OPSYS_INCLUDE_DIRS?= ${OSX_SDK_PATH}/usr/include
.endif
.if ${OS_VERSION:R} >= 6
_OPSYS_HAS_INET6= yes # IPv6 is standard
@@ -92,8 +105,19 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -b -z # switch to patch(1) for backup suffix
_USE_RPATH= no # don't add rpath to LDFLAGS
# Comes with a native mit-krb5 implementation
KRB5_DEFAULT?= mit-krb5
#
# Builtin overrides.
#
.if !empty(OS_VERSION:M[56].*)
USE_BUILTIN.dl= no # Darwin-[56].* uses devel/dlcompat
.endif
# Builtin defaults which make sense for this platform.
PREFER.linux-pam?= native
_OPSYS_PREFER.linux-pam?= native
_OPSYS_PREFER.mit-krb5?= native
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.

View File

@@ -0,0 +1,79 @@
# $NetBSD: GNUkFreeBSD.mk,v 1.2 2014/02/19 17:20:23 jperkin Exp $
#
# Variable definitions for the Debian GNU/kFreeBSD operating system.
ECHO_N?= ${ECHO} -n
.if defined(X11_TYPE) && ${X11_TYPE} == "native"
IMAKE_MAKE?= ${GMAKE} # program which gets invoked by imake
IMAKE_TOOLS= gmake # extra tools required when we use imake
.endif
IMAKEOPTS+= -DBuildHtmlManPages=NO
PKGLOCALEDIR?= share
PS?= /bin/ps
SU?= /bin/su
TYPE?= type # Shell builtin
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /usr/sbin/groupadd
MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type
NOLOGIN?= /usr/sbin/nologin
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
.if !empty(MACHINE_ARCH:Mx86_64)
_OPSYS_SYSTEM_RPATH= /lib:/usr/lib:/lib/x86_64-kfreebsd-gnu:/usr/lib/x86_64-kfreebsd-gnu
_OPSYS_LIB_DIRS?= /lib /usr/lib /lib/x86_64-kfreebsd-gnu /usr/lib/x86_64-kfreebsd-gnu
.endif
.if !empty(MACHINE_ARCH:Mi386)
_OPSYS_SYSTEM_RPATH= /lib:/usr/lib:/lib/i386-kfreebsd-gnu:/usr/lib/i386-kfreebsd-gnu
_OPSYS_LIB_DIRS?= /lib /usr/lib /lib/i386-kfreebsd-gnu /usr/lib/i386-kfreebsd-gnu
.endif
_OPSYS_INCLUDE_DIRS?= /usr/include
# These are libc builtins
_OPSYS_PREFER.getopt?= native
_OPSYS_PREFER.gettext?= native
_OPSYS_PREFER.iconv?= native
_OPSYS_PREFER.sysexits?= native
_OPSYS_HAS_INET6= yes # IPv6 is standard
_OPSYS_HAS_JAVA= no # Java is not standard
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
_OPSYS_HAS_OSSAUDIO= no # libossaudio is unavailable
_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
_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
_OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk
# 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.
.if exists(/usr/bin/getconf)
_OPSYS_MAX_CMDLEN_CMD?= /usr/bin/getconf ARG_MAX
.endif
# If this is defined pass it to the make process.
.if defined(NOGCCERROR)
MAKE_ENV+= NOGCCERROR=true
.endif

View File

@@ -1,4 +1,4 @@
# $NetBSD: HPUX.mk,v 1.22 2013/04/28 12:53:56 obache Exp $
# $NetBSD: HPUX.mk,v 1.23 2013/09/04 15:14:45 jperkin Exp $
#
# Variable definitions for the HP-UX operating system.
@@ -70,8 +70,8 @@ KRB5_DEFAULT?= mit-krb5
# Builtin openssl and zlib have issues. Prefer pkgsrc's until we know which
# versions work.
PREFER.openssl?= pkgsrc
PREFER.zlib?= pkgsrc
_OPSYS_PREFER.openssl?= pkgsrc
_OPSYS_PREFER.zlib?= pkgsrc
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: Haiku.mk,v 1.8 2013/04/28 12:53:56 obache Exp $
# $NetBSD: Haiku.mk,v 1.9 2013/11/23 07:50:51 obache Exp $
#
# Variable definitions for the Haiku operating system.
@@ -35,7 +35,7 @@ _OPSYS_SYSTEM_RPATH?= /boot/common/lib:/boot/system/lib
_OPSYS_LIB_DIRS?= /boot/common/lib /boot/system/lib
_OPSYS_INCLUDE_DIRS?= /boot/common/include \
/boot/develop/headers/posix \
/boot/develop/3rdparty
/boot/develop/headers/3rdparty
_OPSYS_HAS_INET6= yes # IPv6 is standard
_OPSYS_HAS_JAVA= no # Java is not standard

View File

@@ -1,4 +1,4 @@
# $NetBSD: IRIX.mk,v 1.41 2013/04/28 12:53:56 obache Exp $
# $NetBSD: IRIX.mk,v 1.42 2013/07/12 10:41:58 jperkin Exp $
#
# Variable definitions for the IRIX operating system.
@@ -33,7 +33,7 @@ ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
USERADD?= ${LOCALBASE}/sbin/useradd
GROUPADD?= ${LOCALBASE}/sbin/groupadd
_PKG_USER_HOME?= /dev/null # to match other system accounts
_USER_DEPENDS= user-[0-9]*:../../sysutils/user_irix
_USER_DEPENDS= user-irix>=20130712:../../sysutils/user_irix
_OPSYS_EMULDIR.irix= # empty

View File

@@ -1,4 +1,4 @@
# $NetBSD: Interix.mk,v 1.69 2013/04/28 12:53:56 obache Exp $
# $NetBSD: Interix.mk,v 1.71 2013/10/13 10:10:05 wiz Exp $
#
# Variable definitions for the Interix operating system.
@@ -85,10 +85,9 @@ TYPE?= type # Shell builtin
USERADD?= ${LOCALBASE}/sbin/useradd
GROUPADD?= ${LOCALBASE}/sbin/groupadd
_PKG_USER_HOME?= # empty by default
_USER_DEPENDS= user>=20040426:../../sysutils/user_interix
_USER_DEPENDS= user-interix>=20130712:../../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

View File

@@ -1,4 +1,4 @@
# $NetBSD: Linux.mk,v 1.55 2013/05/17 03:40:02 dsainty Exp $
# $NetBSD: Linux.mk,v 1.60 2014/03/07 15:03:15 jperkin Exp $
#
# Variable definitions for the Linux operating system.
@@ -24,7 +24,6 @@ DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /usr/sbin/groupadd
LIBC_BUILTINS= iconv getopt sysexits gettext
MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type
.if exists(/etc/ssdlinux_version)
NOLOGIN?= /sbin/nologin
@@ -68,6 +67,14 @@ _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX}
.endif
_OPSYS_INCLUDE_DIRS?= /usr/include
# These are libc builtins
_OPSYS_PREFER.getopt?= native
_OPSYS_PREFER.gettext?= native
_OPSYS_PREFER.iconv?= native
_OPSYS_PREFER.libexecinfo?= native
_OPSYS_PREFER.libinotify?= native
_OPSYS_PREFER.sysexits?= native
.if exists(/usr/include/netinet6) || exists(/usr/include/linux/in6.h)
_OPSYS_HAS_INET6= yes # IPv6 is standard
.else
@@ -75,7 +82,7 @@ _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_HAS_OSSAUDIO= no # libossaudio is unavailable
_OPSYS_PERL_REQD= # no base version of perl required
_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
_OPSYS_SHLIB_TYPE= ELF # shared lib type
@@ -99,9 +106,16 @@ _OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk
_OPSYS_MAX_CMDLEN_CMD?= /usr/bin/getconf ARG_MAX
.endif
.if (${MACHINE_ARCH} == "x86_64")
ABI?= 64
LIBABISUFFIX?= 64
.if ${MACHINE_ARCH} == "x86_64"
ABI?= 64
LIBABISUFFIX?= 64
.endif
# When building 32-bit packages on x86_64 GNU ld isn't smart enough to
# figure out the target architecture based on the objects so we need to
# explicitly set it.
.if ${NATIVE_MACHINE_ARCH} == "x86_64" && ${MACHINE_ARCH} == "i386"
_WRAP_EXTRA_ARGS.LD+= -m elf_i386
.endif
## Use _CMD so the command only gets run when needed!

View File

@@ -1,4 +1,4 @@
# $NetBSD: MirBSD.mk,v 1.9 2013/04/28 12:53:56 obache Exp $
# $NetBSD: MirBSD.mk,v 1.10 2014/03/19 16:44:08 bsiegert Exp $
#
# Variable definitions for the MirOS BSD operating system.
@@ -45,7 +45,9 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
BUILDLINK_TRANSFORM+= rm:-ldl # libdl.a is an empty static library
BUILDLINK_TRANSFORM+= rm:-ldl # libdl.a is an empty static library
BUILDLINK_TRANSFORM+= rm:-fvisibility=hidden # at least until there is a newer gcc
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.

View File

@@ -100,7 +100,7 @@ GAMEDIRMODE= 0775
PAM_DEFAULT?= openpam
PREFER.zlib?= pkgsrc
PREFER.bzip2?= pkgsrc
PREFER.curses?= pkgsrc
PREFER.termcap?= pkgsrc
_OPSYS_PREFER.zlib?= pkgsrc
_OPSYS_PREFER.bzip2?= pkgsrc
_OPSYS_PREFER.curses?= pkgsrc
_OPSYS_PREFER.termcap?= pkgsrc

View File

@@ -1,4 +1,4 @@
$NetBSD: README,v 1.3 2013/04/28 12:53:56 obache Exp $
$NetBSD: README,v 1.4 2014/02/14 13:11:17 obache Exp $
These files contain platform-specific definitions that are used by the
pkgsrc infrastructure.
@@ -114,6 +114,9 @@ TODO: Document all these variables.
set it in configure's environment, to avoid a test required by the
libtool script that takes forever.
_OPSYS_PREFER.<pkg> is builtin defaults which make sense for this platform.
see also: mk/buildlink3/bsd.builtin.mk.
=== Implementation notes ===
Do not try to extract the definitions that are common to all files into

76
mk/platform/SCO_SV.mk Normal file
View File

@@ -0,0 +1,76 @@
# $NetBSD: SCO_SV.mk,v 1.1 2014/03/14 22:05:18 ryoon Exp $
#
# Variable definitions for the OpenServer 5.0.7/3.2 and 6.0.0/5.
ECHO_N?= ${ECHO} -n
PKGLOCALEDIR?= lib
PS?= /bin/ps
SU?= /bin/su
TYPE?= type # Shell builtin
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /etc/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
TOUCH_FLAGS?= # touch doesn't understand -f
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?= /etc/useradd
_OPSYS_SYSTEM_RPATH?= /lib:/usr/lib:/usr/gnu/lib
_OPSYS_LIB_DIRS?= /lib/lib /usr/lib /usr/gnu/lib
_OPSYS_HAS_INET6= no # IPv6 is not standard
_OPSYS_HAS_JAVA= yes # 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
#
# The native linker for OpenServer 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 OpenServer 5.0.7/3.2 linker, /usr/ccs/bin/ld.
# The use of GNU ld is not currently supported.
# XXX is this needed for OpenServer?
_OPSYS_WHOLE_ARCHIVE_FLAG=
_OPSYS_NO_WHOLE_ARCHIVE_FLAG=
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip
PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
_OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk
# Use native curses to avoid circular dependency.
_OPSYS_PREFER.curses?= native
.if ${OS_VARIANT} == "SCOOSR5"
# SCO OpenServer 5.0.7/3.2's /bin/rm cannot accepr "rm -f" (without arg).
CONFIGURE_ENV+= ACCEPT_INFERIOR_RM_PROGRAM=yes
# pkgsrc does not support SCO OpenServer 5.0.7/3.2's native CC (yet).
BUILDLINK_TRANSFORM+= rm:-belf
# SCO OpenServer 5.0.7/3.2's pthread is GNU pth and it requires -lsocket.
BUILDLINK_TRANSFORM+= l:pthread:pthread:socket
# SCO OpenServer 5.0.7/3.2's pthread library is GNU pth (builtin).
PTHREAD_TYPE= pth
# SCO OpenServer 5.0.7/3.2 has no IPv6 support.
_OPSYS_MISSING_FEATURES= inet6
PKG_DEFAULT_OPTIONS= -inet6
.endif

View File

@@ -1,4 +1,4 @@
# $NetBSD: SunOS.mk,v 1.51 2013/05/16 17:09:07 jperkin Exp $
# $NetBSD: SunOS.mk,v 1.58 2014/03/11 14:07:04 jperkin Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -11,6 +11,7 @@ PS?= /bin/ps
SU?= /usr/bin/su
TYPE?= /usr/bin/type
CATMAN_SECTION_SUFFIX?= yes
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
@@ -37,9 +38,19 @@ MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
MOTIF_TYPE_DEFAULT?= motif
.endif
# Use SMF by default if available.
.if ${OS_VERSION} >= 5.10
INIT_SYSTEM?= smf
.endif
# Comes with a builtin implementation based on mit-krb5
KRB5_DEFAULT?= mit-krb5
# Builtin defaults which make sense for this platform.
PREFER.solaris-pam?= native
PREFER.openssl?= pkgsrc
_OPSYS_PREFER.libexecinfo?= native
_OPSYS_PREFER.mit-krb5?= native
_OPSYS_PREFER.openssl?= pkgsrc
_OPSYS_PREFER.solaris-pam?= native
_OPSYS_EMULDIR.solaris= # empty
_OPSYS_EMULDIR.solaris32= # empty
@@ -67,6 +78,10 @@ _USE_RPATH= yes # add rpath to LDFLAGS
_OPSYS_WHOLE_ARCHIVE_FLAG= -z allextract
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -z defaultextract
# Remove flags specific to GNU ld.
BUILDLINK_TRANSFORM+= rm:-Wl,--export-dynamic
BUILDLINK_TRANSFORM+= rm:-export-dynamic
# Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it
# incompatible.
_INCOMPAT_ICONV= SunOS-*-*

View File

@@ -1,4 +1,4 @@
# $NetBSD: plist-man.awk,v 1.8 2010/02/20 07:05:52 rillig Exp $
# $NetBSD: plist-man.awk,v 1.9 2013/09/12 11:01:47 jperkin Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -41,6 +41,9 @@
###
### Certain environment variables must be set prior to running this script:
###
### CATMAN_SECTION_SUFFIX is a yes/no variable that determines whether to use
### the catman page section as the suffix or .0 if not.
###
### IMAKE_MANINSTALL specifies how imake-using packages install man pages.
### Valid values are:
###
@@ -72,6 +75,7 @@ BEGIN {
MANINSTALL = getenv("MANINSTALL", "maninstall catinstall")
MANZ = getenv("MANZ", "no")
PKGMANDIR = getenv("PKGMANDIR", "man")
CATMAN_SECTION_SUFFIX = getenv("CATMAN_SECTION_SUFFIX", "no")
}
###
@@ -103,7 +107,11 @@ BEGIN {
/^([^\/]*\/)+man[1-9ln]\/[^\/]*\.[0-9ln]$/ {
n = split($0, components, "/")
sub("man", "cat", components[n-1])
section = "0"
if (CATMAN_SECTION_SUFFIX ~ /[yY][eE][sS]/) {
section = substr(components[n-1], 4, 1)
} else {
section = "0"
}
sub("[0-9ln]$", section, components[n])
$0 = join(components, 1, n, "/")
}
@@ -138,3 +146,13 @@ BEGIN {
/^man\/([^\/]*\/)?(man[1-9ln]\/[^\/]*\.[1-9ln]|cat[1-9ln]\/[^\/]*\.[0-9])/ {
sub("^man/", PKGMANDIR "/")
}
###
### Fixup catman entries to use section suffixes if required.
###
(CATMAN_SECTION_SUFFIX ~ /[yY][eE][sS]/)&& /^[^@]/ && \
/^man\/([^\/]*\/)?(cat[1-9ln]\/[^\/]*\.[0-9])/ {
n = split($0, components, "/")
sub("^cat", "", components[n-1])
sub("0$", components[n-1], $0)
}

8
mk/plist/plist-smf.awk Normal file
View File

@@ -0,0 +1,8 @@
# $NetBSD: plist-smf.awk,v 1.1 2014/03/11 14:07:04 jperkin Exp $
#
# Handle legacy entries, e.g. in pkgsrc-wip.
#
/^share\/examples\/rc\.d/ {
next;
}

View File

@@ -1,4 +1,4 @@
# $NetBSD: plist.mk,v 1.45 2013/02/10 12:03:00 obache Exp $
# $NetBSD: plist.mk,v 1.46 2013/09/12 11:01:47 jperkin Exp $
#
# This Makefile fragment handles the creation of PLISTs for use by
# pkg_create(8).
@@ -130,6 +130,7 @@ MAKEVARS+= _IGNORE_INFO_PATH
#
_PLIST_AWK_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q}
_PLIST_AWK_ENV+= USE_PKGLOCALEDIR=${USE_PKGLOCALEDIR:Dyes:Uno}
_PLIST_AWK_ENV+= CATMAN_SECTION_SUFFIX=${CATMAN_SECTION_SUFFIX:Q}
_PLIST_AWK_ENV+= IMAKE_MANINSTALL=${_IMAKE_MANINSTALL:Q}
_PLIST_AWK_ENV+= IGNORE_INFO_PATH=${_IGNORE_INFO_PATH:Q}
_PLIST_AWK_ENV+= PKGINFODIR=${PKGINFODIR:Q}

View File

@@ -1,4 +1,4 @@
# $NetBSD: print-plist.mk,v 1.23 2013/02/20 09:19:08 wiz Exp $
# $NetBSD: print-plist.mk,v 1.26 2014/01/24 12:42:52 obache Exp $
###
### Automatic PLIST generation
@@ -26,9 +26,10 @@ _PRINT_PLIST_AWK_SUBST+= \
gsub(/${PKGNAME_NOREV}/, "$${PKGNAME}"); \
gsub(/${PKGVERSION:S/./\./g:C/nb[0-9]*$$//}/, "$${PKGVERSION}");\
gsub(/^${PKGLOCALEDIR}\/locale/, "share/locale"); \
gsub("^${PKGGNUDIR}", "gnu/"); \
gsub("^${PKGGNUDIR:S/\/$$//}/", "gnu/"); \
gsub("^${PKGINFODIR}/", "info/"); \
gsub("^${PKGMANDIR}/", "man/");
_PRINT_PLIST_AWK_SUBST+=}
_PRINT_PLIST_AWK_IGNORE= ($$0 ~ /^${PKG_DBDIR:S|^${PREFIX}/||:S|/|\\/|g}\//)
@@ -175,7 +176,6 @@ print-PLIST:
/${DESTDIR:S|/|\\/|g:S/+/\\\\+/g}${PREFIX:S|/|\\/|g}\/\.$$/ { next; } \
/${PKG_DBDIR:S|/|\\/|g}\// { next; } \
{ sub("${DESTDIR:S/+/\\\\\\+/g}${PREFIX}/\\\\./", ""); } \
{ sub("^${PKGGNUDIR}", "gnu/"); } \
{ sub("^${PKGINFODIR}/", "info/"); } \
{ sub("^${PKGMANDIR}/", "man/"); } \
/^${PKG_DBDIR:S|^${PREFIX}/||:S|/|\\/|g}(\/|$$)/ { next; } \

View File

@@ -1,4 +1,4 @@
# $NetBSD: shlib-pe.awk,v 1.3 2013/04/17 11:53:44 obache Exp $
# $NetBSD: shlib-pe.awk,v 1.4 2014/03/08 08:52:25 obache Exp $
#
# Copyright (c) 2006,2013 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -50,12 +50,18 @@ BEGIN {
###
### add_dll(lib) adds the named "lib" to the PLIST entries list and
### to the dlls list if we haven't already seen it.
### to the dlls list if we haven't already seen it.
### dll may be in "bin" or its name may be cygXXX.dll instead of libXXX.dll.
###
function add_dll(lib) {
if (dlls[lib] == "") {
dlls[lib] = lib
entries[++nentries] = lib
if (sub("^lib/lib", "bin/lib", lib)) {
add_dll(lib)
sub("^bin/lib", "bin/cyg", lib)
add_dll(lib)
}
}
}
@@ -94,10 +100,14 @@ function add_dll(lib) {
lib = $0; sub("\\.so\\.", ".", lib); sub("\\.so$", "", lib)
lib = lib ".dll"
add_dll(lib)
sub("\\.", "-", lib)
add_dll(lib)
while (sub("\\.[0-9]+$", "")) {
lib = $0; sub("\\.so\\.", ".", lib); sub("\\.so$", "", lib)
lib = lib ".dll"
add_dll(lib)
sub("\\.", "-", lib)
add_dll(lib)
}
if (sub("\\.so$", "")) {
lib = $0 ".dll"
@@ -140,9 +150,11 @@ function add_dll(lib) {
if (system(cmd) == 0) {
entries[++nentries] = $0
}
lib = $0; sub("\\.a$", "", lib)
lib = lib ".dll.a"
add_dll(lib)
lib = $0; sub("\\.a$", ".dll.a", lib)
cmd = TEST " -f " PREFIX "/" lib
if (system(cmd) == 0) {
entries[++nentries] = lib
}
next
}

View File

@@ -1,4 +1,4 @@
# $NetBSD: pthread.buildlink3.mk,v 1.29 2010/02/06 11:06:19 obache Exp $
# $NetBSD: pthread.buildlink3.mk,v 1.30 2013/11/01 12:19:29 jperkin Exp $
#
# The pthreads strategy for pkgsrc is to "bless" a particular pthread
# package as the Official Pthread Replacement (OPR). The following
@@ -82,12 +82,18 @@ _PKG_PTHREAD_COMPAT_PATTERNS= *-*-*
.include "../../mk/bsd.fast.prefs.mk"
PTHREAD_OPTS?= # empty
CHECK_BUILTIN.pthread:= yes
.include "../../mk/pthread.builtin.mk"
CHECK_BUILTIN.pthread:= no
#
# 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).
# Set the value of PTHREAD_TYPE depending on the platform and what's
# available in the base system.
#
.undef PTHREAD_TYPE
.if (exists(/usr/include/pthread.h) || ${OPSYS} == "Haiku") && \
.if defined(USE_BUILTIN.pthread) && \
!empty(USE_BUILTIN.pthread:M[yY][eE][sS]) && \
!empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
PTHREAD_TYPE= native
.else

View File

@@ -1,11 +1,10 @@
# $NetBSD: pthread.builtin.mk,v 1.13 2013/04/28 13:40:17 obache Exp $
# $NetBSD: pthread.builtin.mk,v 1.15 2013/11/23 09:10:14 obache Exp $
BUILTIN_PKG:= pthread
BUILTIN_FIND_LIBS:= pthread c_r rt
BUILTIN_FIND_FILES_VAR= H_PTHREAD
BUILTIN_FIND_FILES.H_PTHREAD= /usr/include/pthread.h \
/boot/develop/headers/posix/pthread.h
BUILTIN_FIND_HEADERS_VAR= H_PTHREAD
BUILTIN_FIND_HEADERS.H_PTHREAD= pthread.h
.include "../../mk/buildlink3/bsd.builtin.mk"
@@ -61,7 +60,8 @@ BUILDLINK_LDFLAGS.pthread= # empty
# XXX
# XXX This should really be a check for GCC!
# XXX
BUILDLINK_OPSYS_SUPPORT_PTHREAD= DragonFly FreeBSD Linux MirBSD NetBSD OpenBSD
BUILDLINK_OPSYS_SUPPORT_PTHREAD= \
DragonFly FreeBSD Linux MirBSD NetBSD OpenBSD SunOS
. if !empty(BUILDLINK_OPSYS_SUPPORT_PTHREAD:M${OPSYS})
BUILDLINK_CFLAGS.pthread+= -pthread
BUILDLINK_LDFLAGS.pthread+= -pthread

87
mk/readline.buildlink3.mk Normal file
View File

@@ -0,0 +1,87 @@
# $NetBSD: readline.buildlink3.mk,v 1.4 2013/08/16 11:31:50 jperkin Exp $
#
# This Makefile fragment is meant to be included by packages that require
# any readline implementation instead of one particular one. The available
# readline/editline implementations are "editline" and "readline".
#
# If a package genuinely requires editline or readline, then it should
# directly include the appropriate buildlink3.mk instead of this file in
# the package Makefile.
#
# === User-settable variables ===
#
# READLINE_DEFAULT
# This value represents the type of readline we wish to use on the
# system. Setting this to "editline" means that the system libedit
# implementation is fine or pkgsrc "editline" should be used.
#
# Possible: editline readline
# Default: (depends)
#
# === Variables set by this file ===
#
# READLINE_TYPE
# The name of the selected readline implementation, editline or
# readline.
EDITLINEREADLINE_BUILDLINK3_MK:= ${EDITLINEREADLINE_BUILDLINK3_MK}+
.include "bsd.fast.prefs.mk"
.if !empty(EDITLINEREADLINE_BUILDLINK3_MK:M+)
# _READLINE_PKGS is an exhaustive list of all of the readline implementations
# that may be used with readline.buildlink3.mk.
#
_READLINE_PKGS?= editline readline
CHECK_BUILTIN.editlinereadline:= yes
.include "readline.builtin.mk"
CHECK_BUILTIN.editlinereadline:= no
# Set the value of READLINE_DEFAULT depending on the platform and what's
# available in the base system.
#
.if defined(IS_BUILTIN.editline) && \
!empty(IS_BUILTIN.editline:M[Yy][Ee][Ss])
READLINE_DEFAULT?= editline
.elif defined(IS_BUILTIN.readline) && \
!empty(IS_BUILTIN.readline:M[Yy][Ee][Ss])
READLINE_DEFAULT?= readline
.else
READLINE_DEFAULT?= readline
.endif
_READLINE_ACCEPTED= ${_READLINE_PKGS} # both are provided by pkgsrc.
_READLINE_TYPE= ${READLINE_DEFAULT}
. if !empty(_READLINE_ACCEPTED:M${_READLINE_TYPE})
READLINE_TYPE= ${_READLINE_TYPE}
. else
READLINE_TYPE= none
. endif
BUILD_DEFS+= READLINE_DEFAULT
BUILD_DEFS_EFFECTS+= READLINE_TYPE
# _PKG_USE_READLINE is a flag for use by the readline packages' buildlink3.mk
# files to indicate that the headers and libraries should be usable as
# <readline.h> etc. and -lreadline etc.
#
_PKG_USE_READLINE= yes
.endif # EDITLINEREADLINE_BUILDLINK3_MK
.if ${READLINE_TYPE} == "none"
PKG_FAIL_REASON= \
"${_READLINE_TYPE} is not an acceptable readline type for ${PKGNAME}."
.elif ${READLINE_TYPE} == "editline"
. include "../../devel/editline/buildlink3.mk"
BUILDLINK_PREFIX.editlinereadline?= ${BUILDLINK_PREFIX.editline}
BUILDLINK_LIBNAME.editlinereadline?= ${BUILDLINK_LIBNAME.editline}
BUILDLINK_LDADD.editlinereadline?= ${BUILDLINK_LDADD.editline}
.elif ${READLINE_TYPE} == "readline"
. include "../../devel/readline/buildlink3.mk"
BUILDLINK_PREFIX.editlinereadline?= ${BUILDLINK_PREFIX.readline}
BUILDLINK_LIBNAME.editlinereadline?= ${BUILDLINK_LIBNAME.readline}
BUILDLINK_LDADD.editlinereadline?= ${BUILDLINK_LDADD.readline}
.endif

53
mk/readline.builtin.mk Normal file
View File

@@ -0,0 +1,53 @@
# $NetBSD: readline.builtin.mk,v 1.4 2013/11/23 09:10:14 obache Exp $
#
BUILTIN_PKG:= editlinereadline
BUILTIN_FIND_LIBS:= edit readline history
BUILTIN_FIND_HEADERS_VAR:= H_EDITLINE H_READLINE
BUILTIN_FIND_HEADERS.H_READLINE= readline/readline.h \
readline.h
BUILTIN_FIND_HEADERS.H_EDITLINE= editline/readline.h \
readline/readline.h
BUILTIN_FIND_GREP.H_EDITLINE= NetBSD
BUILTIN_FIND_GREP.H_READLINE= \#define[ ]*RL_VERSION_MAJOR
.include "../../mk/buildlink3/bsd.builtin.mk"
.if !defined(IS_BUILTIN.editlinereadline)
IS_BUILTIN.editlinereadline= no
. if empty(H_EDITLINE:M__nonexistent__) && \
!empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS])
IS_BUILTIN.editline= yes
IS_BUILTIN.editlinereadline= yes
. elif empty(H_READLINE:M__nonexistent__) && \
!empty(BUILTIN_LIB_FOUND.readline:M[yY][eE][sS])
IS_BUILTIN.readline= yes
IS_BUILTIN.editlinereadline= yes
. else
IS_BUILTIN.editline= no
IS_BUILTIN.readline= no
IS_BUILTIN.editlinereadline= no
. endif
.endif
.if !defined(USE_BUILTIN.editlinereadline)
. if ${PREFER.editlinereadline} == "pkgsrc"
USE_BUILTIN.editlinereadline= no
. else
USE_BUILTIN.editlinereadline= ${IS_BUILTIN.editlinereadline}
. endif
.endif
CHECK_BUILTIN.editlinereadline= no
.if empty(CHECK_BUILTIN.editlinereadline:M[Nn][Oo])
. if !empty(USE_BUILTIN.editlinereadline:M[Yy][Ee][Ss])
. if !empty(_READLINE_TYPE:Meditline)
. include "../../devel/editline/builtin.mk"
IS_BUILTIN.editlinereadline= ${USE_BUILTIN.editline}
. else if !empty(_READLINE_TYPE:Mreadline)
. include "../../devel/readline/builtin.mk"
IS_BUILTIN.editlinereadline= ${USE_BUILTIN.readline}
. endif
. endif
.endif

142
mk/smf.mk Normal file
View File

@@ -0,0 +1,142 @@
# $NetBSD: smf.mk,v 1.1 2014/03/11 14:07:04 jperkin Exp $
#
# Infrastructure support for the Service Management Facility (SMF). This
# file will be sourced and used if INIT_SYSTEM is set to "smf".
#
# User-settable variables:
#
# SMF_PREFIX
# This is the global FMRI prefix that will be used in SMF. The
# default is "pkgsrc", so the general URI will be of the form
# "svc:/pkgsrc/<package>:<instance>".
#
# Package-settable variables:
#
# SMF_SRCDIR
# The source directory containing manifest and method files. This
# defaults to ${FILESDIR}/smf and can be set to a location under
# ${WRKSRC} if necessary (i.e. the source includes SMF files).
#
# SMF_NAME
# This sets the service name part of the FMRI, and defaults to the
# lower-case string of PKGBASE.
#
# SMF_MANIFEST
# The name of the XML file under SMF_SRCDIR which is to be used as
# this package's manifest. The default name is "manifest.xml"
#
# SMF_INSTANCES
# The list of instances this manifest provides. Manifests support
# multiple instances, the default is a single "default" instance.
#
# SMF_METHODS
# A list of SMF method scripts available under SMF_SRCDIR with
# ".sh" extensions to be generated and installed.
#
# SMF_METHOD_SRC.<method>
# Allows you to override the source file name for a particular
# method, if it does not follow the standard <method>.sh naming.
#
# SMF_METHOD_SHELL
# The default shell to use in method scripts.
#
.if !defined(SMF_MK)
SMF_MK= # defined
# Directory to hold the SMF manifest/method files
PKG_SMF_DIR?= lib/svc
PKG_SMF_MANIFEST_DIR?= ${PKG_SMF_DIR}/manifest
PKG_SMF_METHOD_DIR?= ${PKG_SMF_DIR}/method
# Prefix of SMF services FMRI
SMF_PREFIX?= pkgsrc
# Variables that can be overriden by the user on a package by package basis
SMF_NAME?= ${PKGBASE:tl}
SMF_INSTANCES?= default
SMF_MANIFEST?= manifest.xml
SMF_METHODS?= # empty
SMF_METHOD_SHELL?= /sbin/sh
SMF_SRCDIR?= ${FILESDIR}/smf
# Dynamically remove rc.d entries, primarily for pkgsrc-{joyent,wip}
PLIST_AWK+= -f ${PKGSRCDIR}/mk/plist/plist-smf.awk
# A manifest file is a pre-requisite for anything to happen. We cannot test
# for existance if the manifest is under WRKDIR as the source has not yet been
# unpacked, so we assume it will exist later when required.
. if exists(${SMF_SRCDIR}/${SMF_MANIFEST}) || !empty(SMF_SRCDIR:M${WRKDIR}*)
SMF_MANIFEST_SRC?= ${SMF_SRCDIR}/${SMF_MANIFEST}
SMF_MANIFEST_WRK?= ${WRKDIR}/.smf_${SMF_MANIFEST}
SMF_MANIFEST_FILE?= ${PKG_SMF_MANIFEST_DIR}/${SMF_NAME}.xml
FILES_SUBST+= PKGMANDIR=${PKGMANDIR:Q}
FILES_SUBST+= SMF_PREFIX=${SMF_PREFIX:Q}
FILES_SUBST+= SMF_NAME=${SMF_NAME:Q}
FILES_SUBST+= SMF_INSTANCES=${SMF_INSTANCES:Q}
FILES_SUBST+= SMF_MANIFEST=${SMF_MANIFEST:Q}
FILES_SUBST+= SMF_MANIFEST_FILE=${SMF_MANIFEST_FILE:Q}
FILES_SUBST+= SMF_METHOD_SHELL=${SMF_METHOD_SHELL:Q}
INSTALLATION_DIRS+= ${PKG_SMF_MANIFEST_DIR}
MULTIARCH_SKIP_DIRS.lib+= ${PKG_SMF_DIR}
.PHONY: generate-smf-manifest
generate-smf-manifest: ${SMF_MANIFEST_WRK}
${SMF_MANIFEST_WRK}: ${SMF_MANIFEST_SRC}
@${STEP_MSG} "Creating ${.TARGET}"
${RUN}${CAT} ${.ALLSRC} | ${SED} ${FILES_SUBST_SED} > ${.TARGET}
.PHONY: install-smf-manifest
post-install: install-smf-manifest
install-smf-manifest: ${SMF_MANIFEST_WRK}
${INSTALL_DATA} ${SMF_MANIFEST_WRK} ${DESTDIR}${PREFIX}/${SMF_MANIFEST_FILE}
GENERATE_PLIST+= ${ECHO} "${SMF_MANIFEST_FILE}";
PRINT_PLIST_AWK+= /^${SMF_MANIFEST_FILE:S|/|\\/|g}/ { next; }
# Target to add the INSTALL script to auto-import SMF manifest using svccfg
${WRKDIR}/.smfinstall: ${PKGSRCDIR}/mk/install/install-smf
@${CP} ${PKGSRCDIR}/mk/install/install-smf ${WRKDIR}/.smfinstall
INSTALL_TEMPLATES+= ${WRKDIR}/.smfinstall
# Install optional SMF methods
#
.PHONY: generate-smf-methods
generate-smf-methods: # do nothing
.PHONY: install-smf-methods
post-install: install-smf-methods
install-smf-methods: # do nothing
. for _method_ in ${SMF_METHODS}
SMF_METHOD_SRC.${_method_}?= ${SMF_SRCDIR}/${_method_}.sh
SMF_METHOD_WRK.${_method_}?= ${WRKDIR}/.smf_${_method_}
SMF_METHOD_FILE.${_method_}?= ${PKG_SMF_METHOD_DIR}/${_method_}
FILES_SUBST+= SMF_METHOD_FILE.${_method_}=${SMF_METHOD_FILE.${_method_}}
. if !empty(SMF_METHOD_SRC.${_method_})
generate-smf-methods: ${SMF_METHOD_WRK.${_method_}}
${SMF_METHOD_WRK.${_method_}}: ${SMF_METHOD_SRC.${_method_}}
@${STEP_MSG} "Creating ${.TARGET}"
${RUN}${CAT} ${.ALLSRC} | ${SED} ${FILES_SUBST_SED} > ${.TARGET}
${RUN}${CHMOD} +x ${.TARGET}
install-smf-methods: install-smf-${_method_}
install-smf-${_method_}: ${SMF_METHOD_WRK.${_method_}}
${RUN} \
if [ -f ${SMF_METHOD_WRK.${_method_}} ]; then \
${MKDIR} ${DESTDIR}${PREFIX}/${PKG_SMF_METHOD_DIR}; \
${INSTALL_SCRIPT} ${SMF_METHOD_WRK.${_method_}} \
${DESTDIR}${PREFIX}/${SMF_METHOD_FILE.${_method_}}; \
fi
. endif
GENERATE_PLIST+= ${ECHO} ${SMF_METHOD_FILE.${_method_}};
PRINT_PLIST_AWK+= /^${SMF_METHOD_FILE.${_method_}:S|/|\\/|g}/ { next; }
. endfor
. endif
.endif

View File

@@ -1,9 +1,9 @@
# $NetBSD: solaris-pam.builtin.mk,v 1.4 2006/04/06 06:23:06 reed Exp $
# $NetBSD: solaris-pam.builtin.mk,v 1.5 2013/11/23 09:10:14 obache Exp $
BUILTIN_PKG:= solaris-pam
BUILTIN_FIND_FILES_VAR:= H_SOLARIS_PAM
BUILTIN_FIND_FILES.H_SOLARIS_PAM= /usr/include/security/pam_appl.h
BUILTIN_FIND_HEADERS_VAR:= H_SOLARIS_PAM
BUILTIN_FIND_HEADERS.H_SOLARIS_PAM= security/pam_appl.h
BUILTIN_FIND_GREP.H_SOLARIS_PAM= Copyright.*Sun Microsystems
.include "../../mk/buildlink3/bsd.builtin.mk"

View File

@@ -1,4 +1,4 @@
# $NetBSD: subst.mk,v 1.53 2008/01/26 15:23:21 rillig Exp $
# $NetBSD: subst.mk,v 1.54 2013/10/13 21:38:36 dholland Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a particular
@@ -23,8 +23,9 @@
# the filenames are either absolute or relative to ${WRKSRC}.
#
# SUBST_SED.<class>
# List of sed(1) arguments to run on the specified files. Multiple
# commands can be specified using the -e option of sed.
# List of sed(1) arguments to run on the specified files.
# Multiple commands can be specified using the -e option of sed.
# Do not use non-standard sed options (e.g. -E).
#
# SUBST_VARS.<class>
# List of variables that are substituted whenever they appear in

View File

@@ -1,4 +1,4 @@
# $NetBSD: termcap.buildlink3.mk,v 1.8 2010/02/07 09:46:14 roy Exp $
# $NetBSD: termcap.buildlink3.mk,v 1.10 2013/10/19 19:12:41 roy Exp $
#
# This Makefile fragment is meant to be included by packages that require
# a termcap implementation that supports the basic termcap functions:
@@ -43,7 +43,9 @@ BUILD_DEFS_EFFECTS+= TERMCAP_TYPE
# e.g. curses -- see termcap.builtin.mk for details.
#
. for _tcap_ in ${_TERMCAP_TYPES:Ntermcap:Ncurses}
. if empty(TERMCAP_TYPE:M${_tcap_})
. if empty(TERMCAP_TYPE:M${_tcap_}) \
&& (!defined(TERMINFO_TYPE) || empty(TERMINFO_TYPE:M${_tcap_})) \
&& (!defined(CURSES_TYPE) || empty(CURSES_TYPE:M${_tcap_}))
BUILDLINK_TRANSFORM+= rm:-l${_tcap_}
. endif
. endfor

View File

@@ -1,14 +1,14 @@
# $NetBSD: termcap.builtin.mk,v 1.9 2013/06/17 05:44:27 obache Exp $
# $NetBSD: termcap.builtin.mk,v 1.10 2013/11/23 09:10:14 obache Exp $
BUILTIN_PKG:= termcap
BUILTIN_FIND_LIBS:= terminfo curses termcap termlib tinfo
BUILTIN_FIND_FILES_VAR:= H_TERM H_TERMCAP H_TERMLIB
BUILTIN_FIND_FILES.H_TERM:= /usr/include/term.h
BUILTIN_FIND_HEADERS_VAR:= H_TERM H_TERMCAP H_TERMLIB
BUILTIN_FIND_HEADERS.H_TERM:= term.h
BUILTIN_FIND_GREP.H_TERM:= tgetent
BUILTIN_FIND_FILES.H_TERMCAP:= /usr/include/termcap.h
BUILTIN_FIND_HEADERS.H_TERMCAP:= termcap.h
BUILTIN_FIND_GREP.H_TERMCAP:= tgetent
BUILTIN_FIND_FILES.H_TERMLIB:= /usr/include/termlib.h
BUILTIN_FIND_HEADERS.H_TERMLIB:= termlib.h
BUILTIN_FIND_GREP.H_TERMLIB:= tgetent
.include "buildlink3/bsd.builtin.mk"

View File

@@ -1,4 +1,4 @@
# $NetBSD: terminfo.buildlink3.mk,v 1.2 2011/07/12 06:42:58 obache Exp $
# $NetBSD: terminfo.buildlink3.mk,v 1.6 2014/03/11 09:16:57 obache Exp $
#
# This Makefile fragment is meant to be included by packages that require
# any terminfo implementation instead of one particular one. The available
@@ -12,8 +12,8 @@
# === User-settable variables ===
#
# TERMINFO_DEFAULT
# This value represents the type of curses we wish to use on the
# system. Setting this to "curses" means that the system curses
# This value represents the type of terminfo we wish to use on the
# system. Setting this to "terminfo" means that the system terminfo
# implementation is fine.
#
# Possible: terminfo, ncurses, pdcurses
@@ -22,17 +22,18 @@
# === Variables set by this file ===
#
# TERMINFO_TYPE
# The name of the selected curses implementation.
# The name of the selected terminfo implementation.
TERMINFO_BUILDLINK3_MK:= ${TERMINFO_BUILDLINK3_MK}+
.include "bsd.fast.prefs.mk"
.if !empty(TERMINFO_BUILDLINK3_MK:M+)
# _TERMINFO_PKGS is an exhaustive list of all of the curses implementations
# that may be used with curses.buildlink3.mk.
# _TERMINFO_PKGS is an exhaustive list of all of the terminfo implementations
# that may be used with terminfo.buildlink3.mk.
#
_TERMINFO_PKGS?= terminfo ncurses pdcurses
_TERMINFO_TYPES?= terminfo tinfo curses ncurses
CHECK_BUILTIN.terminfo:= yes
. include "terminfo.builtin.mk"
@@ -49,7 +50,7 @@ TERMINFO_DEFAULT?= ncurses
_TERMINFO_ACCEPTED= # empty
.if defined(USE_BUILTIN.terminfo) && !empty(USE_BUILTIN.terminfo:M[yY][eE][sS])
_TERMINFO_ACCEPTED+= terminfo # system curses exists
_TERMINFO_ACCEPTED+= terminfo # system terminfo exists
.endif
_TERMINFO_ACCEPTED+= ncurses # pkgsrc ncurses
_TERMINFO_ACCEPTED+= pdcurses # pkgsrc pdcurses
@@ -64,12 +65,31 @@ TERMINFO_TYPE= none
BUILD_DEFS+= TERMINFO_DEFAULT
BUILD_DEFS_EFFECTS+= TERMINFO_TYPE
# Most GNU configure scripts will try finding every terminfo implementation,
# so prevent them from finding any except for the one we decide upon.
#
# There is special handling for packages that can be provided by pkgsrc,
# e.g. curses -- see terminfo.builtin.mk for details.
#
.if empty(TERMINFO_TYPE:Mnone)
. for _tcap_ in ${_TERMINFO_TYPES}
. if empty(TERMINFO_TYPE:M${_tcap_}) \
&& (!defined(CURSES_TYPE) || empty(CURSES_TYPE:U:M${_tcap_}))
BUILDLINK_TRANSFORM+= l:${_tcap_}:${BUILDLINK_LIBNAME.terminfo}
. endif
. endfor
.endif
.endif # TERMINFO_BUILDLINK3_MK
.if ${TERMINFO_TYPE} == "none"
PKG_FAIL_REASON= \
"${_TERMINFO_TYPE} is not an acceptable terminfo type for ${PKGNAME}."
.elif ${TERMINFO_TYPE} == "terminfo"
BUILDLINK_TREE+= terminfo -terminfo
BUILDLINK_LIBNAME.terminfo?= ${BUILTIN_LIBNAME.terminfo}
BUILDLINK_LDADD.terminfo?= ${BUILDLINK_LIBNAME.terminfo:S/^/-l/:S/^-l$//}
BUILDLINK_BUILTIN_MK.terminfo= ../../mk/terminfo.builtin.mk
.elif ${TERMINFO_TYPE} == "ncurses"
USE_NCURSES= yes
. include "../../devel/ncurses/buildlink3.mk"

View File

@@ -1,10 +1,10 @@
# $NetBSD: terminfo.builtin.mk,v 1.2 2010/02/08 22:11:43 roy Exp $
# $NetBSD: terminfo.builtin.mk,v 1.5 2013/11/23 09:10:14 obache Exp $
BUILTIN_PKG:= terminfo
BUILTIN_FIND_LIBS:= terminfo curses tinfo
BUILTIN_FIND_FILES_VAR:= H_TERM
BUILTIN_FIND_FILES.H_TERM:= /usr/include/term.h
BUILTIN_FIND_HEADERS_VAR:= H_TERM
BUILTIN_FIND_HEADERS.H_TERM:= term.h
BUILTIN_FIND_GREP.H_TERM:= tigetstr
.include "buildlink3/bsd.builtin.mk"
@@ -38,8 +38,8 @@ USE_BUILTIN.terminfo= ${IS_BUILTIN.terminfo}
.endif
MAKEVARS+= USE_BUILTIN.terminfo
# Define BUILTIN_LIBNAME.termcap to be the base name of the built-in
# termcap library.
# Define BUILTIN_LIBNAME.terminfo to be the base name of the built-in
# terminfo library.
#
# The way this is determined is:
#
@@ -77,8 +77,12 @@ BUILDLINK_LIBNAME.terminfo= ${BUILTIN_LIBNAME.terminfo}
# of those library options.
#
. if empty(BUILDLINK_TREE:Mcurses) && empty(BUILDLINK_TREE:Mncurses)
. if empty(BUILDLINK_LIBNAME.terminfo:Mcurses)
BUILDLINK_TRANSFORM+= rm:-lcurses
. endif
. if empty(BUILDLINK_LIBNAME.terminfo:Mncurses)
BUILDLINK_TRANSFORM+= rm:-lncurses
. endif
. endif
.endif # CHECK_BUILTIN.terminfo

View File

@@ -1,4 +1,4 @@
# $NetBSD: automake.mk,v 1.20 2013/05/09 23:37:27 riastradh Exp $
# $NetBSD: automake.mk,v 1.21 2013/11/30 06:24:38 richard Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -78,7 +78,8 @@ 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.
# automake, up to but not including the current version as supplied
# by the automake package itself.
#
_TOOLS_AM_NAMES= aclocal aclocal-1.4 \
aclocal-1.5 \
@@ -87,7 +88,9 @@ _TOOLS_AM_NAMES= aclocal aclocal-1.4 \
aclocal-1.8 \
aclocal-1.9 \
aclocal-1.10 \
aclocal-1.11
aclocal-1.11 \
aclocal-1.12 \
aclocal-1.13
_TOOLS_AM_NAMES+= automake automake-1.4 \
automake-1.5 \
automake-1.6 \
@@ -95,7 +98,9 @@ _TOOLS_AM_NAMES+= automake automake-1.4 \
automake-1.8 \
automake-1.9 \
automake-1.10 \
automake-1.11
automake-1.11 \
automake-1.12 \
automake-1.13
.for _t_ in ${_TOOLS_AM_NAMES}
_TOOLS_AM_TYPE.${_t_}?= TOOLS_GNU_MISSING

View File

@@ -1,4 +1,4 @@
# $NetBSD: defaults.mk,v 1.58 2012/10/01 10:45:16 ryoon Exp $
# $NetBSD: defaults.mk,v 1.61 2014/03/06 07:34:20 uebayasi Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -139,6 +139,7 @@ _TOOLS_VARNAME.touch= TOUCH
_TOOLS_VARNAME.tr= TR
_TOOLS_VARNAME.true= TRUE
_TOOLS_VARNAME.tsort= TSORT
_TOOLS_VARNAME.uniq= UNIQ
_TOOLS_VARNAME.unrar= UNRAR
_TOOLS_VARNAME.unzip= UNZIP_CMD
_TOOLS_VARNAME.unzoo= UNZOO
@@ -146,6 +147,7 @@ _TOOLS_VARNAME.wc= WC
_TOOLS_VARNAME.wish= WISH
_TOOLS_VARNAME.xargs= XARGS
_TOOLS_VARNAME.xmkmf= XMKMF_CMD
_TOOLS_VARNAME.xz= XZ
_TOOLS_VARNAME.xzcat= XZCAT
_TOOLS_VARNAME.yacc= YACC

View File

@@ -1,4 +1,4 @@
# $NetBSD: gmake.mk,v 1.3 2013/06/12 20:37:43 riastradh Exp $
# $NetBSD: gmake.mk,v 1.4 2014/01/15 06:53:06 ryoon Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -64,6 +64,13 @@ _TOOLS_USE_PKGSRC.gmake!= \
MAKEVARS+= _TOOLS_USE_PKGSRC.gmake
.endif
.if defined(_TOOLS_USE_PKGSRC.gmake) && !empty(_TOOLS_USE_PKGSRC.gmake)
. if !empty(_TOOLS_USE_PKGSRC.gmake:M[yY][eE][sS])
TOOLS_FIND_PREFIX+= GMAKEDIR=gmake
TOOLS_PLATFORM.gmake= ${GMAKEDIR}/bin/gmake
. endif
.endif
# XXX Kludge to prevent pkgsrc's internal variable TARGET_ARCH for
# cross-compilation from leaking into gmake's environment, where it
# will break the default rules. Remove either when we start using

View File

@@ -1,4 +1,4 @@
# $NetBSD: pkg-config.mk,v 1.11 2012/10/30 18:48:33 drochner Exp $
# $NetBSD: pkg-config.mk,v 1.12 2014/03/07 15:15:17 jperkin Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -39,6 +39,9 @@
# Override the location where pkg-config searches for *.pc files in the
# pkg-config wrapper script.
#
.if !empty(LIBABISUFFIX)
_PKG_CONFIG_LIBDIR?= ${BUILDLINK_DIR}/lib${LIBABISUFFIX}/pkgconfig:${BUILDLINK_DIR}/lib/pkgconfig:${BUILDLINK_DIR}/share/pkgconfig
.endif
_PKG_CONFIG_LIBDIR?= ${BUILDLINK_DIR}/lib/pkgconfig:${BUILDLINK_DIR}/share/pkgconfig
_PKG_CONFIG_LOG?= ${WRKDIR}/.pkg-config.log

View File

@@ -1,4 +1,4 @@
# $NetBSD: replace.mk,v 1.260 2013/06/06 02:17:17 obache Exp $
# $NetBSD: replace.mk,v 1.269 2014/03/13 17:06:43 taca Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -430,11 +430,11 @@ MAKEFLAGS+= TOOLS_IGNORE.gem=
. if !defined(RUBY_VER) || !empty(RUBY_VER:M18)
TOOLS_DEPENDS.gem?= ${RUBY_PKGPREFIX}-rubygems-[0-9]*:../../misc/rubygems
. else
TOOLS_DEPENDS.gem?= ${RUBY_BASE}>=${RUBY_VERSION}:../../lang/${RUBY_BASE}
TOOLS_DEPENDS.gem?= ${RUBY_BASE}>=${RUBY_VERSION}:${RUBY_SRCDIR}
. endif
TOOLS_CREATE+= gem
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gem=gem
TOOLS_PATH.gem= ${TOOLS_PREFIX.gem}/bin/gem${RUBY_VER}
TOOLS_PATH.gem= ${TOOLS_PREFIX.gem}/bin/gem${RUBY_SUFFIX}
. endif
.endif
@@ -584,6 +584,17 @@ TOOLS_PATH.lha= ${TOOLS_PREFIX.lha}/bin/lha
. endif
.endif
.if !defined(TOOLS_IGNORE.lzip) && !empty(_USE_TOOLS:Mlzip)
. if !empty(PKGPATH:Marchivers/lzip)
MAKEFLAGS+= TOOLS_IGNORE.lzip=
. elif !empty(_TOOLS_USE_PKGSRC.lzip:M[yY][eE][sS])
TOOLS_DEPENDS.lzip?= lzip>=1.14:../../archivers/lzip
TOOLS_CREATE+= lzip
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.lzip=lzip
TOOLS_PATH.lzip= ${TOOLS_PREFIX.lzip}/bin/lzip
. endif
.endif
.if !defined(TOOLS_IGNORE.lzcat) && !empty(_USE_TOOLS:Mlzcat)
. if !empty(PKGPATH:Marchivers/xz)
MAKEFLAGS+= TOOLS_IGNORE.lzcat=
@@ -844,6 +855,16 @@ TOOLS_PATH.unzoo= ${TOOLS_PREFIX.unzoo}/bin/unzoo
. endif
.endif
.if !defined(TOOLS_IGNORE.wget) && !empty(_USE_TOOLS:Mwget)
. if !empty(PKGPATH:Mnet/wget)
MAKEFLAGS+= TOOLS_IGNORE.wget=
. elif !empty(_TOOLS_USE_PKGSRC.wget:M[yY][eE][sS])
TOOLS_DEPENDS.wget?= wget-[0-9]*:../../net/wget
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.wget=wget
TOOLS_PATH.wget= ${TOOLS_PREFIX.wget}/bin/wget
. endif
.endif
.if !defined(TOOLS_IGNORE.wish) && !empty(_USE_TOOLS:Mwish)
. if !empty(PKGPATH:Mx11/tk)
MAKEFLAGS+= TOOLS_IGNORE.wish=
@@ -867,16 +888,19 @@ TOOLS_ARGS.xargs= -r # don't run command if stdin is empty
. endif
.endif
.if !defined(TOOLS_IGNORE.xzcat) && !empty(_USE_TOOLS:Mxzcat)
. if !empty(PKGPATH:Marchivers/xz)
MAKEFLAGS+= TOOLS_IGNORE.xzcat=
. elif !empty(_TOOLS_USE_PKGSRC.xzcat:M[yY][eE][sS])
TOOLS_DEPENDS.xzcat?= xz>=4.999.9betanb1:../../archivers/xz
TOOLS_CREATE+= xzcat
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xzcat=xzcat
TOOLS_PATH.xzcat= ${TOOLS_PREFIX.xzcat}/bin/xzcat
_TOOLS.xz= xz xzcat
.for _t_ in ${_TOOLS.xz}
. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
. if !empty(PKGPATH:Marchivers/xz)
MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS])
TOOLS_DEPENDS.${_t_}?= xz>=4.999.9betanb1:../../archivers/xz
TOOLS_CREATE+= ${_t_}
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=xz
TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_}
. endif
. endif
.endif
.endfor
.if !defined(TOOLS_IGNORE.yacc) && !empty(_USE_TOOLS:Myacc)
. if !empty(PKGPATH:Mdevel/bison)
@@ -938,9 +962,9 @@ TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_}
# there is no native tool available.
#
_TOOLS.coreutils= basename cat chgrp chmod chown cp cut date \
dirname echo env expr false head hostname id \
install ln ls mkdir mv nice printf pwd rm rmdir \
sleep sort tail tee test touch tr true tsort wc
dirname echo env expr false head hostname id install \
ln ls mkdir mv nice numfmt printf pwd readlink realpath \
rm rmdir sleep sort tail tee test touch tr true tsort wc
.for _t_ in ${_TOOLS.coreutils}
. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
@@ -991,10 +1015,31 @@ TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/g${_t_}
######################################################################
# These tools are supplied by textproc/mdocml as replacements for their
# groff counterparts. As this package has fewer dependencies it should
# be preferred over groff wherever possible.
#
_TOOLS.mdocml= nroff
.for _t_ in ${_TOOLS.mdocml}
. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
. if !empty(PKGPATH:Mtextproc/mdocml)
MAKEFLAGS+= TOOLS_IGNORE.${_t_}=
. elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS])
TOOLS_DEPENDS.${_t_}?= mdocml>=1.12.0nb3:../../textproc/mdocml
TOOLS_CREATE+= ${_t_}
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=mdocml
TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/mandoc
. endif
. endif
.endfor
######################################################################
# These tools are all supplied by the textproc/groff package if there is
# no native tool available.
#
_TOOLS.groff= groff nroff soelim tbl
_TOOLS.groff= groff soelim tbl
.for _t_ in ${_TOOLS.groff}
. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
@@ -1147,7 +1192,7 @@ TOOLS_PATH.mkfontscale= ${TOOLS_PREFIX.mkfontscale}/bin/mkfontscale
MAKEFLAGS+= TOOLS_IGNORE.bdftopcf=
. elif !empty(_TOOLS_USE_PKGSRC.bdftopcf:M[yY][eE][sS])
TOOLS_CREATE+= bdftopcf
. if !empty(X11_TYPE:Mnative)
. if !empty(X11_TYPE:Mnative) && exists(${X11BASE}/bin/bdftopcf)
TOOLS_PATH.bdftopcf= ${X11BASE}/bin/bdftopcf
. else
TOOLS_DEPENDS.bdftopcf?= bdftopcf-[0-9]*:../../fonts/bdftopcf

View File

@@ -1,4 +1,4 @@
# $NetBSD: tools.AIX.mk,v 1.16 2009/02/05 19:03:29 joerg Exp $
# $NetBSD: tools.AIX.mk,v 1.17 2014/03/06 07:34:20 uebayasi Exp $
#
# System-supplied tools for the AIX operating system.
@@ -63,6 +63,7 @@ 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.uniq?= /usr/bin/uniq
TOOLS_PLATFORM.wc?= /usr/bin/wc
TOOLS_PLATFORM.xargs?= /usr/bin/xargs

View File

@@ -1,4 +1,4 @@
# $NetBSD: tools.BSDOS.mk,v 1.17 2006/10/17 06:13:51 rillig Exp $
# $NetBSD: tools.BSDOS.mk,v 1.18 2014/03/06 07:34:20 uebayasi Exp $
#
# System-supplied tools for the BSD/OS operating system.
@@ -82,5 +82,6 @@ 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.uniq?= /usr/bin/uniq
TOOLS_PLATFORM.wc?= /usr/bin/wc
TOOLS_PLATFORM.xargs?= /usr/bin/xargs

View File

@@ -1,4 +1,4 @@
# $NetBSD: tools.Cygwin.mk,v 1.3 2013/05/16 08:28:11 obache Exp $
# $NetBSD: tools.Cygwin.mk,v 1.8 2014/03/06 07:34:20 uebayasi Exp $
#
# System-supplied tools for the Cygwin operating system.
@@ -107,6 +107,7 @@ TOOLS_PLATFORM.pkg-config?= /bin/pkg-config
.endif
TOOLS_PLATFORM.printf?= /bin/printf
TOOLS_PLATFORM.pwd?= /bin/pwd
TOOLS_PLATFORM.readlink?= /bin/readlink
TOOLS_PLATFORM.rm?= /bin/rm
TOOLS_PLATFORM.rmdir?= /bin/rmdir
TOOLS_PLATFORM.sdiff?= /bin/sdiff
@@ -130,14 +131,19 @@ TOOLS_PLATFORM.touch?= /bin/touch
TOOLS_PLATFORM.tr?= /bin/tr
TOOLS_PLATFORM.true?= true # shell builtin
TOOLS_PLATFORM.tsort?= /bin/tsort
TOOLS_PLATFORM.uniq?= /bin/uniq
.if exists(/bin/unzip)
TOOLS_PLATFORM.unzip?= /bin/unzip
.endif
TOOLS_PLATFORM.wc?= /bin/wc
.if exists(/bin/wget)
TOOLS_PLATFORM.wget?= /bin/wget
.endif
TOOLS_PLATFORM.xargs?= /bin/xargs -r
.if exists(/bin/xgettext)
TOOLS_PLATFORM.xgettext?= /bin/xgettext
.endif
TOOLS_PLATFORM.xz?= /bin/xz
TOOLS_PLATFORM.xzcat?= /bin/xzcat
.if exists(/bin/yacc)
TOOLS_PLATFORM.yacc?= /bin/yacc

View File

@@ -1,4 +1,4 @@
# $NetBSD: tools.Darwin.mk,v 1.46 2012/07/27 14:38:26 jperkin Exp $
# $NetBSD: tools.Darwin.mk,v 1.51 2014/03/06 07:34:20 uebayasi Exp $
#
# System-supplied tools for the Darwin (Mac OS X) operating system.
@@ -6,9 +6,11 @@ TOOLS_PLATFORM.[?= [ # shell builtin
TOOLS_PLATFORM.awk?= /usr/bin/awk
TOOLS_PLATFORM.basename?= /usr/bin/basename
TOOLS_PLATFORM.bash?= /bin/bash
# Darwin's bison is too old (1.28).
# TOOLS_PLATFORM.bison?= /usr/bin/bison
# TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y
# Native bison (at least up to version 2.3 in OSX Lion) does not work
# well in the tools environment and cannot locate m4sugar.m4 without
# BISON_PKGDATADIR being set. For now just pull in the pkgsrc tool.
#TOOLS_PLATFORM.bison?= /usr/bin/bison
#TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y
.if exists(/usr/bin/bsdtar)
TOOLS_PLATFORM.bsdtar?= /usr/bin/bsdtar
.endif
@@ -51,7 +53,9 @@ TOOLS_PLATFORM.grep?= /usr/bin/grep
.if exists(/usr/bin/groff)
TOOLS_PLATFORM.groff?=/usr/bin/groff
.endif
.if exists(/usr/bin/gnutar)
TOOLS_PLATFORM.gtar?= /usr/bin/gnutar
.endif
TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat
TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
@@ -86,6 +90,7 @@ TOOLS_PLATFORM.pax?= /bin/pax
#TOOLS_PLATFORM.patch?= /usr/bin/patch
TOOLS_PLATFORM.printf?= /usr/bin/printf
TOOLS_PLATFORM.pwd?= /bin/pwd
TOOLS_PLATFORM.readlink?= /usr/bin/readlink
TOOLS_PLATFORM.rm?= /bin/rm
TOOLS_PLATFORM.rmdir?= /bin/rmdir
TOOLS_PLATFORM.sed?= /usr/bin/sed
@@ -111,6 +116,7 @@ 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.uniq?= /usr/bin/uniq
TOOLS_PLATFORM.unzip?= /usr/bin/unzip
TOOLS_PLATFORM.wc?= /usr/bin/wc
.if exists(/usr/bin/wish)

View File

@@ -1,4 +1,4 @@
# $NetBSD: tools.DragonFly.mk,v 1.38 2011/12/08 20:38:39 marino Exp $
# $NetBSD: tools.DragonFly.mk,v 1.42 2014/03/06 07:34:20 uebayasi Exp $
#
# System-supplied tools for the DragonFly operating system.
@@ -28,6 +28,7 @@ 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.fetch?= /usr/bin/fetch
TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
TOOLS_PLATFORM.file?= /usr/bin/file
TOOLS_PLATFORM.find?= /usr/bin/find
@@ -70,6 +71,7 @@ TOOLS_PLATFORM.pax?= /bin/pax
TOOLS_PLATFORM.printf?= /usr/bin/printf
TOOLS_PLATFORM.pwd?= /bin/pwd
TOOLS_PLATFORM.readelf?= /usr/bin/readelf
TOOLS_PLATFORM.readlink?= /usr/bin/readlink
TOOLS_PLATFORM.rm?= /bin/rm
TOOLS_PLATFORM.rmdir?= /bin/rmdir
TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff
@@ -89,7 +91,9 @@ 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.uniq?= /usr/bin/uniq
TOOLS_PLATFORM.wc?= /usr/bin/wc
TOOLS_PLATFORM.xargs?= /usr/bin/xargs
TOOLS_PLATFORM.xz?= /usr/bin/xz
TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat
TOOLS_PLATFORM.yacc?= /usr/bin/yacc

View File

@@ -1,4 +1,4 @@
# $NetBSD: tools.FreeBSD.mk,v 1.36 2012/04/20 08:47:01 obache Exp $
# $NetBSD: tools.FreeBSD.mk,v 1.40 2014/03/06 07:34:20 uebayasi Exp $
#
# System-supplied tools for the FreeBSD operating system.
@@ -65,6 +65,7 @@ TOOLS_PLATFORM.pax?= /bin/pax
TOOLS_PLATFORM.printf?= /usr/bin/printf
TOOLS_PLATFORM.pwd?= /bin/pwd
TOOLS_PLATFORM.readelf?= /usr/bin/readelf
TOOLS_PLATFORM.readlink?= /usr/bin/readlink
TOOLS_PLATFORM.rm?= /bin/rm
TOOLS_PLATFORM.rmdir?= /bin/rmdir
TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff
@@ -83,8 +84,15 @@ 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.uniq?= /usr/bin/uniq
.if exists(/usr/bin/unzip)
TOOLS_PLATFORM.unzip?= /usr/bin/unzip
.endif
TOOLS_PLATFORM.wc?= /usr/bin/wc
TOOLS_PLATFORM.xargs?= /usr/bin/xargs
.if exists(/usr/bin/xz)
TOOLS_PLATFORM.xz?= /usr/bin/xz
.endif
.if exists(/usr/bin/xzcat)
TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat
.endif

Some files were not shown because too many files have changed in this diff Show More