Module Name:    src
Committed By:   wiz
Date:           Tue Jun 20 23:09:14 UTC 2023

Modified Files:
        src/distrib/sets/lists/comp: mi
        src/lib/libedit: Makefile
Added Files:
        src/lib/libedit: libedit.pc

Log Message:
install pkg-config file for libedit

version number matches portable libedit
--cflags output matches portable libedit, since users probably want the
readline interface


To generate a diff of this commit:
cvs rdiff -u -r1.2432 -r1.2433 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.67 -r1.68 src/lib/libedit/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libedit/libedit.pc

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.2432 src/distrib/sets/lists/comp/mi:1.2433
--- src/distrib/sets/lists/comp/mi:1.2432	Fri Jun 16 22:18:02 2023
+++ src/distrib/sets/lists/comp/mi	Tue Jun 20 23:09:13 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.2432 2023/06/16 22:18:02 wiz Exp $
+#	$NetBSD: mi,v 1.2433 2023/06/20 23:09:13 wiz Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp				comp-sys-root
@@ -4283,6 +4283,7 @@
 ./usr/lib/pkgconfig/kyua-testers.pc		comp-kyua-lib		kyua,share
 ./usr/lib/pkgconfig/libarchive.pc		comp-c-lib		share
 ./usr/lib/pkgconfig/libcrypto.pc		comp-crypto-lib		share
+./usr/lib/pkgconfig/libedit.pc			comp-c-lib
 ./usr/lib/pkgconfig/libfido2.pc			comp-c-lib		share
 ./usr/lib/pkgconfig/liblzma.pc			comp-c-lib		share
 ./usr/lib/pkgconfig/libssl.pc			comp-crypto-lib		share

Index: src/lib/libedit/Makefile
diff -u src/lib/libedit/Makefile:1.67 src/lib/libedit/Makefile:1.68
--- src/lib/libedit/Makefile:1.67	Sat Jun  3 09:09:10 2023
+++ src/lib/libedit/Makefile	Tue Jun 20 23:09:14 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.67 2023/06/03 09:09:10 lukem Exp $
+#	$NetBSD: Makefile,v 1.68 2023/06/20 23:09:14 wiz Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/4/93
 
 USE_SHLIBDIR=	yes
@@ -21,6 +21,12 @@ SRCS =	chared.c chartype.c common.c el.c
 
 MAN=	editline.3 editrc.5 editline.7
 
+FILES+=			libedit.pc
+FILESOWN_libedit.pc=	${BINOWN}
+FILESGRP_libedit.pc=	${BINGRP}
+FILESMODE_libedit.pc=	${NONBINMODE}
+FILESDIR_libedit.pc=	/usr/lib/pkgconfig
+
 MLINKS= \
 editline.3 el_deletestr.3 \
 editline.3 el_end.3 \

Added files:

Index: src/lib/libedit/libedit.pc
diff -u /dev/null src/lib/libedit/libedit.pc:1.1
--- /dev/null	Tue Jun 20 23:09:14 2023
+++ src/lib/libedit/libedit.pc	Tue Jun 20 23:09:14 2023
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libedit
+Description: command line editor library providing generic line editing, history, and tokenization functions.
+Version: 3.1
+Requires:
+Libs: -Wl,-R${libdir} -L${libdir} -ledit
+Libs.private: -ltermcap 
+Cflags: -I${includedir} -I${includedir}/editline

Reply via email to