pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ncursesw Add INSTALLATION_DIRS+=lib and prepand ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d8a3add1839c
branches:  trunk
changeset: 534727:d8a3add1839c
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Tue Oct 30 05:33:07 2007 +0000

description:
Add INSTALLATION_DIRS+=lib and prepand ${DESTDIR} to do-install:
destination paths so that DESTDIR installations work.

I'm not bumping the revision because the resultant binaries should not
be different; please let me know if I should've bumped it.

diffstat:

 devel/ncursesw/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4d595dbef3f1 -r d8a3add1839c devel/ncursesw/Makefile
--- a/devel/ncursesw/Makefile   Tue Oct 30 02:23:50 2007 +0000
+++ b/devel/ncursesw/Makefile   Tue Oct 30 05:33:07 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/09/13 23:13:47 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2007/10/30 05:33:07 bjs Exp $
 
 .include "../../devel/ncurses/Makefile.common"
 
@@ -12,14 +12,15 @@
 CONFIGURE_ARGS+=       --enable-widec
 
 INSTALLATION_DIRS+=    include/ncursesw
+INSTALLATION_DIRS+=    lib
 
 BUILD_TARGET=  libs
 
 do-install:
-       ${INSTALL_DATA} ${WRKSRC}/include/curses.h ${PREFIX}/include/ncursesw/ncurses.h
+       ${INSTALL_DATA} ${WRKSRC}/include/curses.h ${DESTDIR}${PREFIX}/include/ncursesw/ncurses.h
        for LIB in form menu ncurses++ ncurses panel; do        \
                ${LIBTOOL} --mode=install ${INSTALL_PROGRAM}    \
-                   ${WRKSRC}/lib/lib$${LIB}w.la ${PREFIX}/lib; \
+                   ${WRKSRC}/lib/lib$${LIB}w.la ${DESTDIR}${PREFIX}/lib;       \
        done
 
 BUILDLINK_API_DEPENDS.ncurses+=        ncurses-${NC_VERS}{,nb*}



Home | Main Index | Thread Index | Old Index