# # Copyright 2012-2014 Chef Software, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # name 'libtool' default_version '2.4.6' license 'GPL-2.0' license_file 'COPYING' skip_transitive_dependency_licensing true dependency 'config_guess' # NOTE: 2.4.6 2.4.2 do not compile on solaris2 yet version('2.4.6') { source sha256: 'e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3' } source url: "https://ftp.gnu.org/gnu/libtool/libtool-#{version}.tar.gz" relative_path "libtool-#{version}" build do env = with_standard_compiler_flags(with_embedded_path) update_config_guess update_config_guess(target: 'libltdl/config') command './configure' \ " --prefix=#{install_dir}/embedded", env: env make env: env make 'install', env: env end project.exclude 'embedded/share/libtool' project.exclude 'embedded/bin/libtool' project.exclude 'embedded/bin/libtoolize'