homebrew-core/Formula/ossp-uuid.rb

28 lines
757 B
Ruby
Raw Normal View History

2010-05-26 18:49:40 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class OsspUuid < Formula
url 'ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz'
mirror 'http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz'
2010-05-26 18:49:40 +00:00
homepage 'http://www.ossp.org/pkg/lib/uuid/'
md5 '5db0d43a9022a6ebbbc25337ae28942f'
2012-02-04 06:04:45 +00:00
def options
[["--32-bit", "Build 32-bit only."]]
end
2010-05-26 18:49:40 +00:00
def install
2012-02-04 06:04:45 +00:00
if ARGV.include? '--32-bit'
ENV.append 'CFLAGS', '-arch i386'
ENV.append 'LDFLAGS', '-arch i386'
end
system "./configure", "--disable-debug",
2010-05-26 18:49:40 +00:00
"--without-perl",
"--without-php",
"--without-pgsql",
"--prefix=#{prefix}"
system "make"
system "make install"
end
end