Sha256: 3f29c34c6a65b656b88843ae1a58a588b066eb305015e8c22f7a6c562c5313a1

Contents?: true

Size: 1.62 KB

Versions: 7

Compression:

Stored size: 1.62 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 "libxml2"
default_version "2.7.8"

dependency "zlib"
dependency "libiconv"

version "2.7.8" do
  source md5: "8127a65e8c3b08856093099b52599c86"
end

version "2.9.1" do
  source md5: "9c0cfef285d5c4a5c80d00904ddab380"
end

source url: "ftp://xmlsoft.org/libxml2/libxml2-#{version}.tar.gz"

relative_path "libxml2-#{version}"

build do
  cmd = ["./configure",
         "--prefix=#{install_dir}/embedded",
         "--with-zlib=#{install_dir}/embedded",
         "--with-iconv=#{install_dir}/embedded",
         "--without-python",
         "--without-icu"].join(" ")
  env = {
    "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
    "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
    "LD_RUN_PATH" => "#{install_dir}/embedded/lib"
  }
  command cmd, :env => env
  command "make -j #{max_build_jobs}", :env => {"LD_RUN_PATH" => "#{install_dir}/embedded/lib"}
  command "make install", :env => {"LD_RUN_PATH" => "#{install_dir}/embedded/lib"}
end

Version data entries

7 entries across 7 versions & 1 rubygems

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