pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Allow variables to be set on a per-OS basis.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/75b906d8a14b
branches:  trunk
changeset: 462434:75b906d8a14b
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Oct 02 15:45:31 2003 +0000

description:
Allow variables to be set on a per-OS basis.

diffstat:

 mk/bsd.pkg.mk |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 91ae5a51af59 -r 75b906d8a14b mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu Oct 02 15:25:44 2003 +0000
+++ b/mk/bsd.pkg.mk     Thu Oct 02 15:45:31 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1292 2003/10/02 14:41:42 gavan Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1293 2003/10/02 15:45:31 gavan Exp $
 #
 # This file is in the public domain.
 #
@@ -74,6 +74,16 @@
 MAKE_ENV+=     OBJECT_FMT="${OBJECT_FMT}"
 .endif
 
+# Allow variables to be set on a per-OS basis
+OPSYSVARS+=    CFLAGS CPPFLAGS LDFLAGS LIBS
+.for _var_ in ${OPSYSVARS:O}
+.  if defined(${_var_}.${OPSYS})
+${_var_}+=     ${${_var_}.${OPSYS}}
+.  elif defined(${_var_}.*)
+${_var_}+=     ${${_var_}.*}
+.  endif
+.endfor
+
 ##### Build crypto packages by default.
 MKCRYPTO?=             yes
 



Home | Main Index | Thread Index | Old Index