1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/net-mgmt/nagcon/Makefile
Mathieu Arnold 8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00

35 lines
908 B
Makefile

# Created by: Douglas K. Rand <rand@meridian-enviro.com>
# $FreeBSD$
PORTNAME= nagcon
PORTVERSION= 0.0.30
CATEGORIES= net-mgmt
MASTER_SITES= http://www.vanheusden.com/nagcon/
MAINTAINER= rand@meridian-enviro.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
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>