Files
ports/audio/piper-phonemize/Makefile
T
2026-10-04 04:07:15 +00:00

30 lines
715 B
Makefile

PORTNAME= piper-phonemize
DISTVERSION= 2023.11.14
PORTREVISION= 2
DISTVERSIONSUFFIX= -4
CATEGORIES= audio
MAINTAINER= ports@FreeBSD.org
COMMENT= Piper text-to-speech phonemizer based on espeak-ng
WWW= https://rhasspy.github.io/piper-samples/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libespeak-ng.so:audio/espeak-ng \
libonnxruntime.so:misc/onnxruntime
USES= compiler:c++17-lang cmake pkgconfig tar:xz
USE_GITHUB= yes
GH_ACCOUNT= rhasspy
CMAKE_ARGS= -DESPEAK_NG_DIR=${LOCALBASE} \
-DONNXRUNTIME_DIR=${LOCALBASE}
post-stage:
${SED} -e 's|%%PREFIX%%|${PREFIX}|' ${FILESDIR}/piper_phonemize.pc.in \
> ${STAGEDIR}${PREFIX}/libdata/pkgconfig/piper_phonemize.pc
.include <bsd.port.mk>