1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00
freebsd-ports/sysutils/htop/Makefile
Baptiste Daroussin 8d27ddb9bd Add a new macro to deal with conflict between ncurses from base and ncurses from ports.
If a ports is linked against ncurses from base or from the ports, it should then add:
USE_NCURSES=yes

it is also possible to specify the hard dependency on the ports ncurses or one the base one adding the following macros:
WITH_NCURSES_PORT=yes or WITH_NCURSES_BASE=yes

PR:		ports/155269
Submitted by:	me
Reviwed by:	pav@
Approved by:	portmgr (pav@)
Exp-run by:	portmgr (pav@)
2011-04-11 08:34:17 +00:00

44 lines
938 B
Makefile

# New ports collection makefile for: htop
# Date created: 27 August 2007
# Whom: Tony Shadwick <tshadwick@oss-solutions.com>
#
# $FreeBSD$
#
PORTNAME= htop
PORTVERSION= 0.8.3
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= yzlin@FreeBSD.org
COMMENT= A better top(1) - interactive process viewer
OPTIONS= LSOF "Enable lsof support" On
NOT_FOR_ARCHS= sparc64
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-proc=/compat/linux/proc --enable-unicode
USE_AUTOTOOLS= autoconf aclocal automake libtool
USE_NCURSES= yes
ACLOCAL_ARGS= -I ${ACLOCAL_DIR}
USE_PYTHON_BUILD= yes
MAN1= htop.1
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_LSOF)
RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof
.endif
post-patch:
@${REINPLACE_CMD} -e 's:/usr/bin/python:${LOCALBASE}/bin/python:' ${WRKSRC}/scripts/MakeHeader.py
pre-configure:
@[ -f /compat/linux/proc/stat ] || { ${CAT} ${PKGMESSAGE}; ${FALSE}; }
.include <bsd.port.post.mk>