52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# New ports collection makefile for: p5-Locale-Maketext-Lexicon
|
|
# Date created: February 23, 2003
|
|
# Whom: Mathieu Arnold <m@absolight.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Locale-Maketext-Lexicon
|
|
PORTVERSION= 0.49
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
MASTER_SITE_SUBDIR= Locale
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= mat@FreeBSD.org
|
|
COMMENT= Use other catalog formats in Locale::Maketext
|
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common \
|
|
${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser \
|
|
${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Maketext
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
PERL_CONFIGURE= YES
|
|
|
|
MAN3= Locale::Maketext::Extract.3 \
|
|
Locale::Maketext::Lexicon::Auto.3 \
|
|
Locale::Maketext::Lexicon::Gettext.3 \
|
|
Locale::Maketext::Lexicon::Msgcat.3 \
|
|
Locale::Maketext::Lexicon::Tie.3 \
|
|
Locale::Maketext::Lexicon.3
|
|
|
|
MAN1= xgettext.pl.1
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= AUTHORS Changes README
|
|
|
|
post-install:
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
post-patch:
|
|
@${PERL} -pi -e '$$_ = "" if /no warnings/;' \
|
|
-e 's/^our (\S+);/use vars qw{$$1};/;' \
|
|
${WRKSRC}/lib/Locale/Maketext/Lexicon.pm
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|