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)
This commit is contained in:
Steven Kreuzer 2009-07-17 13:33:42 +00:00
parent c8e49857d6
commit 1da782d046
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=237982

View File

@ -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)