diff options
| author | Edward George | 2010-04-13 22:36:06 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-02 16:21:04 -0700 |
| commit | 7c764e966fb3f49189508ef89d29d135d64d7349 (patch) | |
| tree | 9fe183a0eb27bfc549bd0c603d4ce26c7525e870 /Library/Formula | |
| parent | fd3bd98a60f45c254ee1fb242670c5704cfeaef2 (diff) | |
| download | homebrew-7c764e966fb3f49189508ef89d29d135d64d7349.tar.bz2 | |
New formula: djmount 0.71
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/djmount.rb | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/Library/Formula/djmount.rb b/Library/Formula/djmount.rb new file mode 100644 index 000000000..02e3a7545 --- /dev/null +++ b/Library/Formula/djmount.rb @@ -0,0 +1,101 @@ +require 'formula' + +class Djmount <Formula + url 'http://downloads.sourceforge.net/project/djmount/djmount/0.71/djmount-0.71.tar.gz' + homepage 'http://djmount.sourceforge.net/' + md5 'c922753e706c194bf82a8b6ca77e6a9a' + + depends_on 'libupnp' + + def patches + { :p0 => DATA } + end + + def caveats + <<-EOS.undent + This depends on the MacFUSE installation from http://code.google.com/p/macfuse/ + MacFUSE must be installed prior to installing this formula. + EOS + end + + def install + ENV.append "CFLAGS", "-D__FreeBSD__=10" + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-fuse-prefix=/usr/local", + "--with-external-libupnp", + "--with-libupnp-prefix=#{HOMEBREW_PREFIX}" + system "make" + system "make install" + end +end + +__END__ +diff -u -r djmount/cache.h djmount/cache.h +--- djmount/cache.h 2006-08-27 21:12:20.000000000 +0100 ++++ djmount/cache.h 2009-06-01 07:52:19.000000000 +0100 +@@ -25,6 +25,7 @@ + + #include <stdlib.h> + #include <stdbool.h> ++#include <time.h> + + + /****************************************************************************** +diff -u -r djmount/fuse_main.c djmount/fuse_main.c +--- djmount/fuse_main.c 2006-08-27 21:12:20.000000000 +0100 ++++ djmount/fuse_main.c 2009-06-01 07:49:45.000000000 +0100 +@@ -32,7 +32,7 @@ + #include <fcntl.h> + #include <dirent.h> + #include <errno.h> +-#include <sys/statfs.h> ++/*#include <sys/statfs.h>*/ + #ifdef HAVE_SETXATTR + # include <sys/xattr.h> + #endif +diff -u -r djmount/test_device.c djmount/test_device.c +--- djmount/test_device.c 2006-08-27 21:12:20.000000000 +0100 ++++ djmount/test_device.c 2009-06-01 08:02:05.000000000 +0100 +@@ -27,6 +27,7 @@ + #include <stdio.h> + #include "talloc_util.h" + #include "log.h" ++#include "upnp/upnpdebug.h" + + + #undef NDEBUG +@@ -62,7 +63,7 @@ + Log_SetMaxLevel (LOG_ERROR); + + // Manually initialise UPnP logs because UpnpInit() is not called +- assert (InitLog() == UPNP_E_SUCCESS); ++ /*assert (UpnpInitLog() == UPNP_E_SUCCESS);*/ + + char buffer [10 * 1024]; + char* const descDocText = fgets (buffer, sizeof (buffer), stdin); +diff -u -r djmount/test_vfs.c djmount/test_vfs.c +--- djmount/test_vfs.c 2006-08-27 21:12:20.000000000 +0100 ++++ djmount/test_vfs.c 2009-06-01 08:03:03.000000000 +0100 +@@ -31,7 +31,7 @@ + #include <fcntl.h> + #include <dirent.h> + #include <errno.h> +-#include <sys/statfs.h> ++/*#include <sys/statfs.h>*/ + #ifdef HAVE_SETXATTR + # include <sys/xattr.h> + #endif +diff -u -r configure configure +--- configure 2006-08-27 21:13:13.000000000 +0100 ++++ configure 2009-06-01 07:51:25.000000000 +0100 +@@ -26489,7 +26489,7 @@ + + + +-FUSE_CFLAGS="$FUSE_CFLAGS -DFUSE_USE_VERSION=22" ++FUSE_CFLAGS="$FUSE_CFLAGS -DFUSE_USE_VERSION=25" + + + # |
