diff options
author | wiz <wiz@pkgsrc.org> | 2012-10-24 08:57:46 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-10-24 08:57:46 +0000 |
commit | e2d39cc569ace207fda60b8465f1068b3760f8f2 (patch) | |
tree | 1ad4e83cc8b17987787af0f80f452d71d629d90e /math | |
parent | 7edb0c3452784c3bb416919855a38ee64c60cd6b (diff) | |
download | pkgsrc-e2d39cc569ace207fda60b8465f1068b3760f8f2.tar.gz |
If a native pthreads implementation is available, also install
libfftw3_threads. Bump PKGREVISION.
Diffstat (limited to 'math')
-rw-r--r-- | math/fftw/Makefile | 13 | ||||
-rw-r--r-- | math/fftw/PLIST | 3 |
2 files changed, 13 insertions, 3 deletions
diff --git a/math/fftw/Makefile b/math/fftw/Makefile index 09527a59dcb..62340800398 100644 --- a/math/fftw/Makefile +++ b/math/fftw/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.40 2012/10/03 21:56:36 wiz Exp $ +# $NetBSD: Makefile,v 1.41 2012/10/24 08:57:46 wiz Exp $ DISTNAME= fftw-3.3.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= math MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/ \ http://www.fftw.org/ @@ -30,4 +30,13 @@ TEST_TARGET= check USE_TOOLS+= perl .endif +PLIST_VARS+= pthreads + +PTHREAD_OPTS= native +.include "../../mk/pthread.buildlink3.mk" +.if !empty(PTHREAD_TYPE:Mnative) +CONFIGURE_ARGS+= --enable-threads +PLIST.pthreads= yes +.endif + .include "../../mk/bsd.pkg.mk" diff --git a/math/fftw/PLIST b/math/fftw/PLIST index d4e32ae837b..012a3c01e85 100644 --- a/math/fftw/PLIST +++ b/math/fftw/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.11 2012/03/03 11:45:07 adam Exp $ +@comment $NetBSD: PLIST,v 1.12 2012/10/24 08:57:46 wiz Exp $ bin/fftw-wisdom bin/fftw-wisdom-to-conf include/fftw3.f @@ -8,6 +8,7 @@ include/fftw3l.f03 include/fftw3q.f03 info/fftw3.info lib/libfftw3.la +${PLIST.pthreads}lib/libfftw3_threads.la lib/pkgconfig/fftw3.pc man/man1/fftw-wisdom-to-conf.1 man/man1/fftw-wisdom.1 |