23 | | depends_lib port:pkgconfig |
24 | | |
25 | | platform darwin { |
26 | | depends_run port:fusefs |
27 | | patch_sites http://macfuse.googlecode.com/svn/tags/macfuse-0.4.0/libfuse/ |
28 | | patchfiles fuse-2.6.5-macosx.patch |
29 | | checksums-append fuse-2.6.5-macosx.patch md5 96c27b9d8c5d719ff7db99064c21ec87 \ |
30 | | sha1 edbf8769809eea32f9f83e7fa7e8b791e6cbe106 |
31 | | |
32 | | configure.post_args-append CFLAGS="-D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L" |
33 | | |
34 | | # override patch.pre_args since it defaults to -p0 |
35 | | patch.pre_args -p1 |
| 23 | if {[variant_isset darwin_8]} { |
| 24 | set product_version 10.4 |
| 25 | } else { |
| 26 | set product_version 10.5 |
50 | | proc patch_checksum {} { |
51 | | global checksums_array UI_PREFIX |
52 | | # assume we only have one patchfile, because at the moment that's true |
53 | | set patchfile [option patchfiles] |
54 | | # do our own checksumming of an existing $patchfile because URL changes between revisions |
55 | | # if the checksum fails, delete the patchfile |
56 | | # a lot of this code is copied from checksum_main |
57 | | # Eventually this technique should be replaced with a patchfile dist subdir |
58 | | if {[file exists [option distpath]/$patchfile]} { |
59 | | ui_info "$UI_PREFIX $patchfile exists, checksumming to detect URL change" |
60 | | if {[parse_checksums [option checksums]] == "yes"} { |
61 | | ui_info "$UI_PREFIX [format [msgcat::mc "Checksumming %s"] $patchfile]" |
62 | | set fullpath [file join [option distpath] $patchfile] |
63 | | if {[info exists checksums_array($patchfile)]} { |
64 | | set checksums $checksums_array($patchfile) |
65 | | |
66 | | foreach {type sum} $checksums { |
67 | | set calculated_sum [calc_$type $fullpath] |
68 | | if {![string equal $sum $calculated_sum]} { |
69 | | ui_debug "Checksum mismatch for $patchfile" |
70 | | delete $fullpath |
71 | | break |
72 | | } |
73 | | } |
74 | | } |
75 | | } else { |
76 | | return -code error "Unable to parse checksum string" |
77 | | } |
78 | | } |
79 | | } |
80 | | No newline at end of file |
| 46 | post-extract { |
| 47 | system "cd ${workpath}/${distname}/core/${product_version}/${name} && gzip -dc fuse-current.tar.gz | tar --no-same-owner -xf -" |
| 48 | system "cd ${worksrcpath} && patch -p1 < ../fuse-current-macosx.patch" |
| 49 | } |
| 50 | |
| 51 | patch { |
| 52 | reinplace "s|--prefix=/usr/local|--prefix=${prefix}|" ${worksrcpath}/darwin_configure.sh |
| 53 | } |
| 54 | |
| 55 | configure { |
| 56 | system "cd ${worksrcpath} && /bin/sh ./darwin_configure.sh ${workpath}/${distname}/core/${product_version}/fusefs" |
| 57 | } |