[80432] users/dports/ports

dports at macports.org dports at macports.org
Tue Jul 12 17:48:06 PDT 2011


Revision: 80432
          http://trac.macports.org/changeset/80432
Author:   dports at macports.org
Date:     2011-07-12 17:48:04 -0700 (Tue, 12 Jul 2011)
Log Message:
-----------
WIP ports for fuse4x (fuse4x, fuse4x-kext, fuse4x-framework). See
#29917.

Among other warts, currently pulling latest development version from
git because we need some changes that will appear in the next upstream
release.

Added Paths:
-----------
    users/dports/ports/fuse/
    users/dports/ports/fuse/fuse4x/
    users/dports/ports/fuse/fuse4x/Portfile
    users/dports/ports/fuse/fuse4x/files/
    users/dports/ports/fuse/fuse4x/files/patch-configure.in.diff
    users/dports/ports/fuse/fuse4x-framework/
    users/dports/ports/fuse/fuse4x-framework/Portfile
    users/dports/ports/fuse/fuse4x-kext/
    users/dports/ports/fuse/fuse4x-kext/Portfile

Added: users/dports/ports/fuse/fuse4x/Portfile
===================================================================
--- users/dports/ports/fuse/fuse4x/Portfile	                        (rev 0)
+++ users/dports/ports/fuse/fuse4x/Portfile	2011-07-13 00:48:04 UTC (rev 80432)
@@ -0,0 +1,50 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                fuse4x
+version             0.8.6
+set tag             [string map {. _ } $version]
+categories          fuse devel
+platforms           macosx
+maintainers         dports
+description         A FUSE-Compliant File System Implementation Mechanism \
+                    for Mac OS X
+
+long_description    Fuse4X implements a mechanism that makes it          \
+                    possible to implement a fully functional file        \
+                    system in a user-space program on Mac OS X. It       \
+                    aims to be API-compliant with the FUSE               \
+                    (File-system in USErspace) mechanism that            \
+                    originated on Linux.  Therefore, many existing       \
+                    FUSE file systems become readily usable on Mac OS    \
+                    X. This port provides the user-space library and     \
+                    header files for building filesystems.
+
+homepage            http://fuse4x.org/
+license             LGPL
+# master_sites        https://github.com/fuse4x/fuse/tarball/fuse4x_${tag}
+
+# checksums           sha1    c4169a1f904a95b1fea36525b56ab3776f558bd0 \
+#                     rmd160  27805bbe9a8071911ddee6b71f62cfc5dbb0c44c
+
+# extract.mkdir       yes
+# extract.post_args   "| tar --strip-components=1 -xf -"
+
+fetch.type          git
+git.url             git://github.com/fuse4x/fuse.git
+git.branch          pu
+patchfiles          patch-configure.in.diff
+
+configure.cflags-append -g -O0
+configure.ldflags   -framework CoreFoundation
+
+use_autoreconf      yes
+autoreconf.args     -fvi
+use_configure       yes
+
+depends_build       port:pkgconfig port:autoconf port:automake port:libtool
+depends_lib         port:fuse4x-kext
+
+


Property changes on: users/dports/ports/fuse/fuse4x/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: users/dports/ports/fuse/fuse4x/files/patch-configure.in.diff
===================================================================
--- users/dports/ports/fuse/fuse4x/files/patch-configure.in.diff	                        (rev 0)
+++ users/dports/ports/fuse/fuse4x/files/patch-configure.in.diff	2011-07-13 00:48:04 UTC (rev 80432)
@@ -0,0 +1,12 @@
+--- configure.in.orig	2011-07-09 00:39:04.000000000 -0400
++++ configure.in	2011-07-09 00:41:21.000000000 -0400
+@@ -25,8 +25,7 @@
+ 	CFLAGS="-Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing"
+ fi
+ 
+-CFLAGS="$CFLAGS  -DUNNAMED_SEMAPHORES_NOT_SUPPORTED -D_POSIX_C_SOURCE=200112L -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6"
+-LDFLAGS="$LDFLAGS -arch i386 -arch x86_64 -framework CoreFoundation"
++CFLAGS="$CFLAGS  -DUNNAMED_SEMAPHORES_NOT_SUPPORTED -D_POSIX_C_SOURCE=200112L"
+ 
+ AC_ARG_ENABLE(lib,
+ 	[  --enable-lib            Compile with library ])

