diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-03 18:30:12 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-03 18:30:12 +0000 |
commit | 0e37f0df4d963bbbd12b05fd1765a2fb5c35e821 (patch) | |
tree | 087c08cef8e05f6f0e0a0bb62d4e163ae6b1a14c /mk/platform/Darwin.mk | |
parent | 7ed5f5d057def567c897da35df79ca20390e6f75 (diff) | |
download | pkgsrc-0e37f0df4d963bbbd12b05fd1765a2fb5c35e821.tar.gz |
First pass at converting pkgsrc to use the new tools framework (still
not on by default). Separate out the variable defintions that are
now made by the new tools framework. Some of the trickier platforms
(AIX, IRIX, Interix, OSF1) still need more work.
Diffstat (limited to 'mk/platform/Darwin.mk')
-rw-r--r-- | mk/platform/Darwin.mk | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk index 735df7beae7..4a6120ba3a8 100644 --- a/mk/platform/Darwin.mk +++ b/mk/platform/Darwin.mk @@ -1,7 +1,22 @@ -# $NetBSD: Darwin.mk,v 1.9 2005/05/03 15:10:59 jlam Exp $ +# $NetBSD: Darwin.mk,v 1.10 2005/05/03 18:30:12 jlam Exp $ # # Variable definitions for the Darwin operating system. +.if !defined(CPP) || ${CPP} == "cpp" +CPP= ${CC} -E ${CPP_PRECOMP_FLAGS} +.endif +ECHO_N?= ${ECHO} -n +LDD?= /usr/bin/otool -L +PKGLOCALEDIR?= share +PS?= /bin/ps +# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform +# and remove this comment. +RSH?= /usr/bin/rsh +SU?= /usr/bin/su +TYPE?= type # Shell builtin +IMAKEOPTS+= -DBuildHtmlManPages=NO + +.if empty(_USE_NEW_TOOLS:M[yY][eE][sS]) AWK?= /usr/bin/awk BASENAME?= /usr/bin/basename CAT?= /bin/cat @@ -10,14 +25,10 @@ CHOWN?= /usr/sbin/chown CHGRP?= /usr/bin/chgrp CMP?= /usr/bin/cmp CP?= /bin/cp -.if !defined(CPP) || ${CPP} == "cpp" -CPP= ${CC} -E ${CPP_PRECOMP_FLAGS} -.endif CUT?= /usr/bin/cut DATE?= /bin/date DIRNAME?= /usr/bin/dirname ECHO?= echo # Shell builtin -ECHO_N?= ${ECHO} -n EGREP?= /usr/bin/egrep EXPR?= /bin/expr FALSE?= false # Shell builtin @@ -34,9 +45,7 @@ HEAD?= /usr/bin/head HOSTNAME_CMD?= /bin/hostname ID?= /usr/bin/id IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS} -IMAKEOPTS+= -DBuildHtmlManPages=NO LDCONFIG?= /sbin/ldconfig -LDD?= /usr/bin/otool -L LN?= /bin/ln LS?= /bin/ls M4?= /usr/bin/m4 @@ -52,20 +61,14 @@ PAX?= ${LOCALBASE}/bin/pax PAX?= /bin/pax .endif PERL5?= ${LOCALBASE}/bin/perl -PKGLOCALEDIR?= share -PS?= /bin/ps PWD_CMD?= /bin/pwd # needs to print physical path RM?= /bin/rm RMDIR?= /bin/rmdir -# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform -# and remove this comment. -RSH?= /usr/bin/rsh SED?= /usr/bin/sed SETENV?= /usr/bin/env SH?= /bin/sh SHLOCK= /usr/bin/shlock SORT?= /usr/bin/sort -SU?= /usr/bin/su TAIL?= /usr/bin/tail .if exists(${LOCALBASE}/bin/tar) TAR?= ${LOCALBASE}/bin/tar @@ -78,9 +81,9 @@ TOUCH?= /usr/bin/touch TR?= /usr/bin/tr TRUE?= true # Shell builtin TSORT?= /usr/bin/tsort -TYPE?= type # Shell builtin WC?= /usr/bin/wc XARGS?= /usr/bin/xargs +.endif .if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc) CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp |