diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-01-12 23:14:44 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-01-12 23:14:44 +0800 |
commit | 89d3cdb3622759c4ba14bd0849b4ec5f21b3b858 (patch) | |
tree | e3c7a90bac90f8d18e1cc4bbb3380e65c9d5a2f7 /math/libmissing | |
parent | b064a69dcfdb47f31e76dcaa09945e2ab9f102d8 (diff) | |
download | freebsd-ports-gnome-89d3cdb3622759c4ba14bd0849b4ec5f21b3b858.tar.gz freebsd-ports-gnome-89d3cdb3622759c4ba14bd0849b4ec5f21b3b858.tar.zst freebsd-ports-gnome-89d3cdb3622759c4ba14bd0849b4ec5f21b3b858.zip |
- Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
- Switch to new test framework
- Whitespace fixes
- Switch to options helpers
Diffstat (limited to 'math/libmissing')
-rw-r--r-- | math/libmissing/Makefile | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/math/libmissing/Makefile b/math/libmissing/Makefile index 90eb2093fe89..6cd36855882e 100644 --- a/math/libmissing/Makefile +++ b/math/libmissing/Makefile @@ -30,15 +30,11 @@ SHLIB_MAJOR= 2 SRCS= libmissing.c CFLAGS+= -fno-builtin -fno-math-errno -I. -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib -Wl,-z,interpose PORTEXAMPLES= ${SRCS} .include <bsd.port.options.mk> -.if ${OSVERSION} > 1000054 -LDFLAGS+= -Wl,-z,interpose -.endif - .if ${PORT_OPTIONS:MPROFILE} .if !exists(/usr/lib/libc_p.a) IGNORE= you have chosen WITH_PROFILE, but have not installed the\ @@ -51,26 +47,26 @@ MAKE_ENV+= NO_PROFILE=yes post-patch: @${PRINTF} "LIBDIR=\t${PREFIX}/lib\n.include <bsd.lib.mk>\n" > \ - ${WRKSRC}/Makefile + ${WRKSRC}/Makefile .for t in d q s @cd ${WRKSRC}/c/common; ${CP} initseed.c maxtest.c ${WRKSRC}/c/${t}p/ .endfor @${REINPLACE_CMD} -E \ - '/(XCFLAGS|XDEFINES|XINCLUDES|XLDFLAGS|XLIBS|XMFLAGS|XOPT)[[:blank:]]+=/d' \ + '/(XCFLAGS|XDEFINES|XINCLUDES|XLDFLAGS|XLIBS|XMFLAGS|XOPT)[[:blank:]]+=/d' \ ${WRKSRC}/c/Makefile @${REINPLACE_CMD} -e \ - '/#include <math.h>/{x;s|^.*$$|#include "missing_math.h"|;H;x;}' \ + '/#include <math.h>/{x;s|^.*$$|#include "missing_math.h"|;H;x;}' \ ${WRKSRC}/c/common/elefunt.h @${REINPLACE_CMD} -e '\|COMMONOBJS[[:blank:]]*=|s|../common/||g' \ ${WRKSRC}/c/dp/Makefile \ ${WRKSRC}/c/qp/Makefile \ ${WRKSRC}/c/sp/Makefile -check regression-test test: build +do-test: @cd ${WRKSRC}/c; ${SETENV} ${MAKE_ENV} XCFLAGS="${CFLAGS} -frounding-math" \ - XINCLUDES="-I${WRKSRC}" XLDFLAGS="${LDFLAGS}" XLIBS="-L${WRKSRC} -lmissing" \ - LD_LIBRARY_PATH="/lib:/usr/lib:${LOCALBASE}/lib:${WRKSRC}" \ - ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all3 + XINCLUDES="-I${WRKSRC}" XLDFLAGS="${LDFLAGS}" XLIBS="-L${WRKSRC} -lmissing" \ + LD_LIBRARY_PATH="/lib:/usr/lib:${LOCALBASE}/lib:${WRKSRC}" \ + ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all3 .for t in d q s @${PRINTF} "\n\n\n\t\t%s\n\n\n" "REPORT OF ${t:tu}. PRECISION TEST RESULTS:" @${CAT} ${WRKSRC}/c/${t}p/tall${t}p.lst-xxx @@ -79,7 +75,9 @@ check regression-test test: build post-install: @cd ${WRKSRC}; ${INSTALL_DATA} missing_complex.h missing_math.h \ ${STAGEDIR}${PREFIX}/include + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - @cd ${WRKSRC}; ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> |