Sha256: 8d0096822728db5df4befeed7a087773a04f2a0705cc4fd4b3cad8976a26a858

Contents?: true

Size: 1.93 KB

Versions: 5

Compression:

Stored size: 1.93 KB

Contents

#
# Copyright:: Copyright (c) 2012-2014 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# 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 "libiconv"
default_version "1.14"

dependency "libgcc"

source :url => "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-#{version}.tar.gz",
       :md5 => 'e34509b1623cec449dfeb73d7ce9c6c6'

relative_path "libiconv-#{version}"

env = case platform
      when "aix"
        {
          "CC" => "xlc -q64",
          "CXX" => "xlC -q64",
          "LDFLAGS" => "-q64 -Wl,-blibpath:/usr/lib:/lib",
          "CFLAGS" => "-O -q64 -I#{install_dir}/embedded/include",
          "CXXFLAGS" => "-O -q64 -I#{install_dir}/embedded/include",
          "LD" => "ld -b64",
          "OBJECT_MODE" => "64",
          "ARFLAGS" => "-X64 cru "
        }
      else
        {
          "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
          "LD_RUN_PATH" => "#{install_dir}/embedded/lib"
        }
      end

if platform == "solaris2"
  env.merge!({"LDFLAGS" => "-R#{install_dir}/embedded/lib -L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include -static-libgcc", "LD_OPTIONS" => "-R#{install_dir}/embedded/lib"})
end

build do
  command "./configure --prefix=#{install_dir}/embedded", :env => env
  command "make -j #{max_build_jobs}", :env => env
  command "make -j #{max_build_jobs} install-lib libdir=#{install_dir}/embedded/lib includedir=#{install_dir}/embedded/include", :env => env
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
omnibus-3.2.1 spec/data/complicated/config/software/libiconv.rb
omnibus-3.2.0 spec/data/complicated/config/software/libiconv.rb
omnibus-3.2.0.rc.3 spec/data/complicated/config/software/libiconv.rb
omnibus-3.2.0.rc.2 spec/data/complicated/config/software/libiconv.rb
omnibus-3.2.0.rc.1 spec/data/complicated/config/software/libiconv.rb