File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ require 'formula'
2+
3+ class Snoregrowl < Formula
4+ head 'git://github.com/Snorenotify/SnoreGrowl.git'
5+ url 'https://github.com/Snorenotify/SnoreGrowl/archive/v0.4.0.tar.gz'
6+ sha1 '16b84d2fb673438c8250cefd95f7e4c145e4cf22'
7+
8+ depends_on 'cmake' => :build
9+ depends_on 'qt'
10+
11+ def install
12+
13+ if MacOS . version >= 10.9
14+ sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"
15+ cfl = "CFLAGS=\" -mmacosx-version-min=10.9\" "
16+ cxxfl = "CXXFLAGS=\" -mmacosx-version-min=10.9\" "
17+ elsif MacOS . version >= 10.8
18+ sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
19+ cfl = "CFLAGS=\" -mmacosx-version-min=10.8\" "
20+ cxxfl = "CXXFLAGS=\" -mmacosx-version-min=10.8\" "
21+ else
22+ sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
23+ cfl = "CFLAGS=\" -mmacosx-version-min=10.7\" "
24+ cxxfl = "CXXFLAGS=\" -mmacosx-version-min=10.7\" "
25+ end
26+
27+ exp = "export #{ cfl } ; export #{ cxxfl } ; export SDKROOT=#{ sdk } "
28+
29+ system "#{ exp } ; cmake . #{ std_cmake_parameters } "
30+ system "#{ exp } ; make install"
31+ end
32+ end
You can’t perform that action at this time.
0 commit comments