diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-02-14 18:59:37 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-02-14 18:59:37 (GMT) |
commit | 862598bd53e2ca19e08d222d85196294904ff0bd (patch) | |
tree | 72fef3416f166f44ec76bc1f47a2fd4fa81ee02b /src/sdl_mixer.mk | |
parent | fbd9ed2ae26c8a661db568cc441defea834a07f9 (diff) | |
download | mxe-862598bd53e2ca19e08d222d85196294904ff0bd.zip mxe-862598bd53e2ca19e08d222d85196294904ff0bd.tar.gz mxe-862598bd53e2ca19e08d222d85196294904ff0bd.tar.bz2 |
bugfix and test program for package sdl_mixer
Diffstat (limited to 'src/sdl_mixer.mk')
-rw-r--r-- | src/sdl_mixer.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sdl_mixer.mk b/src/sdl_mixer.mk index 25f4ad1..2fd7248 100644 --- a/src/sdl_mixer.mk +++ b/src/sdl_mixer.mk @@ -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 |