pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xjman DESTDIR support. Fix build on NetBSD 5.0+



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3f1ba69ff8b
branches:  trunk
changeset: 565735:c3f1ba69ff8b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Oct 07 14:59:35 2009 +0000

description:
DESTDIR support. Fix build on NetBSD 5.0+

diffstat:

 x11/xjman/Makefile |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 6184644676c2 -r c3f1ba69ff8b x11/xjman/Makefile
--- a/x11/xjman/Makefile        Wed Oct 07 14:17:26 2009 +0000
+++ b/x11/xjman/Makefile        Wed Oct 07 14:59:35 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2007/03/24 19:21:34 joerg Exp $
+# $NetBSD: Makefile,v 1.14 2009/10/07 14:59:35 joerg Exp $
 
 DISTNAME=      xjman-0.5
 PKGREVISION=   2
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://xjman.dsl.gr.jp/
 COMMENT=       Japanized X manual from "The X Japanese Documentation Project"
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      ja-man-[0-9]*:../../misc/ja-man
 
 WRKSRC=                ${WRKDIR}/man/ja_JP.eucJP
@@ -18,6 +20,8 @@
 XJMANDIR=      man/ja_JP.EUC
 MAKE_ENV+=     XJMANDIR=${XJMANDIR:Q}
 
+USE_BSD_MAKEFILE=      yes
+
 NO_CONFIGURE=  yes
 
 MANCOMPRESSED_IF_MANZ= yes
@@ -65,12 +69,14 @@
 .endif
 
 INSTALLATION_DIRS=     ${PKGMANDIR}/ja_JP.EUC/cat1 ${PKGMANDIR}/ja_JP.EUC/man1 \
-                       ${PKGMANDIR}/ja_JP.EUC/cat3 ${PKGMANDIR}/ja_JP.EUC/man3 share/doc/xjman
+                       ${PKGMANDIR}/ja_JP.EUC/cat3 ${PKGMANDIR}/ja_JP.EUC/man3 \
+                       ${PKGMANDIR}/ja_JP.EUC/cat5 ${PKGMANDIR}/ja_JP.EUC/man5 \
+                       share/doc/xjman
 
 post-install:
 .for i in COPYRIGHT COPYRIGHT.XJDP
-       @${INSTALL_DATA} ${FILESDIR}/${i} ${PREFIX}/share/doc/xjman
+       @${INSTALL_DATA} ${FILESDIR}/${i} ${DESTDIR}${PREFIX}/share/doc/xjman
 .endfor
-       @${INSTALL_DATA} ${WRKDIR}/man/README ${PREFIX}/share/doc/xjman
+       @${INSTALL_DATA} ${WRKDIR}/man/README ${DESTDIR}${PREFIX}/share/doc/xjman
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index