summaryrefslogtreecommitdiff
path: root/config/software/c-example.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-06 22:28:38 -0600
committermo khan <mo@mokhan.ca>2014-05-06 22:28:38 -0600
commita6a319d8081821259d1d6e9728e658339f7cb493 (patch)
tree17091cfc36a341c364624e3913b4b6fde9b312a4 /config/software/c-example.rb
parent4d889c058bbc80106749dffc592320c32bcf9571 (diff)
create mathy package.main
Diffstat (limited to 'config/software/c-example.rb')
-rw-r--r--config/software/c-example.rb42
1 files changed, 0 insertions, 42 deletions
diff --git a/config/software/c-example.rb b/config/software/c-example.rb
deleted file mode 100644
index c9389b4..0000000
--- a/config/software/c-example.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-# 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
-
-end