blob: 4a67f3e5292c214ccce33ca702f8969da8cf7090 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# ex:ts=8
# Ports collection makefile for: p5-XML-Xerces
# Date created: Jan 19, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= XML-Xerces
PORTVERSION= 2.3.0.4
PORTREVISION= 2
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= XML
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= The Perl API to the Apache Xerces XML parser
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/textproc/xerces-c2:"configure TRANSCODER=native"
LIB_DEPENDS= xerces-c.23:${PORTSDIR}/textproc/xerces-c2
PERL_CONFIGURE= yes
CONFIGURE_ENV= XERCES_INCLUDE=${LOCALBASE}/include \
XERCES_LIB=${LOCALBASE}/lib \
XERCESCROOT=${PORTSDIR}/textproc/xerces-c2/work/xerces-c-src_2_3_0
USE_GMAKE= yes
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= "requires perl 5.6.x or later. Install lang/perl5 and try again"
.endif
.if ${OSVERSION} >= 502102
FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}"
.endif
post-patch:
@${PERL} -pi -e "s|-lpthread|${PTHREAD_LIBS}|" ${WRKSRC}/Makefile.PL
.include <bsd.port.post.mk>
|