Revision: 140802 https://trac.macports.org/changeset/140802 Author: ryandesign@macports.org Date: 2015-10-03 04:47:17 -0700 (Sat, 03 Oct 2015) Log Message: ----------- svdlibc: update to 1.4; add universal variant Modified Paths: -------------- trunk/dports/math/svdlibc/Portfile Modified: trunk/dports/math/svdlibc/Portfile =================================================================== --- trunk/dports/math/svdlibc/Portfile 2015-10-03 09:04:55 UTC (rev 140801) +++ trunk/dports/math/svdlibc/Portfile 2015-10-03 11:47:17 UTC (rev 140802) @@ -4,7 +4,7 @@ PortSystem 1.0 name svdlibc -version 1.34 +version 1.4 license BSD maintainers nomaintainer @@ -21,6 +21,7 @@ homepage http://tedlab.mit.edu/~dr/SVDLIBC/ master_sites ${homepage} +dist_subdir ${name}/${version} distname ${name} extract.suffix .tgz worksrcdir SVDLIBC @@ -30,17 +31,16 @@ rmd160 3ef133f8ccd9cb1659c11c7692e148709aca7431 use_configure no -universal_variant no -set hosttype macos +variant universal {} + +configure.cflags-append -Wall -fno-common + +set hosttype bin build.env-append HOSTTYPE='${hosttype}' build.target svd - -pre-build { - reinplace "s|-march=i486|${configure.cc_archflags}|g" ${worksrcpath}/Makefile -} +build.args CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]" -# this phase fails. it appears this code does not respect destroot. destroot { xinstall -m 644 ${worksrcpath}/${hosttype}/libsvd.a ${destroot}${prefix}/lib xinstall -m 755 ${worksrcpath}/${hosttype}/svd ${destroot}${prefix}/bin @@ -49,8 +49,10 @@ } # Documentation - xinstall -m 755 -d ${destroot}${prefix}/share/${name} - file copy ${worksrcpath}/Manual ${destroot}${prefix}/share/${name} + set docdir ${prefix}/share/doc/${subport} + xinstall -d ${destroot}${docdir} + copy {*}[glob ${worksrcpath}/Manual/*] ${destroot}${docdir} + delete ${destroot}${docdir}/svdlib.h } livecheck.type regexm
participants (1)
-
ryandesign@macports.org