pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/ncursesw



Module Name:    pkgsrc
Committed By:   minskim
Date:           Wed Oct 24 16:58:38 UTC 2018

Modified Files:
        pkgsrc/devel/ncursesw: Makefile PLIST

Log Message:
devel/ncursesw: Install .pc files

This allows other packages to find this library using pkg-config.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/ncursesw/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/ncursesw/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ncursesw/Makefile
diff -u pkgsrc/devel/ncursesw/Makefile:1.17 pkgsrc/devel/ncursesw/Makefile:1.18
--- pkgsrc/devel/ncursesw/Makefile:1.17 Thu Oct 18 19:42:49 2018
+++ pkgsrc/devel/ncursesw/Makefile      Wed Oct 24 16:58:38 2018
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.17 2018/10/18 19:42:49 leot Exp $
+# $NetBSD: Makefile,v 1.18 2018/10/24 16:58:38 minskim Exp $
 
 .include "../../devel/ncurses/Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/ncurses/ncursesw/}
 COMMENT=       Wide character CRT screen handling and optimization package
-PKGREVISION=   1
+PKGREVISION=   2
 
 PATCHDIR=      ${.CURDIR}/../../devel/ncurses/patches
 DISTINFO_FILE= ${.CURDIR}/../../devel/ncurses/distinfo
@@ -14,7 +14,7 @@ CONFIGURE_ARGS+=      --includedir=${PREFIX}/
 
 INSTALLATION_DIRS+=    include/ncursesw
 INSTALLATION_DIRS+=    bin
-INSTALLATION_DIRS+=    lib
+INSTALLATION_DIRS+=    lib/pkgconfig
 
 BUILD_TARGET=  libs
 
@@ -25,6 +25,9 @@ SUBST_FILES.includes= include/curses.h
 SUBST_SED.includes=    -e 's,<ncurses_dll\.h>,<ncurses/ncurses_dll\.h>,'
 SUBST_SED.includes+=   -e 's,<unctrl\.h>,<ncurses/unctrl\.h>,'
 
+post-build:
+       cd ${WRKSRC}/misc && ${SH} gen-pkgconfig
+
 do-install:
        cd ${WRKSRC}/include && \
        ${MAKE_ENV} ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} install
@@ -33,6 +36,7 @@ do-install:
                ${LIBTOOL} --mode=install ${INSTALL_PROGRAM}    \
                    ${WRKSRC}/lib/lib$${LIB}w.la ${DESTDIR}${PREFIX}/lib;       \
        done
+       ${INSTALL_DATA} ${WRKSRC}/misc/*.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
 
 BUILDLINK_API_DEPENDS.ncurses+=        ncurses-${NC_VERS}{,nb*}
 BUILDLINK_ABI_DEPENDS.ncurses+=        ncurses-${NC_VERS}{,nb*}

Index: pkgsrc/devel/ncursesw/PLIST
diff -u pkgsrc/devel/ncursesw/PLIST:1.8 pkgsrc/devel/ncursesw/PLIST:1.9
--- pkgsrc/devel/ncursesw/PLIST:1.8     Mon Jan  1 22:29:25 2018
+++ pkgsrc/devel/ncursesw/PLIST Wed Oct 24 16:58:38 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2018/01/01 22:29:25 rillig Exp $
+@comment $NetBSD: PLIST,v 1.9 2018/10/24 16:58:38 minskim Exp $
 bin/ncursesw6-config
 include/ncursesw/curses.h
 include/ncursesw/nc_tparm.h
@@ -14,3 +14,8 @@ lib/libgnumenuw.la
 lib/libgnupanelw.la
 lib/libncurses++w.la
 lib/libncursesw.la
+lib/pkgconfig/formw.pc
+lib/pkgconfig/menuw.pc
+lib/pkgconfig/ncurses++w.pc
+lib/pkgconfig/ncursesw.pc
+lib/pkgconfig/panelw.pc



Home | Main Index | Thread Index | Old Index