Skip to content

Commit

Permalink
libccd: fix problem with hard-coded libm path, use more standard way …
Browse files Browse the repository at this point in the history
…to set cmake bool flags
  • Loading branch information
mamoll committed Dec 10, 2021
1 parent e6ceb85 commit b1dc4df
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions science/libccd/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ PortGroup github 1.0

github.setup danfis libccd 2.1 v
epoch 20190111
revision 0
revision 1
categories science
maintainers nomaintainer
description A library for collision detection between convex shapes
long_description $description
platforms darwin
license BSD
configure.args-append -DCCD_DOUBLE=true
configure.args-append -DCCD_DOUBLE:BOOL=ON

checksums rmd160 6e36c4276ac47b3e79dadc0b0e2ecf42f36e5b20 \
sha256 aa00bcff8781528144557c0c92fc4f70f6505903d6ef07fd56998f352402aeff \
size 73979

post-patch {
reinplace "s|if(NOT WIN32)|if(NOT WIN32 AND NOT APPLE)|" ${worksrcpath}/src/CMakeLists.txt
}

variant single_precision {
configure.args-delete -DCCD_DOUBLE=true
configure.args-append -DCCD_SINGLE=true
configure.args-delete -DCCD_DOUBLE:BOOL=ON
configure.args-append -DCCD_SINGLE:BOOL=ON
}

0 comments on commit b1dc4df

Please sign in to comment.