pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/abseil



Module Name:    pkgsrc
Committed By:   nros
Date:           Tue Nov 21 17:57:18 UTC 2023

Modified Files:
        pkgsrc/devel/abseil: Makefile
Added Files:
        pkgsrc/devel/abseil: pkgconfig-overrides.mk

Log Message:
abseil: add pkg-config overrides and ease their maintainance
Add pkg-config overrides, add them to a separate file due
to the big amount. Also add a target that can update this
file when doing package updates.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/abseil/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/abseil/pkgconfig-overrides.mk

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

Modified files:

Index: pkgsrc/devel/abseil/Makefile
diff -u pkgsrc/devel/abseil/Makefile:1.20 pkgsrc/devel/abseil/Makefile:1.21
--- pkgsrc/devel/abseil/Makefile:1.20   Thu Nov  2 19:32:18 2023
+++ pkgsrc/devel/abseil/Makefile        Tue Nov 21 17:57:18 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2023/11/02 19:32:18 adam Exp $
+# $NetBSD: Makefile,v 1.21 2023/11/21 17:57:18 nros Exp $
 
 DISTNAME=      abseil-20230802.1
 CATEGORIES=    devel
@@ -27,6 +27,27 @@ BUILDLINK_TRANSFORM+=        rm:-lexecinfo
 .  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
+
+
 .include "../../devel/cmake/build.mk"
 .include "../../mk/atomic64.mk"
 .include "../../mk/bsd.pkg.mk"

Added files:

Index: pkgsrc/devel/abseil/pkgconfig-overrides.mk
diff -u /dev/null pkgsrc/devel/abseil/pkgconfig-overrides.mk:1.1
--- /dev/null   Tue Nov 21 17:57:18 2023
+++ pkgsrc/devel/abseil/pkgconfig-overrides.mk  Tue Nov 21 17:57:18 2023
@@ -0,0 +1,86 @@
+# $NetBSD: pkgconfig-overrides.mk,v 1.1 2023/11/21 17:57:18 nros Exp $
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_bad_any_cast_impl.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_bad_optional_access.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_bad_variant_access.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_base.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_city.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_civil_time.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_cord.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_cord_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_cordz_functions.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_cordz_handle.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_cordz_info.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_cordz_sample_token.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_crc32c.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_crc_cord_state.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_crc_cpu_detect.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_crc_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_debugging_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_demangle_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_die_if_null.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_examine_stack.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_exponential_biased.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_failure_signal_handler.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_commandlineflag.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_commandlineflag_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_config.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_marshalling.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_parse.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_private_handle_accessor.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_program_name.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_reflection.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_usage.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_flags_usage_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_graphcycles_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_hash.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_hashtablez_sampler.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_int128.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_kernel_timeout_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_leak_check.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_entry.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_flags.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_globals.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_initialize.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_check_op.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_conditions.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_format.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_globals.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_log_sink_set.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_message.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_nullguard.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_internal_proto.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_severity.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_log_sink.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_low_level_hash.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_malloc_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_periodic_sampler.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_distributions.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_distribution_test_util.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_platform.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_pool_urbg.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_randen.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_randen_hwaes.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_randen_hwaes_impl.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_randen_slow.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_internal_seed_material.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_seed_gen_exception.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_random_seed_sequences.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_raw_hash_set.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_raw_logging_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_scoped_set_env.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_spinlock_wait.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_stacktrace.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_status.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_statusor.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_str_format_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_strerror.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_string_view.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_strings.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_strings_internal.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_symbolize.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_synchronization.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_throw_delegate.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_time.pc
+PKGCONFIG_OVERRIDE+=   ${ABSLPC_DIR}/absl_time_zone.pc



Home | Main Index | Thread Index | Old Index