2011-09-23 02:57:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class P11Kit < Formula
|
|
|
|
homepage 'http://p11-glue.freedesktop.org'
|
2013-04-19 08:06:23 +00:00
|
|
|
url 'http://p11-glue.freedesktop.org/releases/p11-kit-0.18.1.tar.gz'
|
|
|
|
sha256 '6e87e72b7768288384de2ca1929b3cb45502e9e944fc075a8ce5df8f08f1ab29'
|
2011-09-23 02:57:08 +00:00
|
|
|
|
2013-01-05 22:07:27 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-04-04 23:38:10 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libtasn1'
|
|
|
|
|
2013-04-19 08:06:23 +00:00
|
|
|
def patches; DATA; end
|
2013-04-04 23:38:10 +00:00
|
|
|
|
2011-09-23 02:57:08 +00:00
|
|
|
def install
|
2013-01-05 22:07:27 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2011-09-23 02:57:08 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2013-04-04 23:38:10 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--without-trust-paths"
|
2011-09-23 02:57:08 +00:00
|
|
|
system "make"
|
|
|
|
system "make check"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-04-04 23:38:10 +00:00
|
|
|
|
|
|
|
__END__
|
2013-04-19 08:06:23 +00:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
|
index b3c7610..6614ae5 100644
|
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
|
|
|
@@ -398,7 +398,17 @@ echo $PACKAGE_VERSION | tr '.' ' ' | while read major minor unused; do
|
|
|
|
break
|
|
|
|
done
|
2013-04-04 23:38:10 +00:00
|
|
|
|
2013-04-19 08:06:23 +00:00
|
|
|
-eval SHLEXT=$shrext_cmds
|
|
|
|
+case "$host" in
|
|
|
|
+*-*-darwin*)
|
|
|
|
+ # It seems like libtool lies about this see:
|
|
|
|
+ # https://bugs.freedesktop.org/show_bug.cgi?id=57714
|
|
|
|
+ SHLEXT='.so'
|
|
|
|
+ ;;
|
|
|
|
+*)
|
|
|
|
+ eval SHLEXT=$shrext_cmds
|
|
|
|
+ ;;
|
|
|
|
+esac
|
|
|
|
+
|
|
|
|
AC_DEFINE_UNQUOTED(SHLEXT, ["$SHLEXT"], [File extension for shared libraries])
|
|
|
|
AC_SUBST(SHLEXT)
|
2013-04-04 23:38:10 +00:00
|
|
|
|
2013-04-19 08:06:23 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
|
|
|
@@ -17315,7 +17201,17 @@
|
|
|
|
break
|
|
|
|
done
|
|
|
|
|
|
|
|
-eval SHLEXT=$shrext_cmds
|
|
|
|
+case "$host" in
|
|
|
|
+*-*-darwin*)
|
|
|
|
+ # It seems like libtool lies about this see:
|
|
|
|
+ # https://bugs.freedesktop.org/show_bug.cgi?id=57714
|
|
|
|
+ SHLEXT='.so'
|
|
|
|
+ ;;
|
|
|
|
+*)
|
|
|
|
+ eval SHLEXT=$shrext_cmds
|
|
|
|
+ ;;
|
|
|
|
+esac
|
|
|
|
+
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
|
|
#define SHLEXT "$SHLEXT"
|
|
|
|
--- p11-kit-0.18.1.orig/common/library.c 2013-04-03 08:30:32.000000000 -0700
|
|
|
|
+++ p11-kit-0.18.1/common/library.c 2013-04-18 21:26:47.000000000 -0700
|
2013-04-05 08:25:39 +00:00
|
|
|
@@ -125,7 +125,7 @@
|
|
|
|
uninit_common ();
|
|
|
|
|
|
|
|
/* Some cleanup to pacify valgrind */
|
|
|
|
- free (pthread_getspecific (thread_local));
|
|
|
|
+ /*free (pthread_getspecific (thread_local));*/
|
|
|
|
pthread_setspecific (thread_local, NULL);
|
|
|
|
|
|
|
|
p11_message_storage = dont_store_message;
|