diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-14 20:24:11 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-14 20:24:11 +0000 |
commit | f7f9b5becce06ebd42267f26f35cfb053e61f324 (patch) | |
tree | b744c61ea22b70c48105a4daffa1a33de83b7c7c | |
parent | a791fd2d16d316f610e96d0e0eb6bfd37d476cc2 (diff) | |
download | pkgsrc-f7f9b5becce06ebd42267f26f35cfb053e61f324.tar.gz |
DESTDIR support
-rw-r--r-- | chat/tirc/Makefile | 12 |
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" |