apib: opt_prefix/libexec => opt_libexec
This commit is contained in:
parent
618ac8acdb
commit
535d27a964
1 changed files with 6 additions and 6 deletions
|
@ -24,13 +24,13 @@ class Apib < Formula
|
|||
# https://github.com/apigee/apib/issues/11
|
||||
unless MacOS::CLT.installed?
|
||||
inreplace "configure" do |s|
|
||||
s.gsub! "/usr/include/apr-1.0", "#{Formula["apr"].opt_prefix}/libexec/include/apr-1"
|
||||
s.gsub! "/usr/include/apr-1", "#{Formula["apr"].opt_prefix}/libexec/include/apr-1"
|
||||
s.gsub! "/usr/include/apr-1.0", "#{Formula["apr"].opt_libexec}/include/apr-1"
|
||||
s.gsub! "/usr/include/apr-1", "#{Formula["apr"].opt_libexec}/include/apr-1"
|
||||
end
|
||||
ENV.append "LDFLAGS", "-L#{Formula["apr-util"].opt_prefix}/libexec/lib"
|
||||
ENV.append "LDFLAGS", "-L#{Formula["apr"].opt_prefix}/libexec/lib"
|
||||
ENV.append "CFLAGS", "-I#{Formula["apr"].opt_prefix}/libexec/include/apr-1"
|
||||
ENV.append "CFLAGS", "-I#{Formula["apr-util"].opt_prefix}/libexec/include/apr-1"
|
||||
ENV.append "LDFLAGS", "-L#{Formula["apr-util"].opt_libexec}/lib"
|
||||
ENV.append "LDFLAGS", "-L#{Formula["apr"].opt_libexec}/lib"
|
||||
ENV.append "CFLAGS", "-I#{Formula["apr"].opt_libexec}/include/apr-1"
|
||||
ENV.append "CFLAGS", "-I#{Formula["apr-util"].opt_libexec}/include/apr-1"
|
||||
end
|
||||
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
|
|
Loading…
Reference in a new issue