-# $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
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 <bsd.lib.mk>
--- /dev/null
+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}