freebsd-ports/misc/help2man/Makefile
Sunpoet Po-Chuan Hsieh 652aab01f8 - Update to 1.43.2
Changes:

1.43.2:
- Use the generic term "section" in the documentation rather than "name", which
  could be confused to mean only the literal "NAME" section.

1.43.1:
- Add explicit include syntax for prepending, replacing or appending to
  generated output for a section (thanks to Daniil Baturin for the idea).
- Update Vietnamese translation (thanks to Tran Ngoc Quan).
- Update Esperanto translation (thanks to Felipe Castro).
2013-06-13 11:52:18 +00:00

52 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= help2man
PORTVERSION= 1.43.2
CATEGORIES= misc
MASTER_SITES= GNU/${PORTNAME}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Automatically generating simple manual pages from program output
LICENSE= GPLv3
OPTIONS_DEFINE= NLS
CFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_PERL5= yes
INFO= ${PORTNAME}
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
BUILD_DEPENDS+= p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
RUN_DEPENDS+= p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
CFLAGS+= -lintl
MANLANG= "" ${LANGS} ${LANGS_MTREE}
USES+= gettext
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
PLIST_FILES+= lib/bindtextdomain.so
.for lang in ${LANGS} ${LANGS_MTREE}
PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
.for lang in ${LANGS}
PLIST_DIRSTRY+= man/${lang}/man1 man/${lang}
.endfor
.else
CONFIGURE_ARGS= --disable-nls
.endif
post-patch:
@${REINPLACE_CMD} -e '/^pkglibdir/ s|/${PORTNAME}$$||' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>