summaryrefslogtreecommitdiff
path: root/sysutils/tphdisk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-27 20:28:15 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-27 20:28:15 +0000
commitac6092c44ce453d44f1838729bb4feb64a7adb04 (patch)
treef8452a5a42e2853e51f88791e637257e9a3dd29d /sysutils/tphdisk
parentb87f3e206634ef180c5bb5bdb4e6563a3890eacd (diff)
downloadpkgsrc-ac6092c44ce453d44f1838729bb4feb64a7adb04.tar.gz
DESTDIR support
Diffstat (limited to 'sysutils/tphdisk')
-rw-r--r--sysutils/tphdisk/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysutils/tphdisk/Makefile b/sysutils/tphdisk/Makefile
index b78fee33b33..c92bf7df7b1 100644
--- a/sysutils/tphdisk/Makefile
+++ b/sysutils/tphdisk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/08/21 13:19:33 gdt Exp $
+# $NetBSD: Makefile,v 1.2 2010/01/27 20:28:15 joerg Exp $
DISTNAME= tphdisk
PKGNAME= tphdisk-20050112
@@ -10,12 +10,16 @@ MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://samba.anu.edu.au/ftp/unpacked/junkcode/
COMMENT= Create hibernation partitions for Thinkpads
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
+INSTALLATION_DIRS= bin
+
do-build:
cd ${WRKSRC} && cc -o tphdisk tphdisk.c
do-install:
- cd ${WRKSRC} && ${INSTALL_PROGRAM} tphdisk ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tphdisk ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"