From fccd37c34cbabe77d701316491b899a0eb529114 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 21 Mar 2021 17:41:58 -0500 Subject: add PKGCONFIGDIR to the makefiles This allows pkgconfig files to be stored in /usr even if PREFIX is /. --- mk/sys.mk | 1 + pkgconfig/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mk/sys.mk b/mk/sys.mk index 40d1367b..06189075 100644 --- a/mk/sys.mk +++ b/mk/sys.mk @@ -54,6 +54,7 @@ LIBDIR?= ${UPREFIX}/${LIBNAME} LIBMODE?= 0644 LIBEXECDIR?= ${PREFIX}/libexec/rc +PKGCONFIGDIR?= ${UPREFIX}/${LIBNAME}/pkgconfig MANPREFIX?= ${UPREFIX}/share MANDIR?= ${MANPREFIX}/man diff --git a/pkgconfig/Makefile b/pkgconfig/Makefile index 4bf28cfb..80514d6a 100644 --- a/pkgconfig/Makefile +++ b/pkgconfig/Makefile @@ -1,4 +1,4 @@ -DIR= ${LIBDIR}/pkgconfig +DIR= ${PKGCONFIGDIR} SRCS= einfo.pc.in openrc.pc.in INC= einfo.pc openrc.pc -- cgit v1.2.3