Mercurial > mxe-octave
annotate src/poco.mk @ 2314:f04ef4f56cf0
update packages proj, poco
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Sun, 25 Mar 2012 02:14:38 +1100 |
parents | 8b83f56d4334 |
children | f653602a0500 |
rev | line source |
---|---|
1804 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # POCO C++ Libraries | |
5 PKG := poco | |
6 $(PKG)_IGNORE := | |
2314
f04ef4f56cf0
update packages proj, poco
Tony Theodore <tonyt@logyst.com>
parents:
1805
diff
changeset
|
7 $(PKG)_VERSION := 1.4.3p1 |
f04ef4f56cf0
update packages proj, poco
Tony Theodore <tonyt@logyst.com>
parents:
1805
diff
changeset
|
8 $(PKG)_CHECKSUM := 9e1ef31d369c67eef2d3ce1ca8f2b6ac5cc38ec4 |
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 | 13 $(PKG)_DEPS := gcc |
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 | 21 define $(PKG)_BUILD |
22 cd '$(1)' && ./configure \ | |
23 --config=MinGW-CrossEnv \ | |
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 | 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 | 32 endef |