diff options
Diffstat (limited to 'audio/py-torchaudio/Makefile')
-rw-r--r-- | audio/py-torchaudio/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/audio/py-torchaudio/Makefile b/audio/py-torchaudio/Makefile index 7e9beec71003..aabf03bbaaaf 100644 --- a/audio/py-torchaudio/Makefile +++ b/audio/py-torchaudio/Makefile @@ -1,7 +1,7 @@ PORTNAME= torchaudio DISTVERSIONPREFIX= v -DISTVERSION= 2.2.1 -PORTREVISION= 9 +DISTVERSION= 2.8.0 +PORTREVISION= 2 CATEGORIES= audio python # machine-learning MASTER_SITES= https://downloads.sourceforge.net/project/sox/sox/14.4.2/:sox PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,7 +10,8 @@ EXTRACT_ONLY= ${GH_ACCOUNT}-${GH_PROJECT}-${DISTVERSIONFULL}_GH0.tar.gz MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch-based audio signal processing and machine learning library -WWW= https://pytorch.org/audio/stable/index.html +WWW= https://pytorch.org/audio/stable/index.html \ + https://github.com/pytorch/audio LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE @@ -34,6 +35,9 @@ USE_GITHUB= yes GH_ACCOUNT= pytorch GH_PROJECT= audio +# workaround for missing libsox.so, see https://github.com/pytorch/audio/issues/4062 +PLIST_FILES= lib/python${_PYTHON_VERSION}/site-packages/torchaudio/lib/libsox.so + post-patch: @${REINPLACE_CMD} \ -e 's| URL .*| URL file://${DISTDIR}/sox-14.4.2.tar.bz2|' \ @@ -45,5 +49,9 @@ post-install: torchaudio/lib/_torchaudio_sox.so \ torchaudio/lib/libtorchaudio.so \ torchaudio/lib/libtorchaudio_sox.so + # workaround for missing libsox.so, see https://github.com/pytorch/audio/issues/4062 + @${CP} \ + ${WRKSRC}/build/*/third_party/sox/libsox.so \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/torchaudio/lib .include <bsd.port.mk> |