diff options
author | agc <agc> | 2001-10-30 14:12:37 +0000 |
---|---|---|
committer | agc <agc> | 2001-10-30 14:12:37 +0000 |
commit | 21b6b0bf3e22b966ec88996cd0e0add890570f6e (patch) | |
tree | a7e55f822f3b788d044aeb687d48f0581e5882f2 /pkgtools/pkg_install | |
parent | 4cd0fc574c6d5cc2cafd9af6342138ab7340ca35 (diff) | |
download | pkgsrc-21b6b0bf3e22b966ec88996cd0e0add890570f6e.tar.gz |
Set the LOCALBASE in this package Makefile in a more scientific manner.
Add extra definitions to be able to build and install this package on
Darwin.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index 019ecb84e1f..c6b3848f8fd 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.44 2001/07/24 15:02:14 wiz Exp $ +# $NetBSD: Makefile,v 1.45 2001/10/30 14:12:37 agc Exp $ # Note to package maintainers: # To update the distfile of this pkg, cd to /usr/src/usr.sbin, @@ -26,13 +26,21 @@ MANCOMPRESSED_IF_MANZ= yes .include "../../mk/bsd.prefs.mk" -LOCALBASE= /usr +LOCALBASE= ${PKG_TOOLS_BIN}/.. PKG_DBDIR?= /var/db/pkg .if ${OPSYS} == "NetBSD" && !exists(/usr/share/tmac/tmac.andoc) IGNORE+= "You need to have the 'text' set installed to build this package!" .endif +.if ${OPSYS} == "Darwin" +MAKE_ENV+= DIGESTDIR=${.CURDIR}/../digest/files +CPPFLAGS+= -I${DIGESTDIR} -I${DIGESTDIR} +MAKE_ENV+= BINGRP=${BINGRP} BINOWN=${BINOWN} +MAKE_ENV+= BINDIR=${PKG_TOOLS_BIN} +MAKE_ENV+= MANDIR=${PKG_TOOLS_BIN}/../man +.endif + post-install: if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then \ if [ ! -d ${PKG_DBDIR} ]; then \ |