# $OpenBSD: Makefile,v 1.2 2018/02/27 17:40:13 ians Exp $

COMMENT =	interactive process viewer
V =		2.1.0
DISTNAME =	htop-${V}
CATEGORIES =	sysutils
HOMEPAGE =	https://hisham.hm/htop/index.php
MAINTAINER =	Ian Sutton <ian@ce.gl>

# GPLv2+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB =	c curses kvm m
MODULES =	lang/python
MASTER_SITES =	https://hisham.hm/htop/releases/${V}/
RUN_DEPENDS =	devel/desktop-file-utils

NO_TEST =	Yes

CONFIGURE_STYLE =	gnu
CONFIGURE_ARGS +=	--disable-unicode \
			--disable-taskstats

ALL_TARGET =		debug

MODPY_RUNDEP =		No
MODPY_ADJ_FILES =	scripts/MakeHeader.py

# htop has some bugs which takes hours or days to reach.
# Keep the symbols to give a chance to the user to get an useful coredump.
# Turning this off for now, I believe the previous crashes are fixed
#INSTALL_STRIP=

.include <bsd.port.mk>
