mxe/src/tinyxml2.mk

32 lines
1.1 KiB
Makefile
Raw Normal View History

2014-12-13 23:15:18 +00:00
# This file is part of MXE.
# See index.html for further information.
PKG := tinyxml2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 4.0.1
$(PKG)_CHECKSUM := 14b38ef25cc136d71339ceeafb4856bb638d486614103453eccd323849267f20
2014-12-13 23:15:18 +00:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/leethomason/tinyxml2/archive/$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://github.com/leethomason/tinyxml2/releases' | \
$(SED) -n 's,.*/archive/\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && '$(TARGET)-cmake' \
-DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \
-DBUILD_STATIC_LIBS=$(CMAKE_STATIC_BOOL) \
'$(SOURCE_DIR)'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
2014-12-13 23:15:18 +00:00
'$(TARGET)-g++' \
-W -Wall -ansi -pedantic \
'$(SOURCE_DIR)/xmltest.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
2015-09-21 17:30:24 +01:00
endef