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
|
|
|
# WITH_THREADS enable pthread support (WILL BREAK OTHER PORTS!)
|
|
|
|
# WITHOUT_SCHEMA disable XML schema support
|
|
|
|
# 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
|
2007-06-30 07:57:46 +02:00
|
|
|
PORTVERSION= 2.6.29
|
2006-06-07 21:20:30 +02:00
|
|
|
PORTREVISION?= 0
|
2004-07-06 05:01:19 +02:00
|
|
|
CATEGORIES?= textproc gnome
|
2007-01-15 19:27:56 +01:00
|
|
|
MASTER_SITES= ftp://xmlsoft.org/libxml2/ \
|
|
|
|
ftp://fr.rpmfind.net/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)
|
|
|
|
|
2002-03-29 13:34:58 +01:00
|
|
|
USE_GMAKE= yes
|
2004-02-23 19:37:41 +01:00
|
|
|
USE_ICONV= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-07-06 05:01:19 +02:00
|
|
|
USE_GNOME?= gnomehack gnometarget pkgconfig
|
2006-11-05 04:59:12 +01:00
|
|
|
USE_LDCONFIG= yes
|
2004-07-06 05:01:19 +02:00
|
|
|
CONFIGURE_ARGS?= --with-iconv=${LOCALBASE} \
|
2004-03-23 15:40:57 +01:00
|
|
|
--with-html-dir=${PREFIX}/share/doc \
|
2004-07-06 05:01:19 +02:00
|
|
|
--with-html-subdir=${PORTNAME} \
|
|
|
|
--without-python
|
2000-10-03 18:32:02 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2003-08-15 04:31:28 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2000-10-03 18:32:02 +02:00
|
|
|
|
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-05-03 08:32:09 +02:00
|
|
|
.if defined(WITH_THREADS)
|
|
|
|
CONFIGURE_ARGS+= --with-threads
|
|
|
|
.else
|
2003-04-29 18:19:49 +02:00
|
|
|
CONFIGURE_ARGS+= --without-threads
|
|
|
|
.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
|
|
|
|
|
|
|
|
.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
|
2003-08-15 04:31:28 +02:00
|
|
|
|
2004-11-24 21:19:08 +01:00
|
|
|
.include <bsd.port.mk>
|
2006-05-11 19:25:12 +02:00
|
|
|
|
|
|
|
.endif
|