summaryrefslogtreecommitdiff
path: root/chat/tirc/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2010-02-14 20:24:11 +0000
committerjoerg <joerg>2010-02-14 20:24:11 +0000
commit9302172231fa3f03a29449375d05619944bee949 (patch)
treeb744c61ea22b70c48105a4daffa1a33de83b7c7c /chat/tirc/Makefile
parent74472bc1652ab67e5332cc135c14bec180383456 (diff)
downloadpkgsrc-9302172231fa3f03a29449375d05619944bee949.tar.gz
DESTDIR support
Diffstat (limited to 'chat/tirc/Makefile')
-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"