2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2019 Alexander Pyhalov
14 # Copyright 2021,2024 Andreas Wacknitz
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= mpg123
21 COMPONENT_VERSION
= 1.32.10
22 COMPONENT_SUMMARY
= Fast console MPEG Audio Player and decoder library
23 COMPONENT_PROJECT_URL
= https
://mpg123.org
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
26 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/download
/$(COMPONENT_ARCHIVE
)
27 COMPONENT_ARCHIVE_HASH
= sha256
:87b2c17fe0c979d3ef38eeceff6362b35b28ac8589fbf1854b5be75c9ab6557c
28 COMPONENT_SIG_URL
= $(COMPONENT_ARCHIVE_URL
).sig
29 COMPONENT_FMRI
= audio
/mpg123
30 COMPONENT_CLASSIFICATION
= Applications
/Sound and Video
31 COMPONENT_LICENSE
= GPL-2.0
-only OR LGPL-2.1
-only
32 COMPONENT_LICENSE_FILE
= COPYING
34 include $(WS_MAKE_RULES
)/common.mk
37 CFLAGS
+= $(CPP_LARGEFILES
)
39 CONFIGURE_OPTIONS
+= --disable-static
40 CONFIGURE_OPTIONS
+= --enable-shared
41 CONFIGURE_OPTIONS
+= --enable-int-quality
42 CONFIGURE_OPTIONS
+= --enable-fifo
43 CONFIGURE_OPTIONS
+= --enable-network
44 CONFIGURE_OPTIONS
+= --enable-ipv6
=yes
45 CONFIGURE_OPTIONS
+= --with-optimization
=3
46 ifeq ($(strip $(MACH
)),i386
)
47 CONFIGURE_OPTIONS
+= --with-cpu
=x86-64
49 CONFIGURE_OPTIONS
+= --with-default-audio
=pulse
51 # Auto-generated dependencies
52 REQUIRED_PACKAGES
+= library
/audio
/openal
53 REQUIRED_PACKAGES
+= library
/audio
/pulseaudio
54 REQUIRED_PACKAGES
+= library
/sdl2
55 REQUIRED_PACKAGES
+= system
/library
56 REQUIRED_PACKAGES
+= system
/library
/math