From owner-svn-ports-all@FreeBSD.ORG Mon Feb 4 08:49:11 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B0CC713B; Mon, 4 Feb 2013 08:49:11 +0000 (UTC) (envelope-from araujo@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 8C35230D; Mon, 4 Feb 2013 08:49:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r148nBci058273; Mon, 4 Feb 2013 08:49:11 GMT (envelope-from araujo@svn.freebsd.org) Received: (from araujo@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r148nBq8058272; Mon, 4 Feb 2013 08:49:11 GMT (envelope-from araujo@svn.freebsd.org) Message-Id: <201302040849.r148nBq8058272@svn.freebsd.org> From: Marcelo Araujo Date: Mon, 4 Feb 2013 08:49:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311582 - head/benchmarks/flops X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 08:49:11 -0000 Author: araujo Date: Mon Feb 4 08:49:11 2013 New Revision: 311582 URL: http://svnweb.freebsd.org/changeset/ports/311582 Log: - Fix build using CLANG. PR: ports/175010 Submitted by: KATO Tsuguru Modified: head/benchmarks/flops/Makefile (contents, props changed) Modified: head/benchmarks/flops/Makefile ============================================================================== --- head/benchmarks/flops/Makefile Mon Feb 4 08:47:40 2013 (r311581) +++ head/benchmarks/flops/Makefile Mon Feb 4 08:49:11 2013 (r311582) @@ -1,32 +1,37 @@ -# New ports collection makefile for: flops -# Date created: 06 Jul 2005 -# Whom: Alexey Dokuchaev -# +# Created by: Alexey Dokuchaev # $FreeBSD$ -# PORTNAME= flops PORTVERSION= 2.0 CATEGORIES= benchmarks MASTER_SITES= http://mbsd.msk.ru/dist/ DISTFILES= ${PORTNAME}.c ${PORTNAME}.doc +EXTRACT_ONLY= # MAINTAINER= ports@FreeBSD.org COMMENT= Floating point benchmark to give your MFLOPS rating -PLIST_FILES= bin/flops +NO_WRKSUBDIR= yes + PORTDOCS= flops.doc +PLIST_FILES= bin/flops + +.include -do-extract: .SILENT - ${MKDIR} ${WRKSRC} - ${CP} ${DISTDIR}/flops.c ${DISTDIR}/flops.doc ${WRKSRC} +post-extract: + @(cd ${DISTDIR} && ${TAR} -cf - ${DISTFILES}) | \ + (cd ${WRKSRC} && ${TAR} -xf -) + +post-patch: + @${REINPLACE_CMD} -e \ + 's|^void main|int main|' ${WRKSRC}/flops.c do-build: (cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin -.if !defined(NOPORTDOCS) + ${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin/ +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/flops.doc ${DOCSDIR} .endif