Codebase list libsdl2-mixer / d660943
New upstream version 2.6.2+dfsg Simon McVittie 1 year, 6 months ago
11 changed file(s) with 360 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
0 2.6.2:
1 * Updated autotools to use ax_compute_relative_paths, fixing homebrew on macOS
2
03 2.6.1:
14 * Fixed issue with incorrect version reported by pkg-config
25
44 # See docs/release_checklist.md
55 set(MAJOR_VERSION 2)
66 set(MINOR_VERSION 6)
7 set(MICRO_VERSION 1)
7 set(MICRO_VERSION 2)
88 set(SDL_REQUIRED_VERSION 2.0.9)
99
1010 # For historical reasons this is 3.0.0 rather than the expected 1.0.0
66 LIBNAME = SDL2mix
77 MAJOR_VERSION = 2
88 MINOR_VERSION = 6
9 MICRO_VERSION = 1
9 MICRO_VERSION = 2
1010 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
1111
1212 TITLENAME = $(LIBNAME) $(VERSION)
00 %define name SDL2_mixer
1 %define version 2.6.1
1 %define version 2.6.2
22 %define release 1
33
44 Summary: Simple DirectMedia Layer - Sample Mixer Library
0 # ==============================================================================
1 # https://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html
2 # ==============================================================================
3 #
4 # SYNOPSIS
5 #
6 # AX_COMPUTE_RELATIVE_PATHS(PATH_LIST)
7 #
8 # DESCRIPTION
9 #
10 # PATH_LIST is a space-separated list of colon-separated triplets of the
11 # form 'FROM:TO:RESULT'. This function iterates over these triplets and
12 # set $RESULT to the relative path from $FROM to $TO. Note that $FROM and
13 # $TO needs to be absolute filenames for this macro to success.
14 #
15 # For instance,
16 #
17 # first=/usr/local/bin
18 # second=/usr/local/share
19 # AX_COMPUTE_RELATIVE_PATHS([first:second:fs second:first:sf])
20 # # $fs is set to ../share
21 # # $sf is set to ../bin
22 #
23 # $FROM and $TO are both eval'ed recursively and normalized, this means
24 # that you can call this macro with autoconf's dirnames like `prefix' or
25 # `datadir'. For example:
26 #
27 # AX_COMPUTE_RELATIVE_PATHS([bindir:datadir:bin_to_data])
28 #
29 # AX_COMPUTE_RELATIVE_PATHS should also works with DOS filenames.
30 #
31 # You may want to use this macro in order to make your package
32 # relocatable. Instead of hardcoding $datadir into your programs just
33 # encode $bin_to_data and try to determine $bindir at run-time.
34 #
35 # This macro requires AX_NORMALIZE_PATH and AX_RECURSIVE_EVAL.
36 #
37 # LICENSE
38 #
39 # Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
40 #
41 # This program is free software; you can redistribute it and/or modify it
42 # under the terms of the GNU General Public License as published by the
43 # Free Software Foundation; either version 2 of the License, or (at your
44 # option) any later version.
45 #
46 # This program is distributed in the hope that it will be useful, but
47 # WITHOUT ANY WARRANTY; without even the implied warranty of
48 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
49 # Public License for more details.
50 #
51 # You should have received a copy of the GNU General Public License along
52 # with this program. If not, see <https://www.gnu.org/licenses/>.
53 #
54 # As a special exception, the respective Autoconf Macro's copyright owner
55 # gives unlimited permission to copy, distribute and modify the configure
56 # scripts that are the output of Autoconf when processing the Macro. You
57 # need not follow the terms of the GNU General Public License when using
58 # or distributing such scripts, even though portions of the text of the
59 # Macro appear in them. The GNU General Public License (GPL) does govern
60 # all other use of the material that constitutes the Autoconf Macro.
61 #
62 # This special exception to the GPL applies to versions of the Autoconf
63 # Macro released by the Autoconf Archive. When you make and distribute a
64 # modified version of the Autoconf Macro, you may extend this special
65 # exception to the GPL to apply to your modified version as well.
66
67 #serial 12
68
69 AU_ALIAS([ADL_COMPUTE_RELATIVE_PATHS], [AX_COMPUTE_RELATIVE_PATHS])
70 AC_DEFUN([AX_COMPUTE_RELATIVE_PATHS],
71 [for _lcl_i in $1; do
72 _lcl_from=\[$]`echo "[$]_lcl_i" | sed 's,:.*$,,'`
73 _lcl_to=\[$]`echo "[$]_lcl_i" | sed 's,^[[^:]]*:,,' | sed 's,:[[^:]]*$,,'`
74 _lcl_result_var=`echo "[$]_lcl_i" | sed 's,^.*:,,'`
75 AX_RECURSIVE_EVAL([[$]_lcl_from], [_lcl_from])
76 AX_RECURSIVE_EVAL([[$]_lcl_to], [_lcl_to])
77 _lcl_notation="$_lcl_from$_lcl_to"
78 AX_NORMALIZE_PATH([_lcl_from],['/'])
79 AX_NORMALIZE_PATH([_lcl_to],['/'])
80 AX_COMPUTE_RELATIVE_PATH([_lcl_from], [_lcl_to], [_lcl_result_tmp])
81 AX_NORMALIZE_PATH([_lcl_result_tmp],["[$]_lcl_notation"])
82 eval $_lcl_result_var='[$]_lcl_result_tmp'
83 done])
84
85 ## Note:
86 ## *****
87 ## The following helper macros are too fragile to be used out
88 ## of AX_COMPUTE_RELATIVE_PATHS (mainly because they assume that
89 ## paths are normalized), that's why I'm keeping them in the same file.
90 ## Still, some of them maybe worth to reuse.
91
92 dnl AX_COMPUTE_RELATIVE_PATH(FROM, TO, RESULT)
93 dnl ===========================================
94 dnl Compute the relative path to go from $FROM to $TO and set the value
95 dnl of $RESULT to that value. This function work on raw filenames
96 dnl (for instead it will considerate /usr//local and /usr/local as
97 dnl two distinct paths), you should really use AX_COMPUTE_RELATIVE_PATHS
98 dnl instead to have the paths sanitized automatically.
99 dnl
100 dnl For instance:
101 dnl first_dir=/somewhere/on/my/disk/bin
102 dnl second_dir=/somewhere/on/another/disk/share
103 dnl AX_COMPUTE_RELATIVE_PATH(first_dir, second_dir, first_to_second)
104 dnl will set $first_to_second to '../../../another/disk/share'.
105 AC_DEFUN([AX_COMPUTE_RELATIVE_PATH],
106 [AX_COMPUTE_COMMON_PATH([$1], [$2], [_lcl_common_prefix])
107 AX_COMPUTE_BACK_PATH([$1], [_lcl_common_prefix], [_lcl_first_rel])
108 AX_COMPUTE_SUFFIX_PATH([$2], [_lcl_common_prefix], [_lcl_second_suffix])
109 $3="[$]_lcl_first_rel[$]_lcl_second_suffix"])
110
111 dnl AX_COMPUTE_COMMON_PATH(LEFT, RIGHT, RESULT)
112 dnl ============================================
113 dnl Compute the common path to $LEFT and $RIGHT and set the result to $RESULT.
114 dnl
115 dnl For instance:
116 dnl first_path=/somewhere/on/my/disk/bin
117 dnl second_path=/somewhere/on/another/disk/share
118 dnl AX_COMPUTE_COMMON_PATH(first_path, second_path, common_path)
119 dnl will set $common_path to '/somewhere/on'.
120 AC_DEFUN([AX_COMPUTE_COMMON_PATH],
121 [$3=''
122 _lcl_second_prefix_match=''
123 while test "[$]_lcl_second_prefix_match" != 0; do
124 _lcl_first_prefix=`expr "x[$]$1" : "x\([$]$3/*[[^/]]*\)"`
125 _lcl_second_prefix_match=`expr "x[$]$2" : "x[$]_lcl_first_prefix"`
126 if test "[$]_lcl_second_prefix_match" != 0; then
127 if test "[$]_lcl_first_prefix" != "[$]$3"; then
128 $3="[$]_lcl_first_prefix"
129 else
130 _lcl_second_prefix_match=0
131 fi
132 fi
133 done])
134
135 dnl AX_COMPUTE_SUFFIX_PATH(PATH, SUBPATH, RESULT)
136 dnl ==============================================
137 dnl Subtract $SUBPATH from $PATH, and set the resulting suffix
138 dnl (or the empty string if $SUBPATH is not a subpath of $PATH)
139 dnl to $RESULT.
140 dnl
141 dnl For instance:
142 dnl first_path=/somewhere/on/my/disk/bin
143 dnl second_path=/somewhere/on
144 dnl AX_COMPUTE_SUFFIX_PATH(first_path, second_path, common_path)
145 dnl will set $common_path to '/my/disk/bin'.
146 AC_DEFUN([AX_COMPUTE_SUFFIX_PATH],
147 [$3=`expr "x[$]$1" : "x[$]$2/*\(.*\)"`])
148
149 dnl AX_COMPUTE_BACK_PATH(PATH, SUBPATH, RESULT)
150 dnl ============================================
151 dnl Compute the relative path to go from $PATH to $SUBPATH, knowing that
152 dnl $SUBPATH is a subpath of $PATH (any other words, only repeated '../'
153 dnl should be needed to move from $PATH to $SUBPATH) and set the value
154 dnl of $RESULT to that value. If $SUBPATH is not a subpath of PATH,
155 dnl set $RESULT to the empty string.
156 dnl
157 dnl For instance:
158 dnl first_path=/somewhere/on/my/disk/bin
159 dnl second_path=/somewhere/on
160 dnl AX_COMPUTE_BACK_PATH(first_path, second_path, back_path)
161 dnl will set $back_path to '../../../'.
162 AC_DEFUN([AX_COMPUTE_BACK_PATH],
163 [AX_COMPUTE_SUFFIX_PATH([$1], [$2], [_lcl_first_suffix])
164 $3=''
165 _lcl_tmp='xxx'
166 while test "[$]_lcl_tmp" != ''; do
167 _lcl_tmp=`expr "x[$]_lcl_first_suffix" : "x[[^/]]*/*\(.*\)"`
168 if test "[$]_lcl_first_suffix" != ''; then
169 _lcl_first_suffix="[$]_lcl_tmp"
170 $3="../[$]$3"
171 fi
172 done])
0 # ===========================================================================
1 # https://www.gnu.org/software/autoconf-archive/ax_normalize_path.html
2 # ===========================================================================
3 #
4 # SYNOPSIS
5 #
6 # AX_NORMALIZE_PATH(VARNAME, [REFERENCE_STRING])
7 #
8 # DESCRIPTION
9 #
10 # Perform some cleanups on the value of $VARNAME (interpreted as a path):
11 #
12 # - empty paths are changed to '.'
13 # - trailing slashes are removed
14 # - repeated slashes are squeezed except a leading doubled slash '//'
15 # (which might indicate a networked disk on some OS).
16 #
17 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
18 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
19 # are turned into backslashes, otherwise they are all turned into slashes.
20 #
21 # This makes processing of DOS filenames quite easier, because you can
22 # turn a filename to the Unix notation, make your processing, and turn it
23 # back to original notation.
24 #
25 # filename='A:\FOO\\BAR\'
26 # old_filename="$filename"
27 # # Switch to the unix notation
28 # AX_NORMALIZE_PATH([filename], ["/"])
29 # # now we have $filename = 'A:/FOO/BAR' and we can process it as if
30 # # it was a Unix path. For instance let's say that you want
31 # # to append '/subpath':
32 # filename="$filename/subpath"
33 # # finally switch back to the original notation
34 # AX_NORMALIZE_PATH([filename], ["$old_filename"])
35 # # now $filename equals to 'A:\FOO\BAR\subpath'
36 #
37 # One good reason to make all path processing with the unix convention is
38 # that backslashes have a special meaning in many cases. For instance
39 #
40 # expr 'A:\FOO' : 'A:\Foo'
41 #
42 # will return 0 because the second argument is a regex in which
43 # backslashes have to be backslashed. In other words, to have the two
44 # strings to match you should write this instead:
45 #
46 # expr 'A:\Foo' : 'A:\\Foo'
47 #
48 # Such behavior makes DOS filenames extremely unpleasant to work with. So
49 # temporary turn your paths to the Unix notation, and revert them to the
50 # original notation after the processing. See the macro
51 # AX_COMPUTE_RELATIVE_PATHS for a concrete example of this.
52 #
53 # REFERENCE_STRING defaults to $VARIABLE, this means that slashes will be
54 # converted to backslashes if $VARIABLE already contains some backslashes
55 # (see $thirddir below).
56 #
57 # firstdir='/usr/local//share'
58 # seconddir='C:\Program Files\\'
59 # thirddir='C:\home/usr/'
60 # AX_NORMALIZE_PATH([firstdir])
61 # AX_NORMALIZE_PATH([seconddir])
62 # AX_NORMALIZE_PATH([thirddir])
63 # # $firstdir = '/usr/local/share'
64 # # $seconddir = 'C:\Program Files'
65 # # $thirddir = 'C:\home\usr'
66 #
67 # LICENSE
68 #
69 # Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
70 #
71 # This program is free software; you can redistribute it and/or modify it
72 # under the terms of the GNU General Public License as published by the
73 # Free Software Foundation; either version 2 of the License, or (at your
74 # option) any later version.
75 #
76 # This program is distributed in the hope that it will be useful, but
77 # WITHOUT ANY WARRANTY; without even the implied warranty of
78 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
79 # Public License for more details.
80 #
81 # You should have received a copy of the GNU General Public License along
82 # with this program. If not, see <https://www.gnu.org/licenses/>.
83 #
84 # As a special exception, the respective Autoconf Macro's copyright owner
85 # gives unlimited permission to copy, distribute and modify the configure
86 # scripts that are the output of Autoconf when processing the Macro. You
87 # need not follow the terms of the GNU General Public License when using
88 # or distributing such scripts, even though portions of the text of the
89 # Macro appear in them. The GNU General Public License (GPL) does govern
90 # all other use of the material that constitutes the Autoconf Macro.
91 #
92 # This special exception to the GPL applies to versions of the Autoconf
93 # Macro released by the Autoconf Archive. When you make and distribute a
94 # modified version of the Autoconf Macro, you may extend this special
95 # exception to the GPL to apply to your modified version as well.
96
97 #serial 8
98
99 AU_ALIAS([ADL_NORMALIZE_PATH], [AX_NORMALIZE_PATH])
100 AC_DEFUN([AX_NORMALIZE_PATH],
101 [case ":[$]$1:" in
102 # change empty paths to '.'
103 ::) $1='.' ;;
104 # strip trailing slashes
105 :*[[\\/]]:) $1=`echo "[$]$1" | sed 's,[[\\/]]*[$],,'` ;;
106 :*:) ;;
107 esac
108 # squeeze repeated slashes
109 case ifelse($2,,"[$]$1",$2) in
110 # if the path contains any backslashes, turn slashes into backslashes
111 *\\*) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
112 # if the path contains slashes, also turn backslashes into slashes
113 *) $1=`echo "[$]$1" | sed 's,\(.\)[[\\/]][[\\/]]*,\1/,g'` ;;
114 esac])
0 # ===========================================================================
1 # https://www.gnu.org/software/autoconf-archive/ax_recursive_eval.html
2 # ===========================================================================
3 #
4 # SYNOPSIS
5 #
6 # AX_RECURSIVE_EVAL(VALUE, RESULT)
7 #
8 # DESCRIPTION
9 #
10 # Interpolate the VALUE in loop until it doesn't change, and set the
11 # result to $RESULT. WARNING: It's easy to get an infinite loop with some
12 # unsane input.
13 #
14 # LICENSE
15 #
16 # Copyright (c) 2008 Alexandre Duret-Lutz <adl@gnu.org>
17 #
18 # This program is free software; you can redistribute it and/or modify it
19 # under the terms of the GNU General Public License as published by the
20 # Free Software Foundation; either version 2 of the License, or (at your
21 # option) any later version.
22 #
23 # This program is distributed in the hope that it will be useful, but
24 # WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
26 # Public License for more details.
27 #
28 # You should have received a copy of the GNU General Public License along
29 # with this program. If not, see <https://www.gnu.org/licenses/>.
30 #
31 # As a special exception, the respective Autoconf Macro's copyright owner
32 # gives unlimited permission to copy, distribute and modify the configure
33 # scripts that are the output of Autoconf when processing the Macro. You
34 # need not follow the terms of the GNU General Public License when using
35 # or distributing such scripts, even though portions of the text of the
36 # Macro appear in them. The GNU General Public License (GPL) does govern
37 # all other use of the material that constitutes the Autoconf Macro.
38 #
39 # This special exception to the GPL applies to versions of the Autoconf
40 # Macro released by the Autoconf Archive. When you make and distribute a
41 # modified version of the Autoconf Macro, you may extend this special
42 # exception to the GPL to apply to your modified version as well.
43
44 #serial 1
45
46 AC_DEFUN([AX_RECURSIVE_EVAL],
47 [_lcl_receval="$1"
48 $2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
49 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
50 _lcl_receval_old=''
51 while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do
52 _lcl_receval_old="[$]_lcl_receval"
53 eval _lcl_receval="\"[$]_lcl_receval\""
54 done
55 echo "[$]_lcl_receval")`])
33 # See release_checklist.md
44 m4_define([MAJOR_VERSION_MACRO], [2])
55 m4_define([MINOR_VERSION_MACRO], [6])
6 m4_define([MICRO_VERSION_MACRO], [1])
6 m4_define([MICRO_VERSION_MACRO], [2])
77
88 AC_INIT([SDL2_mixer],
99 [MAJOR_VERSION_MACRO.MINOR_VERSION_MACRO.MICRO_VERSION_MACRO],
944944 PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\\$,\\\\$,g'`
945945
946946 dnl Calculate the location of the prefix, relative to the cmake folder
947 eval pkg_prefix=$prefix
948 eval pkg_cmakedir=$libdir/cmake/SDL2_mixer
949 cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g")"
947 pkg_cmakedir='$libdir/cmake/SDL2_mixer'
948 AX_COMPUTE_RELATIVE_PATHS([pkg_cmakedir:prefix:cmake_prefix_relpath])
949 AC_SUBST([cmake_prefix_relpath])
950950 AC_SUBST([cmake_prefix_relpath])
951951
952952 dnl Expand the sources and objects needed to build the library
4545 */
4646 #define SDL_MIXER_MAJOR_VERSION 2
4747 #define SDL_MIXER_MINOR_VERSION 6
48 #define SDL_MIXER_PATCHLEVEL 1
48 #define SDL_MIXER_PATCHLEVEL 2
4949
5050 /**
5151 * This macro can be used to fill a version structure with the compile-time
6565
6666 set(SDL2MIXER_SDL2_REQUIRED_VERSION @SDL_VERSION@)
6767
68 get_filename_component(prefix "${CMAKE_CURRENT_LIST_DIR}@cmake_prefix_relpath@" ABSOLUTE)
68 get_filename_component(prefix "${CMAKE_CURRENT_LIST_DIR}/@cmake_prefix_relpath@" ABSOLUTE)
6969 set(exec_prefix "@exec_prefix@")
7070 set(bindir "@bindir@")
7171 set(includedir "@includedir@")
88 //
99
1010 VS_VERSION_INFO VERSIONINFO
11 FILEVERSION 2,6,1,0
12 PRODUCTVERSION 2,6,1,0
11 FILEVERSION 2,6,2,0
12 PRODUCTVERSION 2,6,2,0
1313 FILEFLAGSMASK 0x3fL
1414 FILEFLAGS 0x0L
1515 FILEOS 0x40004L
2222 BEGIN
2323 VALUE "CompanyName", "\0"
2424 VALUE "FileDescription", "SDL_mixer\0"
25 VALUE "FileVersion", "2, 6, 1, 0\0"
25 VALUE "FileVersion", "2, 6, 2, 0\0"
2626 VALUE "InternalName", "SDL_mixer\0"
2727 VALUE "LegalCopyright", "Copyright © 2022 Sam Lantinga\0"
2828 VALUE "OriginalFilename", "SDL_mixer.dll\0"
2929 VALUE "ProductName", "Simple DirectMedia Layer\0"
30 VALUE "ProductVersion", "2, 6, 1, 0\0"
30 VALUE "ProductVersion", "2, 6, 2, 0\0"
3131 END
3232 END
3333 BLOCK "VarFileInfo"