diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2006-04-28 20:39:29 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2006-04-28 20:39:29 +0000 |
commit | 40e8cb84479a0e7fd68100102f6111aed2e36e4b (patch) | |
tree | f11707205a1dd26bc7d070ff5aa4b2b107b8778b /audio/espeak/Makefile | |
parent | 94b553c7d36518a047a55ea287eb934ebb0ffb43 (diff) | |
download | ports-40e8cb84479a0e7fd68100102f6111aed2e36e4b.tar.gz ports-40e8cb84479a0e7fd68100102f6111aed2e36e4b.zip |
Notes
Diffstat (limited to 'audio/espeak/Makefile')
-rw-r--r-- | audio/espeak/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/audio/espeak/Makefile b/audio/espeak/Makefile new file mode 100644 index 000000000000..5ff47fdaa18e --- /dev/null +++ b/audio/espeak/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: espeak +# Date created: 2006-03-25 +# Whom: Nicola Vitale <nivit@email.it> +# +# $FreeBSD$ +# + +PORTNAME= espeak +PORTVERSION= 1.07 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= speak-${PORTVERSION}-source + +MAINTAINER= nivit@email.it +COMMENT= A software speech synthesizer + +LIB_DEPENDS= portaudio:${PORTSDIR}/audio/portaudio + +CONFLICTS= speak-1* + +MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" CXX="${CXX}" + +USE_GETOPT_LONG=yes +USE_GMAKE= yes +USE_ZIP= yes + +WRKSRC= ${WRKDIR}/${DISTNAME} +BUILD_WRKSRC= ${WRKSRC}/src + +FIND_DIRS= data espeak-data +FIND_DOCS= docs + +REPLACE_FILES= ${BUILD_WRKSRC}/Makefile ${BUILD_WRKSRC}/speak.cpp + +post-patch: + @for FILE in ${REPLACE_FILES}; do \ + ${REINPLACE_CMD} \ + -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ + -e "s|%%DATADIR%%|${DATADIR}|g" $${FILE} ;\ + done; + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/speak ${PREFIX}/bin/speak + cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -type d -exec ${MKDIR} \ + ${DATADIR}/{} \; + cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -type f -exec ${INSTALL_DATA} {} \ + ${DATADIR}/{} \; + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC}/${FIND_DOCS} && ${FIND} . -type f \ + -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; +.endif + +.include <bsd.port.mk> |