minbif: add gnutls, respect optional dependencies.
Closes Homebrew/homebrew#26766. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
2cc7907ab9
commit
827097de36
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@ class Minbif < Formula
|
|||
depends_on 'glib'
|
||||
depends_on 'gettext'
|
||||
depends_on 'finch'
|
||||
depends_on 'gnutls'
|
||||
depends_on 'imlib2' => :optional
|
||||
depends_on 'libcaca' => :optional
|
||||
|
||||
|
@ -33,12 +34,12 @@ class Minbif < Formula
|
|||
args = %W[
|
||||
PREFIX=#{prefix}
|
||||
ENABLE_MINBIF=ON
|
||||
ENABLE_IMLIB=ON
|
||||
ENABLE_CACA=ON
|
||||
ENABLE_PLUGIN=ON
|
||||
ENABLE_VIDEO=OFF
|
||||
ENABLE_TLS=ON
|
||||
]
|
||||
args << 'ENABLE_IMLIB=' + ((build.include? 'imlib2') ? 'ON' : 'OFF')
|
||||
args << 'ENABLE_CACA=' + ((build.include? 'libcaca') ? 'ON' : 'OFF')
|
||||
args << 'ENABLE_PAM=' + ((build.include? 'pam') ? 'ON' : 'OFF')
|
||||
|
||||
system 'make', *args
|
||||
|
|
Loading…
Reference in a new issue