blob: 0cfd1ce0ebcc79bf47fb5b7400693b9c6b3ac4be (
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.13
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=('04e63c635dd6c63c2ce79db4eff971f10e4d14a12c7f143fc317a4b5f5188cd8cbf84fc5121057c2beff3a3e6b9b48767c02b9eb5c569accab3e6ff7322a9690'
'3db33e13e383420ae09e189462ac1b57fe8f49d3a6bdd365bda7ae47f549567b86cc25e497935ec516a919ab4447db3b76ab21fc943b51cd9bcf9da247601c7e')
b2sums=('d75df89e85531e85974bd532773e8ed16440211448790779191a61a629dde33ef7280bcc1c82e6ac6aeb313f7f568bc7a2abe707772801f52c271977b88eff8e'
'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/"
}
|