mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
36 lines
915 B
Makefile
36 lines
915 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/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= rand@meridian-enviro.com
|
|
COMMENT= Nagios console monitor
|
|
|
|
LIB_DEPENDS= strfunc.9:${PORTSDIR}/devel/libstrfunc
|
|
|
|
PLIST_FILES= bin/nagcon
|
|
|
|
CFILES= error.c
|
|
CPPFILES= utils.cpp br.cpp nc.cpp pl.cpp
|
|
|
|
CFLAGS+= -DVERSION=\"${PORTVERSION}\" -I${LOCALBASE}/include
|
|
LDFLAGS+= -lncurses -lstdc++ -L${LOCALBASE}/lib -lstrfunc
|
|
|
|
NO_STAGE= yes
|
|
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} ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|