mirror of https://git.wownero.com/dsc/mxe.git
bugfix and test program for package sdl_mixer
This commit is contained in:
parent
fbd9ed2ae2
commit
862598bd53
|
@ -0,0 +1,16 @@
|
|||
/* This file is part of mingw-cross-env. */
|
||||
/* See doc/index.html for further information. */
|
||||
|
||||
#include <SDL_mixer.h>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int initted;
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
initted = Mix_Init(MIX_INIT_FLAC | MIX_INIT_OGG | MIX_INIT_MOD);
|
||||
Mix_Quit();
|
||||
return 0;
|
||||
}
|
|
@ -20,6 +20,12 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
$(SED) 's,^\(Requires:.*\),\1 vorbisfile,' -i '$(1)/SDL_mixer.pc.in'
|
||||
echo \
|
||||
'Libs.private:' \
|
||||
"`$(PREFIX)/$(TARGET)/bin/libmikmod-config --libs`" \
|
||||
"`$(PREFIX)/$(TARGET)/bin/smpeg-config --libs`" \
|
||||
>> '$(1)/SDL_mixer.pc.in'
|
||||
$(SED) 's,for path in /usr/local; do,for path in; do,' -i '$(1)/configure'
|
||||
cd '$(1)' && ./configure \
|
||||
--host='$(TARGET)' \
|
||||
|
@ -40,4 +46,11 @@ define $(PKG)_BUILD
|
|||
LIBMIKMOD_CONFIG='$(PREFIX)/$(TARGET)/bin/libmikmod-config' \
|
||||
LIBS='-lvorbis -logg'
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -ansi -pedantic \
|
||||
`'$(TARGET)-pkg-config' SDL_mixer --cflags` \
|
||||
'$(2).c' \
|
||||
`'$(TARGET)-pkg-config' SDL_mixer --libs` \
|
||||
-o '$(PREFIX)/$(TARGET)/bin/test-sdl_mixer.exe'
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue