diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 01:50:26 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 01:50:26 +0000 |
commit | 2e614fcea0b247bbc54200c2ed35e943cca37125 (patch) | |
tree | 594c159848c0679d80316a52bfc121f8d7c1bf18 /chat/eggdrop | |
parent | f61cf6906a47ea29db5a98128c49cd6db98ee0e9 (diff) | |
download | pkgsrc-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/eggdrop')
-rw-r--r-- | chat/eggdrop/Makefile | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/chat/eggdrop/Makefile b/chat/eggdrop/Makefile index acedb0774c8..2267ed6109e 100644 --- a/chat/eggdrop/Makefile +++ b/chat/eggdrop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2007/10/18 09:15:33 obache Exp $ +# $NetBSD: Makefile,v 1.29 2008/03/03 02:19:51 jlam Exp $ DISTNAME= eggdrop1.6.18 PKGNAME= eggdrop-1.6.18 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.eggheads.org/ COMMENT= IRC robot with TCL scripting and multi-channel ability +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} CONFIGURE_ENV+= TCLLIB="${PREFIX}/lib" TCLINC="${PREFIX}/include" @@ -28,31 +30,33 @@ post-configure: do-install: do-install-program do-install-program: - ${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin/ - ${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${PREFIX}/${PKGMANDIR}/man1/ - ${INSTALL_DATA_DIR} ${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.dist.new ${EGDIR}/eggdrop.conf - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/eggdrop/html + ${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${DESTDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ + ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.dist.new \ + ${DESTDIR}${EGDIR}/eggdrop.conf + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/eggdrop/html cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html \ - ${PREFIX}/share/doc/eggdrop/html - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/eggdrop + ${DESTDIR}${PREFIX}/share/doc/eggdrop/html + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/eggdrop cd ${WRKSRC}/doc && ${INSTALL_DATA} BANS BOTNET FIRST-SCRIPT MODULES \ PARTYLINE USERS TRICKS TEXT-SUBSTITUTIONS tcl-commands.doc \ - ${PREFIX}/share/doc/eggdrop - ${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop - ${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help - ${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/language - ${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/scripts - ${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help/msg - ${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help/set + ${DESTDIR}${PREFIX}/share/doc/eggdrop + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/eggdrop + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/eggdrop/help + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/eggdrop/language + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/eggdrop/scripts + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/eggdrop/help/msg + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/eggdrop/help/set ${INSTALL_DATA} ${WRKSRC}/language/core.*.lang \ - ${PREFIX}/share/eggdrop/language/ + ${DESTDIR}${PREFIX}/share/eggdrop/language/ cd ${WRKSRC}/help && ${INSTALL_DATA} cmds1.help cmds2.help core.help \ - ${PREFIX}/share/eggdrop/help/ + ${DESTDIR}${PREFIX}/share/eggdrop/help/ cd ${WRKSRC}/help/set && ${INSTALL_DATA} cmds1.help \ - ${PREFIX}/share/eggdrop/help/set/ + ${DESTDIR}${PREFIX}/share/eggdrop/help/set/ cd ${WRKSRC}/scripts && ${INSTALL_DATA} CONTENTS *.tcl autobotchk \ - botchk weed ${PREFIX}/share/eggdrop/scripts/ + botchk weed ${DESTDIR}${PREFIX}/share/eggdrop/scripts/ .include "../../lang/tcl/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" @@ -66,11 +70,11 @@ BUILD_TARGET= eggdrop PLIST_SUBST+= NOPIC= do-install: do-install-modules do-install-modules: - ${INSTALL_DATA_DIR} ${PREFIX}/lib/eggdrop + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/eggdrop cd ${WRKSRC} && ${INSTALL_DATA} assoc.so blowfish.so channels.so \ compress.so console.so ctcp.so dns.so filesys.so irc.so notes.so \ seen.so server.so share.so transfer.so uptime.so wire.so \ - ${PREFIX}/lib/eggdrop + ${DESTDIR}${PREFIX}/lib/eggdrop cd ${WRKSRC}/src/mod && ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \ - ${PREFIX}/share/eggdrop/language ";" + ${DESTDIR}${PREFIX}/share/eggdrop/language ";" .endif |