Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $OpenBSD: Makefile,v 1.23 2017/05/26 20:43:12 ajacoutot Exp $
  2. COMMENT= common interface to speech synthesis
  3. DISTNAME= speech-dispatcher-0.8.7
  4. SHARED_LIBS += speechd 2.1 # .8.0
  5. CATEGORIES= audio
  6. HOMEPAGE= http://devel.freebsoft.org/speechd
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB += FLAC ao c dotconf espeak glib-2.0 gmodule-2.0 gthread-2.0
  10. WANTLIB += iconv intl ltdl m ogg pcre pthread sndfile vorbis vorbisenc
  11. MASTER_SITES= http://devel.freebsoft.org/pub/projects/speechd/
  12. MODULES= textproc/intltool \
  13. lang/python
  14. MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
  15. MODPY_ADJ_FILES=src/api/python/speechd_config/spd-conf \
  16. src/api/python/speechd/_test.py
  17. # used by spd-conf
  18. RUN_DEPENDS= devel/py-xdg${MODPY_FLAVOR}
  19. LIB_DEPENDS= audio/espeak \
  20. audio/libao \
  21. audio/libsndfile \
  22. devel/dotconf \
  23. devel/glib2 \
  24. devel/libtool,-ltdl
  25. # undefined reference to `lt__PROGRAM__LTX_preloaded_symbols'
  26. USE_LIBTOOL= gnu
  27. USE_GMAKE= Yes
  28. CONFIGURE_STYLE=gnu
  29. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  30. LDFLAGS="-L${LOCALBASE}/lib"
  31. CONFIGURE_ARGS= --without-pulse
  32. FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/speech-dispatcher
  33. pre-configure:
  34. sed -i -e 's,/usr/share,${LOCALBASE}/share,g;' \
  35. -e 's,/usr/bin,${LOCALBASE}/bin,g' \
  36. ${WRKSRC}/config/modules/*.conf
  37. post-install:
  38. rm ${PREFIX}/lib/speech-dispatcher/spd_libao.{a,la}
  39. .include <bsd.port.mk>