mxe/src/liboauth.mk

35 lines
1.1 KiB
Makefile
Raw Normal View History

2011-01-03 03:03:36 +00:00
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# liboauth
PKG := liboauth
$(PKG)_IGNORE :=
2011-12-13 07:50:56 +00:00
$(PKG)_VERSION := 0.9.6
$(PKG)_CHECKSUM := 9182ca5d7e127589d132377b807d0c8a8878b122
2011-01-03 03:03:36 +00:00
$(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
2011-01-03 05:37:00 +00:00
wget -q -O- 'http://liboauth.sourceforge.net/' | \
$(SED) -n 's,.*liboauth-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
2011-01-03 03:03:36 +00:00
endef
define $(PKG)_BUILD
2011-01-03 05:37:00 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-curl
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
2011-01-03 05:37:00 +00:00
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-liboauth.exe' \
`'$(TARGET)-pkg-config' oauth --cflags --libs`
2011-01-03 03:03:36 +00:00
endef