git: 004f8ad543ae - main - devel/asyncplusplus: Include the GH PR that adds the static library
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jan 2024 23:56:56 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=004f8ad543ae7707615abc8112e302fba40c2507
commit 004f8ad543ae7707615abc8112e302fba40c2507
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-23 23:56:00 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-23 23:56:54 +0000
devel/asyncplusplus: Include the GH PR that adds the static library
... and add the STATIC option.
---
devel/asyncplusplus/Makefile | 14 +++++++++++++-
devel/asyncplusplus/distinfo | 6 +++---
devel/asyncplusplus/pkg-plist | 5 +++--
3 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/devel/asyncplusplus/Makefile b/devel/asyncplusplus/Makefile
index d303a6a22a4c..bd302d194f23 100644
--- a/devel/asyncplusplus/Makefile
+++ b/devel/asyncplusplus/Makefile
@@ -1,6 +1,7 @@
PORTNAME= asyncplusplus
DISTVERSIONPREFIX= v
DISTVERSION= 1.1
+PORTREVISION= 1 # 1 is for the added STATIC option
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
@@ -11,8 +12,19 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang
+USE_LDCONFIG= yes
+
USE_GITHUB= yes
GH_ACCOUNT= Amanieu
-USE_LDCONFIG= yes
+GH_TAGNAME= 627e0520d1b22c075f65fb7abc6269377e3a4c40 # include the PR https://github.com/Amanieu/asyncplusplus/pull/57 to build the shared library
+
+CMAKE_ON= ASYNCXX_BUILD_SHARED
+
+OPTIONS_DEFINE= STATIC
+OPTIONS_DEFAULT= STATIC
+OPTIONS_SUB= yes
+
+STATIC_DESC= Build static library
+STATIC_CMAKE_BOOL= ASYNCXX_BUILD_STATIC
.include <bsd.port.mk>
diff --git a/devel/asyncplusplus/distinfo b/devel/asyncplusplus/distinfo
index 3b32e9442deb..8343d29be9d7 100644
--- a/devel/asyncplusplus/distinfo
+++ b/devel/asyncplusplus/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1589707210
-SHA256 (Amanieu-asyncplusplus-v1.1_GH0.tar.gz) = d160d3a433a1e08f51c785742843182c2b81a7bc872766f57bf5f3108377b858
-SIZE (Amanieu-asyncplusplus-v1.1_GH0.tar.gz) = 34095
+TIMESTAMP = 1706053634
+SHA256 (Amanieu-asyncplusplus-v1.1-627e0520d1b22c075f65fb7abc6269377e3a4c40_GH0.tar.gz) = d80ea20299d3e2165ac3f78534ca6e442f5e5348fb14765b4c97a36f71b71a10
+SIZE (Amanieu-asyncplusplus-v1.1-627e0520d1b22c075f65fb7abc6269377e3a4c40_GH0.tar.gz) = 34922
diff --git a/devel/asyncplusplus/pkg-plist b/devel/asyncplusplus/pkg-plist
index 19177d80ad1e..8537b1067aa9 100644
--- a/devel/asyncplusplus/pkg-plist
+++ b/devel/asyncplusplus/pkg-plist
@@ -1,6 +1,6 @@
-cmake/Async++-%%CMAKE_BUILD_TYPE%%.cmake
-cmake/Async++.cmake
cmake/Async++Config.cmake
+cmake/asyncxx-targets-%%CMAKE_BUILD_TYPE%%.cmake
+cmake/asyncxx-targets.cmake
include/async++.h
include/async++/aligned_alloc.h
include/async++/cancel.h
@@ -17,4 +17,5 @@ include/async++/task.h
include/async++/task_base.h
include/async++/traits.h
include/async++/when_all_any.h
+%%STATIC%%lib/libasync++.a
lib/libasync++.so