2009-11-12 18:15:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Io < Formula
|
2011-09-06 20:02:08 +00:00
|
|
|
url 'https://github.com/stevedekorte/io/tarball/2010.06.06'
|
|
|
|
md5 '7968fbe5367aad7a630fc7094be1775b'
|
|
|
|
head 'https://github.com/stevedekorte/io.git'
|
2011-09-20 03:45:16 +00:00
|
|
|
homepage 'http://iolanguage.com/'
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2011-09-20 03:45:16 +00:00
|
|
|
depends_on 'cmake' => :build if ARGV.build_head?
|
2010-03-01 19:04:42 +00:00
|
|
|
depends_on 'libsgml'
|
2011-05-25 02:43:11 +00:00
|
|
|
depends_on 'ossp-uuid'
|
2011-08-26 12:36:28 +00:00
|
|
|
depends_on 'libevent'
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2011-09-20 03:45:16 +00:00
|
|
|
# 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 if ARGV.build_head?
|
|
|
|
end
|
|
|
|
|
2009-11-12 18:15:15 +00:00
|
|
|
def install
|
2010-03-01 19:04:42 +00:00
|
|
|
ENV.j1
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2011-09-20 03:45:16 +00:00
|
|
|
if not ARGV.build_head?
|
|
|
|
system "make vm"
|
|
|
|
system "make install"
|
|
|
|
system "make port"
|
|
|
|
system "make install"
|
|
|
|
else
|
|
|
|
opoo "IO --HEAD usually doesn't build!"
|
|
|
|
|
|
|
|
mkdir 'io-build'
|
|
|
|
Dir.chdir 'io-build' do
|
|
|
|
system "cmake .. #{std_cmake_parameters}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2009-12-05 15:42:26 +00:00
|
|
|
|
2010-06-17 23:53:05 +00:00
|
|
|
rm_f Dir['docs/*.pdf']
|
2010-03-01 19:04:42 +00:00
|
|
|
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
|
2011-09-20 03:45:16 +00:00
|
|
|
|
|
|
|
__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
|