aboutsummaryrefslogtreecommitdiffstats
path: root/misc/help2man/Makefile
blob: 6c866a82f85902a25b1a86a4d9f305539b567873 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# ex:ts=8
# Ports collection makefile for:    help2man
# Date created:         Jan 30, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   help2man
PORTVERSION=    1.37.1
PORTREVISION=   1
CATEGORIES= misc
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Automatically generating simple manual pages from program output

.if !defined(WITHOUT_NLS)
BUILD_DEPENDS=  ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext
RUN_DEPENDS=    ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext

MANLANG=    "" de fi fr pl pt_BR sv
PLIST_SUB+= NLS=""
USE_GETTEXT=    yes
INSTALL_TARGET= install install_l10n
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+=     NLS="@comment "
INSTALL_TARGET= install
.endif

GNU_CONFIGURE=  yes
CFLAGS+=    -L${LOCALBASE}/lib -lintl
USE_GMAKE=  yes
USE_PERL5=  yes

MAN1=       help2man.1
INFO=       help2man

.include <bsd.port.mk>