diff --git a/fftw.yaml b/fftw.yaml new file mode 100644 index 00000000000..841ca097f68 --- /dev/null +++ b/fftw.yaml @@ -0,0 +1,111 @@ +# Generated from https://git.alpinelinux.org/aports/plain/main/fftw/APKBUILD +package: + name: fftw + version: 3.3.10 + epoch: 0 + description: Discrete Fourier transform (DFT) library + copyright: + - license: GPL-2.0-or-later + +environment: + contents: + packages: + - busybox + - ca-certificates-bundle + - build-base + - automake + - autoconf + - texinfo + +pipeline: + - uses: fetch + with: + expected-sha256: 56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467 + uri: http://www.fftw.org/fftw-${{package.version}}.tar.gz + extract: false + + - runs: | + # We build 3 times, so make 3 copies of the build. + + _precision="single double long-double" + basedir=$(pwd) + for i in $_precision; do + mkdir -p $basedir/$i + cd $basedir/$i + tar --strip-components=1 -xf ../fftw-${{package.version}}.tar.gz + done + + _openmp= + for i in $_precision; do + case "$i" in + single) _cf="--enable-single";; + double) _cf="";; + long-double) _cf="--enable-long-double";; + esac + + case "$i--$CARCH" in + single--x86_64 | double--x86_64) + _cf="$_cf --enable-sse2 --enable-avx";; + single--arm* | single--aarch64) + _cf="$_cf --enable-neon";; + esac + + echo "Building for $i precision ($_cf)" + cd "$basedir"/$i + ls + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-shared \ + --enable-threads \ + $_openmp \ + $_cf + make + done + + for i in $_precision; do + cd "$basedir"/$i + make DESTDIR="${{targets.destdir}}" install + done + + - uses: strip + +subpackages: + - name: fftw-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - fftw + description: fftw dev + + - name: fftw-doc + pipeline: + - uses: split/manpages + description: fftw manpages + + - name: fftw-single-libs + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}}/usr/lib + mv "${{targets.destdir}}"/usr/lib/libfftw3f*.so* "${{targets.subpkgdir}}"/usr/lib/ + + - name: fftw-long-double-libs + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}}/usr/lib + mv "${{targets.destdir}}"/usr/lib/libfftw3l*.so* "${{targets.subpkgdir}}"/usr/lib/ + + - name: fftw-double-libs + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}}/usr/lib + mv "${{targets.destdir}}"/usr/lib/libfftw3*.so* "${{targets.subpkgdir}}"/usr/lib/ + +update: + release-monitor: + identifier: 803 diff --git a/libsamplerate.yaml b/libsamplerate.yaml new file mode 100644 index 00000000000..0beac8c71f6 --- /dev/null +++ b/libsamplerate.yaml @@ -0,0 +1,57 @@ +# Generated from https://git.alpinelinux.org/aports/plain/main/libsamplerate/APKBUILD +package: + name: libsamplerate + version: 0.2.2 + epoch: 0 + description: Secret Rabbit Code - aka Sample Rate Converter for audio + copyright: + - license: BSD-2-Clause + +environment: + contents: + packages: + - busybox + - ca-certificates-bundle + - build-base + - automake + - autoconf + - fftw-dev + - libsndfile-dev + - linux-headers + +pipeline: + - uses: fetch + with: + expected-sha256: 3258da280511d24b49d6b08615bbe824d0cacc9842b0e4caf11c52cf2b043893 + uri: https://github.com/libsndfile/libsamplerate/releases/download/${{package.version}}/libsamplerate-${{package.version}}.tar.xz + + - uses: autoconf/configure + with: + opts: | + --enable-static + + - uses: autoconf/make + + - uses: autoconf/make-install + + - uses: strip + +subpackages: + - name: libsamplerate-static + pipeline: + - uses: split/static + description: libsamplerate static + + - name: libsamplerate-dev + pipeline: + - uses: split/dev + description: libsamplerate dev + + - name: libsamplerate-doc + pipeline: + - uses: split/manpages + description: libsamplerate manpages + +update: + release-monitor: + identifier: 1716 diff --git a/packages.txt b/packages.txt index 444ea838eeb..5553639b425 100644 --- a/packages.txt +++ b/packages.txt @@ -864,3 +864,5 @@ ocaml opam speexdsp jwt-tool +fftw +libsamplerate