summaryrefslogtreecommitdiff
path: root/math/fftwf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/fftwf/Makefile')
-rw-r--r--math/fftwf/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/math/fftwf/Makefile b/math/fftwf/Makefile
index 332e0ba4b78..21e4ec872c2 100644
--- a/math/fftwf/Makefile
+++ b/math/fftwf/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2015/12/11 13:53:26 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2016/04/03 12:45:39 joerg Exp $
DISTNAME= fftw-3.3.4
PKGNAME= ${DISTNAME:C/fftw/fftwf/}
+PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/ \
http://www.fftw.org/
@@ -33,7 +34,22 @@ TEST_TARGET= check
INSTALLATION_DIRS= ${PKGMANDIR}/man1
INSTALL_TARGET= install-libLTLIBRARIES install-pkgconfigDATA
+
+PLIST_VARS+= pthreads
+PTHREAD_OPTS= native
+.include "../../mk/pthread.buildlink3.mk"
+.if !empty(PTHREAD_TYPE:Mnative)
+CONFIGURE_ARGS+= --enable-threads
+PLIST.pthreads= yes
+.endif
+
post-install:
+.if !empty(PTHREAD_TYPE:Mnative)
+ cd ${WRKSRC}/threads && \
+ ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_MAKE_FLAGS} \
+ install-libLTLIBRARIES
+.endif
cd ${WRKSRC}/tools && \
${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_MAKE_FLAGS} \