Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2017 15:14:44 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431277 - head/math/libmissing
Message-ID:  <201701121514.v0CFEifD020841@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Jan 12 15:14:44 2017
New Revision: 431277
URL: https://svnweb.freebsd.org/changeset/ports/431277

Log:
  - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
  - Switch to new test framework
  - Whitespace fixes
  - Switch to options helpers

Modified:
  head/math/libmissing/Makefile

Modified: head/math/libmissing/Makefile
==============================================================================
--- head/math/libmissing/Makefile	Thu Jan 12 14:44:56 2017	(r431276)
+++ head/math/libmissing/Makefile	Thu Jan 12 15:14:44 2017	(r431277)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701121514.v0CFEifD020841>