summaryrefslogtreecommitdiffstats
path: root/net/belle-sip/Makefile
blob: a308bde2ba0e97e0e47b4ac1da41ceb49fd037bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $FreeBSD$

PORTNAME=	belle-sip
PORTVERSION=	1.4.2
PORTREVISION=	1
CATEGORIES=	net java
MASTER_SITES=	SAVANNAH/linphone/${PORTNAME}/ \
		http://www.antlr3.org/download/:source2
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		antlr-3.4-complete.jar:source2
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Belle-sip is a SIP (RFC3261) implementation written in C

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libantlr3c.so:devel/libantlr3c

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--disable-silent-rules --disable-strict --disable-tests \
		--with-antlr=${LOCALBASE}
INSTALL_TARGET=	install-strip
USES=		compiler:c11 gmake libtool pathfix
USE_JAVA=	yes
JAVA_BUILD=	jre
JAVA_VERSION=	1.6+
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	POLARSSL
OPTIONS_DEFAULT=POLARSSL

POLARSSL_CONFIGURE_ENABLE=	tls
POLARSSL_LIB_DEPENDS=		libmbedtls.so.9:security/polarssl13

post-extract:
	@${CP} ${DISTDIR}/antlr-3.4-complete.jar ${WRKDIR}/antlr-complete.jar

post-patch:
	@${REINPLACE_CMD} -e 's|%%WRKDIR%%|${WRKDIR}|' -e 's|-lrt||' \
		${WRKSRC}/configure

.include <bsd.port.mk>
OpenPOWER on IntegriCloud