forked from Lainports/freebsd-ports
- Convert to new options framework - Trim Makefile headers PR: ports/178010 Submitted by: Hung-Yi Chen <gaod@hychen.org> (maintainer)
46 lines
1 KiB
Makefile
46 lines
1 KiB
Makefile
# Created by: Tony Shadwick <tshadwick@oss-solutions.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= htop
|
|
PORTVERSION= 1.0.2
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= gaod@hychen.org
|
|
COMMENT= A better top(1) - interactive process viewer
|
|
|
|
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
|
|
|
|
OPTIONS_DEFINE= LSOF
|
|
OPTIONS_DEFAULT= LSOF
|
|
|
|
NOT_FOR_ARCHS= ia64 powerpc sparc64
|
|
|
|
GNU_CONFIGURE= yes
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ENV= LIBS="-lexecinfo"
|
|
|
|
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.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLSOF}
|
|
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.mk>
|