2000-07-02 11:30:30 +02:00
|
|
|
# New ports collection makefile for: libxml2
|
1999-01-31 20:06:21 +01:00
|
|
|
# Date created: 28 September 1998
|
|
|
|
# Whom: Yukihiro Nakai <Nakai@technologist.com>
|
1998-10-10 15:48:53 +02:00
|
|
|
#
|
1999-08-31 04:11:56 +02:00
|
|
|
# $FreeBSD$
|
1998-10-10 15:48:53 +02:00
|
|
|
#
|
2004-11-24 21:19:08 +01:00
|
|
|
# WITHOUT_SCHEMA disable XML schema support
|
2010-06-24 19:20:01 +02:00
|
|
|
# WITHOUT_THREADS disable threads support
|
2004-11-24 21:19:08 +01:00
|
|
|
# WITH_MEM_DEBUG enable memory debugging (DEVELOPERS ONLY!)
|
|
|
|
# WITH_XMLLINT_HIST enable history for xmllint
|
|
|
|
# WITH_THREAD_ALLOC enable per-thread memory (DEVELOPERS ONLY!)
|
|
|
|
#
|
1998-10-10 15:48:53 +02:00
|
|
|
|
2000-07-02 11:30:30 +02:00
|
|
|
PORTNAME= libxml2
|
2010-11-27 06:23:45 +01:00
|
|
|
PORTVERSION= 2.7.8
|
2012-09-30 16:31:53 +02:00
|
|
|
PORTREVISION?= 5
|
2004-07-06 05:01:19 +02:00
|
|
|
CATEGORIES?= textproc gnome
|
2012-05-18 13:51:18 +02:00
|
|
|
MASTER_SITES= ftp://gd.tuwien.ac.at/pub/libxml/ \
|
2008-05-10 22:40:11 +02:00
|
|
|
ftp://xmlsoft.org/libxml2/
|
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
|
2002-03-29 13:34:58 +01:00
|
|
|
USE_GMAKE= yes
|
2009-04-11 04:16:58 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME?= gnomehack pkgconfig
|
2006-11-05 04:59:12 +01:00
|
|
|
USE_LDCONFIG= yes
|
2012-03-16 10:02:36 +01:00
|
|
|
CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \
|
2004-07-06 05:01:19 +02:00
|
|
|
--with-html-subdir=${PORTNAME} \
|
|
|
|
--without-python
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-10-03 18:32:02 +02:00
|
|
|
|
2012-03-16 03:27:04 +01:00
|
|
|
.if !defined(WITHOUT_ICONV)
|
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGURE_ARGS+=--with-iconv=${LOCALBASE}
|
2012-05-20 18:31:52 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-iconv=no
|
2012-03-16 03:27:04 +01:00
|
|
|
.endif
|
|
|
|
|
2004-07-06 05:01:19 +02:00
|
|
|
.if !defined(MASTERDIR)
|
2001-09-19 12:20:50 +02:00
|
|
|
MAN1= xml2-config.1 xmllint.1 xmlcatalog.1
|
2002-03-11 20:03:53 +01:00
|
|
|
MAN3= libxml.3
|
2002-02-26 19:55:37 +01:00
|
|
|
.endif
|
|
|
|
|
2003-10-21 05:31:51 +02:00
|
|
|
.if defined(WITHOUT_SCHEMA)
|
|
|
|
CONFIGURE_ARGS+= --without-schemas
|
2002-09-18 21:16:28 +02:00
|
|
|
.endif
|
|
|
|
|
2010-06-24 19:20:01 +02:00
|
|
|
.if defined(WITHOUT_THREADS)
|
|
|
|
CONFIGURE_ARGS+= --without-threads
|
|
|
|
.endif
|
|
|
|
|
2002-09-18 21:16:28 +02:00
|
|
|
.if defined(WITH_MEM_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --with-mem-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XMLLINT_HIST)
|
|
|
|
CONFIGURE_ARGS+= --with-history
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_THREAD_ALLOC)
|
|
|
|
CONFIGURE_ARGS+= --with-thread-alloc
|
|
|
|
.endif
|
|
|
|
|
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||' \
|
|
|
|
${WRKSRC}/${d}/Makefile.in
|
|
|
|
.endfor
|
2005-08-28 15:48:28 +02:00
|
|
|
.for f in catalog.c xmlcatalog.c xmllint.c doc/xmllint.1
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \
|
|
|
|
s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' ${WRKSRC}/${f}
|
|
|
|
.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
|