# $OpenBSD: Makefile,v 1.8 2010/11/15 00:22:46 espie Exp $ COMMENT= compact speech synthesizer DISTNAME= espeak-1.40.02-source PKGNAME= ${DISTNAME:S/-source//} REVISION= 1 SHARED_LIBS= espeak 0.0 CATEGORIES= audio devel HOMEPAGE= http://espeak.sourceforge.net/ # GPLv3 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=espeak/} EXTRACT_SUFX= .zip WANTLIB= c m pthread stdc++ portaudio LIB_DEPENDS= audio/portaudio-svn USE_GMAKE= Yes USE_LIBTOOL= Yes NO_REGRESS= Yes WRKSRC= ${WRKDIST}/src MAKE_FLAGS+= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" .if ${MACHINE_ARCH} == "amd64" MAKE_FLAGS += EXTRA_FLAGS="-fPIC" .endif SUBST_VARS= PREFIX LIBespeak_VERSION pre-configure: @cp ${LOCALBASE}/include/portaudio.h ${WRKSRC}/portaudio.h ${SUBST_CMD} ${WRKSRC}/speech.h ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/espeak ${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/libespeak* ${PREFIX}/lib/ ${INSTALL_DATA} ${WRKSRC}/speak_lib.h ${PREFIX}/include/ ${INSTALL_DATA_DIR} ${PREFIX}/share/espeak-data cd ${WRKDIST}/espeak-data; tar cf - * | tar xf - -C \ ${PREFIX}/share/espeak-data ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/espeak ${INSTALL_DATA} ${WRKDIST}/docs/*.html ${PREFIX}/share/doc/espeak .include