spdlog: build shared lib

This commit is contained in:
Đoàn Trần Công Danh 2021-03-15 22:01:47 +07:00
parent fe2329809f
commit 7daa75ec09
4 changed files with 25 additions and 4 deletions

View file

@ -3970,3 +3970,4 @@ libwayland-client++.so.0 libwaylandpp-0.2.8_1
libwayland-cursor++.so.0 libwaylandpp-0.2.8_1
libwayland-egl++.so.0 libwaylandpp-0.2.8_1
libwayland-client-extra++.so.0 libwaylandpp-0.2.8_1
libspdlog.so.1 libspdlog-1.8.2_2

1
srcpkgs/libspdlog Symbolic link
View file

@ -0,0 +1 @@
spdlog

View file

@ -0,0 +1,12 @@
Index: spdlog-1.8.2/cmake/spdlog.pc.in
===================================================================
--- spdlog-1.8.2.orig/cmake/spdlog.pc.in
+++ spdlog-1.8.2/cmake/spdlog.pc.in
@@ -8,6 +8,6 @@ Description: Fast C++ logging library.
URL: https://github.com/gabime/@PROJECT_NAME@
Version: @SPDLOG_VERSION@
CFlags: -I${includedir} @PKG_CONFIG_DEFINES@
-Libs: -L${libdir} -lspdlog -pthread
+Libs: -L${libdir} -lspdlog -lfmt -pthread
Requires: @PKG_CONFIG_REQUIRES@

View file

@ -1,22 +1,29 @@
# Template file for 'spdlog'
pkgname=spdlog
version=1.8.2
revision=1
revision=2
build_style=cmake
configure_args="-DSPDLOG_BUILD_EXAMPLE=OFF -DSPDLOG_FMT_EXTERNAL=ON"
configure_args="-DSPDLOG_BUILD_EXAMPLE=OFF -DSPDLOG_FMT_EXTERNAL=ON
-DSPDLOG_BUILD_SHARED=ON"
hostmakedepends="pkg-config"
makedepends="fmt-devel"
depends="libspdlog>=${version}_${revision} fmt-devel"
short_desc="Fast C++ logging library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/gabime/spdlog"
distfiles="https://github.com/gabime/spdlog/archive/v${version}.tar.gz"
checksum=e20e6bd8f57e866eaf25a5417f0a38a116e537f1a77ac7b5409ca2b180cec0d5
patch_args=-Np1
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DSPDLOG_BUILD_TESTS_HO=ON"
fi
post_install() {
vlicense LICENSE
libspdlog_package() {
short_desc+=" - libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vlicense LICENSE
}
}