notmuch/bindings/ruby/extconf.rb

26 lines
485 B
Ruby
Raw Permalink Normal View History

2010-05-22 07:45:40 +02:00
#!/usr/bin/env ruby
# coding: utf-8
# Copyright 2010, 2011, 2012 Ali Polatel <alip@exherbo.org>
2010-05-22 07:45:40 +02:00
# Distributed under the terms of the GNU General Public License v3
require 'mkmf'
dir = File.join(ENV['NOTMUCH_SRCDIR'], 'lib')
# includes
$INCFLAGS = "-I#{dir} #{$INCFLAGS}"
if ENV['EXTRA_LDFLAGS']
$LDFLAGS += " " + ENV['EXTRA_LDFLAGS']
end
if not ENV['LIBNOTMUCH']
exit 1
end
2010-05-22 07:45:40 +02:00
$LOCAL_LIBS += ENV['LIBNOTMUCH']
2010-05-22 07:45:40 +02:00
# Create Makefile
dir_config('notmuch')
create_makefile('notmuch')