Skip to content

Commit

Permalink
devel/asyncplusplus: Include the GH PR that adds the static library
Browse files Browse the repository at this point in the history
... and add the STATIC option.
  • Loading branch information
yurivict committed Jan 23, 2024
1 parent e96c049 commit 004f8ad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
14 changes: 13 additions & 1 deletion 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
Expand All @@ -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>
6 changes: 3 additions & 3 deletions 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
5 changes: 3 additions & 2 deletions 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
Expand All @@ -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

0 comments on commit 004f8ad

Please sign in to comment.