summaryrefslogtreecommitdiff
path: root/chat/cgiirc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chat/cgiirc/Makefile')
-rw-r--r--chat/cgiirc/Makefile67
1 files changed, 36 insertions, 31 deletions
diff --git a/chat/cgiirc/Makefile b/chat/cgiirc/Makefile
index f87f4186cbe..1f4d67e1039 100644
--- a/chat/cgiirc/Makefile
+++ b/chat/cgiirc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2007/09/07 22:12:10 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2008/03/03 02:19:51 jlam Exp $
DISTNAME= cgiirc-0.5.9
PKGREVISION= 1
@@ -9,6 +9,8 @@ MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://cgiirc.sourceforge.net/
COMMENT= Access IRC from a web browser
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= perl:run
NO_BUILD= YES
@@ -39,45 +41,48 @@ do-configure:
> ${WRKDIR}/cgiirc.conf
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cgiirc
- ${INSTALL_DATA_DIR} ${CGIIRC}
- ${INSTALL_DATA_DIR} ${CGIIRC}/formats
- ${INSTALL_DATA_DIR} ${CGIIRC}/images
- ${INSTALL_DATA_DIR} ${CGIIRC}/images/taras
- ${INSTALL_DATA_DIR} ${CGIIRC}/interfaces
- ${INSTALL_DATA_DIR} ${CGIIRC}/interfaces/interface-make
- ${INSTALL_DATA_DIR} ${CGIIRC}/modules
- ${INSTALL_DATA_DIR} ${CGIIRC}/modules/IRC
- ${INSTALL_DATA_DIR} ${CGIIRC}/modules/IRC/Channel
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cgiirc
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/cgiirc
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/formats
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/images
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/images/taras
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/interfaces
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/interfaces/interface-make
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/modules
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/modules/IRC
+ ${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/modules/IRC/Channel
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/cgiirc
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cgiirc
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/cgiirc
. for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/docs/${f} \
- ${PREFIX}/share/examples/cgiirc/${f}
+ ${DESTDIR}${PREFIX}/share/examples/cgiirc/${f}
. endfor
- ${INSTALL_DATA} ${WRKSRC}/cgiirc.config ${PREFIX}/share/examples/cgiirc
- ${INSTALL_DATA} ${WRKDIR}/cgiirc.conf ${PREFIX}/share/examples/cgiirc
+ ${INSTALL_DATA} ${WRKSRC}/cgiirc.config \
+ ${DESTDIR}${PREFIX}/share/examples/cgiirc
+ ${INSTALL_DATA} ${WRKDIR}/cgiirc.conf \
+ ${DESTDIR}${PREFIX}/share/examples/cgiirc
. for f in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/${f} \
- ${PREFIX}/share/examples/cgiirc/${f}
+ ${DESTDIR}${PREFIX}/share/examples/cgiirc/${f}
. endfor
- ${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${CGIIRC}
- ${INSTALL_DATA} ${WRKSRC}/formats/* ${CGIIRC}/formats/
- ${INSTALL_DATA} ${WRKSRC}/images/*.gif ${CGIIRC}/images/
- ${INSTALL_DATA} ${WRKSRC}/images/*.wav ${CGIIRC}/images/
- ${INSTALL_DATA} ${WRKSRC}/images/*.ico ${CGIIRC}/images/
- ${INSTALL_DATA} ${WRKSRC}/images/taras/*.gif ${CGIIRC}/images/taras
- ${INSTALL_DATA} ${WRKSRC}/interfaces/*.pm ${CGIIRC}/interfaces/
- ${INSTALL_DATA} ${WRKSRC}/interfaces/*.css ${CGIIRC}/interfaces/
+ ${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${DESTDIR}${CGIIRC}
+ ${INSTALL_DATA} ${WRKSRC}/formats/* ${DESTDIR}${CGIIRC}/formats/
+ ${INSTALL_DATA} ${WRKSRC}/images/*.gif ${DESTDIR}${CGIIRC}/images/
+ ${INSTALL_DATA} ${WRKSRC}/images/*.wav ${DESTDIR}${CGIIRC}/images/
+ ${INSTALL_DATA} ${WRKSRC}/images/*.ico ${DESTDIR}${CGIIRC}/images/
+ ${INSTALL_DATA} ${WRKSRC}/images/taras/*.gif \
+ ${DESTDIR}${CGIIRC}/images/taras
+ ${INSTALL_DATA} ${WRKSRC}/interfaces/*.pm ${DESTDIR}${CGIIRC}/interfaces/
+ ${INSTALL_DATA} ${WRKSRC}/interfaces/*.css ${DESTDIR}${CGIIRC}/interfaces/
${INSTALL_DATA} ${WRKSRC}/interfaces/interface-make/*.pm \
- ${CGIIRC}/interfaces/interface-make/
+ ${DESTDIR}${CGIIRC}/interfaces/interface-make/
${INSTALL_SCRIPT} ${WRKSRC}/interfaces/interface-make/*.pl \
- ${CGIIRC}/interfaces/interface-make/
- ${INSTALL_DATA} ${WRKSRC}/modules/*.pm ${CGIIRC}/modules/
- ${INSTALL_SCRIPT} ${WRKSRC}/modules/*.pl ${CGIIRC}/modules/
- ${INSTALL_DATA} ${WRKSRC}/modules/IRC/*.pm ${CGIIRC}/modules/IRC/
+ ${DESTDIR}${CGIIRC}/interfaces/interface-make/
+ ${INSTALL_DATA} ${WRKSRC}/modules/*.pm ${DESTDIR}${CGIIRC}/modules/
+ ${INSTALL_SCRIPT} ${WRKSRC}/modules/*.pl ${DESTDIR}${CGIIRC}/modules/
+ ${INSTALL_DATA} ${WRKSRC}/modules/IRC/*.pm ${DESTDIR}${CGIIRC}/modules/IRC/
${INSTALL_DATA} ${WRKSRC}/modules/IRC/Channel/*.pm \
- ${CGIIRC}/modules/IRC/Channel/
+ ${DESTDIR}${CGIIRC}/modules/IRC/Channel/
.include "../../mk/bsd.pkg.mk"