aboutsummaryrefslogtreecommitdiffstats
path: root/devel/inja/files/patch-cmake_PkgConfigGeneration.cmake
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /devel/inja/files/patch-cmake_PkgConfigGeneration.cmake
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
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()