Skip to content

Commit

Permalink
udunits2: install headers in the right location, closing #53576
Browse files Browse the repository at this point in the history
  • Loading branch information
tenomoto committed Feb 16, 2017
1 parent d5efd2e commit e0671be
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions science/udunits2/Portfile
Expand Up @@ -6,6 +6,7 @@ PortGroup cmake 1.0

github.setup Unidata UDUNITS-2 2.2.24 v
name udunits2
revision 1
maintainers takeshi
license UCAR-Unidata
platforms darwin
Expand Down Expand Up @@ -34,8 +35,13 @@ depends_lib port:expat \
cmake.out_of_source yes

worksrcdir UDUNITS-2-${version}
configure.args-append\
-DCMAKE_INSTALL_INCLUDEDIR=${prefix}/include/${name}

post-destroot {
xinstall -d 644 ${destroot}${prefix}/include/${name}
foreach f [glob ${destroot}${prefix}/include/*.h] {
file rename ${f} ${destroot}${prefix}/include/${name}
}
}

livecheck.type regex
livecheck.url ${homepage}/udunits-current/doc/udunits/CHANGE_LOG
Expand Down

0 comments on commit e0671be

Please sign in to comment.