summaryrefslogtreecommitdiff
path: root/chat/bitlbee
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 01:50:26 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 01:50:26 +0000
commit2e614fcea0b247bbc54200c2ed35e943cca37125 (patch)
tree594c159848c0679d80316a52bfc121f8d7c1bf18 /chat/bitlbee
parentf61cf6906a47ea29db5a98128c49cd6db98ee0e9 (diff)
downloadpkgsrc-2e614fcea0b247bbc54200c2ed35e943cca37125.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'chat/bitlbee')
-rw-r--r--chat/bitlbee/Makefile26
1 files changed, 15 insertions, 11 deletions
diff --git a/chat/bitlbee/Makefile b/chat/bitlbee/Makefile
index 44268d08cae..41b46ace540 100644
--- a/chat/bitlbee/Makefile
+++ b/chat/bitlbee/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2008/01/18 05:06:22 tnn Exp $
+# $NetBSD: Makefile,v 1.39 2008/03/03 02:19:51 jlam Exp $
#
DISTNAME= bitlbee-1.0.4
@@ -10,6 +10,8 @@ MAINTAINER= tonio@NetBSD.org
HOMEPAGE= http://www.bitlbee.org/
COMMENT= IRC to other chat networks gateway
+PKG_DESTDIR_SUPPORT= user-destdir
+
HAS_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config
@@ -38,17 +40,19 @@ PKG_HOME.bitlbee= ${VARBASE}/db/bitlbee
INSTALLATION_DIRS= ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin
do-install:
- ${INSTALL_DATA_DIR} ${DATADIR}
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/bitlbee.conf ${EGDIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/bitlbee ${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/doc/user-guide/help.txt ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/motd.txt ${DATADIR}
- ${INSTALL_MAN} ${WRKSRC}/doc/bitlbee.8 ${PREFIX}/${PKGMANDIR}/man8
- ${INSTALL_MAN} ${WRKSRC}/doc/bitlbee.conf.5 ${PREFIX}/${PKGMANDIR}/man5
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DATADIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bitlbee.conf ${DESTDIR}${EGDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/bitlbee ${DESTDIR}${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/doc/user-guide/help.txt ${DESTDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/motd.txt ${DESTDIR}${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/bitlbee.8 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/bitlbee.conf.5 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
.for f in AUTHORS FAQ README CREDITS user-guide/user-guide.txt user-guide/user-guide.html
- ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${DOCDIR}
.endfor
PKG_OPTIONS_VAR= PKG_OPTIONS.bitlbee