From b41eccc5cd990c6dae7938a2b723bafbc95d1094 Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 20 Aug 1999 09:12:10 +0000 Subject: [PATCH] Make this work on Solaris "out of the box" --- usr.sbin/pkg_install/Makefile.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/Makefile.inc b/usr.sbin/pkg_install/Makefile.inc index 46d7443141cc..2af0a32f033d 100644 --- a/usr.sbin/pkg_install/Makefile.inc +++ b/usr.sbin/pkg_install/Makefile.inc @@ -1,9 +1,21 @@ -# $NetBSD: Makefile.inc,v 1.6 1999/08/19 14:37:36 agc Exp $ +# $NetBSD: Makefile.inc,v 1.7 1999/08/20 09:12:10 agc Exp $ # Original from Freebsd, no rcs id. LIBINSTALL != cd ${.CURDIR}/../lib;\ printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- CPPFLAGS+=-I${.CURDIR}/../lib ${DEBUG} -DBINDIR='"${BINDIR}"' + +.if ${OS} == "SunOS.5" +.if exists(/etc/mk.conf) +.include "/etc/mk.conf" +.endif +LOCALBASE?= /usr/local +TAR_CMD?= gtar +TAR_FULLPATHNAME?= ${LOCALBASE}/bin/${TAR_CMD} +CPPFLAGS+=-DTAR_CMD='"${TAR_CMD}"' -DTAR_FULLPATHNAME='"${TAR_FULLPATHNAME}"' +BINDIR=${LOCALBASE}/bsd/bin +.endif + DPADD+= ${LIBINSTALL}/libinstall.a LDADD+= -L${LIBINSTALL} -linstall