glm: use GH_CONF and BUILD_DIR/SOURCE_DIR

This commit is contained in:
Tony Theodore 2017-03-21 19:13:20 +11:00
parent 8e86399651
commit a71ca3cb58
1 changed files with 5 additions and 13 deletions

View File

@ -6,24 +6,16 @@ $(PKG)_DESCR := GLM - OpenGL Mathematics
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.9.7.6
$(PKG)_CHECKSUM := 872fdea580b69b752562adc60734d7472fd97d5724c4ead585564083deac3953
$(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)_GH_CONF := g-truc/glm
$(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
cd '$(BUILD_DIR)' && $(TARGET)-cmake \
'$(SOURCE_DIR)'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-glm.exe'
endef