pkgsrc/textproc/libxml2/Makefile
tron 21d34c3547 Add patch to fix the security vulnerabilites reported in CVE-2009-2414
and CVE-2009-2416.

The patch was taken from the latest Fedora 11 "libxml2" source RPM.
2009-08-26 10:20:57 +00:00

52 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.101 2009/08/26 10:20:57 tron Exp $
DISTNAME= libxml2-2.7.3
PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ftp://xmlsoft.org/libxml2/ \
http://xmlsoft.org/sources/
#MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libxml2/2.7/}
MAINTAINER= recht@NetBSD.org
HOMEPAGE= http://xmlsoft.org/
COMMENT= XML parser library from the GNOME project
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
USE_FEATURES= glob
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE= libxml-2.0.pc.in
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
CONFIGURE_ARGS+= --with-html-subdir=libxml2
CONFIGURE_ARGS+= --without-python
.include "options.mk"
# Don't use threads - it's not apparent whether it's necessary or not,
# and this library needs to be usable by non-threaded applications too
CONFIGURE_ARGS+= --without-threads
MAKE_ENV+= PAX=${PAX:Q}
.include "../../mk/bsd.prefs.mk"
.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
USE_TOOLS+= perl
TEST_TARGET= check
.endif
SUBST_CLASSES+= cat
SUBST_STAGE.cat= pre-configure
SUBST_FILES.cat= catalog.c xmlcatalog.c
SUBST_SED.cat= -e "s,@@SGML_DEFAULT_CATALOG@@,${SGML_DEFAULT_CATALOG},g"
SUBST_SED.cat+= -e "s,@@XML_DEFAULT_CATALOG@@,${XML_DEFAULT_CATALOG},g"
.include "../../devel/zlib/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../textproc/xmlcatmgr/catalogs.mk"
.include "../../mk/bsd.pkg.mk"