Tweak sysutils/psmisc version 22.16
[dports.git] / sysutils / psmisc / Makefile
1 # Created by: rantapaa@uswest.net
2 # $FreeBSD: sysutils/psmisc/Makefile 327772 2013-09-20 23:05:58Z bapt $
3
4 PORTNAME=       psmisc
5 PORTVERSION=    22.16
6 CATEGORIES=     sysutils
7 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/
8
9 MAINTAINER=     douglas@douglasthrift.net
10 COMMENT=        Port of the Linux pstree, killall, and pidof commands
11
12 LICENSE=        GPLv2
13
14 BUILD_DEPENDS=  gsed:${PORTSDIR}/textproc/gsed
15
16 CONFLICTS=      pidof-[0-9]* pstree-2.[0-9]*
17
18 GNU_CONFIGURE=  yes
19 USE_GMAKE=      yes
20
21 OPTIONS_DEFINE= NLS
22
23 NO_STAGE=       yes
24 .include <bsd.port.options.mk>
25
26 MAN1=           killall.1 pstree.1
27
28 .if ${PORT_OPTIONS:MNLS}
29 USES+=          gettext
30 CONFIGURE_ARGS= --enable-nls
31 PLIST_SUB+=     NLS=""
32 .else
33 CONFIGURE_ARGS= --disable-nls
34 PLIST_SUB+=     NLS="@comment "
35 .endif
36
37 post-patch:
38         @${REINPLACE_CMD} -e '/^#define COMM_LEN / s|16|254|' ${WRKSRC}/src/comm.h
39
40 post-install:
41         @${LN} -fs ${PREFIX}/bin/killall ${PREFIX}/bin/pidof
42
43 .include <bsd.port.mk>