homebrew-core/Formula/xerces-c.rb
Sidney Markowitz 78a59b7c9d xerces-c add --univeral option
This adds the --universal option to the xerces-c formula.
No change to the xerces-c build process was required
using the standard mechanisms in homebrew for universal builds.
Tested by building and using universal binaries generated
on both 32 bit and 64 bit systems running Snow Leopard.

Closes Homebrew/homebrew#26919.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-22 07:00:29 -08:00

19 lines
585 B
Ruby

require 'formula'
class XercesC < Formula
homepage 'http://xerces.apache.org/xerces-c/'
url 'http://www.apache.org/dyn/closer.cgi?path=xerces/c/3/sources/xerces-c-3.1.1.tar.gz'
sha1 '177ec838c5119df57ec77eddec9a29f7e754c8b2'
option :universal
def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
# Remove a sample program that conflicts with libmemcached
# on case-insensitive file systems
(bin/"MemParse").unlink
end
end