annotate src/poco.mk @ 1805:8b83f56d4334

corrections and improvements for package poco
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 01 May 2011 17:44:17 +0200
parents 23ed773796dc
children f04ef4f56cf0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
2 # See doc/index.html for further information.
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 # POCO C++ Libraries
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
5 PKG := poco
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
7 $(PKG)_VERSION := 1.4.1p1
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := e9810b8fc14c607626d7d3c74baf60726a61e83c
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
10 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
11 $(PKG)_WEBSITE := http://pocoproject.org/
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
12 $(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
13 $(PKG)_DEPS := gcc
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
14
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
15 define $(PKG)_UPDATE
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
16 wget -q -O- 'http://pocoproject.org/download/' | \
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
17 $(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
18 head -1
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
19 endef
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
20
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
21 define $(PKG)_BUILD
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
23 --config=MinGW-CrossEnv \
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
24 --static \
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)'
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
26 $(MAKE) -C '$(1)' -j '$(JOBS)' install
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
27
1805
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
28 '$(TARGET)-g++' \
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
29 -W -Wall -Werror -ansi -pedantic \
8b83f56d4334 corrections and improvements for package poco
Volker Grabsch <vog@notjusthosting.com>
parents: 1804
diff changeset
30 '$(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
31 -lPocoFoundation
1804
23ed773796dc new package: poco
Finny Thomas <finny.thomas@gmail.com>
parents:
diff changeset
32 endef