annotate src/tinyxml.mk @ 2349:f48c5b085a38

Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 29 Mar 2012 11:07:07 +0200
parents f653602a0500
children 99516e73b368
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1818
diff changeset
1 # This file is part of MXE.
1391
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 :=
1818
03b448fa1a9c update packages fltk tinyxml
Mark Brand <mabrand@mabrand.nl>
parents: 1466
diff changeset
7 $(PKG)_CHECKSUM := cba3f50dd657cb1434674a03b21394df9913d764
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
8 $(PKG)_SUBDIR := $(PKG)
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
9 $(PKG)_FILE := $(PKG)_$(subst .,_,$($(PKG)_VERSION)).tar.gz
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
10 $(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
11 $(PKG)_DEPS := gcc
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
12
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1394
diff changeset
14 wget -q -O- 'http://sourceforge.net/projects/tinyxml/files/tinyxml/' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1394
diff changeset
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1394
diff changeset
16 head -1
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
17 endef
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
18
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
19 define $(PKG)_BUILD
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
20 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
21 cd '$(1)' && $(TARGET)-ar cr libtinyxml.a *.o
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
22 $(TARGET)-ranlib '$(1)/libtinyxml.a'
1394
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
23 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
24 $(INSTALL) -m644 '$(1)'/*.a '$(PREFIX)/$(TARGET)/lib/'
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
25 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
e060d91fe3b6 simplified build file of package tinyxml
Volker Grabsch <vog@notjusthosting.com>
parents: 1391
diff changeset
26 $(INSTALL) -m644 '$(1)'/*.h '$(PREFIX)/$(TARGET)/include/'
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
27
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
28 '$(TARGET)-g++' \
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
29 -W -Wall -D TIXML_USE_STL -Werror -ansi -pedantic \
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
30 '$(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
31 -ltinyxml
1391
ff977838d8b5 new package: tinyxml
Alexandre Bacquart <tek512@gmail.com>
parents:
diff changeset
32 endef