From c3920ce95bbeaed94fb0441087727fab28eb1f3e Mon Sep 17 00:00:00 2001 From: ratchov Date: Wed, 28 Apr 2021 19:12:53 +0000 Subject: [PATCH] Add sndio.pc file for pkg-config, mostly from brad@ ok and help from espie@ --- lib/libsndio/Makefile | 8 +++++++- lib/libsndio/sndio.pc | 11 +++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 lib/libsndio/sndio.pc diff --git a/lib/libsndio/Makefile b/lib/libsndio/Makefile index c5134fa4b42..acc39686ea9 100644 --- a/lib/libsndio/Makefile +++ b/lib/libsndio/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.14 2020/02/26 13:53:58 ratchov Exp $ +# $OpenBSD: Makefile,v 1.15 2021/04/28 19:12:53 ratchov Exp $ LIB= sndio MAN= sio_open.3 mio_open.3 sioctl_open.3 sndio.7 @@ -10,4 +10,10 @@ COPTS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wundef VERSION_SCRIPT= ${.CURDIR}/Symbols.map +PC_FILES=sndio.pc + +beforeinstall: + ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ + -m ${SHAREMODE} ${.CURDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/ + .include diff --git a/lib/libsndio/sndio.pc b/lib/libsndio/sndio.pc new file mode 100644 index 00000000000..4e3de111d75 --- /dev/null +++ b/lib/libsndio/sndio.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: sndio +Description: sndio library +Version: 1.7.0 +Requires: +Libs: -L${libdir} -lsndio +Cflags: -I${includedir} -- 2.20.1