Added: users/dports/ports/fuse/fuse4x-framework/Portfile
===================================================================
--- users/dports/ports/fuse/fuse4x-framework/Portfile	                        (rev 0)
+++ users/dports/ports/fuse/fuse4x-framework/Portfile	2011-07-13 00:48:04 UTC (rev 80432)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           xcode 1.0
+
+name                fuse4x-framework
+version             0.8.6
+set tag             [string map {. _ } $version]
+categories          fuse devel
+platforms           macosx
+maintainers         dports
+description         Objective-C framework for Fuse4X
+
+long_description    Fuse4X implements a mechanism that makes it          \
+                    possible to implement a fully functional file        \
+                    system in a user-space program on Mac OS X. It       \
+                    aims to be API-compliant with the FUSE               \
+                    (File-system in USErspace) mechanism that            \
+                    originated on Linux.  Therefore, many existing       \
+                    FUSE file systems become readily usable on Mac OS    \
+                    X. This port provides a framework for writing        \
+                    file systems in Objective-C.
+
+homepage            http://fuse4x.org/
+license             BSD
+# master_sites        https://github.com/fuse4x/framework/tarball/fuse4x_${tag}
+
+# checksums           sha1    bcb8e3615dcbe152716d097cb51f9e2af86ad452 \
+#                     rmd160  466c44475155c6bf18ccc27ea42cdcbaf4946247
+
+# extract.mkdir       yes
+# extract.post_args   "| tar --strip-components=1 -xf -"
+
+fetch.type          git
+git.url             git://github.com/fuse4x/framework.git
+git.branch          pu
+
+depends_lib         port:fuse4x
+
+xcode.configuration Release
+xcode.build.settings    LIBRARY_SEARCH_PATHS='${prefix}/lib' \
+                        HEADER_SEARCH_PATHS='${prefix}/include'
+
+destroot {
+    xinstall -d ${destroot}/${frameworks_dir}
+    file copy ${worksrcpath}/build/${xcode.configuration}/Fuse4X.framework \
+              ${destroot}/${frameworks_dir}
+}


Property changes on: users/dports/ports/fuse/fuse4x-framework/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: users/dports/ports/fuse/fuse4x-kext/Portfile
===================================================================
--- users/dports/ports/fuse/fuse4x-kext/Portfile	                        (rev 0)
+++ users/dports/ports/fuse/fuse4x-kext/Portfile	2011-07-13 00:48:04 UTC (rev 80432)
@@ -0,0 +1,68 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           xcode 1.0
+
+name                fuse4x-kext
+version             0.8.6
+set tag             [string map {. _ } $version]
+categories          fuse devel
+platforms           macosx
+maintainers         dports
+description         A kernel extension for Fuse4X
+
+long_description    Fuse4X implements a mechanism that makes it          \
+                    possible to implement a fully functional file        \
+                    system in a user-space program on Mac OS X. It       \
+                    aims to be API-compliant with the FUSE               \
+                    (File-system in USErspace) mechanism that            \
+                    originated on Linux.  Therefore, many existing       \
+                    FUSE file systems become readily usable on Mac OS    \
+                    X. This port provides the dynamically loadable       \
+                    kernel extension at the core of Fuse4X.
+
+homepage            http://fuse4x.org/
+license             BSD
+# master_sites        https://github.com/fuse4x/kext/tarball/fuse4x_${tag}
+
+# checksums           sha1    ba45023df91b1c60c414072b4301b9938f2b2785 \
+#                     rmd160  bbfbbf33bd3562885e488aeeee73a2e118b54661
+
+# extract.mkdir       yes
+# extract.post_args   "| tar --strip-components=1 -xf -"
+
+fetch.type          git
+git.url             git://github.com/fuse4x/kext.git
+git.branch          pu
+
+# This port installs a kernel module, so it must be built for the same
+# architecture as the kernel. We don't have a way to get that;
+# build_arch is the userland architecture, which may be different
+# (e.g. 64-bit userland with 32-bit kernel). So build a universal
+# binary by default.
+default_variants    +universal
+
+xcode.configuration Release
+
+destroot.violate_mtree  yes
+destroot.asroot         yes
+
+destroot {
+    xinstall -d ${destroot}/System/Library/Extensions
+    file copy ${worksrcpath}/build/${xcode.configuration}/fuse4x.kext ${destroot}/System/Library/Extensions
+    file attributes ${destroot}/System/Library/Extensions/fuse4x.kext -owner root -group wheel -permissions rwxr-xr-x
+
+    xinstall -d ${destroot}/System/Library/Extensions/fuse4x.kext/Support
+    xinstall -o root -m 4755 ${worksrcpath}/build/${xcode.configuration}/load_fuse4x ${destroot}/System/Library/Extensions/fuse4x.kext/Support
+}
+
+post-activate {
+    if {[string length [exec kextstat -lb org.fuse4x.kext.fuse4x]] > 0} {
+        ui_msg "********************************************************"
+        ui_msg "*  fuse4x is already loaded. You may need to restart.  *"
+        ui_msg "*  Alternatively, if feeling adventurous, you can run  *"
+        ui_msg "*  `sudo kextunload -b org.fuse4x.kext.fuse4x`  *"
+        ui_msg "********************************************************"
+    }
+}


Property changes on: users/dports/ports/fuse/fuse4x-kext/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110712/897933f3/attachment.html>


More information about the macports-changes mailing list