1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Turn "WITH_OPENMP" into a proper OPTION.

This commit is contained in:
Adam Weinberger 2014-06-21 23:59:06 +00:00
parent e286eb2421
commit b452548824
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358758

View File

@ -16,15 +16,16 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--without-java
USE_LDCONFIG= yes
OPTIONS_DEFINE= OPENMP
OPENMP_CONFIGURE_ENABLE= openmp
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s|-pthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure
.if defined(WITH_OPENMP)
.if ${PORT_OPTIONS:MOPENMP}
@${ECHO_MSG} "Configuring for OpenMP support"
@${ECHO_MSG} "Any ports depending on beecrypt must be configured for OpenMP too."
CONFIGURE_ARGS+= --enable-openmp
.else
CONFIGURE_ARGS+= --disable-openmp
.endif
# Configure tries to guess our CPU-features using Linux-centric logic.