diff options
author | marcus <marcus@FreeBSD.org> | 2002-06-04 04:17:37 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-06-04 04:17:37 +0800 |
commit | f2bf964f1323a961e2b537c565477beb02582f07 (patch) | |
tree | 56e5e72e59de5d409435f471a9495b4b83f5614b /textproc/libxml2 | |
parent | 4e77e2d92a54e227ac0df2a8749e2dbd45d4492b (diff) | |
download | freebsd-ports-graphics-f2bf964f1323a961e2b537c565477beb02582f07.tar.gz freebsd-ports-graphics-f2bf964f1323a961e2b537c565477beb02582f07.tar.zst freebsd-ports-graphics-f2bf964f1323a961e2b537c565477beb02582f07.zip |
Set the default XML catalog location to the correct path. Bump PORTREVISION.
Diffstat (limited to 'textproc/libxml2')
-rw-r--r-- | textproc/libxml2/Makefile | 5 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-catalog.c | 15 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-xmlcatalog.c | 11 |
3 files changed, 31 insertions, 0 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile index 5fb6303ed94..cfb7adc52ac 100644 --- a/textproc/libxml2/Makefile +++ b/textproc/libxml2/Makefile @@ -7,6 +7,7 @@ PORTNAME= libxml2 PORTVERSION= 2.4.22 +PORTREVISION= 1 CATEGORIES= textproc gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/libxml @@ -50,4 +51,8 @@ pre-patch: @find ${WRKSRC} -name Makefile.in | xargs ${PERL} -pi -e \ 's|\$\(libdir\)/pkgconfig|\$\(prefix\)/libdata/pkgconfig|g' +post-patch: + @${PERL} -pi -e 's|\%\%LOCALBASE\%\%|${LOCALBASE}|g' \ + ${WRKSRC}/catalog.c ${WRKSRC}/xmlcatalog.c + .include <bsd.port.mk> diff --git a/textproc/libxml2/files/patch-catalog.c b/textproc/libxml2/files/patch-catalog.c new file mode 100644 index 00000000000..a567a2fe728 --- /dev/null +++ b/textproc/libxml2/files/patch-catalog.c @@ -0,0 +1,15 @@ +--- catalog.c.orig Mon Jun 3 15:28:28 2002 ++++ catalog.c Mon Jun 3 15:29:03 2002 +@@ -56,10 +56,10 @@ + #define XML_URN_PUBID "urn:publicid:" + #define XML_CATAL_BREAK ((xmlChar *) -1) + #ifndef XML_XML_DEFAULT_CATALOG +-#define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog" ++#define XML_XML_DEFAULT_CATALOG "file://%%LOCALBASE%%/share/xml/catalog" + #endif + #ifndef XML_SGML_DEFAULT_CATALOG +-#define XML_SGML_DEFAULT_CATALOG "file:///etc/sgml/catalog" ++#define XML_SGML_DEFAULT_CATALOG "file://%%LOCALBASE%%/share/sgml/catalog" + #endif + + static int xmlExpandCatalog(xmlCatalogPtr catal, const char *filename); diff --git a/textproc/libxml2/files/patch-xmlcatalog.c b/textproc/libxml2/files/patch-xmlcatalog.c new file mode 100644 index 00000000000..dea513899b5 --- /dev/null +++ b/textproc/libxml2/files/patch-xmlcatalog.c @@ -0,0 +1,11 @@ +--- xmlcatalog.c.orig Mon Jun 3 15:30:00 2002 ++++ xmlcatalog.c Mon Jun 3 15:30:17 2002 +@@ -41,7 +41,7 @@ + + #ifdef LIBXML_CATALOG_ENABLED + +-#define XML_SGML_DEFAULT_CATALOG "/etc/sgml/catalog" ++#define XML_SGML_DEFAULT_CATALOG "%%LOCALBASE%%/share/sgml/catalog" + + /************************************************************************ + * * |