aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorEmmanuel Blot2009-12-24 12:17:36 +0100
committerAdam Vandenberg2010-04-06 21:17:48 -0700
commitf1476905d80e9403181008ab997dcfe64098b62d (patch)
tree91ab428c4a59361cf2ad5eef8bcf49a809cb2e21 /Library
parenta722a212dbd30ff3631b4357afe262afe657cf64 (diff)
downloadhomebrew-f1476905d80e9403181008ab997dcfe64098b62d.tar.bz2
Add libftdi
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Remove explicit version.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libftdi.rb52
1 files changed, 52 insertions, 0 deletions
diff --git a/Library/Formula/libftdi.rb b/Library/Formula/libftdi.rb
new file mode 100644
index 000000000..c2c4180cc
--- /dev/null
+++ b/Library/Formula/libftdi.rb
@@ -0,0 +1,52 @@
+require 'formula'
+
+class Libftdi <Formula
+ @url="http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.17.tar.gz"
+ @homepage='http://www.intra2net.com/en/developer/libftdi'
+ @md5='810c69cfaa078b49795c224ef9b6b851'
+
+ depends_on 'cmake'
+ depends_on 'libusb-compat'
+
+ def patches
+ DATA
+ end
+
+ def install
+ FileUtils.mkdir 'libftdi-build'
+
+ Dir.chdir 'libftdi-build' do
+ system "cmake .. #{std_cmake_parameters}"
+ system "make"
+ system "make install"
+ end
+ end
+end
+
+__END__
+--- a/CMakeLists.txt 2009-12-24 12:09:27.000000000 +0100
++++ b/CMakeLists.txt 2009-12-24 12:11:07.000000000 +0100
+@@ -38,14 +38,8 @@
+ set(CPACK_COMPONENT_STATICLIBS_GROUP "Development")
+ set(CPACK_COMPONENT_HEADERS_GROUP "Development")
+
+-# Create suffix to eventually install in lib64
+-IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
+- SET(LIB_SUFFIX "")
+- SET(PACK_ARCH "")
+- ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
+- SET(LIB_SUFFIX 64)
+- SET(PACK_ARCH .x86_64)
+-endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
++SET(LIB_SUFFIX "")
++SET(PACK_ARCH "")
+
+ # Package information
+ set(CPACK_PACKAGE_VERSION ${VERSION_STRING})
+@@ -85,8 +79,6 @@
+
+ add_subdirectory(src)
+ add_subdirectory(ftdipp)
+-add_subdirectory(bindings)
+-add_subdirectory(examples)
+ add_subdirectory(packages)