changeset 1526:7e8f36740d45

new package: liboauth
author Gareth Coco <garethcoco@gmail.com>
date Mon, 03 Jan 2011 14:03:36 +1100
parents 695e2b5cd616
children 5717df60d379
files src/liboauth.mk
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/liboauth.mk	Mon Jan 03 14:03:36 2011 +1100
@@ -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