aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-10-22 12:25:30 +0000
committerpsykose <alice@ayaya.dev>2022-10-22 14:25:49 +0200
commitb1a546b721877c68f946fdc1c5efe80d97dd81da (patch)
tree6daf8a8b10631b7797dab43a6a341639d3f677e8
parentdb70a5f740b5c692d149da88d69ab0b5e1381021 (diff)
downloadaports-b1a546b721877c68f946fdc1c5efe80d97dd81da.tar.gz
aports-b1a546b721877c68f946fdc1c5efe80d97dd81da.tar.bz2
aports-b1a546b721877c68f946fdc1c5efe80d97dd81da.tar.xz
main/fftw: use O2
-rw-r--r--main/fftw/APKBUILD29
1 files changed, 14 insertions, 15 deletions
diff --git a/main/fftw/APKBUILD b/main/fftw/APKBUILD
index 0448459398a..844f7aaf77d 100644
--- a/main/fftw/APKBUILD
+++ b/main/fftw/APKBUILD
@@ -3,15 +3,20 @@
pkgname=fftw
pkgver=3.3.10
_pkgver=${pkgver//p/-pl}
-pkgrel=0
+pkgrel=1
pkgdesc="Discrete Fourier transform (DFT) library"
url="http://www.fftw.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="texinfo"
# order of the libs split functions are important because of lib naming
-subpackages="$pkgname-dev $pkgname-doc $pkgname-single-libs:single
- $pkgname-long-double-libs:long_double $pkgname-double-libs:double"
+subpackages="
+ $pkgname-dev
+ $pkgname-doc
+ $pkgname-single-libs:single
+ $pkgname-long-double-libs:long_double
+ $pkgname-double-libs:double
+ "
source="http://www.fftw.org/fftw-$_pkgver.tar.gz
cycle.h.patch
"
@@ -33,8 +38,9 @@ prepare() {
}
build() {
- local _openmp=
-
+ export CFLAGS="$CFLAGS -O2"
+ export CXXFLAGS="$CXXFLAGS -O2"
+ export CPPFLAGS="$CPPFLAGS -O2"
local i; for i in $_precision; do
case "$i" in
single) _cf="--enable-single";;
@@ -60,7 +66,6 @@ build() {
--infodir=/usr/share/info \
--enable-shared \
--enable-threads \
- $_openmp \
$_cf
make
done
@@ -81,21 +86,15 @@ package() {
}
single() {
- mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/libfftw3f*.so* \
- "$subpkgdir"/usr/lib/
+ amove usr/lib/libfftw3f*.so*
}
double() {
- mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/libfftw3*.so* \
- "$subpkgdir"/usr/lib/
+ amove usr/lib/libfftw3*.so*
}
long_double() {
- mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/libfftw3l*.so* \
- "$subpkgdir"/usr/lib/
+ amove usr/lib/libfftw3l*.so*
}
sha512sums="