openbsd-ports/audio/espeak/Makefile

59 lines
1.3 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.6 2010/09/05 10:25:16 sthen 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
post-extract:
@cp ${LOCALBASE}/include/portaudio.h ${WRKSRC}/portaudio.h
pre-configure:
${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 <bsd.port.mk>