mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
math/ttmath: New port: C++ headers-only library for big integer and floating point numbers
This commit is contained in:
parent
cf9c8c457f
commit
fa8df33c77
5 changed files with 60 additions and 0 deletions
|
@ -1095,6 +1095,7 @@
|
||||||
SUBDIR += triangle
|
SUBDIR += triangle
|
||||||
SUBDIR += trlan
|
SUBDIR += trlan
|
||||||
SUBDIR += trlib
|
SUBDIR += trlib
|
||||||
|
SUBDIR += ttmath
|
||||||
SUBDIR += tvmet
|
SUBDIR += tvmet
|
||||||
SUBDIR += ump
|
SUBDIR += ump
|
||||||
SUBDIR += units
|
SUBDIR += units
|
||||||
|
|
36
math/ttmath/Makefile
Normal file
36
math/ttmath/Makefile
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
PORTNAME= ttmath
|
||||||
|
DISTVERSION= 0.9.3.20191013
|
||||||
|
CATEGORIES= math
|
||||||
|
|
||||||
|
MAINTAINER= yuri@FreeBSD.org
|
||||||
|
COMMENT= C++ headers-only library for big integer and floating point numbers
|
||||||
|
|
||||||
|
LICENSE= BSD3CLAUSE
|
||||||
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
||||||
|
|
||||||
|
FETCH_DEPENDS= git:devel/git
|
||||||
|
|
||||||
|
USES= cmake:testing
|
||||||
|
|
||||||
|
NO_BUILD= yes
|
||||||
|
NO_ARCH= yes
|
||||||
|
|
||||||
|
GIT_URL= https://gitea.ttmath.org/tomasz.sowa/ttmath.git
|
||||||
|
GIT_TAG= aad580f51e7ffc32966507a9897ec575c389e3e6
|
||||||
|
|
||||||
|
do-fetch:
|
||||||
|
@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}" ]; then \
|
||||||
|
${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \
|
||||||
|
cd ${DISTDIR}/${DIST_SUBDIR} && \
|
||||||
|
git clone -q ${GIT_URL} ${PORTNAME}-${DISTVERSIONFULL} && \
|
||||||
|
(cd ${PORTNAME}-${DISTVERSIONFULL} && git reset -q --hard ${GIT_TAG} && ${RM} -r .git) && \
|
||||||
|
${FIND} ${PORTNAME}-${DISTVERSIONFULL} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \
|
||||||
|
${FIND} ${PORTNAME}-${DISTVERSIONFULL} -print0 | LC_ALL=C ${SORT} -z | \
|
||||||
|
${TAR} czf ${PORTNAME}-${DISTVERSIONFULL}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T - && \
|
||||||
|
${RM} -r ${PORTNAME}-${DISTVERSIONFULL}; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
math/ttmath/distinfo
Normal file
3
math/ttmath/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1656531839
|
||||||
|
SHA256 (ttmath-0.9.3.20191013.tar.gz) = be79987c86f5139cf0ee6ca985412629af9631b967ee495be46065b15f04401d
|
||||||
|
SIZE (ttmath-0.9.3.20191013.tar.gz) = 2194590
|
5
math/ttmath/pkg-descr
Normal file
5
math/ttmath/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
TTMath is a small library which allows one to perform arithmetic
|
||||||
|
operations with big unsigned integer, big signed integer and big
|
||||||
|
floating point numbers.
|
||||||
|
|
||||||
|
WWW: https://ttmath.org
|
15
math/ttmath/pkg-plist
Normal file
15
math/ttmath/pkg-plist
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
include/ttmath/ttmath.h
|
||||||
|
include/ttmath/ttmathbig.h
|
||||||
|
include/ttmath/ttmathdec.h
|
||||||
|
include/ttmath/ttmathint.h
|
||||||
|
include/ttmath/ttmathmisc.h
|
||||||
|
include/ttmath/ttmathobjects.h
|
||||||
|
include/ttmath/ttmathparser.h
|
||||||
|
include/ttmath/ttmaththreads.h
|
||||||
|
include/ttmath/ttmathtypes.h
|
||||||
|
include/ttmath/ttmathuint.h
|
||||||
|
include/ttmath/ttmathuint_noasm.h
|
||||||
|
include/ttmath/ttmathuint_x86.h
|
||||||
|
include/ttmath/ttmathuint_x86_64.h
|
||||||
|
include/ttmath/ttmathuint_x86_64_msvc.asm
|
||||||
|
include/ttmath/win64_assemble.bat
|
Loading…
Add table
Reference in a new issue