summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-30 14:12:37 +0000
committeragc <agc@pkgsrc.org>2001-10-30 14:12:37 +0000
commitb97e1abdf6c60e973e3cbda0e732b7040c5ea420 (patch)
treea7e55f822f3b788d044aeb687d48f0581e5882f2 /pkgtools
parent7dad1fb4e4b2b75344cd03a090c032c3b930b015 (diff)
downloadpkgsrc-b97e1abdf6c60e973e3cbda0e732b7040c5ea420.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')
-rw-r--r--pkgtools/pkg_install/Makefile12
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 \