diff options
-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 \ |