new package: liboauth

This commit is contained in:
Gareth Coco 2011-01-03 14:03:36 +11:00
parent 411507f2c2
commit e9ec1dd065
1 changed files with 32 additions and 0 deletions

32
src/liboauth.mk Normal file
View File

@ -0,0 +1,32 @@
# 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 \
HASH_LIBS="`$(TARGET)-pkg-config --libs libcrypto`" \
HASH_CFLAGS="`$(TARGET)-pkg-config --cflags libcrypto`"
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j '$(JOBS)' check
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef