diff options
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 |