aboutsummaryrefslogtreecommitdiffstats
path: root/misc/help2man/Makefile
blob: 9a2b9c840db3db1761129b7fe5d6fe28b877b188 (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
42
43
44
45
46
47
48
49
# Ports collection makefile for:    help2man
# Date created:         Jan 30, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   help2man
PORTVERSION=    1.39.1
CATEGORIES= misc
MASTER_SITES=   GNU/${PORTNAME}

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

LICENSE=    GPLv3

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

INFO=       ${PORTNAME}
MAN1=       ${PORTNAME}.1
PLIST_FILES=    bin/${PORTNAME}

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS= --disable-nls
.else
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

CFLAGS+=    -lintl
MANLANG=    "" ${LANGS}
USE_GETTEXT=    yes

LANGS=      de el fi fr it pl pt_BR ru sv uk vi

PLIST_FILES+=   lib/bindtextdomain.so
.for lang in ${LANGS}
PLIST_FILES+=   share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
PLIST_DIRSTRY+= man/${lang}/man1 man/${lang}
.endfor
.endif

post-patch:
    @${REINPLACE_CMD} -e '/^pkglibdir/ s|/${PORTNAME}$$||' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>