summaryrefslogtreecommitdiff
path: root/net/openbsc/Makefile
blob: 106d994a9fb9a922548ea1b2ccd1c842f207e297 (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
47
# $FreeBSD$

PORTNAME=	openbsc
PORTVERSION=	0.15.0
PORTREVISION=	7
CATEGORIES=	net
MASTER_SITES=	http://git.osmocom.org/${PORTNAME}/snapshot/ \
		http://chaosophia.net/downloads/osmocom/${PORTNAME}/

MAINTAINER=	koue@chaosophia.net
COMMENT=	GSM network in a box software

LICENSE=	GPLv3

LIB_DEPENDS=	libdbi.so:databases/libdbi \
		libosmocore.so:devel/libosmocore \
		libosmoabis.so:devel/libosmo-abis \
		libosmonetif.so:devel/libosmo-netif \
		libdbi.so:databases/libdbi

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}

USES=		autoreconf compiler:c11 gmake pathfix pkgconfig ssl
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	CFLAGS="-I${LOCALBASE}/include"

OPTIONS_DEFINE=	BSC NAT SQLITE DOCS
OPTIONS_DEFAULT= BSC NAT

BSC_DESC=	Enable OSMO BSC
NAT_DESC=	Enable NAT support
SQLITE_DESC=	Enable SQLite support

OPTIONS_SUB=	yes

BSC_CONFIGURE_ENABLE=	osmo-bsc

NAT_CONFIGURE_ENABLE=	nat
NAT_BUILD_DEPENDS=	${LOCALBASE}/lib/libsccp.a:devel/libosmo-sccp
NAT_RUN_DEPENDS=	${LOCALBASE}/lib/libsccp.a:devel/libosmo-sccp

SQLITE_LIB_DEPENDS=	libsqlite3.so:databases/sqlite3

post-patch:
	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version

.include <bsd.port.mk>