@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2023/11/21 17:57:18 nros Exp $
+# $NetBSD: Makefile,v 1.22 2023/11/21 18:26:30 nros Exp $
DISTNAME= abseil-20230802.1
CATEGORIES= devel
@@ -27,26 +27,8 @@
. endif
.endif
-ABSLPC_DIR= ${WRKSRC}/${CMAKE_BUILD_DIR}/lib/pkgconfig
PKGCONFIG_OVERRIDE_STAGE= post-build
-
-.include "pkgconfig-overrides.mk"
-
-
-# abseil installs a lot of pkg-config files so maintaining a list of
-# pkgconfig overrides whould take a lot of time. Below is a target to
-# ease this work.
-# The target can be run when updating the package to update the list of
-# pkgconfig files that need an override.
-.PHONY: update-pkgconfig-overrides
-update-pkgconfig-overrides: all
- ${RUN} ${HEAD} -n 1 pkgconfig-overrides.mk > pkgconfig-overrides.mk.tmp
- ${RUN} ${MV} pkgconfig-overrides.mk.tmp pkgconfig-overrides.mk
- ${RUN} cd ${ABSLPC_DIR} && \
- ${GREP} "\-l[ ]*absl" * | ${SED} 's/:[ ]*Libs:.*//g' | \
- ${SED} 's,^,PKGCONFIG_OVERRIDE+=\ \$$\{ABSLPC_DIR\}/,g' \
- >> ${.CURDIR}/pkgconfig-overrides.mk
-
+PKGCONFIG_OVERRIDE= ${CMAKE_BUILD_DIR}/lib/pkgconfig/*.pc
.include "../../devel/cmake/build.mk"
.include "../../mk/atomic64.mk"