You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/liboauth.mk

32 lines
973 B

# This file is part of MXE.
# See index.html for further information.
PKG := liboauth
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 2631b489c150187adcca264fe813d58b2c22bf8a
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(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