From owner-svn-ports-head@freebsd.org Tue May 5 01:17:39 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5FF5A2C9335; Tue, 5 May 2020 01:17:39 +0000 (UTC) (envelope-from yuri@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49GMKH1tC6z44RC; Tue, 5 May 2020 01:17:39 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3BCB95975; Tue, 5 May 2020 01:17:39 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0451HdYF039420; Tue, 5 May 2020 01:17:39 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0451Hbjh039411; Tue, 5 May 2020 01:17:38 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202005050117.0451Hbjh039411@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 5 May 2020 01:17:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r534003 - in head/math: . flexfloat flexfloat/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/math: . flexfloat flexfloat/files X-SVN-Commit-Revision: 534003 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2020 01:17:39 -0000 Author: yuri Date: Tue May 5 01:17:37 2020 New Revision: 534003 URL: https://svnweb.freebsd.org/changeset/ports/534003 Log: New port: math/flexfloat: C library for the emulation of reduced-precision floating point types Added: head/math/flexfloat/ head/math/flexfloat/Makefile (contents, props changed) head/math/flexfloat/distinfo (contents, props changed) head/math/flexfloat/files/ head/math/flexfloat/files/patch-CMakeLists.txt (contents, props changed) head/math/flexfloat/files/patch-include_flexfloat.h (contents, props changed) head/math/flexfloat/pkg-descr (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Tue May 5 01:16:53 2020 (r534002) +++ head/math/Makefile Tue May 5 01:17:37 2020 (r534003) @@ -261,6 +261,7 @@ SUBDIR += fftw3-long SUBDIR += fftw3-quad SUBDIR += flann + SUBDIR += flexfloat SUBDIR += flint2 SUBDIR += flintqs SUBDIR += form Added: head/math/flexfloat/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flexfloat/Makefile Tue May 5 01:17:37 2020 (r534003) @@ -0,0 +1,38 @@ +# $FreeBSD$ + +PORTNAME= flexfloat +DISTVERSION= g20190814 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C library for the emulation of reduced-precision floating point types + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= oprecomp +GH_TAGNAME= 6db869087a12d763a94d53e9b0a9d52def270865 +USE_LDCONFIG= yes +USE_GCC= any # clang doesn't support __float128 + +CMAKE_OFF= BUILD_TESTS BUILD_EXAMPLES + +PLIST_FILES= include/flexfloat/flexfloat.h \ + include/flexfloat/flexfloat.hpp \ + include/flexfloat/flexfloat_config.h \ + lib/libflexfloat.so + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/include/flexfloat + ${INSTALL_DATA} ${WRKSRC}/include/*.h ${WRKSRC}/include/*.hpp ${STAGEDIR}${PREFIX}/include/flexfloat + ${INSTALL_LIB} ${BUILD_WRKSRC}/libflexfloat.so ${STAGEDIR}${PREFIX}/lib + +do-test: # one test, value_representation_half, fails: https://github.com/oprecomp/flexfloat/issues/9 + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + +.include Added: head/math/flexfloat/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flexfloat/distinfo Tue May 5 01:17:37 2020 (r534003) @@ -0,0 +1,3 @@ +TIMESTAMP = 1588634273 +SHA256 (oprecomp-flexfloat-g20190814-6db869087a12d763a94d53e9b0a9d52def270865_GH0.tar.gz) = 889f1c31d0053f561cc8bfdf8f9c458bf1a8491d8ab9b3fe1b857c671359ba52 +SIZE (oprecomp-flexfloat-g20190814-6db869087a12d763a94d53e9b0a9d52def270865_GH0.tar.gz) = 28313 Added: head/math/flexfloat/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flexfloat/files/patch-CMakeLists.txt Tue May 5 01:17:37 2020 (r534003) @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2020-05-04 23:28:52 UTC ++++ CMakeLists.txt +@@ -29,7 +29,7 @@ set(library_SOURCES + src/flexfloat.c + ) + +-add_library(flexfloat STATIC ${library_SOURCES}) ++add_library(flexfloat SHARED ${library_SOURCES}) + + target_include_directories(flexfloat PUBLIC ${PROJECT_SOURCE_DIR}/include) + Added: head/math/flexfloat/files/patch-include_flexfloat.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flexfloat/files/patch-include_flexfloat.h Tue May 5 01:17:37 2020 (r534003) @@ -0,0 +1,16 @@ +--- include/flexfloat.h.orig 2020-05-04 23:21:19 UTC ++++ include/flexfloat.h +@@ -40,9 +40,10 @@ extern "C" { + #pragma STDC FENV_ACCESS ON + #endif + +-#ifndef __STDC_IEC_559__ +-#error "Implementation not IEEE compliant" +-#endif ++// not clear why this should/shouldn't ++//#ifndef __STDC_IEC_559__ ++//#error "Implementation not IEEE compliant" ++//#endif + + // GCC versions before 8.2 (for sure not on 7.2, don't know when it was fixed) don't raise flags on comparisons correctly + #if !defined(__GNUC__) || (defined(__GNUC__) && (__GNUC__ >= 8) && (__GNUC_MINOR__ >= 2)) Added: head/math/flexfloat/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/flexfloat/pkg-descr Tue May 5 01:17:37 2020 (r534003) @@ -0,0 +1,4 @@ +FlexFloat is a C library for the emulation of reduced-precision floating point +types. + +WWW: https://github.com/oprecomp/flexfloat