# Created by: Tony Shadwick <tshadwick@oss-solutions.com>
# $FreeBSD: tags/RELEASE_11_0_0/sysutils/htop/Makefile 412349 2016-04-01 14:25:16Z mat $

PORTNAME=	htop
PORTVERSION=	2.0.1
CATEGORIES=	sysutils

MAINTAINER=	gaod@hychen.org
COMMENT=	Better top(1) - interactive process viewer

LICENSE=	GPLv2

RUN_DEPENDS=	lsof:sysutils/lsof

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib -lexecinfo

CONFIGURE_ARGS=	--enable-unicode
USES=		autoreconf execinfo libtool ncurses python:2,build shebangfix
SHEBANG_LANG=	python2
SHEBANG_FILES=	scripts/MakeHeader.py
USE_GITHUB=	yes
GH_ACCOUNT=	hishamhm
PLIST_FILES=	bin/htop \
		man/man1/htop.1.gz \
		share/applications/htop.desktop \
		share/pixmaps/htop.png

.include <bsd.port.mk>
