This commit is contained in:
Max Howell committed 2009-10-23 19:22:39 +01:00
1 parent 5c54f5747b
commit 0b7e5cd4eb
4 files changed
-27

No files matched your search

-6
View File
@@ -12,16 +12,10 @@ class SdlImage <Formula
ENV.x11 # For Freetype
system "./configure", "--prefix=#{prefix}",
"--includedir=#{prefix}/priv_include",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-sdltest",
"--with-freetype-exec-prefix=/usr/X11"
system "make install"
# Hack alert:
# Since SDL is installed as a dependency, we know it exists, so we
# symlink our new header file into its brewed location.
FileUtils.ln_s "#{prefix}/priv_include/SDL/SDL_image.h", "#{HOMEBREW_PREFIX}/include/SDL"
end
end
-9
View File
@@ -11,18 +11,9 @@ class SdlMixer <Formula
#depends_on 'smpeg' => :optional # http://icculus.org/smpeg/
def install
# We use a private include folder, and then
# symlink the header file ourselves.
# See: http://github.com/mxcl/homebrew/issues#issue/62
system "./configure", "--prefix=#{prefix}",
"--includedir=#{prefix}/priv_include",
"--disable-debug",
"--disable-dependency-tracking"
system "make install"
# Hack alert:
# Since SDL is installed as a dependency, we know it exists, so we
# symlink our new header file into its brewed location.
FileUtils.ln_s "#{prefix}/priv_include/SDL/SDL_mixer.h", "#{HOMEBREW_PREFIX}/include/SDL"
end
end
-6
View File
@@ -9,15 +9,9 @@ class SdlNet <Formula
def install
system "./configure", "--prefix=#{prefix}",
"--includedir=#{prefix}/priv_include",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-sdltest"
system "make install"
# Hack alert:
# Since SDL is installed as a depency, we know it exists, so we
# symlink our new header file into its brewed location.
FileUtils.ln_s "#{prefix}/priv_include/SDL/SDL_net.h", "#{HOMEBREW_PREFIX}/include/SDL"
end
end
-6
View File
@@ -11,16 +11,10 @@ class SdlTtf <Formula
ENV.x11 # For Freetype
system "./configure", "--prefix=#{prefix}",
"--includedir=#{prefix}/priv_include",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-sdltest",
"--with-freetype-exec-prefix=/usr/X11"
system "make install"
# Hack alert:
# Since SDL is installed as a dependency, we know it exists, so we
# symlink our new header file into its brewed location.
FileUtils.ln_s "#{prefix}/priv_include/SDL/SDL_ttf.h", "#{HOMEBREW_PREFIX}/include/SDL"
end
end