summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2022-11-12 15:06:06 +0000
committerryoon <ryoon@pkgsrc.org>2022-11-12 15:06:06 +0000
commitc9f7b0e00614dc0664a8d871b76af66d3e3cd3fb (patch)
tree0b4f2bb8f8d13b2643e87d979e9d7668f080a00c /devel
parentbc4e0448d05d5d24fdcfee12f805801578f4a6e3 (diff)
downloadpkgsrc-c9f7b0e00614dc0664a8d871b76af66d3e3cd3fb.tar.gz
spdlog: Fix shared library symlink name
And do not build in source directory for easier debugging.
Diffstat (limited to 'devel')
-rw-r--r--devel/spdlog/Makefile8
-rw-r--r--devel/spdlog/distinfo3
-rw-r--r--devel/spdlog/patches/patch-CMakeLists.txt16
3 files changed, 25 insertions, 2 deletions
diff --git a/devel/spdlog/Makefile b/devel/spdlog/Makefile
index e9820a5557e..f7636b4c738 100644
--- a/devel/spdlog/Makefile
+++ b/devel/spdlog/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2022/11/11 18:36:47 adam Exp $
+# $NetBSD: Makefile,v 1.13 2022/11/12 15:06:06 ryoon Exp $
DISTNAME= spdlog-1.11.0
CATEGORIES= devel
@@ -20,6 +20,12 @@ PKGCONFIG_OVERRIDE+= cmake/spdlog.pc.in
LDFLAGS.SunOS+= -lsocket
+CMAKE_ARG_PATH= ..
+CONFIGURE_DIRS= _build
+
+pre-configure:
+ ${MKDIR} ${WRKSRC}/_build
+
.include "../../lang/python/tool.mk"
.include "../../textproc/fmtlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/spdlog/distinfo b/devel/spdlog/distinfo
index 18add1d97ff..2da98084f20 100644
--- a/devel/spdlog/distinfo
+++ b/devel/spdlog/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2022/11/11 18:36:47 adam Exp $
+$NetBSD: distinfo,v 1.12 2022/11/12 15:06:06 ryoon Exp $
BLAKE2s (spdlog-1.11.0.tar.gz) = b6fdf69002f5591045e8377fc02a20da4090676d786d9348cc5ed2404f26fc03
SHA512 (spdlog-1.11.0.tar.gz) = 210f3135c7af3ec774ef9a5c77254ce172a44e2fa720bf590e1c9214782bf5c8140ff683403a85b585868bc308286fbdeb1c988e4ed1eb3c75975254ffe75412
Size (spdlog-1.11.0.tar.gz) = 373033 bytes
+SHA1 (patch-CMakeLists.txt) = 7da54588522ca9cf4b1816d6f65a8f31eda43332
diff --git a/devel/spdlog/patches/patch-CMakeLists.txt b/devel/spdlog/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..cce4d5a9ace
--- /dev/null
+++ b/devel/spdlog/patches/patch-CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2022/11/12 15:06:06 ryoon Exp $
+
+* Fix shared library name.
+ Do not create libspdlog.so.1.11 symlink.
+
+--- CMakeLists.txt.orig 2022-11-02 21:13:08.000000000 +0000
++++ CMakeLists.txt
+@@ -176,7 +176,7 @@ target_include_directories(spdlog PUBLIC
+ target_link_libraries(spdlog PUBLIC Threads::Threads)
+ spdlog_enable_warnings(spdlog)
+
+-set_target_properties(spdlog PROPERTIES VERSION ${SPDLOG_VERSION} SOVERSION ${SPDLOG_VERSION_MAJOR}.${SPDLOG_VERSION_MINOR})
++set_target_properties(spdlog PROPERTIES VERSION ${SPDLOG_VERSION} SOVERSION ${SPDLOG_VERSION_MAJOR})
+ set_target_properties(spdlog PROPERTIES DEBUG_POSTFIX d)
+
+ if(COMMAND target_precompile_headers AND SPDLOG_ENABLE_PCH)