summaryrefslogtreecommitdiff
path: root/x11/xdaemon2/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
commit3b0d97b0de8516db29699676c860489da3f7f0e1 (patch)
treebb388f6b2532587595653e67cce25229ed050cb8 /x11/xdaemon2/Makefile
parent10abca39942a8f34d088f39ccc073fee44271274 (diff)
downloadpkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz
Add DESTDIR support.
Diffstat (limited to 'x11/xdaemon2/Makefile')
-rw-r--r--x11/xdaemon2/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/x11/xdaemon2/Makefile b/x11/xdaemon2/Makefile
index 523c91c53f5..9dccb361c2d 100644
--- a/x11/xdaemon2/Makefile
+++ b/x11/xdaemon2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/03/02 22:58:56 hubertf Exp $
+# $NetBSD: Makefile,v 1.16 2008/06/20 01:09:45 joerg Exp $
DISTNAME= xdaemon-2.1
CATEGORIES= games x11
@@ -9,6 +9,8 @@ MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/
COMMENT= BSD Daemon sticking on your desktop (like xteddy)
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= xteddy-2.*:../../x11/xteddy2
CONFLICTS+= xdaemon-1.*
@@ -28,10 +30,10 @@ do-extract:
do-install:
.for img in ${IMAGES}
- ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${img}.png ${PREFIX}/share/xteddy/${img}.png
- ${RM} -f ${PREFIX}/bin/${img}
- ${LN} -s xteddy ${PREFIX}/bin/${img}
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${img}.png ${DESTDIR}${PREFIX}/share/xteddy/${img}.png
+ ${RM} -f ${DESTDIR}${PREFIX}/bin/${img}
+ ${LN} -s xteddy ${DESTDIR}${PREFIX}/bin/${img}
.endfor
- ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Daemon.README ${PREFIX}/share/doc/xdaemon.README
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Daemon.README ${DESTDIR}${PREFIX}/share/doc/xdaemon.README
.include "../../mk/bsd.pkg.mk"