liboauth: Add new package
authorWill Newton <will.newton@gmail.com>
Thu, 2 Feb 2012 11:28:11 +0000 (11:28 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 2 Feb 2012 11:48:39 +0000 (12:48 +0100)
[Peter: swap libcurl test around]
Signed-off-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/liboauth/Config.in [new file with mode: 0644]
package/liboauth/liboauth.mk [new file with mode: 0644]

index c506df8b910ea092f217493b1513ee681f46209b..66ee266932a403c84a9d3a0d8736cd42c0133dfd 100644 (file)
@@ -350,6 +350,7 @@ source "package/libdnet/Config.in"
 source "package/libesmtp/Config.in"
 source "package/libeXosip2/Config.in"
 source "package/libidn/Config.in"
+source "package/liboauth/Config.in"
 source "package/libmicrohttpd/Config.in"
 source "package/neon/Config.in"
 source "package/libmnl/Config.in"
diff --git a/package/liboauth/Config.in b/package/liboauth/Config.in
new file mode 100644 (file)
index 0000000..77a78f1
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBOAUTH
+       bool "liboauth"
+       select BR2_PACKAGE_OPENSSL
+       help
+         liboauth is a collection of c functions implementing the oAuth
+         Core 1.0 Rev A standard API. liboauth provides basic functions to
+         escape and encode parameters according to oAuth specs and offers
+         high-level functions to sign requests or verify signatures.
+
+         http://liboauth.sourceforge.net/
diff --git a/package/liboauth/liboauth.mk b/package/liboauth/liboauth.mk
new file mode 100644 (file)
index 0000000..8646947
--- /dev/null
@@ -0,0 +1,19 @@
+#############################################################
+#
+# liboauth
+#
+#############################################################
+LIBOAUTH_VERSION = 0.9.6
+LIBOAUTH_SOURCE = liboauth-$(LIBOAUTH_VERSION).tar.gz
+LIBOAUTH_SITE = http://liboauth.sourceforge.net/pool
+LIBOAUTH_INSTALL_STAGING = YES
+
+LIBOAUTH_DEPENDENCIES += host-pkg-config openssl
+
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+LIBOAUTH_DEPENDENCIES += libcurl
+else
+LIBOAUTH_CONF_OPT += --disable-libcurl
+endif
+
+$(eval $(call AUTOTARGETS))