aboutsummaryrefslogtreecommitdiffstats
path: root/math/tomsfastmath/Makefile
blob: 35c74ea974f42052caad54ec951a2295fe75589c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PORTNAME=	tomsfastmath
PORTVERSION=	0.13.1
PORTREVISION=	4
CATEGORIES=	math
MASTER_SITES=	https://github.com/libtom/${PORTNAME}/releases/download/v${DISTVERSION}/
DISTNAME=	tfm-${DISTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Portable fixed precision math library for fast exponentiations
WWW=		https://libtom.net/

LICENSE=	PD WTFPL
LICENSE_COMB=	dual
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		gmake tar:xz

MAKEFILE=	makefile
ALL_TARGET=	default
CFLAGS+=	-fPIC

WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}

PLIST_FILES=	include/tfm.h \
		lib/libtfm.a

do-install:
	${INSTALL_DATA} ${WRKSRC}/src/headers/tfm.h ${STAGEDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/libtfm.a ${STAGEDIR}${PREFIX}/lib

.include <bsd.port.mk>