aboutsummaryrefslogtreecommitdiffstats
path: root/net/libfb/Makefile
blob: 1df6a7182fc905aa40509193c8977c073b1e299e (plain) (blame)
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
# Created by: Max Khon <fjoe@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libfb
PORTVERSION=    2.0.2
CATEGORIES= net net-mgmt
MASTER_SITES=   http://support.red-fone.com/downloads/fonulator/

MAINTAINER= fjoe@FreeBSD.org
COMMENT=    A foneBRIDGE configuration library

BUILD_DEPENDS=  ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet

GNU_CONFIGURE=  yes
CPPFLAGS+=  ${LIBNET_CPPFLAGS}
LDFLAGS+=   ${LIBNET_LIBS:N-l*}
CONFIGURE_ARGS= --disable-shared

LIBNET_CONFIG=  ${LOCALBASE}/bin/libnet11-config

.if 0
# this does not work when LIBNET_CONFIG does not exist prior to building this port
LIBNET_CPPFLAGS!=   ${LIBNET_CONFIG} --cflags --defines
LIBNET_LIBS!=       ${LIBNET_CONFIG} --libs
.else
LIBNET_CPPFLAGS=    -I${LOCALBASE}/include/libnet11
LIBNET_LIBS=        -L${LOCALBASE}/lib/libnet11
.endif

.include <bsd.port.mk>