1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/net/yate/Makefile
2023-04-23 09:09:58 +00:00

100 lines
2.5 KiB
Makefile

PORTNAME= yate
PORTVERSION= 6.4.0
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://yate.null.ro/tarballs/yate6/
DISTNAME= ${PORTNAME}-${PORTVERSION}-1
MAINTAINER= ports@FreeBSD.org
COMMENT= Yet Another Telephony Engine
WWW= http://yate.null.ro
LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le sparc64
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libspeex.so:audio/speex \
libgsm.so:audio/gsm
USES= autoreconf bison gmake shebangfix
USE_GCC= yes
SHEBANG_FILES= share/scripts/banbrutes.php \
share/scripts/leavemail.php \
share/scripts/queue_in.php \
share/scripts/queue_out.php \
share/scripts/route.php \
share/scripts/tts.sh \
share/scripts/voicemail.php
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-fdsize \
--without-libqt4 \
--with-zlib=/usr
PLIST_SUB= VERSION="${PORTVERSION}"
MAKE_JOBS_UNSAFE=yes
SUB_FILES= pkg-message
USE_RC_SUBR= yate
USERS= yate
GROUPS= yate
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= AMRNB DOCS DAHDI H323 ILBC MYSQL PGSQL SCTP SPANDSP SQLITE
OPTIONS_DEFAULT=SCTP
AMRNB_DESC= Adaptive Multi-Rate Narrowband support
DAHDI_DESC= Dahdi support
H323_DESC= H323 software channel/protocol support
ILBC_DESC= iLBC narrowband speech codec support
SCTP_DESC= Stream Control Transmission Protocol support
OPTIONS_SUB= yes
AMRNB_CONFIGURE_WITH= amrnb=${LOCALBASE}
AMRNB_LIB_DEPENDS= libamrnb.so:audio/libamrnb
DAHDI_CONFIGURE_ENABLE= dahdi
DAHDI_BUILD_DEPENDS= libpri>=1.4.10:misc/libpri \
${LOCALBASE}/include/dahdi/user.h:misc/dahdi
DAHDI_LIB_DEPENDS= libpri.so:misc/libpri \
libopenr2.so:misc/openr2
H323_CONFIGURE_WITH= openh323=${LOCALBASE}
H323_LIB_DEPENDS= libopenh323.so:net/h323plus \
libpt.so:devel/ptlib
ILBC_CONFIGURE_ENABLE= ilbc
ILBC_LIB_DEPENDS= libilbc.so:net/ilbc
MYSQL_CONFIGURE_WITH= mysql
MYSQL_USES= mysql ssl
PGSQL_CONFIGURE_WITH= libpq=${LOCALBASE}
PGSQL_USES= pgsql
SCTP_CONFIGURE_ENABLE= sctp
SPANDSP_CONFIGURE_WITH= spandsp
SPANDSP_LIB_DEPENDS= libspandsp.so:comms/spandsp
SQLITE_CONFIGURE_WITH= sqlite
SQLITE_USES= pkgconfig sqlite
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/yate
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libyate*.so.${PORTVERSION}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/yate/*.yate
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/yate/radio/*.yate
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/yate/sig/*.yate
.for dir in client server jabber sip
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/yate/${dir}/*.yate
.endfor
.include <bsd.port.mk>