mxe/src/poco.mk

30 lines
937 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2011-05-01 15:52:46 +01:00
PKG := poco
$(PKG)_IGNORE :=
2012-03-24 15:14:38 +00:00
$(PKG)_CHECKSUM := 9e1ef31d369c67eef2d3ce1ca8f2b6ac5cc38ec4
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/sources/$(PKG)-$(word 1,$(subst p, ,$($(PKG)_VERSION)))/$($(PKG)_FILE)
2011-05-01 15:52:46 +01:00
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://pocoproject.org/download/' | \
$(SED) -n 's,.*poco-\([0-9][^>/]*\)\.tar.*,\1,p' | \
head -1
endef
2011-05-01 15:52:46 +01:00
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--config=MinGW-CrossEnv \
--static \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install CROSSENV=$(TARGET)
2011-05-01 15:52:46 +01:00
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-poco.exe' \
-lPocoFoundation
2011-05-01 15:52:46 +01:00
endef