Sha256: 5d1ec7185e3393259c264635874adcff132dd522f62168210d4470f9f9084dae
Contents?: true
Size: 1.34 KB
Versions: 14
Compression:
Stored size: 1.34 KB
Contents
require "mkmf" require "mini_portile2" package_root_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) RbConfig::CONFIG["CC"] = RbConfig::MAKEFILE_CONFIG["CC"] = ENV["CC"] if ENV["CC"] ENV["CC"] = RbConfig::CONFIG["CC"] cross_build_p = enable_config("cross-build") MiniPortile.new("yaml", "0.2.5").tap do |recipe| recipe.files = [{ url: "https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz", sha256: "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4", }] recipe.target = File.join(package_root_dir, "ports") # configure the environment that MiniPortile will use for subshells if cross_build_p ENV.to_h.tap do |env| # -fPIC is necessary for linking into a shared library env["CFLAGS"] = [env["CFLAGS"], "-fPIC"].join(" ") env["SUBDIRS"] = "include src" # libyaml: skip tests recipe.configure_options += env.map { |key, value| "#{key}=#{value.strip}" } end end unless File.exist?(File.join(recipe.target, recipe.host, recipe.name, recipe.version)) recipe.cook end recipe.activate pkg_config(File.join(recipe.path, "lib", "pkgconfig", "yaml-0.1.pc")) end unless have_library("yaml", "yaml_get_version", "yaml.h") abort("\nERROR: *** could not find libyaml development environment ***\n\n") end create_makefile("rcee/precompiled/precompiled")
Version data entries
14 entries across 14 versions & 1 rubygems