1
General discussions / Re: SFML 2.2 - OSX Install script
« on: January 02, 2015, 10:18:05 pm »
I just pushed my CMakeLists.txt on my branch :
https://github.com/ludvichzme/SFML/blob/brew/CMakeLists.txt
It just adds a new option : SFML_INSTALL_EXTLIBS (default TRUE), which allow to skip the extlibs installation.
And my custom brew formula (actually use my local git branch) :
I'm gonna update the XCode template in my branch soon
So the only thing that will be missing in the brew formula will be installing them.
But there might be a little problem : if we want the brew formula to build stable sources (from a static zip file), you'll need to upload a new archive with the updated CMakeLists.
And also, since this change the CMakeLists, I think Laurent should review this (don't know if he will accept this new option
https://github.com/ludvichzme/SFML/blob/brew/CMakeLists.txt
It just adds a new option : SFML_INSTALL_EXTLIBS (default TRUE), which allow to skip the extlibs installation.
And my custom brew formula (actually use my local git branch) :
Quote
require "formula"
class Sfml < Formula
homepage "http://www.sfml-dev.org/"
head "/Users/ludovic/Development/projects/SFML-B", :using => :git, :branch => 'brew'
depends_on "cmake" => :build
depends_on "freetype"
depends_on "glew"
depends_on "jpeg"
depends_on "libsndfile"
def install
system "cmake", ".", "-DSFML_INSTALL_EXTLIBS=FALSE", *std_cmake_args
system "make", "install"
end
end
I'm gonna update the XCode template in my branch soon
So the only thing that will be missing in the brew formula will be installing them.
But there might be a little problem : if we want the brew formula to build stable sources (from a static zip file), you'll need to upload a new archive with the updated CMakeLists.
And also, since this change the CMakeLists, I think Laurent should review this (don't know if he will accept this new option