aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskreuzer <skreuzer@FreeBSD.org>2009-07-17 21:33:42 +0800
committerskreuzer <skreuzer@FreeBSD.org>2009-07-17 21:33:42 +0800
commitcf33eb1a2c5ad8d0474895dbef7e2f856e979eae (patch)
treed33b273ae453f8e6b8fd262d1c98b0873595afba
parentc629e6af55d9b29d280fda55a87f8e99b9aabe2b (diff)
downloadfreebsd-ports-gnome-cf33eb1a2c5ad8d0474895dbef7e2f856e979eae.tar.gz
freebsd-ports-gnome-cf33eb1a2c5ad8d0474895dbef7e2f856e979eae.tar.zst
freebsd-ports-gnome-cf33eb1a2c5ad8d0474895dbef7e2f856e979eae.zip
Only compile the c tests if WITHOUT_CTESTS is not defined
Only define USE_FORTRAN if WITHOUT_FTESTS is not defined PR: ports/136826 Approved by: redcrash@gmail.com (maintainer); wxs (mentor)
-rw-r--r--devel/papi/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/devel/papi/Makefile b/devel/papi/Makefile
index 820951baa737..86253f9f9261 100644
--- a/devel/papi/Makefile
+++ b/devel/papi/Makefile
@@ -26,18 +26,13 @@ HAS_CONFIGURE= yes
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 @@ IGNORE= needs hwmpc module loaded or compiled into the kernel. \
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)