freebsd-ports/net-mgmt/nagcon/Makefile
Kurt Jaeger 9cbe6a9c39 net-mgmt/nagcon: update 0.0.31 -> 0.0.32
- on the 2.0 parselog, one printf was silenced

PR:		227469
Submitted by:	rand@iteris.com (maintainer)
2018-04-14 16:01:51 +00:00

34 lines
907 B
Makefile

# Created by: Douglas K. Rand <rand@meridian-enviro.com>
# $FreeBSD$
PORTNAME= nagcon
PORTVERSION= 0.0.32
CATEGORIES= net-mgmt
MASTER_SITES= http://www.vanheusden.com/nagcon/
MAINTAINER= rand@iteris.com
COMMENT= Nagios console monitor
LIB_DEPENDS= libstrfunc.so:devel/libstrfunc
PLIST_FILES= bin/nagcon
CFILES= error.c
CPPFILES= utils.cpp br.cpp nc.cpp pl.cpp
USES= ncurses tar:tgz
CFLAGS+= -DVERSION=\"${PORTVERSION}\" -I${LOCALBASE}/include
LDFLAGS+= -lncurses -lstdc++ -L${LOCALBASE}/lib -lstrfunc -ltinfo
do-build:
${CC} ${CFLAGS} -c -o ${WRKSRC}/${CFILES:C/\.c//}.o ${WRKSRC}/${CFILES}
.for f in ${CPPFILES}
${CXX} ${CFLAGS} -c -o ${WRKSRC}/${f:C/\.cpp//}.o ${WRKSRC}/${f}
.endfor
${CC} ${LDFLAGS} ${WRKSRC}/error.o ${CPPFILES:C/(.*)\.cpp/${WRKSRC}\/\1.o/} \
-o ${WRKSRC}/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>