From e3ad6c9bdfca6f01ad3fbc84ea2d5b6c757c1b27 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 9 Feb 2009 17:27:40 +0000 Subject: DESTDIR support. Fix build on amd64. --- sysutils/sformat/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sysutils/sformat') diff --git a/sysutils/sformat/Makefile b/sysutils/sformat/Makefile index 28892685523..74f5eafdcfa 100644 --- a/sysutils/sformat/Makefile +++ b/sysutils/sformat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2007/06/27 13:40:49 joerg Exp $ +# $NetBSD: Makefile,v 1.11 2009/02/09 17:27:40 joerg Exp $ # DISTNAME= sformat-3.5 @@ -11,6 +11,7 @@ HOMEPAGE= http://freshmeat.net/projects/sformat COMMENT= SCSI disk maintainance, formating, and ultimative repair tool with support for NetBSD labels PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir .include "../../mk/bsd.prefs.mk" @@ -22,7 +23,7 @@ MAKE_ENV+= ARCH="" MAKE_ENV+= MAKEPROG="gmake" MAKE_ENV+= COPTX=${CFLAGS:M*:Q} MAKE_ENV+= LDOPTX=${LDFLAGS:M*:Q} -MAKE_FLAGS+= INS_BASE=${LOCALBASE:Q} # won't work in MAKE_ENV! +MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALBASE:Q} # won't work in MAKE_ENV! # if we're using a gcc which is named gcc, we need to set CCOM=gcc # in MAKE_ENV so the make infrastructure picks the right options. @@ -35,5 +36,6 @@ INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 post-extract: ${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id ${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def + ln -s i386-netbsd-cc.rul ${WRKSRC}/RULES/amd64-netbsd-cc.rul .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3