summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chat/tirc/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/chat/tirc/Makefile b/chat/tirc/Makefile
index 74cbd6aff64..98e66b6bcf9 100644
--- a/chat/tirc/Makefile
+++ b/chat/tirc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/10/04 20:50:47 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2010/02/14 20:24:11 joerg Exp $
#
DISTNAME= tirc-1.2
@@ -10,12 +10,19 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= # http://home.mayn.de/jean-luc/alt/tirc/
COMMENT= Token's 'Internet Relay Chat' Client
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= YES
CONFIGURE_ARGS+="--with-ansi-colours"
LIBS.SunOS+= -lnsl -lsocket
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 share/tirc
+
+INSTALL_MAKE_FLAGS+= bindir=${DESTDIR}${PREFIX}/bin \
+ mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
post-patch:
${SED} "s,/usr/local,${PREFIX},g" ${WRKSRC}/tirc.1 \
> ${WRKSRC}/tirc.1.done
@@ -29,8 +36,7 @@ post-patch:
.endif
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/tirc
- ${INSTALL_DATA} ${WRKSRC}/dot.tircrc ${PREFIX}/share/tirc/tircrc
+ ${INSTALL_DATA} ${WRKSRC}/dot.tircrc ${DESTDIR}${PREFIX}/share/tirc/tircrc
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"