Mercurial > louis > homebrew-lightsd
changeset 8:a4fe077d948e
lightsd 0.9.4: more fixes and more documentation
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Wed, 16 Sep 2015 02:17:42 -0700 |
parents | 1e56ec47311a |
children | f8a2413f1fbe |
files | lightsd.rb |
diffstat | 1 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lightsd.rb Mon Sep 14 01:50:46 2015 -0700 +++ b/lightsd.rb Wed Sep 16 02:17:42 2015 -0700 @@ -3,8 +3,8 @@ class Lightsd < Formula desc "Daemon to control your LIFX wifi smart bulbs" homepage "https://github.com/lopter/lightsd/" - url "https://github.com/lopter/lightsd/archive/0.9.3.tar.gz" - sha256 "b66e5663c0c1f563656f0f070b151a7d14622719c9029253d573b8db787d0da6" + url "https://github.com/lopter/lightsd/archive/0.9.4.tar.gz" + sha256 "c48459a4ae5ef1184dd79a9152f573117870bc75b8ec72335bee0504309dd6c1" revision 1 depends_on "cmake" => :build @@ -15,6 +15,17 @@ args = std_cmake_args args << "-DLGTD_RUNTIME_DIRECTORY=#{var}/run/lightsd" + # idk what std_cmake_args is supposed to do but it appears to be missing + # proper release flags: + cflags = %W[ + -fstack-protector-strong + --param=ssp-buffer-size=4 + -O3 + -DNDEBUG + ] + args << "-DCMAKE_BUILD_TYPE=RELEASE" + args << "-DCMAKE_C_FLAGS_RELEASE='#{cflags * " "}'" + system "cmake", *args system "make", "install" end