Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $OpenBSD: Makefile,v 1.16 2017/04/10 11:45:23 sthen Exp $
  2. COMMENT= compact speech synthesizer
  3. DISTNAME= espeak-1.48.04-source
  4. EXTRACT_SUFX= .zip
  5. PKGNAME= ${DISTNAME:S/-source//}
  6. SHARED_LIBS= espeak 1.2
  7. CATEGORIES= audio devel
  8. HOMEPAGE= http://espeak.sourceforge.net/
  9. # GPLv3
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += c m portaudio pthread ${LIBCXX}
  12. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=espeak/}
  13. LIB_DEPENDS= audio/portaudio-svn
  14. USE_GMAKE= Yes
  15. NO_TEST= Yes
  16. WRKSRC= ${WRKDIST}/src
  17. MAKE_FLAGS += CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" EXTRA_FLAGS="-fPIC"
  18. SUBST_VARS= LIBespeak_VERSION
  19. pre-configure:
  20. @cp ${LOCALBASE}/include/portaudio.h ${WRKSRC}/portaudio.h
  21. ${SUBST_CMD} ${WRKSRC}/speech.h ${WRKSRC}/Makefile
  22. do-install:
  23. ${INSTALL_DATA_DIR} ${PREFIX}/include/espeak
  24. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/espeak
  25. ${INSTALL_DATA_DIR} ${PREFIX}/share/espeak-data
  26. ${INSTALL_PROGRAM} ${WRKSRC}/espeak ${PREFIX}/bin/
  27. ${INSTALL_DATA} ${WRKSRC}/libespeak* ${PREFIX}/lib/
  28. ${INSTALL_DATA} ${WRKSRC}/speak_lib.h ${PREFIX}/include/espeak/
  29. cd ${WRKDIST}/espeak-data; tar cf - * | tar xf - -C \
  30. ${PREFIX}/share/espeak-data
  31. ${INSTALL_DATA} ${WRKDIST}/docs/*.html ${PREFIX}/share/doc/espeak
  32. .include <bsd.port.mk>