Permalink
Browse files

Add OpenSSL 1.0.0j recipe

  • Loading branch information...
1 parent 212c4d4 commit 2f6d549408a0fc3f375164307acf1382b49f1dc0 @luislavena luislavena committed May 20, 2012
Showing with 32 additions and 0 deletions.
  1. +32 −0 openssl/openssl-1.0.0j.knapfile
View
32 openssl/openssl-1.0.0j.knapfile
@@ -0,0 +1,32 @@
+recipe "openssl", "1.0.0j" do
+ use :autotools
+
+ fetch "http://distfiles.openknapsack.org/#{name}/#{name}-#{version}.tar.gz",
+ :md5 => "cbe4ac0d8f598680f68a951e04b0996b"
+
+ depends_on "zlib"
+
+ before :extract do
+ # ignore symlink errors from package
+ if platform.mingw?
+ options.ignore_extract_errors = true
+ end
+ end
+
+ action :configure do
+ cmd = ["perl", "Configure"]
+
+ if platform.mingw?
+ if platform.x64?
+ cmd << "mingw64"
+ else
+ cmd << "mingw"
+ end
+ end
+
+ cmd << "zlib-dynamic shared"
+ cmd << "--prefix=#{install_path}"
+
+ run cmd.join(" ")
+ end
+end

0 comments on commit 2f6d549

Please sign in to comment.