pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4523b0b253b4
branches:  trunk
changeset: 571382:4523b0b253b4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 11 19:20:55 2010 +0000

description:
DESTDIR support

diffstat:

 misc/iselect/Makefile  |  10 +++++++++-
 misc/kanjipad/Makefile |  10 ++++++----
 2 files changed, 15 insertions(+), 5 deletions(-)

diffs (55 lines):

diff -r e723150e375e -r 4523b0b253b4 misc/iselect/Makefile
--- a/misc/iselect/Makefile     Thu Feb 11 19:20:48 2010 +0000
+++ b/misc/iselect/Makefile     Thu Feb 11 19:20:55 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2008/01/04 07:12:30 obache Exp $
+# $NetBSD: Makefile,v 1.22 2010/02/11 19:20:55 joerg Exp $
 #
 
 DISTNAME=              iselect-1.2.0
@@ -11,10 +11,18 @@
 HOMEPAGE=              http://www.ossp.org/pkg/tool/iselect/
 COMMENT=               Curses based Interactive Selection Tool
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         yes
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
 post-configure:
        ${TOUCH} ${WRKSRC}/config_ac.h.in
 
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/iselect ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/iselect.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
 .include "../../devel/ncurses/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e723150e375e -r 4523b0b253b4 misc/kanjipad/Makefile
--- a/misc/kanjipad/Makefile    Thu Feb 11 19:20:48 2010 +0000
+++ b/misc/kanjipad/Makefile    Thu Feb 11 19:20:55 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2009/08/26 19:58:01 sno Exp $
+# $NetBSD: Makefile,v 1.21 2010/02/11 19:24:10 joerg Exp $
 #
 
 DISTNAME=              kanjipad-2.0.0
@@ -10,12 +10,14 @@
 HOMEPAGE=              http://fishsoup.net/software/kanjipad/
 COMMENT=               Japanese handwriting recognition
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=            gmake perl pkg-config
 
-.include "../../x11/gtk2/buildlink3.mk"
+INSTALLATION_DIRS+=    share/doc/kanjipad
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kanjipad
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/kanjipad
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/kanjipad
 
+.include "../../x11/gtk2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index