You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
164080bb08
Rewrite Portfile for new version matching py-pytorch 2.10.0. Use GitHub archive source. Disable OpenMP and ccache for macOS build compatibility. Also add subports for 3.11, 3.12, 3.13, and 3.14. Signed-off-by: Paul Guyot <pguyot@kallisys.net>
68 lines
2.2 KiB
Tcl
68 lines
2.2 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup github 1.0
|
|
PortGroup python 1.0
|
|
|
|
github.setup pytorch audio 2.10.0 v
|
|
github.tarball_from archive
|
|
revision 0
|
|
name py-torchaudio
|
|
|
|
categories-append audio
|
|
license BSD
|
|
maintainers nomaintainer
|
|
|
|
description Data manipulation and transformation for audio \
|
|
signal processing, powered by PyTorch
|
|
|
|
long_description The aim of torchaudio is to apply PyTorch to the \
|
|
audio domain. By supporting PyTorch, torchaudio \
|
|
follows the same philosophy of providing strong \
|
|
GPU acceleration, having a focus on trainable \
|
|
features through the autograd system, and having \
|
|
consistent style (tensor names and dimension \
|
|
names).
|
|
|
|
checksums rmd160 eb7a1771c83593e91cb42cbfeece8fa8f8e8bc02 \
|
|
sha256 d0d0d9575025eb85150356a0b0de75b553484838006af17a62470b52d59845d1 \
|
|
size 74300957
|
|
|
|
python.versions 310 311 312 313 314
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_build-append \
|
|
path:bin/cmake:cmake \
|
|
port:ninja \
|
|
port:py${python.version}-pybind11
|
|
depends_lib-append \
|
|
port:py${python.version}-pytorch
|
|
|
|
compiler.cxx_standard 2017
|
|
|
|
compiler.cpath-append \
|
|
${python.pkgd}/pybind11/include
|
|
|
|
set torchaudio_switches \
|
|
"USE_CUDA=0 \
|
|
USE_ROCM=0 \
|
|
USE_OPENMP=0 \
|
|
BUILD_SOX=0 \
|
|
CCACHE_DISABLE=1"
|
|
|
|
build.env-append \
|
|
{*}${torchaudio_switches}
|
|
|
|
destroot.env-append \
|
|
{*}${torchaudio_switches}
|
|
|
|
post-destroot {
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
xinstall -d ${destroot}${docdir}
|
|
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
|
|
${destroot}${docdir}
|
|
}
|
|
|
|
livecheck.type none
|
|
}
|