Sha256: 7a384178e7b1788dae097ab8d69b3fa0cbc231bf4dc5caa54ba2286f234e1b26

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

require 'mkmf'

prefix_list = %w(/usr/local /opt/local)

if with_config('prefix')
	prefix_list << with_config('prefix')
end

# try to find hunspell lib
good_prefix = '/usr/local'
prefix_list.each do |prefix|
	if find_library('hunspell-1.1', 'Hunspell_create', prefix + "/lib")
		good_prefix = prefix
		break
	end
end

# workaround for FreeBSD where hunspell package does not deploy header files
# you can add include dir explicitly
inc_dir = if with_config("include-dir")
	with_config("include-dir")
else
	good_prefix+"/include"
end

dir_config("Hunspell" , inc_dir, good_prefix+"/lib")

create_makefile("Hunspell")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hunspell-0.1.1 extconf.rb