view src/liboauth.mk @ 1527:5717df60d379

package liboauth: add test program and remove check target and associated variables
author Tony Theodore <tonyt@logyst.com>
date Mon, 03 Jan 2011 16:34:14 +1100
parents 7e8f36740d45
children 76279a31ddf6
line wrap: on
line source

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

# liboauth
PKG             := liboauth
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.9.1
$(PKG)_CHECKSUM := f554a8f5e4edbabd64df7638cf4a2f9060ac5671
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE  := http://liboauth.sourceforge.net/
$(PKG)_URL      := http://liboauth.sourceforge.net/pool/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc curl openssl

define $(PKG)_UPDATE
   wget -q -O- 'http://liboauth.sourceforge.net/' | \
   $(SED) -n 's,.*liboauth-\([0-9][^>]*\)\.tar.*,\1,p' | \
   head -1
endef

define $(PKG)_BUILD
   cd '$(1)' && ./configure \
       --host='$(TARGET)' \
       --prefix='$(PREFIX)/$(TARGET)' \
       --disable-shared \
       --disable-curl
   $(MAKE) -C '$(1)' -j '$(JOBS)'
   $(MAKE) -C '$(1)' -j 1 install
   
   '$(TARGET)-gcc' \
       -W -Wall -Werror -ansi -pedantic \
       '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-liboauth.exe' \
       `'$(TARGET)-pkg-config' oauth --cflags --libs`
endef