summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2016-04-03 12:45:39 +0000
committerjoerg <joerg@pkgsrc.org>2016-04-03 12:45:39 +0000
commit3b1d8f16ea9a8d9e1005546f9bc73e9bcb228728 (patch)
treea402296051b924e74d7b338273f384c4b5e39455
parent5b8ac01b7a8bde9327865655dfc0a94f9e138787 (diff)
downloadpkgsrc-3b1d8f16ea9a8d9e1005546f9bc73e9bcb228728.tar.gz
Similar to math/fftw, include the thread version when native threading
exists. Bump revision.
-rw-r--r--math/fftwf/Makefile18
-rw-r--r--math/fftwf/PLIST3
2 files changed, 19 insertions, 2 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} \
diff --git a/math/fftwf/PLIST b/math/fftwf/PLIST
index 0db26fc5871..9bca62becb7 100644
--- a/math/fftwf/PLIST
+++ b/math/fftwf/PLIST
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/02 12:06:42 wulf Exp $
+@comment $NetBSD: PLIST,v 1.2 2016/04/03 12:45:39 joerg Exp $
bin/fftwf-wisdom
lib/libfftw3f.la
+${PLIST.pthreads}lib/libfftw3f_threads.la
lib/pkgconfig/fftw3f.pc
man/man1/fftwf-wisdom.1