92a479b4b1
* Use Clang on i386. Build succeeds with all supported FreeBSD versions. * Switch to use release archive as per section 5.4.3 of Porter's Handbook. * Remove post-patch target. It is no-op now as version 0.13.1 doesn't use "%cc" in inline assembly codes any more. * Add LICENSE_FILE. * Tidy up Makefile with portfmt.
32 lines
731 B
Makefile
32 lines
731 B
Makefile
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>
|