2013-09-20 22:10:23 +00:00
|
|
|
# Created by: Max Khon <fjoe@FreeBSD.org>
|
2010-06-05 09:40:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fonulator
|
|
|
|
PORTVERSION= 2.0.1
|
2014-07-14 15:38:39 +00:00
|
|
|
PORTREVISION= 2
|
2011-04-18 17:42:30 +00:00
|
|
|
CATEGORIES= net net-mgmt
|
2010-06-05 09:40:21 +00:00
|
|
|
MASTER_SITES= http://support.red-fone.com/fonulator/
|
|
|
|
|
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
2014-07-10 12:13:11 +00:00
|
|
|
COMMENT= FoneBRIDGE configuration utility
|
2010-06-05 09:40:21 +00:00
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libargtable2.a:devel/argtable\
|
|
|
|
${LOCALBASE}/lib/libfb.a:net/libfb
|
|
|
|
LIB_DEPENDS= libnet.so:net/libnet
|
2014-07-14 15:38:39 +00:00
|
|
|
|
2010-06-05 09:40:21 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2016-03-20 10:53:08 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2010-06-05 09:40:21 +00:00
|
|
|
CONFIGURE_ARGS= --disable-shared
|
|
|
|
|
2014-01-31 09:46:25 +00:00
|
|
|
PLIST_FILES= bin/fonulator \
|
|
|
|
man/man1/fonulator.1.gz
|
2010-06-05 09:40:21 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD}\
|
|
|
|
-e 's,/usr/lib/libargtable2.a,${LOCALBASE}/lib/libargtable2.a,'\
|
2016-03-20 10:53:08 +00:00
|
|
|
-e 's,/usr/lib/libnet.a,${LOCALBASE}/lib/libnet.a,'\
|
2010-06-05 09:40:21 +00:00
|
|
|
${WRKSRC}/Makefile.in ${WRKSRC}/configure
|
2019-04-19 10:49:17 +00:00
|
|
|
.if exists(/usr/lib/libibverbs.a)
|
|
|
|
@${REINPLACE_CMD} -e 's,^fonulator_LDADD.*,& /usr/lib/libibverbs.a,' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2010-06-05 09:40:21 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,/etc/redfone.conf,${LOCALBASE}/etc/redfone.conf,'\
|
|
|
|
${WRKSRC}/fonulator.c ${WRKSRC}/fonulator.1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|