From owner-svn-ports-head@freebsd.org Thu Jan 12 15:14:45 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2F63CAC65B; Thu, 12 Jan 2017 15:14:45 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93DD7128B; Thu, 12 Jan 2017 15:14:45 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0CFEin2020842; Thu, 12 Jan 2017 15:14:44 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0CFEifD020841; Thu, 12 Jan 2017 15:14:44 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201701121514.v0CFEifD020841@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 12 Jan 2017 15:14:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431277 - head/math/libmissing X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2017 15:14:45 -0000 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 -.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 \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 /{x;s|^.*$$|#include "missing_math.h"|;H;x;}' \ + '/#include /{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