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
15 # NOTE: This recipe supports both "encumbered" and "license-clean"
16 # builds (with or without MP3 support).
17 # A not-encumbered Makefile which includes this one could be delivered
18 # as $(WS_TOP)/library/SDL2_mixer/Makefile in some other reality.
19 # That file's contents would be just two lines like these:
21 ### include ../../encumbered/SDL2_mixer/Makefile
22 # Also the other version of the component should deliver a symlink to
25 # This file (by default) provides the package with encumbered code
26 # or inseparable run-time dependencies:
29 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_NAME
= SDL2_mixer
32 COMPONENT_VERSION
= 2.0.1
33 COMPONENT_PROJECT_URL
= http
://www.libsdl.org
/projects
/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
= \
38 sha256
:5a24f62a610249d744cbd8d28ee399d8905db7222bf3bdbc8a8b4a76e597695f
39 COMPONENT_ARCHIVE_URL
= http
://www.libsdl.org
/projects
/SDL_mixer
/release
/$(COMPONENT_ARCHIVE
)
40 COMPONENT_FMRI
= library
/audio
/sdl2-mixer
41 COMPONENT_LICENSE
= ZLIB
42 COMPONENT_LICENSE_FILE
= COPYING.txt
43 COMPONENT_CLASSIFICATION
= System
/Multimedia Libraries
45 ifeq ($(strip $(USE_ENCUMBERED
)),yes
)
46 COMPONENT_SUMMARY
:=$(COMPONENT_SUMMARY
) (encumbered version
)
47 include $(WS_MAKE_RULES
)/encumbered.mk
49 include $(WS_MAKE_RULES
)/prep.mk
50 include $(WS_MAKE_RULES
)/configure.mk
51 include $(WS_MAKE_RULES
)/ips.mk
53 PATH
.32=/usr
/gnu
/bin
:/usr
/bin
54 PATH
.64=/usr
/gnu
/bin
:/usr
/gnu
/bin
/$(MACH64
):/usr
/bin
/$(MACH64
):/usr
/bin
57 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && .
/autogen.sh
)
59 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
60 CONFIGURE_OPTIONS
+= --libexecdir
=$(CONFIGURE_LIBDIR.
$(BITS
))
61 CONFIGURE_OPTIONS
+= --enable-music-cmd
62 CONFIGURE_OPTIONS
+= --enable-music-wave
63 CONFIGURE_OPTIONS
+= --enable-music-midi
64 CONFIGURE_OPTIONS
+= --enable-music-mod-mikmod
--enable-music-mod-mikmod-shared
65 CONFIGURE_OPTIONS
+= --enable-music-ogg-shared
66 CONFIGURE_OPTIONS
+= --enable-music-flac-shared
68 ifeq ($(strip $(USE_ENCUMBERED
)),yes
)
69 ### Note: currently we do not serve libmad in the fully open components,
70 ### it and MPEG support is reserved for encumbered components
71 #CONFIGURE_OPTIONS += --enable-music-mp3-smpeg --enable-music-mp3-smpeg-shared
72 CONFIGURE_OPTIONS
+= --enable-music-mp3-mad-gpl
73 REQUIRED_PACKAGES
+= library
/audio
/libmad
75 CONFIGURE_OPTIONS
+= --disable-music-mp3
79 build
: $(BUILD_32_and_64
)
81 install: $(INSTALL_32_and_64
)
85 REQUIRED_PACKAGES
+= library
/sdl2
86 REQUIRED_PACKAGES
+= system
/library
87 REQUIRED_PACKAGES
+= system
/library
/math