From owner-svn-ports-head@FreeBSD.ORG Sun Mar 3 02:09:07 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 956A84A2; Sun, 3 Mar 2013 02:09:07 +0000 (UTC) (envelope-from bf@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 711EDDF9; Sun, 3 Mar 2013 02:09:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r232978l037210; Sun, 3 Mar 2013 02:09:07 GMT (envelope-from bf@svn.freebsd.org) Received: (from bf@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r23297gM037206; Sun, 3 Mar 2013 02:09:07 GMT (envelope-from bf@svn.freebsd.org) Message-Id: <201303030209.r23297gM037206@svn.freebsd.org> From: Brendan Fabeny Date: Sun, 3 Mar 2013 02:09:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313321 - head/math/msieve 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.14 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: Sun, 03 Mar 2013 02:09:07 -0000 Author: bf Date: Sun Mar 3 02:09:06 2013 New Revision: 313321 URL: http://svnweb.freebsd.org/changeset/ports/313321 Log: update to 1.51; switch to new options format Modified: head/math/msieve/Makefile (contents, props changed) head/math/msieve/distinfo (contents, props changed) Modified: head/math/msieve/Makefile ============================================================================== --- head/math/msieve/Makefile Sun Mar 3 02:05:27 2013 (r313320) +++ head/math/msieve/Makefile Sun Mar 3 02:09:06 2013 (r313321) @@ -1,17 +1,13 @@ -# New ports collection makefile for: msieve -# Date created: 2007-01-02 -# Whom: Daniel Roethlisberger -# +# Created by: Daniel Roethlisberger # $FreeBSD$ -# PORTNAME= msieve -PORTVERSION= 1.50 +PORTVERSION= 1.51 CATEGORIES= math MASTER_SITES= SF MASTER_SITE_SUBDIR= \ - ${PORTNAME}/${PORTNAME}/${PORTNAME:C/^m/M/}%20v${PORTVERSION}/ -DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}src + ${PORTNAME}/${PORTNAME}/${PORTNAME:C/^m/M/}%20v${PORTVERSION} +DISTNAME= ${PORTNAME}${PORTVERSION:S/.//} MAINTAINER= bf@FreeBSD.org COMMENT= Fast factorization of big integers using MPQS and GNFS @@ -20,50 +16,63 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libecm.a WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_GMAKE= yes -CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" ECM=1 +MAKE_ENV= ECM=1 HEADERS= mp.h msieve.h util.h PLIST_FILES= bin/msieve lib/libmsieve.a ${HEADERS:S|^|include/msieve/|} PLIST_DIRS= include/msieve PORTDOCS= Changes Readme Readme.nfs Readme.qs -OPTIONS= OCFLAGS "Enable optimized CFLAGS" On +OPTIONS_DEFINE= OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= OPTIMIZED_CFLAGS -.include +.include -.if !defined(WITHOUT_OCFLAGS) -CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -DNDEBUG +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} +CFLAGS+= -O3 -ffast-math +.if defined(WITHOUT_DEBUG) || !defined(WITH_DEBUG) +CFLAGS+= -fomit-frame-pointer -DNDEBUG +.endif .endif -.if ${OSVERSION} >= 700042 && ${ARCH} == "sparc64" -BROKEN= Does not compile on sparc64 +.if ${MACHINE_CPU:Mathlon} +CFLAGS+= -DHAS_AMD_MMX +.endif + +.if ${MACHINE_CPU:Msse} +CFLAGS+= -DHAS_SSE .endif -.if ${ARCH} == "i386" -ALL_TARGET= x86 -.elif ${ARCH} == "amd64" -ALL_TARGET= x86_64 -.else -ALL_TARGET= generic +.if ${MACHINE_CPU:Msse2} +CFLAGS+= -DHAS_SSE2 +.endif + +.if ${OSVERSION} >= 700042 && ${ARCH} == "sparc64" +BROKEN= Does not compile on sparc64 .endif post-patch: - @${REINPLACE_CMD} -e "\|^CC =|d" -e "\|^OPT_FLAGS =|d" \ - -e "\|^CFLAGS =|s|=|+=|" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -E \ + -e '/(^(CC|OPT_FLAGS) =|-DNDEBUG|svnversion|-ldl)/d' \ + -e '/^CFLAGS =/s/=/+=/' \ + -e 's@-Ignfs/poly/stage1@& -I${LOCALBASE}/include@' \ + -e 's@-lecm@-L${LOCALBASE}/lib &@' \ + -e 's/-lpthread/-pthread/' \ + -e 's/-DHAS_SSE2//' \ + ${WRKSRC}/Makefile do-install: @${INSTALL_PROGRAM} ${WRKSRC}/msieve ${PREFIX}/bin @${MKDIR} ${PREFIX}/include/msieve - @(cd ${WRKSRC}/include; ${INSTALL_DATA} ${HEADERS} ${PREFIX}/include/msieve) - @${INSTALL_DATA} ${WRKSRC}/libmsieve.a ${PREFIX}/lib -.if !defined(NOPORTDOCS) + @cd ${WRKSRC}/include; ${INSTALL_DATA} ${HEADERS} ${PREFIX}/include/msieve + @${INSTALL_LIB} ${WRKSRC}/libmsieve.a ${PREFIX}/lib +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - @(cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) + @cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif regression-test test check: build - @(cd ${WRKSRC}; ./msieve -q -d 1 2385734365243128176756453434347656453122245767798) + @cd ${WRKSRC}; \ + ./msieve -q -d 1 2385734365243128176756453434347656453122245767798 -.include +.include Modified: head/math/msieve/distinfo ============================================================================== --- head/math/msieve/distinfo Sun Mar 3 02:05:27 2013 (r313320) +++ head/math/msieve/distinfo Sun Mar 3 02:09:06 2013 (r313321) @@ -1,2 +1,2 @@ -SHA256 (msieve150src.tar.gz) = 42e58975fe03ba8d3ffae096962aa4d53d381aa0f9cfb5e6244da11eadcce676 -SIZE (msieve150src.tar.gz) = 547458 +SHA256 (msieve151.tar.gz) = 26bc1d0d89325986aacfbafb687451f3de5da1bd388e087ec3ac24813e9dc948 +SIZE (msieve151.tar.gz) = 623885