Skip to content

Commit

Permalink
libewf: do not force libfuse on archs where it is unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 9, 2024
1 parent 976522a commit eb36e55
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions security/libewf/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ PortGroup openssl 1.0
github.setup libyal libewf 20230212
revision 0
categories security
platforms darwin
maintainers nomaintainer
license LGPL-3+

Expand All @@ -27,26 +26,21 @@ checksums rmd160 2c23bdeb7f703c142d8b4412a952c08aace9500c \
sha256 d22eecbd962c3d7d646ccfba131fc3c07e6a07da37dc163b6ecbb1348db16101 \
size 2638562

depends_build port:pkgconfig
depends_build path:bin/pkg-config:pkgconfig

openssl.branch 3

depends_lib port:bzip2 \
port:gettext \
port:libiconv \
path:lib/pkgconfig/fuse.pc:macfuse \
port:zlib

# osxfuse is not universal
universal_variant no

platform linux {
configure.env-append \
"LIBS=-L${prefix}/lib -lintl"
}

configure.args --with-bzip2=${prefix} \
--with-libfuse=${prefix} \
--with-openssl=[openssl::install_area] \
--with-zlib=${prefix} \
--without-libbfio \
Expand All @@ -62,10 +56,22 @@ configure.args --with-bzip2=${prefix} \
--without-libcthreads \
--without-libfcache \
--without-libfdata \
--without-libfuse \
--without-libfvalue \
--without-libhmac \
--without-libodraw \
--without-libsmdev \
--without-libsmraw \
--without-libuna \
--without-libuuid

if {${configure.build_arch} in [list arm64 x86_64]} {
depends_lib-append \
path:lib/pkgconfig/fuse.pc:macfuse

configure.args-replace \
--without-libfuse --with-libfuse=${prefix}

# osxfuse is not universal
universal_variant no
}

0 comments on commit eb36e55

Please sign in to comment.