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:
parent
e286eb2421
commit
b452548824
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358758
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user