pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ncursesw devel/ncursesw: Install .pc files



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cba27b98f730
branches:  trunk
changeset: 324631:cba27b98f730
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Wed Oct 24 16:58:38 2018 +0000

description:
devel/ncursesw: Install .pc files

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

diffstat:

 devel/ncursesw/Makefile |  10 +++++++---
 devel/ncursesw/PLIST    |   7 ++++++-
 2 files changed, 13 insertions(+), 4 deletions(-)

diffs (61 lines):

diff -r d58fd57d0ca2 -r cba27b98f730 devel/ncursesw/Makefile
--- a/devel/ncursesw/Makefile   Wed Oct 24 16:33:40 2018 +0000
+++ b/devel/ncursesw/Makefile   Wed Oct 24 16:58:38 2018 +0000
@@ -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 @@
 
 INSTALLATION_DIRS+=    include/ncursesw
 INSTALLATION_DIRS+=    bin
-INSTALLATION_DIRS+=    lib
+INSTALLATION_DIRS+=    lib/pkgconfig
 
 BUILD_TARGET=  libs
 
@@ -25,6 +25,9 @@
 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 @@
                ${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*}
diff -r d58fd57d0ca2 -r cba27b98f730 devel/ncursesw/PLIST
--- a/devel/ncursesw/PLIST      Wed Oct 24 16:33:40 2018 +0000
+++ b/devel/ncursesw/PLIST      Wed Oct 24 16:58:38 2018 +0000
@@ -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/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