2013-03-29 21:12:12 +01:00
|
|
|
# Created by: Yukihiro Nakai <Nakai@technologist.com>
|
1999-08-31 04:11:56 +02:00
|
|
|
# $FreeBSD$
|
2013-03-29 15:08:46 +01:00
|
|
|
# $MCom: ports/textproc/libxml2/Makefile,v 1.15 2012/11/26 19:55:23 kwm Exp $
|
1998-10-10 15:48:53 +02:00
|
|
|
|
2000-07-02 11:30:30 +02:00
|
|
|
PORTNAME= libxml2
|
2013-03-29 15:08:46 +01:00
|
|
|
PORTVERSION= 2.8.0
|
2013-11-25 09:31:27 +01:00
|
|
|
PORTREVISION?= 3
|
2004-07-06 05:01:19 +02:00
|
|
|
CATEGORIES?= textproc gnome
|
2012-11-26 18:30:02 +01:00
|
|
|
MASTER_SITES= ftp://xmlsoft.org/libxml2/ \
|
2013-04-05 21:39:31 +02:00
|
|
|
http://xmlsoft.org/sources/ \
|
2012-11-26 18:30:02 +01:00
|
|
|
ftp://gd.tuwien.ac.at/pub/libxml/
|
2002-03-11 20:03:53 +01:00
|
|
|
DIST_SUBDIR= gnome2
|
1998-10-10 15:48:53 +02:00
|
|
|
|
2004-07-06 05:11:13 +02:00
|
|
|
MAINTAINER?= gnome@FreeBSD.org
|
|
|
|
COMMENT?= XML parser library for GNOME
|
1998-10-10 15:48:53 +02:00
|
|
|
|
2006-05-11 19:25:12 +02:00
|
|
|
.if !defined(REFERENCE_PORT)
|
2010-10-09 22:12:37 +02:00
|
|
|
USE_CSTD= gnu89
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-09-02 12:35:45 +02:00
|
|
|
USES= pathfix gmake iconv pkgconfig
|
2006-11-05 04:59:12 +01:00
|
|
|
USE_LDCONFIG= yes
|
2013-09-07 21:49:41 +02:00
|
|
|
CONFIGURE_ARGS?=--with-iconv=${ICONV_PREFIX} \
|
2013-03-29 15:08:46 +01:00
|
|
|
--with-html-dir=${PREFIX}/share/doc \
|
2004-07-06 05:01:19 +02:00
|
|
|
--with-html-subdir=${PORTNAME} \
|
2013-04-19 00:40:33 +02:00
|
|
|
--with-lzma=/usr \
|
2004-07-06 05:01:19 +02:00
|
|
|
--without-python
|
2000-10-03 18:32:02 +02:00
|
|
|
|
2004-07-06 05:01:19 +02:00
|
|
|
.if !defined(MASTERDIR)
|
2013-03-29 15:08:46 +01:00
|
|
|
OPTIONS_DEFINE= SCHEMA THREADS MEM_DEBUG XMLLINT_HIST THREAD_ALLOC
|
|
|
|
OPTIONS_DEFAULT=SCHEMA THREADS
|
2013-11-25 09:31:27 +01:00
|
|
|
|
2013-03-29 15:08:46 +01:00
|
|
|
SCHEMA_DESC= XML schema support
|
2013-11-25 09:31:27 +01:00
|
|
|
SCHEMA_CONFIGURE_WITH= schemas
|
2013-03-29 15:08:46 +01:00
|
|
|
THREADS_DESC= Threads support
|
2013-11-25 09:31:27 +01:00
|
|
|
THREADS_CONFIGURE_WITH= threads
|
2013-03-29 15:08:46 +01:00
|
|
|
MEM_DEBUG_DESC= Memory debugging (DEVELOPERS ONLY!)
|
2013-11-25 09:31:27 +01:00
|
|
|
MEM_DEBUG_CONFIGURE_WITH= mem-debug
|
2013-03-29 15:08:46 +01:00
|
|
|
XMLLINT_HIST_DESC= History for xmllint
|
2013-11-25 09:31:27 +01:00
|
|
|
XMLLINT_HIST_CONFIGURE_WITH= history
|
2013-03-29 17:35:15 +01:00
|
|
|
THREAD_ALLOC_DESC= Per-thread memory (DEVELOPERS ONLY!)
|
2013-11-25 09:31:27 +01:00
|
|
|
THREAD_ALLOC_CONFIGURE_WITH= thread-alloc
|
2013-03-29 15:08:46 +01:00
|
|
|
.endif # !defined(MASTERDIR)
|
2002-09-18 21:16:28 +02:00
|
|
|
|
2002-06-03 22:17:37 +02:00
|
|
|
post-patch:
|
2006-05-11 19:25:12 +02:00
|
|
|
.for d in . doc doc/devhelp doc/examples
|
|
|
|
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \
|
2013-11-25 09:31:27 +01:00
|
|
|
${WRKSRC}/${d}/Makefile.in
|
2006-05-11 19:25:12 +02:00
|
|
|
.endfor
|
2005-08-28 15:48:28 +02:00
|
|
|
.for f in catalog.c xmlcatalog.c xmllint.c doc/xmllint.1
|
|
|
|
@${REINPLACE_CMD} -e \
|
2013-11-25 09:31:27 +01:00
|
|
|
's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \
|
|
|
|
s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' \
|
|
|
|
${WRKSRC}/${f}
|
2005-08-28 15:48:28 +02:00
|
|
|
.endfor
|
2011-11-02 23:49:26 +01:00
|
|
|
# manual patch because WITH_FBSD10_FIX break the python bindings
|
|
|
|
${FIND} ${WRKSRC} -type f -name configure \
|
|
|
|
-exec ${SH} -c " \
|
|
|
|
mtime=\$$(date -r \$$(stat -f '%m' \$$0) '+%Y%m%d%H%M.%S'); \
|
|
|
|
${SED} -i '.batman' -e 's|freebsd1\*)|freebsd1.\*)|g' \
|
|
|
|
-e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \$$0; \
|
|
|
|
touch -mt \$$mtime \$$0" {} \; || /usr/bin/true
|
2011-11-01 12:08:35 +01:00
|
|
|
|
2004-11-24 21:19:08 +01:00
|
|
|
.include <bsd.port.mk>
|
2006-05-11 19:25:12 +02:00
|
|
|
|
|
|
|
.endif
|