annotate src/poco.mk @ 2816:5f8b6875b672

update package poco
author Mark Brand <mabrand@mabrand.nl>
date Fri, 12 Oct 2012 11:56:54 +0200
parents 4d0f3a9da57e
children 100e618349f7
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: 2314
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
3
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
4 PKG := poco
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2816
5f8b6875b672 update package poco
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
6 $(PKG)_CHECKSUM := 22ee6a217eb3f5e0f48c85893af128fe8955eb4f
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
8 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/sources/$(PKG)-$(word 1,$(subst p, ,$($(PKG)_VERSION)))/$($(PKG)_FILE)
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
11
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2438
diff changeset
13 $(WGET) -q -O- 'http://pocoproject.org/download/' | \
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
14 $(SED) -n 's,.*poco-\([0-9][^>/]*\)\.tar.*,\1,p' | \
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
15 head -1
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
16 endef
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
17
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
18 define $(PKG)_BUILD
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
19 cd '$(1)' && ./configure \
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
20 --config=MinGW-CrossEnv \
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
21 --static \
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
22 --prefix='$(PREFIX)/$(TARGET)'
2438
97fdc3814095 package poco: allow different VENDOR segments of host triplet
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
23 $(MAKE) -C '$(1)' -j '$(JOBS)' install CROSSENV=$(TARGET)
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
24
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
25 '$(TARGET)-g++' \
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
26 -W -Wall -Werror -ansi -pedantic \
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
27 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-poco.exe' \
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
28 -lPocoFoundation
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
29 endef