p7zip: assorted fixes
[oi-userland.git] / components / encumbered / SDL2_mixer / Makefile
blobde386f138480ff3c72c8a52545bda966ce4e4c0c
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2016 Jim Klimov
13 # Copyright (c) 2023 Niklas Poslovski
16 # NOTE: This recipe supports both "encumbered" and "license-clean"
17 # builds (with or without MP3 support).
18 # A not-encumbered Makefile which includes this one could be delivered
19 # as $(WS_TOP)/library/SDL2_mixer/Makefile in some other reality.
20 # That file's contents would be just two lines like these:
21 ### USE_ENCUMBERED=no
22 ### include ../../encumbered/SDL2_mixer/Makefile
23 # Also the other version of the component should deliver a symlink to
24 # the P5M manifest.
26 # This file (by default) provides the package with encumbered code
27 # or inseparable run-time dependencies:
28 USE_ENCUMBERED?=yes
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= SDL2_mixer
32 COMPONENT_VERSION= 2.8.0
33 COMPONENT_PROJECT_URL= https://github.com/libsdl-org/SDL_mixer
34 COMPONENT_SUMMARY= SDL_mixer is a sample multi-channel audio mixer library
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
37 COMPONENT_ARCHIVE_HASH= sha256:1cfb34c87b26dbdbc7afd68c4f545c0116ab5f90bbfecc5aebe2a9cb4bb31549
38 COMPONENT_ARCHIVE_URL= https://github.com/libsdl-org/SDL_mixer/releases/download/release-$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
39 COMPONENT_FMRI= library/audio/sdl2-mixer
40 COMPONENT_CLASSIFICATION= System/Multimedia Libraries
41 COMPONENT_LICENSE= ZLIB
42 COMPONENT_LICENSE_FILE= LICENSE.txt
44 ifeq ($(strip $(USE_ENCUMBERED)),yes)
45 COMPONENT_SUMMARY:=$(COMPONENT_SUMMARY) (encumbered version)
46 include $(WS_MAKE_RULES)/encumbered.mk
47 endif
49 TEST_TARGET= $(NO_TESTS)
50 include $(WS_MAKE_RULES)/common.mk
52 PATH= $(PATH.gnu)
54 COMPONENT_PREP_ACTION = ( cd $(@D) && PATH="$(PATH)" ./autogen.sh )
56 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
57 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBEXECDIR)
58 CONFIGURE_OPTIONS += --disable-static
59 CONFIGURE_OPTIONS += --enable-music-cmd
60 CONFIGURE_OPTIONS += --enable-music-wave
61 CONFIGURE_OPTIONS += --enable-music-midi
62 CONFIGURE_OPTIONS += --enable-music-mod-mikmod --enable-music-mod-mikmod-shared
63 CONFIGURE_OPTIONS += --enable-music-ogg-shared
64 CONFIGURE_OPTIONS += --enable-music-flac-shared
66 ifeq ($(strip $(USE_ENCUMBERED)),yes)
67 CONFIGURE_OPTIONS += --enable-music-mp3-mad-gpl
69 REQUIRED_PACKAGES += library/audio/libmad
70 else
71 CONFIGURE_OPTIONS + --disable-music-mp3
72 endif
74 # Auto-generated dependencies
75 REQUIRED_PACKAGES += library/sdl2
76 REQUIRED_PACKAGES += system/library