blob: 192c1c57ccdb45607f1926d30a0f75bbd587d258 (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: David Runge <dvzrv@archlinux.org>
_android_arch=x86
pkgname=android-${_android_arch}-libopenmpt
pkgver=0.7.11
pkgrel=1
arch=('any')
pkgdesc="A library to render tracker music to a PCM audio stream (Android ${_android_arch})"
url="https://lib.openmpt.org/libopenmpt/"
license=('BSD-3-Clause')
groups=('android-libopenmpt')
depends=("android-${_android_arch}-flac"
"android-${_android_arch}-libogg" # required by pkgconf
"android-${_android_arch}-libsndfile"
"android-${_android_arch}-libvorbis"
"android-${_android_arch}-mpg123"
"android-${_android_arch}-zlib")
makedepends=('autoconf-archive')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${pkgver}+release.autotools.tar.gz")
md5sums=('ef91eee1c24ddb76e509d3d3ca36c4d6')
prepare() {
cd "${srcdir}/libopenmpt-${pkgver}+release.autotools"
source android-env ${_android_arch}
autoreconf -fiv
}
build() {
cd "${srcdir}/libopenmpt-${pkgver}+release.autotools"
source android-env ${_android_arch}
export CFLAGS="${CFLAGS} -mno-outline-atomics"
export CXXFLAGS="${CXXFLAGS} -mno-outline-atomics"
android-${_android_arch}-configure \
--disable-openmpt123 \
--disable-examples \
--disable-tests \
--disable-doxygen-doc
# prevent excessive overlinking due to libtool
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make $MAKEFLAGS
}
package() {
cd "${srcdir}/libopenmpt-${pkgver}+release.autotools"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "$pkgdir/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|