pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/converters/kcc Honor PKGMANDIR and add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/feb0652e756c
branches:  trunk
changeset: 537919:feb0652e756c
user:      obache <obache%pkgsrc.org@localhost>
date:      Mon Jan 21 03:04:30 2008 +0000

description:
Honor PKGMANDIR and add DESTDIR support.

diffstat:

 converters/kcc/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r 75a615c2e618 -r feb0652e756c converters/kcc/Makefile
--- a/converters/kcc/Makefile   Mon Jan 21 02:59:23 2008 +0000
+++ b/converters/kcc/Makefile   Mon Jan 21 03:04:30 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/04/01 01:58:37 obache Exp $
+# $NetBSD: Makefile,v 1.4 2008/01/21 03:04:30 obache Exp $
 
 DISTNAME=      kcc
 PKGNAME=       kcc-1.0
@@ -10,11 +10,13 @@
 HOMEPAGE=      # empty
 COMMENT=       Kanji code converter with auto encoding detection
 
-MAKE_FLAGS+=   BINPATH=${PREFIX:Q}/bin
-MAKE_FLAGS+=   MANPATH=${PREFIX:Q}/man
-MAKE_FLAGS+=   JMANDIR=ja_JP.EUC
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+INSTALL_MAKE_FLAGS+=   BINPATH=${DESTDIR}${PREFIX}/bin
+INSTALL_MAKE_FLAGS+=   MANPATH=${DESTDIR}${PREFIX}/${PKGMANDIR}
+INSTALL_MAKE_FLAGS+=   JMANDIR=ja_JP.EUC
 
 INSTALL_TARGET=        install install.man
-INSTALLATION_DIRS=     ${PKGMANDIR}/ja_JP.EUC/man1
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/ja_JP.EUC/man1
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index