homebrew-core/Formula/io.rb

47 lines
1.2 KiB
Ruby
Raw Normal View History

2009-11-12 18:15:15 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Io < Formula
2009-11-12 18:15:15 +00:00
head 'git://github.com/stevedekorte/io.git'
homepage 'http://iolanguage.com/'
depends_on 'cmake' => :build
depends_on 'libsgml'
# Either CMake doesn't detect OS X's png include path correctly,
# or there's an issue with io's build system; force the path in
# so we can build.
def patches
DATA
end
2009-11-12 18:15:15 +00:00
def install
ENV.j1
2010-06-17 23:53:05 +00:00
mkdir 'io-build'
Dir.chdir 'io-build' do
system "cmake .. #{std_cmake_parameters}"
system "make install"
end
2010-06-17 23:53:05 +00:00
rm_f Dir['docs/*.pdf']
doc.install Dir['docs/*']
2010-06-17 23:53:05 +00:00
prefix.install 'license/bsd_license.txt' => 'LICENSE'
2009-11-12 18:15:15 +00:00
end
end
__END__
diff --git a/addons/Image/CMakeLists.txt b/addons/Image/CMakeLists.txt
index a65693d..2166f1b 100644
--- a/addons/Image/CMakeLists.txt
+++ b/addons/Image/CMakeLists.txt
@@ -22,7 +22,7 @@ if(PNG_FOUND AND TIFF_FOUND AND JPEG_FOUND)
add_definitions(-DBUILDING_IMAGE_ADDON)
# Additional include directories
- include_directories(${PNG_INCLUDE_DIR} ${TIFF_INCLUDE_DIR} ${JPEG_INCLUDE_DIR})
+ include_directories("/usr/X11/include" ${PNG_INCLUDE_DIR} ${TIFF_INCLUDE_DIR} ${JPEG_INCLUDE_DIR})
# Generate the IoImageInit.c file.
# Argument SHOULD ALWAYS be the exact name of the addon, case is