2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2016-05-18 08:25:23 +01:00
|
|
|
|
|
|
|
PKG := glm
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://glm.g-truc.net/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := GLM - OpenGL Mathematics
|
2016-05-18 08:25:23 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2016-08-16 17:06:23 +01:00
|
|
|
$(PKG)_VERSION := 0.9.7.6
|
|
|
|
$(PKG)_CHECKSUM := 872fdea580b69b752562adc60734d7472fd97d5724c4ead585564083deac3953
|
2016-05-18 08:25:23 +01:00
|
|
|
$(PKG)_SUBDIR := glm-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $($(PKG)_VERSION).tar.gz
|
|
|
|
$(PKG)_URL := https://github.com/g-truc/glm/archive/$($(PKG)_VERSION).tar.gz
|
|
|
|
$(PKG)_DEPS := gcc
|
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
|
|
|
$(call MXE_GET_GITHUB_TAGS, g-truc/glm)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
mkdir '$(1).build'
|
|
|
|
|
|
|
|
cd '$(1).build' && $(TARGET)-cmake '$(1)'
|
|
|
|
|
|
|
|
$(MAKE) -C '$(1).build' -j '$(JOBS)' install
|
|
|
|
|
|
|
|
'$(TARGET)-g++' \
|
|
|
|
-W -Wall -Werror -ansi -pedantic \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-glm.exe'
|
2016-05-18 08:25:23 +01:00
|
|
|
endef
|
|
|
|
|