From nobody Sun Jun 23 12:59:57 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W6WQj2GBmz5PT7v; Sun, 23 Jun 2024 12:59:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W6WQj1f4Kz4hW6; Sun, 23 Jun 2024 12:59:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719147597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ttf36BFckajcwqNOHVE33+OsnfNDOgu99QLOSHZAdzs=; b=czUuXvCBbtmjFlgDMaoGkIF+OmWC8s6kKs4sTwk2BWGFpACLu4oKyYqGxKdRrhGY8YfMCc ywXxZNiEBRg5WzBxiISOV0PrxMu9fHfRb3ykazq8aWZJhgx6ZqPyn5TtdzD0P3/AuUk3+B yRPELuvLXEPZrCY/72at4FY8OvxqfWuyBmjkp0DLCOW5MEhg1d6K4Wosj++vzpzjHq17ZP hUN4kP2FR3wlHPc4Iq/kytzkAYjO9BL9BRY3ZnBVDgHiAvILTmADOfVoYqjwlWnB2ANgVZ 4EZz9ya85+uxfsMsOP/1VW7RjJH5KMuSzmoKQh0TbEmANLX6k2jIvtLOYS29uw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719147597; a=rsa-sha256; cv=none; b=eYm3BHs7yBYIyYQf5eKjt3AZ8DkUIgYNYcl5gnhLskM2fy3Nc6lwNYIs/bx1GYHiaijNen eP+CDqAX+cze/BrFfYPcHpDx3hm/FMrKXUa975CAeXzOvq5hl33883LTix0YLw62yfrl+S 9I77JrMUiRKu8ROWed73mFhPsl3GucP4jy20NEwc878htB0tP3md+dh7URIna70Yqn+U9R RHbxXMkpHHdMq29F/eoUPk3Hfz4V7fpRlZGsZS+y2cw4ulIhXqexyfFRPKZ1jyW0sroXL9 gAJnyOyi+q7lLjcSN7mbK1rLtpJpLkkIBhMIAQE5WCFxc0fil56EDmOReApxEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719147597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ttf36BFckajcwqNOHVE33+OsnfNDOgu99QLOSHZAdzs=; b=yTTBt23cB3cKgRHFSTiiYmVinZjEanNKegr3hsuEEPiUEjIyc6KEy2D7zgc01+VCY+46oO 2sUM472cY10s/Q+Bu8Icg0a9JTgTeAiA1WbJ7Z+jirjBvm/lZxmN83aYluqoJAuy8YyrKy rRfU9e+qpRQUyViA4qiAXX84DhNatQw5GUeqpPz5/Oyb7uHPJMOMLTTfYTi9Iz/UVqe5lt QOKoAh9CtNWYA60FlFJ1OProp99Gu7AxVftHeusuvALMeqlAo1mrV4DnmtXN5nOmAjhHe9 GXv27siHkx/0vHcCuqk1RNSqbvrmSodL/NNNquu41Ff+e0UzI1ljKrMeF0FNqA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W6WQj17NBzbLx; Sun, 23 Jun 2024 12:59:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45NCxvD0069677; Sun, 23 Jun 2024 12:59:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45NCxvS3069674; Sun, 23 Jun 2024 12:59:57 GMT (envelope-from git) Date: Sun, 23 Jun 2024 12:59:57 GMT Message-Id: <202406231259.45NCxvS3069674@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: e5c6ec80c6c0 - main - devel/iscd-commons: new port, common codes used for ISCD softwares List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e5c6ec80c6c0e8f01ce866367182b5b46d3d1d38 Auto-Submitted: auto-generated The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=e5c6ec80c6c0e8f01ce866367182b5b46d3d1d38 commit e5c6ec80c6c0e8f01ce866367182b5b46d3d1d38 Author: Thierry Thomas AuthorDate: 2024-06-22 17:29:20 +0000 Commit: Thierry Thomas CommitDate: 2024-06-23 12:58:40 +0000 devel/iscd-commons: new port, common codes used for ISCD softwares Used by Elas. --- devel/Makefile | 1 + devel/iscd-commons/Makefile | 22 ++++++++++++++++ devel/iscd-commons/distinfo | 3 +++ devel/iscd-commons/files/patch-CMakeLists.txt | 34 +++++++++++++++++++++++++ devel/iscd-commons/files/patch-sources_lplib3.c | 20 +++++++++++++++ devel/iscd-commons/pkg-descr | 4 +++ devel/iscd-commons/pkg-plist | 8 ++++++ 7 files changed, 92 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d3ef97a20da3..f66194726676 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1020,6 +1020,7 @@ SUBDIR += ipython SUBDIR += ireport SUBDIR += isa-l + SUBDIR += iscd-commons SUBDIR += isfreedesktop SUBDIR += isl SUBDIR += ispc diff --git a/devel/iscd-commons/Makefile b/devel/iscd-commons/Makefile new file mode 100644 index 000000000000..49ecb821aa94 --- /dev/null +++ b/devel/iscd-commons/Makefile @@ -0,0 +1,22 @@ +PORTNAME= Commons +PORTVERSION= 1.0.0 +DISTVERSIONPREFIX= v +CATEGORIES= devel science +PKGNAMEPREFIX= ISCD- + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Common code shared by many ISCD softwares +WWW= https://github.com/ISCDtoolbox/Commons + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:testing + +USE_GITHUB= yes +GH_ACCOUNT= ISCDtoolbox + +CFLAGS+= -funroll-loops +USE_LDCONFIG= yes + +.include diff --git a/devel/iscd-commons/distinfo b/devel/iscd-commons/distinfo new file mode 100644 index 000000000000..da5dec473dba --- /dev/null +++ b/devel/iscd-commons/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1719075163 +SHA256 (ISCDtoolbox-Commons-v1.0.0_GH0.tar.gz) = d230f8a786bf8f6a14db21243c71ccb9c5d408da5da89ae6f334d1339c10f83e +SIZE (ISCDtoolbox-Commons-v1.0.0_GH0.tar.gz) = 48376 diff --git a/devel/iscd-commons/files/patch-CMakeLists.txt b/devel/iscd-commons/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..f3bf03aa1b7a --- /dev/null +++ b/devel/iscd-commons/files/patch-CMakeLists.txt @@ -0,0 +1,34 @@ +--- CMakeLists.txt.orig 2021-07-23 10:27:28 UTC ++++ CMakeLists.txt +@@ -1,6 +1,4 @@ cmake_minimum_required(VERSION 2.8) + cmake_minimum_required(VERSION 2.8) +-set(CMAKE_BUILD_TYPE "Release") +-SET(CMAKE_C_FLAGS "-w -g -O3 -funroll-loops") + set(CMAKE_MACOSX_RPATH 1) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + +@@ -17,7 +15,7 @@ FIND_LIBRARY( M_LIB m) + endif() + endif() + FIND_LIBRARY( M_LIB m) +-SET( LIBRARIES ${M_LIB} "-lpthread") ++SET( LIBRARIES ${M_LIB} "-pthread") + + #Commons library + SET( SOURCES_DIR sources) +@@ -25,11 +23,12 @@ add_library( Commons SHARED ${source_files}) + file( GLOB_RECURSE header_files ${SOURCES_DIR}/*.h) + include_directories( ${SOURCES_DIR}) + add_library( Commons SHARED ${source_files}) ++set_target_properties( Commons PROPERTIES VERSION 0.0.0 SOVERSION 0) + TARGET_LINK_LIBRARIES( Commons ${LIBRARIES}) + + INSTALL( + TARGETS Commons +- RUNTIME DESTINATION "$ENV{HOME}/lib" +- LIBRARY DESTINATION "$ENV{HOME}/lib") ++ RUNTIME DESTINATION ${Commons_BINARY_DIR} ++ LIBRARY DESTINATION lib${LIB_SUFFIX}) + +-INSTALL( FILES ${header_files} DESTINATION "$ENV{HOME}/include") ++INSTALL( FILES ${header_files} DESTINATION include/ISCD) diff --git a/devel/iscd-commons/files/patch-sources_lplib3.c b/devel/iscd-commons/files/patch-sources_lplib3.c new file mode 100644 index 000000000000..ecf6c7f91bf4 --- /dev/null +++ b/devel/iscd-commons/files/patch-sources_lplib3.c @@ -0,0 +1,20 @@ +--- sources/lplib3.c.orig 2021-07-23 10:27:28 UTC ++++ sources/lplib3.c +@@ -30,6 +30,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #include "lplib3.h" + + +@@ -1251,6 +1254,7 @@ void qsort_mt(void *a, size_t n, size_t es, cmp_t *cmp + * NPROC environment variable (BSD/OS, CrayOS) + * sysctl hw.ncpu or kern.smp.cpus + */ ++ uint32_t ncpu; + if (pmc_init() == 0 && (ncpu = pmc_ncpu()) != -1) + maxthreads = ncpu; + else diff --git a/devel/iscd-commons/pkg-descr b/devel/iscd-commons/pkg-descr new file mode 100644 index 000000000000..4ba6e5f5b5be --- /dev/null +++ b/devel/iscd-commons/pkg-descr @@ -0,0 +1,4 @@ +This port contains common codes used for ISCD softwares (Linear algebra, Chrono, +I/O...). + +See also . diff --git a/devel/iscd-commons/pkg-plist b/devel/iscd-commons/pkg-plist new file mode 100644 index 000000000000..70655f7a1c2f --- /dev/null +++ b/devel/iscd-commons/pkg-plist @@ -0,0 +1,8 @@ +include/ISCD/chrono.h +include/ISCD/eigen.h +include/ISCD/libmesh5.h +include/ISCD/lplib3.h +include/ISCD/sparse.h +lib/libCommons.so +lib/libCommons.so.0 +lib/libCommons.so.0.0.0