pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Provide a mechanism for enabling use of pkgtools/po...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9428bc6cb139
branches:  trunk
changeset: 537798:9428bc6cb139
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Jan 16 03:16:39 2008 +0000

description:
Provide a mechanism for enabling use of pkgtools/posix_headers.

diffstat:

 mk/bsd.prefs.mk     |  8 +++++++-
 mk/defaults/mk.conf |  8 +++++++-
 mk/platform/HPUX.mk |  5 ++++-
 3 files changed, 18 insertions(+), 3 deletions(-)

diffs (63 lines):

diff -r 8e0b9526a670 -r 9428bc6cb139 mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Wed Jan 16 03:09:48 2008 +0000
+++ b/mk/bsd.prefs.mk   Wed Jan 16 03:16:39 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.275 2008/01/12 14:40:21 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.276 2008/01/16 03:16:39 tnn Exp $
 #
 # This file includes the mk.conf file, which contains the user settings.
 #
@@ -504,6 +504,12 @@
 USE_XPKGWEDGE?=        yes
 .endif
 
+.if defined(FIX_SYSTEM_HEADERS) && ${FIX_SYSTEM_HEADERS} == "yes" && \
+    empty(PKGPATH:Mpkgtools/*) && empty(PKGPATH:M*/nbsed) && \
+    empty(PKGPATH:M*/nawk) && empty(PKGPATH:M*/bmake)
+.  include "../../pkgtools/posix_headers/buildlink3.mk"
+.endif
+
 .if ${X11_TYPE} == "modular"
 X11BASE=               ${LOCALBASE}
 .endif
diff -r 8e0b9526a670 -r 9428bc6cb139 mk/defaults/mk.conf
--- a/mk/defaults/mk.conf       Wed Jan 16 03:09:48 2008 +0000
+++ b/mk/defaults/mk.conf       Wed Jan 16 03:16:39 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.170 2008/01/05 17:21:46 tron Exp $
+# $NetBSD: mk.conf,v 1.171 2008/01/16 03:16:40 tnn Exp $
 #
 
 # This file provides default values for variables that may be overridden
@@ -355,6 +355,12 @@
 # Default: NetBSD's ftp(1).
 # Possible: any.
 
+#FIX_SYSTEM_HEADERS=
+# Make pkgtools/posix_headers an automatic build dependency for all 
+# packages except those in the pkgtools category.
+# Possible: "yes", not defined
+# Default: not defined
+
 LIBTOOLIZE_PLIST?=     yes
 # This determines whether to expand libtool archives (.la files) in PLISTs
 # into the represented library names.
diff -r 8e0b9526a670 -r 9428bc6cb139 mk/platform/HPUX.mk
--- a/mk/platform/HPUX.mk       Wed Jan 16 03:09:48 2008 +0000
+++ b/mk/platform/HPUX.mk       Wed Jan 16 03:16:39 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HPUX.mk,v 1.12 2008/01/15 22:37:49 tnn Exp $
+# $NetBSD: HPUX.mk,v 1.13 2008/01/16 03:16:40 tnn Exp $
 #
 # Variable definitions for the HP-UX operating system.
 
@@ -31,6 +31,9 @@
 # is unlikely to ever be supported due to proprietary graphics hardware.
 X11_TYPE?=             modular
 
+# Fix broken system headers by using pkgtools/posix_headers
+FIX_SYSTEM_HEADERS?=   yes
+
 # imake installs manpages in weird places
 # these values from /usr/X11R6/lib/X11/config/NetBSD.cf
 IMAKE_MAN_SOURCE_PATH= man/cat



Home | Main Index | Thread Index | Old Index