annotate src/tinyxml.mk @ 1394:e060d91fe3b6

simplified build file of package tinyxml
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 17 Nov 2010 15:21:47 +0100
parents ff977838d8b5
children 2726fbef533c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
2 # See doc/index.html for further information.
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
3
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
4 # tinyxml
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
5 PKG := tinyxml
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
7 $(PKG)_VERSION := 2.6.1
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 2ff9c177a6c0bef10cbd27700b71826801c12987
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
9 $(PKG)_SUBDIR := $(PKG)
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
10 $(PKG)_FILE := $(PKG)_$(subst .,_,$($(PKG)_VERSION)).tar.gz
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
11 $(PKG)_WEBSITE := http://sourceforge.net/projects/$(PKG)/
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
14
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
16 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/tinyxml/files/tinyxml/) | \
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
17 $(SED) -n 's,.*tinyxml_\([0-9][^>]*\)\.tar.*,\1,p' | \
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
18 $(SED) 's,_,.,g' | \
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
19 tail -1
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
20 endef
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
21
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
22 define $(PKG)_BUILD
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
23 cd '$(1)' && $(TARGET)-g++ -c -O3 -Wall -Wno-unknown-pragmas -Wno-format -D TIXML_USE_STL '$(1)'/*.cpp
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
24 cd '$(1)' && $(TARGET)-ar cr libtinyxml.a *.o
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
25 $(TARGET)-ranlib '$(1)/libtinyxml.a'
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
26 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
27 $(INSTALL) -m644 '$(1)'/*.a '$(PREFIX)/$(TARGET)/lib/'
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
29 $(INSTALL) -m644 '$(1)'/*.h '$(PREFIX)/$(TARGET)/include/'
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
30
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
31 '$(TARGET)-g++' \
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
32 -W -Wall -D TIXML_USE_STL -Werror -ansi -pedantic \
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
33 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-tinyxml.exe' \
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
34 -ltinyxml
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
35 endef