Changeset View
Changeset View
Standalone View
Standalone View
head/math/crlibm/Makefile
Show All 25 Lines | |||||
TEST_DESC= Include all test capabilities (requires MPFR) | TEST_DESC= Include all test capabilities (requires MPFR) | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if make(makesum) || ${PORT_OPTIONS:MDOCS} | .if make(makesum) || ${PORT_OPTIONS:MDOCS} | ||||
DISTFILES+= crlibm-1.0beta3.pdf:2,4 tripledoubleprocedures-1.0beta3.pdf:3,4 | DISTFILES+= crlibm-1.0beta3.pdf:2,4 tripledoubleprocedures-1.0beta3.pdf:3,4 | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
#7-STABLE has log2() in libm after r226457 on 17 Oct 2011, but | |||||
#there was no accompanying __FreeBSD_version bump | |||||
.if ${OSVERSION} < 802502 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900027) | |||||
@${REINPLACE_CMD} \ | |||||
-e '/testfun_libm[[:blank:]]*=[[:blank:]]*log2;/s/log2/NULL/' \ | |||||
${WRKSRC}/tests/test_common.c | |||||
.endif | |||||
@${REINPLACE_CMD} -e 's/\($$(AM_CFLAGS)\) \($$(CFLAGS)\)/\2 \1/' \ | @${REINPLACE_CMD} -e 's/\($$(AM_CFLAGS)\) \($$(CFLAGS)\)/\2 \1/' \ | ||||
${WRKSRC}/tests/Makefile.in | ${WRKSRC}/tests/Makefile.in | ||||
.if !empty(MACHINE_CPU:Msse2) | .if !empty(MACHINE_CPU:Msse2) | ||||
CFLAGS+= -msse2 -mfpmath=sse | CFLAGS+= -msse2 -mfpmath=sse | ||||
CONFIGURE_ARGS+= --enable-sse2 | CONFIGURE_ARGS+= --enable-sse2 | ||||
.endif | .endif | ||||
Show All 21 Lines |