From 69097eddfa25822ab9e63bf8370f2fa2417098d5 Mon Sep 17 00:00:00 2001 From: Nibbles 2bits Date: Mon, 24 Oct 2011 13:16:52 -0700 Subject: physfs: build oos + test_physfs physfs-2.0.2 update formula to build out of source, and specify -DPHYSFS_BUILD_TEST=TRUE so that we compile a cli named test_physfs that lets you interactively operate on supported archives (e.g. Quake II PAKs or DOOM WADs). There were no problems with 64bit OSX 10.6.8 with gcc, llvm, or clang from XCode 4.0.2. Closes #8273. Signed-off-by: Charlie Sharpsteen --- Library/Formula/physfs.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/physfs.rb b/Library/Formula/physfs.rb index c8e745bf4..189cb4726 100644 --- a/Library/Formula/physfs.rb +++ b/Library/Formula/physfs.rb @@ -8,7 +8,11 @@ class Physfs < Formula depends_on 'cmake' => :build def install - system "cmake . #{std_cmake_parameters} -DPHYSFS_BUILD_WX_TEST=FALSE" - system "make install" + mkdir 'macbuild' + Dir.chdir 'macbuild' do + system "cmake #{std_cmake_parameters} -DPHYSFS_BUILD_WX_TEST=FALSE -DPHYSFS_BUILD_TEST=TRUE .." + system "make" + system "make install" + end end end -- cgit v1.2.3