mxe/src/tinyxml.mk

33 lines
982 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2010-11-17 13:32:50 +00:00
PKG := tinyxml
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.6.2
2011-05-15 09:06:41 +01:00
$(PKG)_CHECKSUM := cba3f50dd657cb1434674a03b21394df9913d764
$(PKG)_SUBDIR := $(PKG)
$(PKG)_FILE := $(PKG)_$(subst .,_,$($(PKG)_VERSION)).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
2010-11-17 13:32:50 +00:00
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/tinyxml/files/tinyxml/' | \
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
2010-11-17 13:32:50 +00:00
endef
define $(PKG)_BUILD
mkdir '$(1).build'
cd '$(1).build' && cmake \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),FALSE,TRUE) \
'$(1)'
$(MAKE) -C '$(1).build' install
2010-11-17 13:32:50 +00:00
'$(TARGET)-g++' \
2015-06-23 10:13:56 +01:00
-Wall -DTIXML_USE_STL -ansi -pedantic \
'$(1)/xmltest.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-tinyxml.exe' \
-ltinyxml
2010-11-17 13:32:50 +00:00
endef