view 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
line wrap: on
line source

# This file is part of mingw-cross-env.
# See doc/index.html for further information.

# POCO C++ Libraries
PKG             := poco
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 1.4.1p1
$(PKG)_CHECKSUM := e9810b8fc14c607626d7d3c74baf60726a61e83c
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $($(PKG)_SUBDIR).tar.gz
$(PKG)_WEBSITE  := http://pocoproject.org/
$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/sources/$(PKG)-$(word 1,$(subst p, ,$($(PKG)_VERSION)))/$($(PKG)_FILE)
$(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

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        --config=MinGW-CrossEnv \
        --static \
        --prefix='$(PREFIX)/$(TARGET)'
    $(MAKE) -C '$(1)' -j '$(JOBS)' install

    '$(TARGET)-g++' \
        -W -Wall -Werror -ansi -pedantic \
        '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-poco.exe' \
        -lPocoFoundation
endef