summaryrefslogtreecommitdiffstats
path: root/src/sfml.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-09-05 08:31:54 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-09-05 08:31:54 (GMT)
commit3e134a29e4aa7b2f2eecfd56c5e4f965cce3e8af (patch)
tree9cb1e229f47e1d701eeac759f8868b4b4cb2bfa5 /src/sfml.mk
parent0691f569eb5ed6f5b38d1f40df39b795ff5ae404 (diff)
downloadmxe-3e134a29e4aa7b2f2eecfd56c5e4f965cce3e8af.zip
mxe-3e134a29e4aa7b2f2eecfd56c5e4f965cce3e8af.tar.gz
mxe-3e134a29e4aa7b2f2eecfd56c5e4f965cce3e8af.tar.bz2
sfml: update 2.2 -> 2.3.1 and fix external lib installation
Diffstat (limited to 'src/sfml.mk')
-rw-r--r--src/sfml.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/sfml.mk b/src/sfml.mk
index 182a84b..8899d4b 100644
--- a/src/sfml.mk
+++ b/src/sfml.mk
@@ -3,8 +3,8 @@
PKG := sfml
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 2.2
-$(PKG)_CHECKSUM := b21721a3dc221a790e4b81d6ba358c16cb1c1cd3
+$(PKG)_VERSION := 2.3.1
+$(PKG)_CHECKSUM := d3dbcd92843be5c2a432f6ad17b6576a7613e7de
$(PKG)_SUBDIR := SFML-$($(PKG)_VERSION)
$(PKG)_FILE := SFML-$($(PKG)_VERSION)-sources.zip
$(PKG)_URL := http://sfml-dev.org/download/sfml/$($(PKG)_VERSION)/$($(PKG)_FILE)
@@ -20,16 +20,20 @@ define $(PKG)_BUILD
mkdir '$(1)/build'
cd '$(1)/build' && cmake .. \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
- -DFREETYPE_INCLUDE_DIRS='$(PREFIX)/$(TARGET)/include/freetype2'
+ -DSFML_BUILD_EXAMPLES=FALSE \
+ -DSFML_BUILD_DOC=FALSE
- $(MAKE) -C '$(1)/build' -j '$(JOBS)' install VERBOSE=1
+ # build and install libs
+ $(MAKE) -C '$(1)/build/src/SFML' -j '$(JOBS)' install VERBOSE=1
+ # install headers
+ cmake -DCOMPONENT=devel -P '$(1)/build/cmake_install.cmake'
# 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 'Requires: freetype2 glew openal sndfile vorbisenc vorbisfile'; \
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';) \