mxe/src/poco.mk

36 lines
1.0 KiB
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 :=
2013-11-19 02:53:12 +00:00
$(PKG)_VERSION := 1.4.6p2
$(PKG)_CHECKSUM := 90042349faf1790b5167bad0e84e1713bfd46046
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
2013-11-19 02:53:12 +00:00
$(PKG)_URL := http://pocoproject.org/releases/$(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
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_i686-w64-mingw32 =
$(PKG)_BUILD_SHARED =