From 60fe22d0d75e3258f95b488933f6975e50cfdff4 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 24 Feb 2014 21:25:59 -0800 Subject: encfs: Formula[] --- Library/Formula/encfs.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/encfs.rb b/Library/Formula/encfs.rb index 68fa7241f..f093bf974 100644 --- a/Library/Formula/encfs.rb +++ b/Library/Formula/encfs.rb @@ -24,8 +24,9 @@ class Encfs < Formula def install # Add correct flags for linkage with {osx,}fuse and gettext libs - ENV.append 'CPPFLAGS', %x[pkg-config fuse --cflags].chomp + "-I#{Formula.factory('gettext').include}" - ENV.append 'LDFLAGS', %x[pkg-config fuse --libs].chomp + "-L#{Formula.factory('gettext').lib}" + gettext = Formula['gettext'] + ENV.append 'CPPFLAGS', %x[pkg-config fuse --cflags].chomp + "-I#{gettext.include}" + ENV.append 'LDFLAGS', %x[pkg-config fuse --libs].chomp + "-L#{gettext.lib}" inreplace "configure", "-lfuse", "-losxfuse" # Adapt to changes in recent Xcode by making local copy of endian-ness definitions -- cgit v1.2.3