freebsd-ports/accessibility/speech-dispatcher/Makefile
Tobias Kortkamp 6b6cd0b3e4 accesibility/speech-dispatcher: Unbreak build with -fno-common
ld: error: duplicate symbol: GlobalFDSet
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(GlobalFDSet)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x148)

ld: error: duplicate symbol: MessagePausedList
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(MessagePausedList)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x138)

ld: error: duplicate symbol: MessageQueue
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(MessageQueue)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x10)

ld: error: duplicate symbol: SpeechdOptions
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(SpeechdOptions)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x60)

ld: error: duplicate symbol: SpeechdStatus
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(SpeechdStatus)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0xF8)

ld: error: duplicate symbol: client_specific_settings
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(client_specific_settings)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x140)

ld: error: duplicate symbol: custom_log_kind
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(custom_log_kind)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x230)

ld: error: duplicate symbol: custom_logfile
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(custom_logfile)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x228)

ld: error: duplicate symbol: debug_logfile
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(debug_logfile)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x238)

ld: error: duplicate symbol: element_free_mutex
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(element_free_mutex)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x8)

ld: error: duplicate symbol: fd_settings
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(fd_settings)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x120)

ld: error: duplicate symbol: fd_uid
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(fd_uid)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x130)

ld: error: duplicate symbol: language_default_modules
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(language_default_modules)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x128)

ld: error: duplicate symbol: last_p5_block
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(last_p5_block)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x18)

ld: error: duplicate symbol: logfile
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(logfile)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x220)

ld: error: duplicate symbol: logging_mutex
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(logging_mutex)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x110)

ld: error: duplicate symbol: output_layer_mutex
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(output_layer_mutex)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x118)

ld: error: duplicate symbol: p_msg_lc
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(p_msg_lc)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x28)

ld: error: duplicate symbol: p_msg_uid_lc
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(p_msg_uid_lc)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x30)

ld: error: duplicate symbol: pause_requested
>>> defined at speechd.c
>>>            speech_dispatcher-speechd.o:(pause_requested)
>>> defined at server.c
>>>            speech_dispatcher-server.o:(.bss+0x50)
2020-07-10 16:21:05 +00:00

98 lines
2.7 KiB
Makefile

# $FreeBSD$
PORTNAME= speech-dispatcher
DISTVERSION= 0.8.8
CATEGORIES?= accessibility audio
MASTER_SITES= http://devel.freebsoft.org/pub/projects/speechd/
MAINTAINER= multimedia@FreeBSD.org
COMMENT?= Common interface to speech synthesis
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LIB_DEPENDS= libdotconf.so:devel/dotconf \
libltdl.so:devel/libltdl \
libsndfile.so:audio/libsndfile
USES= alias gettext gmake gnome libtool pathfix pkgconfig
USE_GNOME= glib20 intltool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-espeak-ng
CFLAGS+= -fcommon -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
.if !defined(SPEECH_SLAVE)
CONFIGURE_ARGS+= --disable-python
ETCFILES= clients/emacs.conf modules/cicero.conf modules/dtk-generic.conf \
modules/epos-generic.conf modules/espeak-generic.conf \
modules/espeak-mbrola-generic.conf modules/espeak-ng.conf \
modules/espeak.conf modules/festival.conf modules/flite.conf \
modules/ibmtts.conf modules/ivona.conf \
modules/llia_phon-generic.conf modules/pico-generic.conf \
modules/swift-generic.conf speechd.conf
PORTDOCS= ANNOUNCE AUTHORS FAQ NEWS README TODO
INFO= spd-say speech-dispatcher speech-dispatcher-cs ssip
OPTIONS_DEFINE= ALSA AO DOCS ESPEAK FESTIVAL FLITE NAS PULSEAUDIO
OPTIONS_DEFAULT= ESPEAK
OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CONFIGURE_WITH= alsa
AO_LIB_DEPENDS= libao.so:audio/libao
AO_CONFIGURE_WITH= libao
ESPEAK_DESC= eSpeak speech synthesizer support
ESPEAK_LIB_DEPENDS= libespeak.so:audio/espeak
ESPEAK_CONFIGURE_WITH= espeak
FESTIVAL_DESC= Festival Speech Synthesis System support
FESTIVAL_RUN_DEPENDS= ${LOCALBASE}/share/festival/lib/${PORTNAME}.scm:audio/festival-freebsoft-utils \
festival:audio/festival
FLITE_DESC= Flite speech synthesis engine support
FLITE_LIB_DEPENDS= libflite.so:audio/flite
FLITE_CONFIGURE_WITH= flite
NAS_LIB_DEPENDS= libaudio.so:audio/nas
NAS_CONFIGURE_WITH= nas
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_WITH= pulse
post-patch:
${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \
${WRKSRC}/src/modules/*.c \
${WRKSRC}/config/modules/*.conf
post-install:
.for f in ${ETCFILES}
@${MV} ${STAGEDIR}${ETCDIR}/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
.endfor
@${RM} -r ${STAGEDIR}${DATADIR}/conf
@${RMDIR} ${STAGEDIR}${DATADIR} || ${TRUE}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.else
PORTSCOUT= ignore:1
NO_ARCH= yes
USES+= python:3.3+ shebangfix
SHEBANG_FILES= src/api/python/speechd_config/spd-conf
USE_PYTHON= flavors
LIB_DEPENDS+= libspeechd.so:accessibility/speech-dispatcher
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xdg/__init__.py:devel/py-xdg@${PY_FLAVOR}
.endif
.include <bsd.port.mk>