Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2008 11:40:57 +0800
From:      Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/125671: [PATCH] sysutils/htop: update to 0.8
Message-ID:  <20080717034057.GA75287@stucgi.cs.nctu.edu.tw>
In-Reply-To: <200807160650.m6G6o0Vq085906@freefall.freebsd.org>
References:  <200807160639.m6G6derG021660@stucgi.cs.nctu.edu.tw> <200807160650.m6G6o0Vq085906@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I modified the Makefile to auto-enable the Unicode support.

--- htop-0.8.Makefile.patch begins here ---
--- sysutils/htop/Makefile.orig	2008-02-07 03:01:32.000000000 +0800
+++ sysutils/htop/Makefile	2008-07-16 18:22:18.000000000 +0800
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	htop
-PORTVERSION=	0.6.6
+PORTVERSION=	0.8
 CATEGORIES=	sysutils
 MASTER_SITES=	SF
 
@@ -16,10 +16,25 @@
 NOT_FOR_ARCHS=	sparc64
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-proc=/compat/linux/proc
+CONFIGURE_ARGS=	--with-proc=/compat/linux/proc --enable-unicode
+USE_AUTOTOOLS=	autoconf:261 aclocal:19 automake:19
+ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal
+
+USE_PYTHON_BUILD=	yes
+
 MAN1=	htop.1
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
+LIB_DEPENDS+=	ncursesw.5:${PORTSDIR}/devel/ncurses
+.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}; }
+	cd ${WRKSRC} && ${ACLOCAL}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- htop-0.8.Makefile.patch ends here ---

-- 
__   ________     ___ _   _     Name:   林宜政 Yi-Jheng, Lin
\ \ / /__  / |   |_ _| \ | |    E-Mail: yzlin1985@gmail.com, yzlin@cs.nctu.edu.tw
 \ V /  / /| |    | ||  \| |    MSN:    tacolintacolin@hotmail.com
  | |  / /_| |___ | || |\  |    Web:    http://blog.yzlin.org
  |_| /____|_____|___|_| \_|    Flickr: http://www.flickr.com/photos/yzlin1985/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080717034057.GA75287>