diff options
author | Gareth Coco <garethcoco@gmail.com> | 2011-01-03 03:03:36 (GMT) |
---|---|---|
committer | Gareth Coco <garethcoco@gmail.com> | 2011-01-03 03:03:36 (GMT) |
commit | e9ec1dd0651c15e709d6a8a75cb7101d0e6d3b88 (patch) | |
tree | 95136a33509cf1f395d43736419cf4d434d7f69b /src/liboauth.mk | |
parent | 411507f2c2fe9ee7ef504b23877e5eb8bbc2def6 (diff) | |
download | mxe-e9ec1dd0651c15e709d6a8a75cb7101d0e6d3b88.zip mxe-e9ec1dd0651c15e709d6a8a75cb7101d0e6d3b88.tar.gz mxe-e9ec1dd0651c15e709d6a8a75cb7101d0e6d3b88.tar.bz2 |
new package: liboauth
Diffstat (limited to 'src/liboauth.mk')
-rw-r--r-- | src/liboauth.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/liboauth.mk b/src/liboauth.mk new file mode 100644 index 0000000..cbd50ed --- /dev/null +++ b/src/liboauth.mk @@ -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 |