diff options
author | joerg <joerg@pkgsrc.org> | 2016-04-03 12:45:39 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-04-03 12:45:39 +0000 |
commit | 3b1d8f16ea9a8d9e1005546f9bc73e9bcb228728 (patch) | |
tree | a402296051b924e74d7b338273f384c4b5e39455 /math/fftwf/Makefile | |
parent | 5b8ac01b7a8bde9327865655dfc0a94f9e138787 (diff) | |
download | pkgsrc-3b1d8f16ea9a8d9e1005546f9bc73e9bcb228728.tar.gz |
Similar to math/fftw, include the thread version when native threading
exists. Bump revision.
Diffstat (limited to 'math/fftwf/Makefile')
-rw-r--r-- | math/fftwf/Makefile | 18 |
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} \ |