blob: a26173a521a943e05c34ac1605a6a4ae916d86e0 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# New ports collection makefile for: fonulator
# Date created: 12 Jan 2010
# Whom: Max Khon <fjoe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= fonulator
PORTVERSION= 2.0.1
CATEGORIES= net net-mgmt
MASTER_SITES= http://support.red-fone.com/fonulator/
MAINTAINER= fjoe@FreeBSD.org
COMMENT= A foneBRIDGE configuration utility
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include ${LIBNET_CPPFLAGS}
LDFLAGS+= ${LIBNET_LIBS:N-l*}
CONFIGURE_ARGS= --disable-shared
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet\
${LOCALBASE}/lib/libargtable2.a:${PORTSDIR}/devel/argtable\
${LOCALBASE}/lib/libfb.a:${PORTSDIR}/net/libfb
LIBNET_CONFIG= ${LOCALBASE}/bin/libnet11-config
PLIST_FILES= bin/fonulator
MAN1= fonulator.1
post-patch:
@${REINPLACE_CMD}\
-e 's,/usr/lib/libargtable2.a,${LOCALBASE}/lib/libargtable2.a,'\
-e 's,/usr/lib/libnet.a,${LIBNET_LIBS:N-l*:S,-L,,}/libnet.a,'\
${WRKSRC}/Makefile.in ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,/etc/redfone.conf,${LOCALBASE}/etc/redfone.conf,'\
${WRKSRC}/fonulator.c ${WRKSRC}/fonulator.1
.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>
|