aboutsummaryrefslogtreecommitdiff
path: root/devel/inja/files/patch-cmake_PkgConfigGeneration.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'devel/inja/files/patch-cmake_PkgConfigGeneration.cmake')
-rw-r--r--devel/inja/files/patch-cmake_PkgConfigGeneration.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/devel/inja/files/patch-cmake_PkgConfigGeneration.cmake b/devel/inja/files/patch-cmake_PkgConfigGeneration.cmake
new file mode 100644
index 000000000000..d148dbe48cfe
--- /dev/null
+++ b/devel/inja/files/patch-cmake_PkgConfigGeneration.cmake
@@ -0,0 +1,21 @@
+--- cmake/PkgConfigGeneration.cmake.orig 2025-09-18 10:40:00 UTC
++++ cmake/PkgConfigGeneration.cmake
+@@ -0,0 +1,18 @@
++#.rst:
++# PkgConfigGeneration
++# -------------------
++#
++# Generate the pkg-config file for libdispatch.
++#
++# The script generates a pkg-config file on non-Apple UNIX-like systems.
++#
++
++# Check if the system is UNIX-based and not Apple
++if(UNIX)
++ # Configure the pkg-config file from the template
++ configure_file("${PROJECT_SOURCE_DIR}/cmake/inja.pc.in"
++ "${PROJECT_BINARY_DIR}/inja.pc" @ONLY)
++
++ # Install the generated pkg-config file to the appropriate directory
++ install(FILES "${PROJECT_BINARY_DIR}/inja.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig")
++endif()