FFTW 3.3.6-pl1: * Bugfix: FFTW 3.3.6 had the wrong libtool version number, and generated shared libraries of the form libfftw3.so.2.6.6 instead of libfftw3.so.3.*. FFTW 3.3.6: * The fftw_make_planner_thread_safe() API introduced in 3.3.5 didn't work, and this 3.3.6 fixes it. Sorry about that. * compilation fixes for IBM XLC * compilation fixes for threads on Windows * fix SIMD autodetection on amd64 when (_MSC_VER > 1500)
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.24 2017/01/22 14:48:57 wiz Exp $
|
|
|
|
DISTNAME= fftw-3.3.6-pl1
|
|
PKGNAME= ${DISTNAME:C/fftw/fftwf/:S/-pl1/pl1/}
|
|
CATEGORIES= math
|
|
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/
|
|
MASTER_SITES+= http://www.fftw.org/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.fftw.org/
|
|
COMMENT= Collection of fast C routines to compute DFTs
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_LIBTOOL= yes
|
|
PKGCONFIG_OVERRIDE+= fftw.pc.in
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
CONFIGURE_ARGS+= --enable-float
|
|
|
|
DEPENDS+= fftw>=3.2:../../math/fftw
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
#CONFIGURE_ARGS+= --enable-sse
|
|
CONFIGURE_ARGS+= --with-our-malloc16
|
|
.endif
|
|
USE_LANGUAGES= c fortran77
|
|
USE_TOOLS+= gmake
|
|
# For the "test" target:
|
|
USE_TOOLS+= perl
|
|
|
|
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} \
|
|
install-binPROGRAMS
|
|
${INSTALL_MAN} ${WRKSRC}/tools/fftwf-wisdom.1 \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|