freebsd-ports/textproc/p5-XML-Parser/Makefile

59 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: XML::Parser
# Date created: 15 Nov 1998
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
1999-08-31 04:11:56 +02:00
# $FreeBSD$
#
PORTNAME= XML-Parser
PORTVERSION= 2.34
2006-01-31 00:20:05 +01:00
PORTREVISION= 2
CATEGORIES= textproc perl5
2002-07-22 05:14:25 +02:00
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= XML
PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
2003-02-22 08:48:51 +01:00
COMMENT= Perl extension interface to James Clark's XML parser, expat
2006-01-31 00:20:05 +01:00
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
2001-01-08 07:44:24 +01:00
PERL_CONFIGURE= yes
CONFIGURE_ARGS= EXPATLIBPATH=${LOCALBASE}/lib EXPATINCPATH=${LOCALBASE}/include
MAN3= XML::Parser.3 XML::Parser::Expat.3 \
XML::Parser::Style::Debug.3 \
XML::Parser::Style::Objects.3 \
XML::Parser::Style::Stream.3 \
XML::Parser::Style::Subs.3 \
XML::Parser::Style::Tree.3
PLIST_SUB= EUCJP=${EUCJP} SJIS=${SJIS}
# XMLPARSER_EUCJP= x-euc-jp-(jisx0221|unicode)
# XMLPARSER_SJIS= x-sjis-(cp932|jdk117|jisx0221|unicode)
CONV_ENC= ${PERL} -e '$$e=shift @ARGV; undef $$/; $$_=<>; substr($$_,4,40)=pack("a40","$$e"); print'
.if !defined(XMLPARSER_EUCJP)
EUCJP= "@comment "
.endif
.if !defined(XMLPARSER_SJIS)
SJIS= "@comment "
.endif
post-patch:
.if defined(XMLPARSER_EUCJP)
@cd ${WRKSRC}/Parser/Encodings; \
${CONV_ENC} euc-jp ${XMLPARSER_EUCJP}.enc > euc-jp.enc
@${ECHO_CMD} Parser/Encodings/euc-jp.enc >> ${WRKSRC}/MANIFEST
.endif
.if defined(XMLPARSER_SJIS)
@cd ${WRKSRC}/Parser/Encodings; \
${CONV_ENC} shift_jis ${XMLPARSER_SJIS}.enc > shift_jis.enc
@${ECHO_CMD} Parser/Encodings/Shift_JIS.enc >> ${WRKSRC}/MANIFEST
.endif
2001-01-08 07:44:24 +01:00
post-configure:
@${PERL} -i -pe 's|^(CC = ).*|$$1 ${CC}|;' \
-e 's|^(CCFLAGS = ).*|$$1 ${CFLAGS}|' ${WRKSRC}/Expat/Makefile
.include <bsd.port.mk>