Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2009 15:59:41 -0400 (EDT)
From:      Steven Kreuzer <skreuzer@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        redcrash@gmail.com
Subject:   ports/136826: [PATCH] devel/papi: Remove dependancy on Fortran
Message-ID:  <200907161959.n6GJxfUf087421@slurry.exit2shell.com>
Resent-Message-ID: <200907162000.n6GK0Eb5012143@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136826
>Category:       ports
>Synopsis:       [PATCH] devel/papi: Remove dependancy on Fortran
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 16 20:00:14 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Steven Kreuzer
>Release:        FreeBSD 7.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD slurry.exit2shell.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Nov 24 14:01:09 EST 2008
>Description:
Only compile the c tests if WITHOUT_CTESTS is not defined
Only define USE_FORTRAN if WITHOUT_FTESTS is not defined

Port maintainer (redcrash@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- papi-3.6.2_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/papi/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile	15 Jul 2009 17:58:52 -0000	1.14
+++ Makefile	16 Jul 2009 19:53:17 -0000
@@ -26,18 +26,13 @@
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
 WRKMAN=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/man
 
-# Although the package may not install the fortran binaries, it requires the
-# fortran compiler
-USE_FORTRAN=	yes
-FFLAGS=		-fdefault-integer-8 -fno-range-check
-
 OPTIONS=	CTESTS "Install C tests" On
 OPTIONS+=	FTESTS "Install Fortran tests" On
 OPTIONS+=	DEBUG  "Add debug information (increased verbosity)" Off
 
 .include <bsd.port.pre.mk>
 
-HAS_HWMPC!=     ${SYSCTL} kern.hwpmc >/dev/null 2>&1 && echo yes || true
+HAS_HWMPC!=	${SYSCTL} kern.hwpmc >/dev/null 2>&1 && echo yes || true
 
 .if ${HAS_HWMPC} != "yes"
 IGNORE=		needs hwmpc module loaded or compiled into the kernel. \
@@ -48,12 +43,16 @@
 PLIST_SUB+=	CTESTS="@comment "
 .else
 PLIST_SUB+=	CTESTS=""
+CONFIGURE_ARGS+=	--with-tests=ctests
 .endif
 
 .if defined(WITHOUT_FTESTS)
 PLIST_SUB+=	FTESTS="@comment "
 .else
 PLIST_SUB+=	FTESTS=""
+USE_FORTRAN=	yes
+CONFIGURE_ARGS+=	--with-tests="ctests ftests"
+FFLAGS=		-fdefault-integer-8 -fno-range-check
 .endif
 
 .if defined(WITHOUT_DEBUG)
--- papi-3.6.2_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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