diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-11-17 14:21:47 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-11-17 14:21:47 (GMT) |
commit | 38e54d63dc17f68e419cb4478540a45302124f2e (patch) | |
tree | 9e7d80c561674bdd97c846438fe379fffee2ac93 /src/tinyxml.mk | |
parent | 64ae0fd27a075983eaf170e780686057a6b03f76 (diff) | |
download | mxe-38e54d63dc17f68e419cb4478540a45302124f2e.zip mxe-38e54d63dc17f68e419cb4478540a45302124f2e.tar.gz mxe-38e54d63dc17f68e419cb4478540a45302124f2e.tar.bz2 |
simplified build file of package tinyxml
Diffstat (limited to 'src/tinyxml.mk')
-rw-r--r-- | src/tinyxml.mk | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/src/tinyxml.mk b/src/tinyxml.mk index 8cbe7ff..93ff40c 100644 --- a/src/tinyxml.mk +++ b/src/tinyxml.mk @@ -4,36 +4,32 @@ # tinyxml PKG := tinyxml $(PKG)_IGNORE := -$(PKG)_VERSION := 2_6_1 +$(PKG)_VERSION := 2.6.1 $(PKG)_CHECKSUM := 2ff9c177a6c0bef10cbd27700b71826801c12987 -$(PKG)_SUBDIR := tinyxml -$(PKG)_FILE := tinyxml_$($(PKG)_VERSION).tar.gz -$(PKG)_WEBSITE := http://sourceforge.net/projects/tinyxml/ -$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/tinyxml/tinyxml/$(subst _,.,$($(PKG)_VERSION))/$($(PKG)_FILE) +$(PKG)_SUBDIR := $(PKG) +$(PKG)_FILE := $(PKG)_$(subst .,_,$($(PKG)_VERSION)).tar.gz +$(PKG)_WEBSITE := http://sourceforge.net/projects/$(PKG)/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := gcc define $(PKG)_UPDATE $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/tinyxml/files/tinyxml/) | \ $(SED) -n 's,.*tinyxml_\([0-9][^>]*\)\.tar.*,\1,p' | \ + $(SED) 's,_,.,g' | \ tail -1 endef define $(PKG)_BUILD - cd '$(1)' && \ - $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL -o tinyxml.o tinyxml.cpp && \ - $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL -o tinyxmlparser.o tinyxmlparser.cpp && \ - $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL -o tinyxmlerror.o tinyxmlerror.cpp && \ - $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL -o tinystr.o tinystr.cpp && \ - $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL -o tinyxmlerror.o tinyxmlerror.cpp && \ - $(TARGET)-ar cr libtinyxml.a tinystr.o tinyxmlerror.o tinyxml.o tinyxmlparser.o + cd '$(1)' && $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL '$(1)'/*.cpp + cd '$(1)' && $(TARGET)-ar cr libtinyxml.a *.o $(TARGET)-ranlib '$(1)/libtinyxml.a' - $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' - $(INSTALL) -m644 '$(1)/libtinyxml.a' '$(PREFIX)/$(TARGET)/lib/libtinyxml.a' - $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' - $(INSTALL) -m644 '$(1)/tinyxml.h' '$(1)/tinystr.h' '$(PREFIX)/$(TARGET)/include/' + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' + $(INSTALL) -m644 '$(1)'/*.a '$(PREFIX)/$(TARGET)/lib/' + $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' + $(INSTALL) -m644 '$(1)'/*.h '$(PREFIX)/$(TARGET)/include/' '$(TARGET)-g++' \ -W -Wall -D TIXML_USE_STL -Werror -ansi -pedantic \ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-tinyxml.exe' \ - -I'$(PREFIX)/$(TARGET)/include/' -ltinyxml + -ltinyxml endef |