7 CATEGORIES= audio accessibility
9 DIST_SUBDIR= ${PORTNAME}
11 MAINTAINER= ports@FreeBSD.org
12 COMMENT= Voices for MBROLA voice synthesizer
17 RESTRICTED= No commercial nor military use, no sale
18 WRKSRC= ${WRKDIR}/voices
21 VOICESCONF= ${.CURDIR}/voices.conf
23 .include "Makefile.options"
25 .include <bsd.port.options.mk>
27 .for ii in ${PORT_OPTIONS}
28 . if defined(FILE_${ii})
29 MASTER_SITES+= http://www.tcts.fpms.ac.be/synthesis/mbrola/dba/${ii}/:${ii} \
30 http://www.festvox.org/mbrola/dba/${ii}/:${ii} \
31 http://mambo.ucsc.edu/psl/mbrola/dba/${ii}/:${ii}
32 DISTFILES+= ${FILE_${ii}}:${ii}
34 MYFILES+= ${FILE_${ii}}
39 IGNORE= requires that at least one OPTION is selected
45 @${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/${ii} -d ${WRKSRC}
49 @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
51 # Generates OPTIONS file from voices.conf -- really for maintainer use
52 # Only included for compatibility with anyone who wants to modify voices.conf
54 Makefile.options: ${.TARGET}.unsorted
55 ${ECHO_CMD} '# $$Free''BSD$$' > ${.TARGET}
56 ${ECHO_CMD} "# Autogenerated from ${VOICESCONF} using make ${.TARGET}" \
58 ${SORT} ${.ALLSRC} >> ${.TARGET}
60 Makefile.options.unsorted: ${VOICESCONF}
62 IFS='|'; while read opt file define default; do \
63 optdefine="$$optdefine $$opt"; \
64 ${ECHO_CMD} "$${opt}_DESC= $$define" >> ${.TARGET}; \
65 ${ECHO_CMD} "FILE_$${opt}= $$file" >> ${.TARGET}; \
67 [Oo][Nn]) optdefault="$$optdefault $$opt" ;; \
71 ${ECHO_CMD} $$optdefine | /usr/bin/fold -sw 50 | \
72 ${SED} 's,^[[:space:]]*,OPTIONS_DEFINE+= ,;s,[[:space:]]*$$,,' >> ${.TARGET}; \
73 [ -z "$$optdefault" ] || \
74 ${ECHO_CMD} $$optdefault | /usr/bin/fold -sw 50 | \
75 ${SED} 's,^[[:space:]]*,OPTIONS_DEFAULT+= ,' >> ${.TARGET}
77 .include <bsd.port.mk>