diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2011-01-01 12:21:55 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2011-01-01 12:21:55 +0000 |
commit | 94b1417ff947446898ddd5daa068afe1b64d9728 (patch) | |
tree | ad75631db48959c761a5e3bc5e31797cc6c8cc92 /misc/help2man/Makefile | |
parent | 2f511adfb5e8ad3f25a2b91e935c045bdca01b3e (diff) | |
download | ports-94b1417ff947446898ddd5daa068afe1b64d9728.tar.gz ports-94b1417ff947446898ddd5daa068afe1b64d9728.zip |
Notes
Diffstat (limited to 'misc/help2man/Makefile')
-rw-r--r-- | misc/help2man/Makefile | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/misc/help2man/Makefile b/misc/help2man/Makefile index 42efebaaf1e1..087b465353cc 100644 --- a/misc/help2man/Makefile +++ b/misc/help2man/Makefile @@ -1,4 +1,3 @@ -# ex:ts=8 # Ports collection makefile for: help2man # Date created: Jan 30, 2002 # Whom: ijliao @@ -7,36 +6,44 @@ # PORTNAME= help2man -PORTVERSION= 1.38.2 -PORTREVISION= 1 +PORTVERSION= 1.38.4 CATEGORIES= misc -MASTER_SITES= ${MASTER_SITE_GNU} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= GNU/${PORTNAME} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Automatically generating simple manual pages from program output -.if !defined(WITHOUT_NLS) +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 -INSTALL_TARGET= install install_l10n -MANLANG= "" de fi fr pl pt_BR ru sv vi -PLIST_SUB+= NLS="" +MANLANG= "" ${LANGS} USE_GETTEXT= yes -.else -CONFIGURE_ARGS+=--disable-nls -INSTALL_TARGET= install -PLIST_SUB+= NLS="@comment " -.endif -CFLAGS+= -L${LOCALBASE}/lib -GNU_CONFIGURE= yes -USE_GMAKE= yes -USE_PERL5= yes +LANGS= de el fi fr it pl pt_BR ru sv 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 -INFO= help2man -MAN1= help2man.1 +post-patch: + @${REINPLACE_CMD} -e '/^pkglibdir/ s|/${PORTNAME}$$||' ${WRKSRC}/Makefile.in .include <bsd.port.mk> |