diff options
Diffstat (limited to 'src/sfml.mk')
-rw-r--r-- | src/sfml.mk | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/src/sfml.mk b/src/sfml.mk index cc8f71c..0a03adc 100644 --- a/src/sfml.mk +++ b/src/sfml.mk @@ -3,8 +3,8 @@ PKG := sfml $(PKG)_IGNORE := -$(PKG)_VERSION := 2.0 -$(PKG)_CHECKSUM := ff8cf290f49e1a1d8517a4a344e9214139da462f +$(PKG)_VERSION := 2.1 +$(PKG)_CHECKSUM := c27bdffdc4bedb5f6a20db03ceca715d42aa5752 $(PKG)_SUBDIR := SFML-$($(PKG)_VERSION) $(PKG)_FILE := SFML-$($(PKG)_VERSION)-sources.zip $(PKG)_URL := http://sfml-dev.org/download/sfml/$($(PKG)_VERSION)/$($(PKG)_FILE) @@ -12,23 +12,31 @@ $(PKG)_DEPS := gcc freetype glew jpeg openal libsndfile define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.sfml-dev.org/download.php' | \ - grep 'download/sfml/' | \ - $(SED) -n 's,.*\([0-9.]\+\).*,\1,p' | \ + $(SED) -n 's,.*download/sfml/\([^"]\+\).*,\1,p' | \ head -1 endef define $(PKG)_BUILD mkdir '$(1)/build' cd '$(1)/build' && cmake .. \ - -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DFREETYPE_INCLUDE_DIRS='$(PREFIX)/$(TARGET)/include/freetype2' $(MAKE) -C '$(1)/build' -j '$(JOBS)' install VERBOSE=1 + # create pkg-config file + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + (echo 'Name: sfml'; \ + echo 'Version: 0'; \ + echo 'Description: sfml'; \ + echo 'Requires: freetype2 glew openal sndfile vorbisenc'; \ + echo 'Cflags: -DSFML_STATIC'; \ + echo 'Libs: -lsfml-audio-s -lsfml-network-s -lsfml-graphics-s -lsfml-window-s -lsfml-system-s'; \ + echo 'Libs.private: -ljpeg -lws2_32 -lgdi32';) \ + > '$(PREFIX)/$(TARGET)/lib/pkgconfig/sfml.pc' + '$(TARGET)-g++' \ - -W -Wall -Werror \ - -DSFML_STATIC -DAL_LIBTYPE_STATIC \ + -W -Wall -Werror -ansi -pedantic \ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-sfml.exe' \ - -lsfml-audio-s -lsfml-network-s -lsfml-graphics-s -lsfml-window-s -lsfml-system-s \ - `$(TARGET)-pkg-config --cflags --libs freetype2 glew openal sndfile vorbisenc` \ - -ljpeg -lws2_32 -lgdi32 + `$(TARGET)-pkg-config --cflags --libs sfml` endef |