2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2013-06-24 15:05:03 +01:00
|
|
|
|
|
|
|
PKG := sfml
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.sfml-dev.org/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := SFML
|
2013-06-24 15:05:03 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2017-05-03 22:25:54 +01:00
|
|
|
$(PKG)_VERSION := 2.4.2
|
2018-08-13 08:45:42 +01:00
|
|
|
$(PKG)_CHECKSUM := cf268fb487e4048c85e5b2f53d62596854762c98cba1c1b61ccd91f78253ef4b
|
|
|
|
$(PKG)_GH_CONF := SFML/SFML/tags
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc freetype glew jpeg libsndfile openal
|
2013-06-24 15:05:03 +01:00
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2018-08-13 08:45:42 +01:00
|
|
|
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
|
2015-09-05 09:31:54 +01:00
|
|
|
-DSFML_BUILD_EXAMPLES=FALSE \
|
|
|
|
-DSFML_BUILD_DOC=FALSE
|
2013-06-24 15:05:03 +01:00
|
|
|
|
2015-09-05 09:31:54 +01:00
|
|
|
# build and install libs
|
2018-08-13 08:45:42 +01:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)/src/SFML' -j '$(JOBS)' install VERBOSE=1
|
2015-09-05 09:31:54 +01:00
|
|
|
# install headers
|
2018-08-13 08:45:42 +01:00
|
|
|
'$(TARGET)-cmake' -DCOMPONENT=devel -P '$(BUILD_DIR)/cmake_install.cmake'
|
2013-07-06 09:10:45 +01:00
|
|
|
|
2013-08-18 04:22:40 +01:00
|
|
|
# create pkg-config file
|
|
|
|
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
|
|
|
|
(echo 'Name: sfml'; \
|
|
|
|
echo 'Version: 0'; \
|
|
|
|
echo 'Description: sfml'; \
|
2015-09-05 09:31:54 +01:00
|
|
|
echo 'Requires: freetype2 glew openal sndfile vorbisenc vorbisfile'; \
|
2013-08-18 04:22:40 +01:00
|
|
|
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'
|
|
|
|
|
2013-06-24 15:05:03 +01:00
|
|
|
'$(TARGET)-g++' \
|
2013-08-18 04:22:40 +01:00
|
|
|
-W -Wall -Werror -ansi -pedantic \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-sfml.exe' \
|
2013-08-18 04:22:40 +01:00
|
|
|
`$(TARGET)-pkg-config --cflags --libs sfml`
|
2013-06-24 15:05:03 +01:00
|
|
|
endef
|
2014-04-06 14:18:15 +01:00
|
|
|
|
|
|
|
$(PKG)_BUILD_SHARED =
|