Add PKG_DESTDIR_SUPPORT

This commit is contained in:
abs 2009-02-13 22:24:14 +00:00
parent ae4aa699bf
commit 5bb7195d61
5 changed files with 23 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2007/01/07 09:14:13 rillig Exp $
# $NetBSD: Makefile,v 1.12 2009/02/13 22:24:14 abs Exp $
#
DISTNAME= sysgen
@ -14,9 +14,10 @@ WRKSRC= ${WRKDIR}
BUILD_TARGET= sysgen
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
PKG_DESTDIR_SUPPORT= user-destdir
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sysgen ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/sysgen.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_PROGRAM} ${WRKSRC}/sysgen ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/sysgen.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2004/01/20 12:26:16 agc Exp $
# $NetBSD: Makefile,v 1.8 2009/02/13 22:30:22 abs Exp $
#
DISTNAME= misc-src-riscpc
@ -9,8 +9,11 @@ MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/arch/arm32/misc/
MAINTAINER= abs@NetBSD.org
COMMENT= Tools for the VIDC console used by NetBSD/arm32 on RiscPC
ONLY_FOR_PLATFORM= NetBSD-*-arm NetBSD-*-arm32
WRKSRC= ${WRKDIR}/misc-src
ONLY_FOR_PLATFORM= NetBSD-*-arm NetBSD-*-arm32
INSTALLATION_DIRS = bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/html1 ${PKGMANDIR}/man1
PKG_DESTDIR_SUPPORT = user-destdir
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:54:11 zuntum Exp $
@comment $NetBSD: PLIST,v 1.2 2009/02/13 22:30:22 abs Exp $
bin/blanktime
bin/mkbeep
bin/setdisplay
@ -6,6 +6,9 @@ bin/setkbd
man/cat1/blanktime.0
man/cat1/mkbeep.0
man/cat1/setdisplay.0
man/html1/blanktime.html
man/html1/mkbeep.html
man/html1/setdisplay.html
man/man1/blanktime.1
man/man1/mkbeep.1
man/man1/setdisplay.1

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2008/01/31 18:59:37 rillig Exp $
# $NetBSD: Makefile,v 1.10 2009/02/13 22:31:43 abs Exp $
#
DISTNAME= htmlfix-1.03
@ -15,8 +15,11 @@ USE_TOOLS+= perl:run
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
REPLACE_PERL= htmlfix.pl
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/htmlfix.pl ${PREFIX}/bin/htmlfix
${INSTALL_MAN} ${WRKSRC}/htmlfix.1 ${PREFIX}/${PKGMANDIR}/man1/htmlfix.1
${INSTALL_SCRIPT} ${WRKSRC}/htmlfix.pl ${DESTDIR}${PREFIX}/bin/htmlfix
${INSTALL_MAN} ${WRKSRC}/htmlfix.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/htmlfix.1
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2006/09/29 22:12:51 abs Exp $
# $NetBSD: Makefile,v 1.24 2009/02/13 22:32:48 abs Exp $
#
DISTNAME= netscape-20040123
@ -27,12 +27,13 @@ NO_CHECKSUM= yes
NO_CONFIGURE= yes
INSTALLATION_DIRS= bin
PKG_DESTDIR_SUPPORT= user-destdir
do-build:
${SED} "s/@NETSCAPE_PREFERRED@/${NETSCAPE_PREFERRED}/" \
${FILESDIR}/netscape > ${WRKSRC}/netscape
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/netscape ${PREFIX}/bin/netscape
${INSTALL_SCRIPT} ${WRKSRC}/netscape ${DESTDIR}${PREFIX}/bin/netscape
.include "../../mk/bsd.pkg.mk"