2006-04-28 20:39:29 +00:00
|
|
|
# New ports collection makefile for: espeak
|
|
|
|
# Date created: 2006-03-25
|
|
|
|
# Whom: Nicola Vitale <nivit@email.it>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= espeak
|
2008-03-31 22:02:57 +00:00
|
|
|
PORTVERSION= 1.36
|
2006-04-28 20:39:29 +00:00
|
|
|
CATEGORIES= audio
|
2008-03-31 22:02:57 +00:00
|
|
|
MASTER_SITES= SF
|
2006-10-31 08:19:40 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
2006-04-28 20:39:29 +00:00
|
|
|
|
2006-12-10 01:21:51 +00:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-04-28 20:39:29 +00:00
|
|
|
COMMENT= A software speech synthesizer
|
|
|
|
|
|
|
|
LIB_DEPENDS= portaudio:${PORTSDIR}/audio/portaudio
|
|
|
|
|
2006-04-29 09:59:09 +00:00
|
|
|
CONFLICTS= speak-1.[0-9]
|
2006-04-28 20:39:29 +00:00
|
|
|
|
|
|
|
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}" CXX="${CXX}"
|
|
|
|
|
2006-10-31 08:19:40 +00:00
|
|
|
PLIST_SUB+= ESPEAK_LIBRARY=${ESPEAK_LIBRARY}
|
|
|
|
|
2006-04-28 20:39:29 +00:00
|
|
|
USE_GMAKE= yes
|
2006-10-31 08:19:40 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-04-28 20:39:29 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2007-01-27 00:44:33 +00:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/src
|
2006-10-31 08:19:40 +00:00
|
|
|
ESPEAK_LIBRARY= lib${PORTNAME}.so.1.${PORTVERSION}
|
2006-09-03 00:16:56 +00:00
|
|
|
FIND_DIRS= espeak-data
|
2006-04-28 20:39:29 +00:00
|
|
|
FIND_DOCS= docs
|
|
|
|
|
2006-10-31 08:19:40 +00:00
|
|
|
LN_OPTS= -sf
|
|
|
|
|
2007-08-06 13:33:16 +00:00
|
|
|
REINPLACE_FILES= ${BUILD_WRKSRC}/Makefile ${BUILD_WRKSRC}/speech.h
|
|
|
|
REINPLACE_ARGS= -i.bak -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
|
|
-e "s|%%DATADIR%%|${DATADIR}|g" \
|
|
|
|
-e "s|%%PREFIX%%|${PREFIX}|g"
|
2006-04-28 20:39:29 +00:00
|
|
|
|
|
|
|
post-patch:
|
2007-08-06 13:33:16 +00:00
|
|
|
@${REINPLACE_CMD} ${REINPLACE_FILES}
|
2006-04-28 20:39:29 +00:00
|
|
|
|
2007-01-27 00:44:33 +00:00
|
|
|
post-install:
|
2006-04-28 20:39:29 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2006-09-03 00:16:56 +00:00
|
|
|
cd ${WRKSRC}/${FIND_DOCS} && ${FIND} . -type d -exec ${MKDIR} \
|
|
|
|
${DOCSDIR}/{} \;
|
2006-04-28 20:39:29 +00:00
|
|
|
cd ${WRKSRC}/${FIND_DOCS} && ${FIND} . -type f \
|
|
|
|
-exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
.endif
|
|
|
|
|
2007-04-16 11:24:21 +00:00
|
|
|
.include <bsd.port.mk>
|