2023-03-02 19:08:49 +03:00
|
|
|
|
distributable:
|
|
|
|
|
url: https://www.mpg123.de/download/mpg123-{{version}}.tar.bz2
|
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
|
url: https://www.mpg123.de/download/
|
|
|
|
|
match: /mpg123-(\d+\.\d+(\.\d+)?)\.tar\.bz2/
|
|
|
|
|
strip:
|
|
|
|
|
- /mpg123-/
|
|
|
|
|
- /.tar.bz2/
|
2023-03-02 19:08:49 +03:00
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
dependencies:
|
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
|
# ^^ often packages need dependencies to build, it is very common for
|
|
|
|
|
# packages to need a C compiler and make, the above provide those
|
|
|
|
|
script: |
|
|
|
|
|
./configure $ARGS
|
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
|
env:
|
|
|
|
|
ARGS:
|
|
|
|
|
- --disable-debug
|
|
|
|
|
- --disable-dependency-tracking
|
|
|
|
|
- --prefix={{prefix}}
|
|
|
|
|
- --with-module-suffix=.so
|
|
|
|
|
- --enable-static
|
|
|
|
|
darwin:
|
|
|
|
|
ARGS:
|
|
|
|
|
- --with-default-audio=coreaudio
|
|
|
|
|
aarch64:
|
|
|
|
|
ARGS:
|
|
|
|
|
- --with-cpu=aarch64
|
|
|
|
|
x86-64:
|
|
|
|
|
ARGS:
|
|
|
|
|
- --with-cpu=x86-64
|
|
|
|
|
|
|
|
|
|
provides:
|
|
|
|
|
- bin/mpg123
|
|
|
|
|
# ^^ specify the binaries or tea magic won’t work
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
mpg123 --test fixture.mp3
|