mxe/src/tinyxml.mk

32 lines
1.0 KiB
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2010-11-17 13:32:50 +00:00
PKG := tinyxml
2017-03-04 10:33:47 +00:00
$(PKG)_WEBSITE := https://sourceforge.net/projects/tinyxml/
2010-11-17 13:32:50 +00:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.6.2
$(PKG)_CHECKSUM := 15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593
$(PKG)_SUBDIR := $(PKG)
$(PKG)_FILE := $(PKG)_$(subst .,_,$($(PKG)_VERSION)).tar.gz
2017-03-05 03:41:39 +00:00
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc
2010-11-17 13:32:50 +00:00
2016-07-29 12:24:51 +01:00
$(PKG)_MESSAGE :=*** tinyxml is deprecated - please use tinyxml2 ***
2010-11-17 13:32:50 +00:00
define $(PKG)_UPDATE
2017-03-04 10:33:47 +00:00
$(WGET) -q -O- 'https://sourceforge.net/projects/tinyxml/files/tinyxml/' | \
$(SED) -n 's,.*/projects/.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
2010-11-17 13:32:50 +00:00
endef
define $(PKG)_BUILD
mkdir '$(1).build'
cd '$(1).build' && '$(TARGET)-cmake' '$(1)'
$(MAKE) -C '$(1).build' install
2010-11-17 13:32:50 +00:00
'$(TARGET)-g++' \
2015-07-27 01:00:23 +01:00
-Wall -DTIXML_USE_STL -ansi -pedantic \
'$(1)/xmltest.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-tinyxml.exe' \
-ltinyxml
2015-06-23 10:13:56 +01:00
2010-11-17 13:32:50 +00:00
endef