Ignore:
Timestamp:
Apr 25, 2008, 11:30:48 AM (12 years ago)
Author:
eridius@…
Message:

Update MacFUSE to 1.3. This involved obsoleting the fusefs and libfuse ports and introducing a new macfuse port.
Note that all fuse ports (besides sshfs) need to be updated for this change

Location:
trunk/dports/fuse/macfuse
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/fuse/macfuse/Portfile

    r36268 r36271  
    22
    33PortSystem 1.0
    4 PortGroup xcode 1.0
    54
    6 name                fusefs
    7 version             1.1
    8 revision            3
     5name                macfuse
     6version             1.3
    97categories          fuse devel
    108platforms           darwin
     
    2018homepage            http://code.google.com/p/macfuse/
    2119master_sites        macports
    22 distname            fusefs-${version}
    23 worksrcdir          fusefs
    24 checksums           md5 e34f44bcbb43a370a0ef204054276ae4 \
    25                     sha1 776a7cf88c82bf63a8f086f086d06fb08a60c860
     20distname            macfuse-${version}
     21worksrcdir          macfuse-core
     22checksums           md5 fd80b07221174f1636502c0062c43690 \
     23                    sha1 d840ba3dbd56850b6b9d10a3937fb2cbdacbffbc
    2624
    2725livecheck.distname  MacFUSE-Core-(.*).dmg
     
    3028use_bzip2           yes
    3129
     30use_configure       no
     31
    3232destroot.violate_mtree yes
    3333
    34 xcode.configuration     Release
    35 xcode.target            fusefs load_fusefs fusefs.fs mount_fusefs
    36 xcode.build.settings    OBJROOT=build/ SYMROOT=build/
     34# patchfiles          patch-project.pbxproj
    3735
    3836platform darwin 8 {
    39     worksrcdir fusefs/10.4
     37    # dummy for pre-fetch
     38}
     39platform darwin 9 {
     40    # dummy for pre-fetch
    4041}
    4142
    42 platform darwin 9 {
    43     worksrcdir fusefs/10.5
     43variant universal {
     44    # provide a dummy variant since the script will actually build universal
     45    # and we don't want to error out if someone says +universal
    4446}
    4547
     
    5153}
    5254
     55build {
     56    system "cd ${worksrcpath} && ./build_macfuse.sh | sed -ne '/^created: /h;p;$\{g;s/^created: //
     57                w ../dmgname
     58            \}'; exit $\{PIPESTATUS\[0\]\}"
     59}
     60
    5361destroot {
    54     if {[variant_isset darwin_8]} {
    55         set sysfsdir ${destroot}/System/Library/Filesystems
    56     } else {
    57         set sysfsdir ${destroot}/Library/Filesystems
     62    set dmgname [exec cat ${workpath}/dmgname]
     63    # we know the build script generates a .tar.bz2 right next to the dmg
     64    set tarname [string replace $dmgname end-2 end "tar.bz2"]
     65    system "tar -xjf $tarname -C ${destpath}"
     66    delete ${destpath}/opt
     67    file rename ${destpath}/usr ${destpath}/opt
     68    foreach f [list "pkgconfig/fuse.pc" "libfuse.la" "libulockmgr.la"] {
     69        set path "${destpath}/opt/local/lib/${f}"
     70        reinplace s,/usr/local,/opt/local, $path
    5871    }
    59     set macfuse_bundle_dir ${sysfsdir}/fusefs.fs
    60     set macfuse_support_dir ${macfuse_bundle_dir}/Support
    61    
    62     set builddir ${worksrcpath}/build/${xcode.configuration}
    63    
    64     # ensure sysfsdir exists
    65     xinstall -d -m 755 -o root -g wheel ${sysfsdir}
    66    
    67     # copy fusefs.fs
    68     file copy -- ${builddir}/fusefs.fs ${macfuse_bundle_dir}
    69    
    70     # ensure Support dir exists
    71     xinstall -d -m 755 -o root -g wheel ${macfuse_support_dir}
    72    
    73     # copy Support files
    74     file copy -- ${builddir}/fusefs.kext ${macfuse_support_dir}/fusefs.kext
    75     xinstall -m 4555 ${builddir}/load_fusefs ${macfuse_support_dir}/load_fusefs
    76     xinstall ${builddir}/mount_fusefs ${macfuse_support_dir}/mount_fusefs
    77    
    78     # set permissions
    79     fs-traverse file [list ${macfuse_bundle_dir}] {
    80         file attributes $file -owner root -group wheel
     72    foreach lib [list "libulockmgr.0" "libfuse.0"] {
     73        set libpath "/opt/local/lib/${lib}.dylib"
     74        system "install_name_tool -id ${libpath} ${destpath}${libpath}"
    8175    }
    82    
    83     # copy header files that libfuse needs
    84     foreach file [list fuse_ioctl.h fuse_mount.h fuse_param.h fuse_version.h] {
    85         file copy -- ${worksrcpath}/common/${file} ${destroot}${prefix}/include/${file}
    86     }
     76    system "install_name_tool -change /usr/local/lib/libfuse.0.dylib /opt/local/lib/libfuse.0.dylib ${destpath}/Library/Frameworks/MacFUSE.framework/Versions/A/MacFUSE"
     77    # delete the whole directory the build script creates
     78    # when updating this Portfile DOUBLE CHECK THIS LINE
     79    delete [file dirname $dmgname]
    8780}
    8881
Note: See TracChangeset for help on using the changeset viewer.