Setup build environment to include our prefix
This commit is contained in:
parent
41a7984bb1
commit
acc2f79696
@ -5,8 +5,12 @@ require 'pathname'
|
|||||||
$agent = "Homebrew 0.1 (Ruby; Mac OS X 10.5 Leopard)"
|
$agent = "Homebrew 0.1 (Ruby; Mac OS X 10.5 Leopard)"
|
||||||
$cellar = Pathname.new(__FILE__).dirname.parent.realpath
|
$cellar = Pathname.new(__FILE__).dirname.parent.realpath
|
||||||
|
|
||||||
|
#TODO don't add the prefixes if we're in /usr or /usr/local
|
||||||
ENV['MACOSX_DEPLOYMENT_TARGET']='10.5'
|
ENV['MACOSX_DEPLOYMENT_TARGET']='10.5'
|
||||||
ENV['CFLAGS']=ENV['CXXFLAGS']='-O3 -w'
|
ENV['CFLAGS']=ENV['CXXFLAGS']='-O3 -w'
|
||||||
|
ENV['CPPFLAGS']="-I#{$cellar.parent}/include"
|
||||||
|
ENV['LDFLAGS']="-L#{$cellar.parent}/lib"
|
||||||
|
|
||||||
|
|
||||||
def h1 title
|
def h1 title
|
||||||
puts "\033[0;34m==>\033[0;0;1m #{title} \033[0;0m"
|
puts "\033[0;34m==>\033[0;0;1m #{title} \033[0;0m"
|
||||||
@ -40,7 +44,9 @@ class Formula
|
|||||||
def brew
|
def brew
|
||||||
raise "@name.nil?" if @name.nil?
|
raise "@name.nil?" if @name.nil?
|
||||||
raise "@version.nil?" if @version.nil?
|
raise "@version.nil?" if @version.nil?
|
||||||
raise "@name does not validate to our regexp" unless /^\w+$/ =~ @name
|
|
||||||
|
# disabled until the regexp makes sense :P
|
||||||
|
#raise "@name does not validate to our regexp" unless /^\w+$/ =~ @name
|
||||||
|
|
||||||
beginning = Time.now
|
beginning = Time.now
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user