aboutsummaryrefslogtreecommitdiffstats
path: root/misc/help2man/Makefile
blob: d544f37d557c6b8439b7b1f2dbab3dc52711a633 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   help2man
PORTVERSION=    1.43.3
PORTREVISION=   1
CATEGORIES= misc
MASTER_SITES=   GNU/${PORTNAME}

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

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

OPTIONS_DEFINE= NLS

LIBS+=      -L${LOCALBASE}/lib
GNU_CONFIGURE=  yes
# keep gmake:lite has a dependency to avoid circular dependency
USES=       gmake:lite perl5

INFO=       ${PORTNAME}
PLIST_FILES=    bin/${PORTNAME} \
        man/man1/help2man.1.gz

LANGS=      de el eo fi fr hr it pl pt_BR ru sr sv uk vi
LANGS_MTREE=    ja  # languages that already exist in BSD.local.dist

NLS_BUILD_DEPENDS=  p5-Locale-gettext>=0:devel/p5-Locale-gettext
NLS_CONFIGURE_ENABLE=   nls
# Add note of build failure caused by Perl infrastructure change in 20130612
NLS_VARS=       CONFIGURE_FAIL_MESSAGE="Please read UPDATING entry 20130612 \(http://svnweb.freebsd.org/ports/head/UPDATING\?r1=320405\&r2=320679\) and PR/184276 \(http://www.freebsd.org/cgi/query-pr.cgi\?pr=ports/184276\) to fix your Perl installation if you got the error message \"configure: error: perl module Locale::gettext required\"."
NLS_PLIST_FILES=    lib/bindtextdomain.so
NLS_RUN_DEPENDS=    p5-Locale-gettext>=0:devel/p5-Locale-gettext
NLS_USES=       gettext

.for lang in ${LANGS} ${LANGS_MTREE}
NLS_PLIST_FILES+=   man/${lang}/man1/help2man.1.gz \
            share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor

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

.include <bsd.port.mk>