blob: a7d7db81848bc2095dd8b08c3ca7369d47bc07f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer : Karl-Felix Glatzer <karl[dot]glatzer[at]gmx[dot]de>
# Contributor: David Runge <dvzrv@archlinux.org>
pkgname=mingw-w64-libopenmpt
_pkgname=libopenmpt
pkgver=0.7.11
pkgrel=1
pkgdesc="A library to render tracker music to a PCM audio stream (mingw-w64)"
arch=(any)
url="https://lib.openmpt.org/libopenmpt/"
license=(BSD-3-Clause)
depends=(
mingw-w64-flac
mingw-w64-crt
mingw-w64-libogg
mingw-w64-libsndfile
mingw-w64-libvorbis
mingw-w64-mpg123
mingw-w64-portaudio
mingw-w64-zlib
)
options=(!strip !buildflags staticlibs !debug)
makedepends=(autoconf-archive mingw-w64-configure mingw-w64-gcc)
source=($_pkgname-$pkgver.tar.gz::https://lib.openmpt.org/files/libopenmpt/src/$_pkgname-$pkgver+release.autotools.tar.gz
sf_wchar_open.patch)
sha512sums=('f155f2c6f1d6a449ae0153976cd549b29ce1808f2655f6c9798f9fb0b7ad682ce8aa2fd54098817113519ec28ffeb3b531cca0901e5a897e45da14e639d5fe72'
'3db33e13e383420ae09e189462ac1b57fe8f49d3a6bdd365bda7ae47f549567b86cc25e497935ec516a919ab4447db3b76ab21fc943b51cd9bcf9da247601c7e')
b2sums=('c2c38c11637558f474aeeb482705e826310cae52b486e271dfe98a324387e20c0bb5c178bdb981f927bcc6c3f3d0e1d79bb5597dc8af1bf9ec20d73ffae6ef84'
'24c7f85efd34243c6730d563a0f4910e9fd5b26ff44700ba56df90a054ffaea932829986f96a75e2a67244829fb46526c36eb0959b047e6430f063fd3032399a')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd $_pkgname-$pkgver+release.autotools
autoreconf -fiv
patch -Np1 -i "${srcdir}/sf_wchar_open.patch"
}
build() {
cd $_pkgname-$pkgver+release.autotools
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
CFLAGS="-lssp" CXXFLAGS="-lssp" ${_arch}-configure
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
popd
done
}
check() {
cd $_pkgname-$pkgver+release.autotools
for _arch in ${_architectures}; do
pushd build-${_arch}
make -k check
popd
done
}
package() {
cd $_pkgname-$pkgver+release.autotools
for _arch in ${_architectures}; do
pushd build-${_arch}
make DESTDIR="$pkgdir" install
popd
rm -r "$pkgdir/usr/${_arch}/share/"
done
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|