1998-11-14 20:44:34 +01:00
|
|
|
# New ports collection makefile for: XML::Parser
|
|
|
|
# Date created: 15 Nov 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
1998-11-14 20:44:34 +01:00
|
|
|
#
|
1999-08-31 04:11:56 +02:00
|
|
|
# $FreeBSD$
|
1998-11-14 20:44:34 +01:00
|
|
|
#
|
|
|
|
|
2000-04-23 14:25:12 +02:00
|
|
|
PORTNAME= XML-Parser
|
2002-07-22 05:14:25 +02:00
|
|
|
PORTVERSION= 2.31
|
2002-09-17 09:41:05 +02:00
|
|
|
PORTREVISION= 1
|
1998-11-14 20:44:34 +01:00
|
|
|
CATEGORIES= textproc perl5
|
2002-07-22 05:14:25 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
2000-06-17 04:37:15 +02:00
|
|
|
MASTER_SITE_SUBDIR= XML
|
2000-04-23 14:25:12 +02:00
|
|
|
PKGNAMEPREFIX= p5-
|
1998-11-14 20:44:34 +01:00
|
|
|
|
1999-08-31 08:53:31 +02:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
1998-11-14 20:44:34 +01:00
|
|
|
|
2002-09-17 09:41:05 +02:00
|
|
|
LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2
|
2000-10-25 04:24:38 +02:00
|
|
|
|
2001-01-08 07:44:24 +01:00
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= EXPATLIBPATH=${LOCALBASE}/lib EXPATINCPATH=${LOCALBASE}/include
|
1998-11-14 20:44:34 +01:00
|
|
|
|
|
|
|
MAN3= XML::Parser.3 XML::Parser::Expat.3
|
|
|
|
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
2001-12-31 07:57:36 +01:00
|
|
|
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
|
2002-01-29 12:58:52 +01:00
|
|
|
@${ECHO_CMD} Parser/Encodings/euc-jp.enc >> ${WRKSRC}/MANIFEST
|
2001-12-31 07:57:36 +01:00
|
|
|
.endif
|
|
|
|
.if defined(XMLPARSER_SJIS)
|
|
|
|
@cd ${WRKSRC}/Parser/Encodings; \
|
|
|
|
${CONV_ENC} shift_jis ${XMLPARSER_SJIS}.enc > shift_jis.enc
|
2002-01-29 12:58:52 +01:00
|
|
|
@${ECHO_CMD} Parser/Encodings/Shift_JIS.enc >> ${WRKSRC}/MANIFEST
|
2001-12-31 07:57:36 +01:00
|
|
|
.endif
|
1998-11-14 20:44:34 +01:00
|
|
|
|
2001-01-08 07:44:24 +01:00
|
|
|
post-configure:
|
2000-06-17 04:37:15 +02:00
|
|
|
@${PERL} -i -pe 's/^(CC = ).*/$$1 ${CC}/;' \
|
|
|
|
-e 's/^(CCFLAGS = ).*/$$1 ${CFLAGS}/' ${WRKSRC}/Expat/Makefile
|
1998-11-14 20:44:34 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|