mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
d16f7bfb92
PR. Thanks for contributing. Since the acroread7 port is a somewhat important port for our users, I will hand it over to emulation@ if no _active_ *committer* takes it before the ports freeze. While I'm here: - fix a little nit in the csound port (I think the intention was to create no backup file instead of creating one with a "-e" extension) - set ARCH to i386 in the amd64 case for the acroread7 port. This is a work-around to be able to install everything when a dependency is not already installed (ARCH is read-only in sub-makes, so the dependencies can't change it). This should be removed when the dependencies are fixed or converted to use bsd.linux-rpm.mk. [1] Not objected to by: portmgr (explicit: krion; silence: rest) Maintainer timeout: ~4 months Submitted by: Sangwoo Shim <sangwoos@gmail.com> [1] PR: 87985 [1]
90 lines
2.1 KiB
Makefile
90 lines
2.1 KiB
Makefile
# New ports collection makefile for: mbrolavox
|
|
# Date created: 2003-10-05
|
|
# Whom: trevor
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mbrolavox
|
|
PORTVERSION= 3.0.1
|
|
CATEGORIES= audio accessibility
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Voices for MBROLA voice synthesizer
|
|
|
|
VOICESCONF= ${.CURDIR}/voices.conf
|
|
|
|
.if !defined(OPTIONS)
|
|
OPTIONS!= /usr/bin/awk -F\| '{ print $$1 " \"" $$3 "\" " $$4 }' < ${VOICESCONF}
|
|
.endif
|
|
.if !defined(ALLOPTIONS)
|
|
ALLOPTIONS!= /usr/bin/awk -F\| '{ print $$1 }' < ${VOICESCONF}
|
|
.for ii in ${ALLOPTIONS}
|
|
FILE_${ii}!= /usr/bin/grep ^${ii} ${VOICESCONF} | /usr/bin/awk -F\| '{ print $$2 }'
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
NO_BUILD= yes
|
|
RESTRICTED= "no commercial nor military use, no sale"
|
|
USE_ZIP= yes
|
|
PLIST= ${WRKDIR}/plist
|
|
WRKSRC= ${WRKDIR}/voices
|
|
|
|
.if !defined(BATCH)
|
|
IS_INTERACTIVE= yes
|
|
.endif
|
|
.if defined(PACKAGE_BUILDING) # Ugly hack until OPTIONS and PACKAGE_BUILDING is fixed. Can be removed when ports/63682 has been commited.
|
|
WITH_us1?= yes
|
|
.endif
|
|
|
|
.for ii in ${ALLOPTIONS}
|
|
. if defined(WITH_${ii})
|
|
FILEDIRS+= ${ii}
|
|
MYDISTFILES+= ${FILE_${ii}}:${ii}
|
|
MYFILES+= ${FILE_${ii}}
|
|
MYWITH+= ${ii}
|
|
. endif
|
|
.endfor
|
|
.if defined(MYDISTFILES)
|
|
DISTFILES= ${MYDISTFILES}
|
|
DIST_SUBDIR= mbrolavox
|
|
.else
|
|
DISTFILES= # none
|
|
.endif
|
|
|
|
.for ii in ${FILEDIRS}
|
|
MASTER_SITES+= http://www.festvox.org/mbrola/dba/${ii}/:${ii} \
|
|
http://mambo.ucsc.edu/psl/mbrola/dba/${ii}/:${ii} \
|
|
ftp://ftp.loria.fr/pub/pc/mbrpsola/${ii}/:${ii} \
|
|
ftp://tcts.fpms.ac.be/pub/mbrola/VOICES/${ii}/:${ii}
|
|
.endfor
|
|
|
|
do-build:
|
|
@${DO_NADA}
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
.for ii in ${MYFILES}
|
|
@${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/${ii} -d ${WRKSRC}
|
|
.endfor
|
|
|
|
pre-install:
|
|
@${RM} -f ${PLIST}
|
|
@cd ${WRKSRC}; \
|
|
for ii in `${FIND} * \! -type d | ${SORT}`; do \
|
|
${ECHO_CMD} share/mbrolavox/$${ii} >> ${PLIST}; \
|
|
done ; \
|
|
for ii in `${FIND} -d * -type d`; do \
|
|
${ECHO_CMD} @dirrm share/mbrolavox/$${ii} >> ${PLIST}; \
|
|
done
|
|
@${ECHO_CMD} @dirrm share/mbrolavox >> ${PLIST}
|
|
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
@cd ${WRKSRC} && ${FIND} * | ${CPIO} -dlmp ${DATADIR}
|
|
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
|
|
|
.include <bsd.port.post.mk>
|