summaryrefslogtreecommitdiff
path: root/sysutils/xbatt
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-27 20:41:16 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-27 20:41:16 +0000
commit2ac3dca022062b2444c1b46ad46c7fb45b8efdcb (patch)
treecdac5d171ed953a00c4962e790a2c61d6fbf0b7e /sysutils/xbatt
parentac6092c44ce453d44f1838729bb4feb64a7adb04 (diff)
downloadpkgsrc-2ac3dca022062b2444c1b46ad46c7fb45b8efdcb.tar.gz
DESTDIR support
Diffstat (limited to 'sysutils/xbatt')
-rw-r--r--sysutils/xbatt/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/sysutils/xbatt/Makefile b/sysutils/xbatt/Makefile
index d2400e55f0f..297e62f840a 100644
--- a/sysutils/xbatt/Makefile
+++ b/sysutils/xbatt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2009/06/12 22:04:53 zafer Exp $
+# $NetBSD: Makefile,v 1.27 2010/01/27 20:44:47 joerg Exp $
#
DISTNAME= xbatt-1.3pr1
@@ -11,6 +11,8 @@ MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://www.clave.gr.jp/~eto/xbatt/ # Not really
COMMENT= Displays battery status of your notebook via APM
+PKG_DESTDIR_SUPPORT= destdir
+
.if !exists(/usr/include/machine/apmvar.h)
PKG_SKIP_REASON+= "APM is not available for ${MACHINE_PLATFORM}"
.endif
@@ -22,9 +24,9 @@ BUILD_TARGET= xbatt
INSTALLATION_DIRS= lib/X11/app-defaults share/doc/xbatt
post-install:
- ${INSTALL_DATA} ${FILESDIR}/XBatt ${PREFIX}/lib/X11/app-defaults/XBatt
- ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/xbatt
- ${INSTALL_MAN} ${WRKSRC}/README.jp ${PREFIX}/share/doc/xbatt
+ ${INSTALL_DATA} ${FILESDIR}/XBatt ${DESTDIR}${PREFIX}/lib/X11/app-defaults/XBatt
+ ${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xbatt
+ ${INSTALL_MAN} ${WRKSRC}/README.jp ${DESTDIR}${PREFIX}/share/doc/xbatt
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"