Skip to content

Commit

Permalink
crfsuite: unbreak build on non-x86 archs
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Sep 20, 2024
1 parent 0469444 commit aea3201
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions math/crfsuite/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ long_description CRFsuite is an implementation of Conditional Random Fields (
for labeling sequential data.

homepage http://www.chokkan.org/software/crfsuite/
platforms darwin
license BSD

checksums rmd160 ba5e127e3d8e5d1bb2a344e7e96259bb328f9bb7 \
sha256 8931f215e6f9b230cc2dc440fcd890c37afa3b1df3e8da512c7e74cafba8f0c5
sha256 8931f215e6f9b230cc2dc440fcd890c37afa3b1df3e8da512c7e74cafba8f0c5 \
size 244953

depends_build port:libtool \
port:autoconf \
Expand All @@ -34,6 +34,12 @@ pre-configure {

configure.args --with-liblbfgs=${prefix}

# https://github.com/chokkan/crfsuite/issues/126
if {${configure.build_arch} ni [list i386 x86_64]} {
configure.args-append \
--disable-sse2
}

post-destroot {
# install additional documents.
set dest_doc ${destroot}${prefix}/share/doc/${name}
Expand Down

0 comments on commit aea3201

Please sign in to comment.