mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 01:26:38 +02:00
57 lines
1.7 KiB
Diff
57 lines
1.7 KiB
Diff
Patch-Source: https://github.com/aklomp/base64/pull/128 (modified)
|
|
From aac03091256296f73254c70966e561e273365364 Mon Sep 17 00:00:00 2001
|
|
From: "lauren n. liberda" <lauren@selfisekai.rocks>
|
|
Date: Sat, 16 Dec 2023 05:25:23 +0100
|
|
Subject: [PATCH] add a pkg-config file
|
|
|
|
---
|
|
CMakeLists.txt | 8 ++++++++
|
|
cmake/base64.pc.in | 10 ++++++++++
|
|
2 files changed, 18 insertions(+)
|
|
create mode 100644 cmake/base64.pc.in
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 56076e4..4d06310 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -235,6 +235,10 @@ if (BASE64_BUILD_TESTS)
|
|
add_subdirectory(test)
|
|
endif()
|
|
|
|
+########################################################################
|
|
+# pkg-config file
|
|
+configure_file("${CMAKE_CURRENT_LIST_DIR}/cmake/base64.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/base64.pc" @ONLY)
|
|
+
|
|
########################################################################
|
|
# base64
|
|
if (BASE64_BUILD_CLI)
|
|
@@ -276,6 +280,10 @@ install(FILES
|
|
"${CMAKE_CURRENT_BINARY_DIR}/base64-config-version.cmake"
|
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
|
|
)
|
|
+install(FILES
|
|
+ "${CMAKE_CURRENT_BINARY_DIR}/base64.pc"
|
|
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
|
+)
|
|
|
|
install(EXPORT base64-targets
|
|
NAMESPACE aklomp::
|
|
diff --git a/cmake/base64.pc.in b/cmake/base64.pc.in
|
|
new file mode 100644
|
|
index 0000000..fd97b49
|
|
--- /dev/null
|
|
+++ b/cmake/base64.pc.in
|
|
@@ -0,0 +1,10 @@
|
|
+prefix="@CMAKE_INSTALL_PREFIX@"
|
|
+exec_prefix="${prefix}"
|
|
+libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@"
|
|
+includedir="${prefix}/@CMAKE_INSTALL_INCLUDEDIR@"
|
|
+
|
|
+Name: @PROJECT_NAME@
|
|
+Description: Fast Base64 stream encoder/decoder in C99, with SIMD acceleration
|
|
+Version: @PROJECT_VERSION@
|
|
+Cflags: -I${includedir}
|
|
+Libs: -L${libdir} -lbase64
|
|
--
|
|
2.43.0
|
|
|