Sha256: 831188e8b146c4e55c0ca8b97229bd777a91a2dca6b4546bc37bd61b8f6ea438

Contents?: true

Size: 1.24 KB

Versions: 9

Compression:

Stored size: 1.24 KB

Contents

# This is an example software definition for a C project.
#
# Lots of software definitions for popular open source software
# already exist in `opscode-omnibus`:
#
#  https://github.com/opscode/omnibus-software/tree/master/config/software
#
name "c-example"
version "1.0.0"

dependency "zlib"
dependency "openssl"

source :url => "http://itchy.neckbeard.se/download/c-example-1.0.0.tar.gz",
       :md5 => "8e23151f569fb54afef093ac0695077d"

relative_path 'c-example-1.0.0'

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"
}

build do
  command ["./configure",
           "--prefix=#{install_dir}/embedded",
           "--disable-debug",
           "--enable-optimize",
           "--disable-ldap",
           "--disable-ldaps",
           "--disable-rtsp",
           "--enable-proxy",
           "--disable-dependency-tracking",
           "--enable-ipv6",
           "--without-libidn",
           "--with-ssl=#{install_dir}/embedded",
           "--with-zlib=#{install_dir}/embedded"].join(" "), :env => env

  command "make -j #{max_build_jobs}", :env => env
  command "make install"
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
omnibus-sonian-1.2.0.1 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.2.0 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.1.1 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.1.0 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.0.4 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.0.3 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.0.2 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.0.1 lib/omnibus/templates/software/c-example.rb.erb
omnibus-1.0.0 lib/omnibus/templates/software/c-example.rb.erb