glib: add option for static library creation

Closes Homebrew/homebrew#25505.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Mitch Tishmack 2013-12-27 19:38:48 -06:00 committed by Adam Vandenberg
parent 618df09967
commit ab3ebe9269
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class Glib < Formula
option :universal
option 'test', 'Build a debug build and run tests. NOTE: Not all tests succeed yet'
option 'with-static', 'Build glib with a static archive.'
depends_on 'pkg-config' => :build
depends_on 'gettext'
@ -53,6 +54,8 @@ class Glib < Formula
--with-gio-module-dir=#{HOMEBREW_PREFIX}/lib/gio/modules
]
args << '--enable-static' if build.with? 'static'
system "./configure", *args
if build.universal?