blob: b507176ca815ef96748b657b53ebe02affe7aeab (
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'mpg123'
version = '1.26.3'
stype = SourceType.TARBALL
url = 'sf://.tar.bz2'
tarball_checksum = '30c998785a898f2846deefc4d17d6e4683a5a550b7eacf6ea506e30a7a736c6e'
licenses = [License.LGPLv2_1Plus]
configure_options = '--with-audio=dummy --enable-static'
patches = ['mpg123/0001-Only-build-libmpg123-under-libraries.patch']
files_libs = ['libmpg123']
files_devel = ['include/mpg123.h', 'include/fmt123.h', 'lib/pkgconfig/libmpg123.pc']
def prepare(self):
if self.config.target_platform in [Platform.ANDROID]:
if self.config.target_arch == Architecture.ARM:
# Disable thumb mode to get the optimizations compiled properly
self.append_env('CFLAGS', '-marm')
self.append_env('CCASFLAGS', '-marm')
elif self.config.target_arch == Architecture.X86:
# The custom assembly breaks compiling an application by
# using relocations.
self.configure_options += ' --with-cpu=generic '
if self.config.target_platform in [Platform.IOS]:
if self.config.target_arch == Architecture.X86:
# make sure we use 32bit asm
self.configure_options += ' --with-cpu=x86 '
# Only install the libmpg123 library and things needed for it
self.make_install = self.make + ['install-libLTLIBRARIES', 'install-pkgconfigDATA',
'install-includeHEADERS', 'install-nodist_includeHEADERS']
self.make += ['src/libmpg123/libmpg123.la']
|