diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-09 17:27:40 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-09 17:27:40 +0000 |
commit | e3ad6c9bdfca6f01ad3fbc84ea2d5b6c757c1b27 (patch) | |
tree | ce5389b82a9c5c1576e3a6702e99c2e1cd4197a0 /sysutils | |
parent | 3b70f4f77ee93c9153931a8ada5a3b8415188ae1 (diff) | |
download | pkgsrc-e3ad6c9bdfca6f01ad3fbc84ea2d5b6c757c1b27.tar.gz |
DESTDIR support. Fix build on amd64.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/sformat/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
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" |