diff options
author | Tony Theodore <tonyt@logyst.com> | 2014-10-09 08:36:49 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2014-10-09 08:36:49 (GMT) |
commit | 3821fc043873689096e6fb2a369944e1395e0e49 (patch) | |
tree | 6473634b6ab8ce64b8d140c3adc52e5112b2cd67 /src | |
parent | 5d8de0d66eb6aea8ca61950ef00f04d41a266d13 (diff) | |
download | mxe-3821fc043873689096e6fb2a369944e1395e0e49.zip mxe-3821fc043873689096e6fb2a369944e1395e0e49.tar.gz mxe-3821fc043873689096e6fb2a369944e1395e0e49.tar.bz2 |
sdl_sound: add pkg-config file (see #521)
Diffstat (limited to 'src')
-rw-r--r-- | src/sdl_sound.mk | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/sdl_sound.mk b/src/sdl_sound.mk index ec23c27..201c1c9 100644 --- a/src/sdl_sound.mk +++ b/src/sdl_sound.mk @@ -43,12 +43,20 @@ define $(PKG)_BUILD LIBS="`'$(TARGET)-pkg-config' vorbisfile flac speex --libs` `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --libs`" $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + # create pkg-config file + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + (echo 'Name: $(PKG)'; \ + echo 'Version: $($(PKG)_VERSION)'; \ + echo 'Description: $(PKG)'; \ + echo 'Requires: sdl vorbisfile flac speex'; \ + echo 'Libs: -lSDL_sound'; \ + echo "Libs.private: `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --libs`";) \ + > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc' + '$(TARGET)-gcc' \ -W -Wall -Werror -std=c99 -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_sound.exe' \ - -lSDL_sound \ - `'$(TARGET)-pkg-config' sdl vorbisfile flac speex --cflags --libs` \ - `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --cflags --libs` + `'$(TARGET)-pkg-config' $(PKG) --cflags --libs` endef $(PKG)_BUILD_SHARED = |