summaryrefslogtreecommitdiffstats
path: root/sysutils/slmon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/slmon/Makefile')
-rw-r--r--sysutils/slmon/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/sysutils/slmon/Makefile b/sysutils/slmon/Makefile
index c10eb43..94f781c 100644
--- a/sysutils/slmon/Makefile
+++ b/sysutils/slmon/Makefile
@@ -8,22 +8,30 @@
PORTNAME= slmon
PORTVERSION= 0.5.11
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
+COMMENT= S-Lang System Monitor
-LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext \
- gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- gtop.1:${PORTSDIR}/devel/libgtop \
+LIB_DEPENDS= gtop-2.0.2:${PORTSDIR}/devel/libgtop2 \
slang.1:${PORTSDIR}/devel/libslang
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lncurses -lintl -lgnugetopt"
-MAN1= slmon.1
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+
+MAN1= slmon.1
+
+CPPFLAGS= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib -lncurses
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
.include <bsd.port.pre.mk>
OpenPOWER on IntegriCloud