2012-12-07 23:26:41 +01:00
|
|
|
# Created by: r.neese
|
2008-03-22 21:36:38 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sphinxbase
|
2012-12-14 18:09:21 +01:00
|
|
|
PORTVERSION= 0.8
|
2014-06-08 21:51:27 +02:00
|
|
|
PORTREVISION= 1
|
2008-03-22 21:36:38 +01:00
|
|
|
CATEGORIES= audio accessibility
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/cmusphinx/${PORTNAME}/${PORTVERSION}
|
2008-03-22 21:36:38 +01:00
|
|
|
|
2012-12-07 23:26:41 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-08-28 13:14:20 +02:00
|
|
|
COMMENT= CMU Sphinx Speech recognition system base
|
|
|
|
|
2014-05-14 03:58:08 +02:00
|
|
|
USES= bison gmake pathfix libtool
|
|
|
|
GNU_CONFIGURE= yes
|
2012-08-28 13:14:20 +02:00
|
|
|
CONFIGURE_ARGS+= --without-python --without-lapack
|
|
|
|
CONFIGURE_ENV+= HAVE_DOXYGEN=no
|
2014-05-14 03:58:08 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-08-28 13:14:20 +02:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-03-22 21:36:38 +01:00
|
|
|
|
|
|
|
MAKE_ENV= MKDIR="${MKDIR}" \
|
2008-07-25 11:08:42 +02:00
|
|
|
OSVERSION=${OSVERSION}
|
2008-03-22 21:36:38 +01:00
|
|
|
|
2012-08-28 13:14:20 +02:00
|
|
|
OPTIONS_DEFINE= SNDFILE THREADS
|
|
|
|
OPTIONS_DEFAULT= THREADS
|
|
|
|
|
|
|
|
SNDFILE_DESC= libsndfile support
|
|
|
|
THREADS_DESC= Build with thread safety support
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSNDFILE}
|
2013-04-23 01:19:08 +02:00
|
|
|
USES+= pkgconfig
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile
|
2012-08-28 13:14:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= HAVE_PKGCONFIG=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTHREADS}
|
|
|
|
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
.endif
|
|
|
|
|
2014-05-14 03:58:08 +02:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsphinx*.so
|
|
|
|
|
2008-03-22 21:36:38 +01:00
|
|
|
.include <bsd.port.mk>
|