diff options
author | seb <seb@pkgsrc.org> | 2002-03-04 12:39:37 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2002-03-04 12:39:37 +0000 |
commit | 18a2cde224612f609757127ff44cda6b550e468f (patch) | |
tree | 32ee165e4fdc87504eff4198d3b0438fc91e0e56 /pkgtools | |
parent | 442ccd73e81f0525c018f7ea2e26c06758a804e4 (diff) | |
download | pkgsrc-18a2cde224612f609757127ff44cda6b550e468f.tar.gz |
Make it compile and install cleanly on Solaris.
Avoid using '..' in LOCALBASE as it might end up in the binaries as part of
TAR_FULLPATHNAME.
Record MANINSTALL setting.
Add a workaround for SHLOCK definition or else LOCALBASE setting breaks it.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index c6b3848f8fd..1400795c5b0 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.45 2001/10/30 14:12:37 agc Exp $ +# $NetBSD: Makefile,v 1.46 2002/03/04 12:39:37 seb Exp $ # Note to package maintainers: # To update the distfile of this pkg, cd to /usr/src/usr.sbin, @@ -23,16 +23,28 @@ NO_MTREE= yes NO_PKG_REGISTER= yes NO_PACKAGE= No package registration is done MANCOMPRESSED_IF_MANZ= yes +BUILD_DEFS+= MANINSTALL .include "../../mk/bsd.prefs.mk" -LOCALBASE= ${PKG_TOOLS_BIN}/.. +.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" +SHLOCK:= ${LOCALBASE}/bin/shlock +.endif + +LOCALBASE:= ${PKG_TOOLS_BIN:C|/[^/]?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} == "SunOS" +MAKEFLAGS+= NETBSD_COMPATIBLE=YES +MANINSTALL= +MAKE_ENV+= MANINSTALL= MKMAN=no NOMAN=YES +MAKE_ENV+= ZOULARISBASE=${ZOULARISBASE} +.endif + .if ${OPSYS} == "Darwin" MAKE_ENV+= DIGESTDIR=${.CURDIR}/../digest/files CPPFLAGS+= -I${DIGESTDIR} -I${DIGESTDIR} |