fftw: fix cmake module
This commit is contained in:
parent
02c699a77a
commit
3ef79be26c
|
@ -1,8 +1,8 @@
|
|||
# Template file for 'fftw'
|
||||
pkgname=fftw
|
||||
version=3.3.10
|
||||
revision=1
|
||||
hostmakedepends="libtool automake"
|
||||
revision=2
|
||||
hostmakedepends="libtool automake cmake"
|
||||
makedepends="libgomp-devel"
|
||||
short_desc="Library for computing the discrete Fourier transform (DFT)"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
|
@ -37,6 +37,18 @@ do_configure() {
|
|||
mkdir ${wrksrc}/build-single
|
||||
cd ${wrksrc}/build-single
|
||||
../configure ${configure_args} ${CARGS} --enable-float ${_sse}
|
||||
|
||||
cd ${wrksrc}
|
||||
# fix wrong soname in FFTW3LibraryDepends.cmake
|
||||
vsed -e 's/3.6.9/3.6.10/' -i CMakeLists.txt
|
||||
|
||||
# create missing FFTW3LibraryDepends.cmake
|
||||
cmake -B build -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=None \
|
||||
-D ENABLE_OPENMP=ON -D ENABLE_THREADS=ON -D ENABLE_FLOAT=ON \
|
||||
-D ENABLE_LONG_DOUBLE=ON -D ENABLE_QUAD_PRECISION=ON -D ENABLE_SSE=ON \
|
||||
-D ENABLE_SSE2=ON -D ENABLE_AVX=ON -D ENABLE_AVX2=ON
|
||||
# fix broken IMPORTED_LOCATION: https://github.com/FFTW/fftw3/issues/130#issuecomment-1030280157
|
||||
sed -e 's|\(IMPORTED_LOCATION_NONE\).*|\1 "/usr/lib/libfftw3.so.3"|' -i build/FFTW3LibraryDepends.cmake
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
@ -58,6 +70,7 @@ do_install() {
|
|||
cd ${wrksrc}/build-${f}
|
||||
make DESTDIR=${DESTDIR} install
|
||||
done
|
||||
vinstall ${wrksrc}/build/FFTW3LibraryDepends.cmake 644 usr/lib/cmake/fftw3/
|
||||
}
|
||||
|
||||
libfftw_package() {
|
||||
|
|
Loading…
Reference in New Issue