Index: textproc/libxml2/Makefile =================================================================== --- textproc/libxml2/Makefile (revision 348382) +++ textproc/libxml2/Makefile (working copy) @@ -4,7 +4,7 @@ PORTNAME= libxml2 PORTVERSION= 2.8.0 -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES?= textproc gnome MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ http://xmlsoft.org/sources/ \ @@ -17,7 +17,7 @@ .if !defined(REFERENCE_PORT) USE_CSTD= gnu89 GNU_CONFIGURE= yes -USES= pathfix gmake iconv pkgconfig +USES= gmake iconv libtool pathfix pkgconfig USE_LDCONFIG= yes CONFIGURE_ARGS?=--with-iconv=${ICONV_PREFIX} \ --with-html-dir=${PREFIX}/share/doc \ @@ -25,6 +25,9 @@ --with-lzma=/usr \ --without-python +LIBVERSION= ${PORTVERSION} +PLIST_SUB+= LIBVERSION=${LIBVERSION} + .if !defined(MASTERDIR) OPTIONS_DEFINE= SCHEMA THREADS MEM_DEBUG XMLLINT_HIST THREAD_ALLOC OPTIONS_DEFAULT=SCHEMA THREADS @@ -60,6 +63,11 @@ -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \$$0; \ touch -mt \$$mtime \$$0" {} \; || /usr/bin/true +.if !defined(MASTERDIR) +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxml2.so.${LIBVERSION} +.endif # !defined(MASTERDIR) + .include .endif Index: textproc/libxml2/files/patch-Makefile.in =================================================================== --- textproc/libxml2/files/patch-Makefile.in (revision 348382) +++ textproc/libxml2/files/patch-Makefile.in (working copy) @@ -11,15 +11,6 @@ DIST_SUBDIRS = include . doc example python xstc INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ @LZMA_CFLAGS@ bin_SCRIPTS = xml2-config -@@ -596,7 +596,7 @@ - @USE_VERSION_SCRIPT_TRUE@LIBXML2_VERSION_SCRIPT = $(VERSION_SCRIPT_FLAGS)$(srcdir)/libxml2.syms - libxml2_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ \ - $(LIBXML2_VERSION_SCRIPT) \ -- -version-info @LIBXML_VERSION_INFO@ \ -+ -version-info 5:0:0 \ - @MODULE_PLATFORM_LIBS@ - - @WITH_TRIO_SOURCES_FALSE@libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ @@ -712,7 +712,7 @@ runxmlconf_DEPENDENCIES = $(DEPS) runxmlconf_LDADD = $(LDADDS) Index: textproc/libxml2/pkg-plist =================================================================== --- textproc/libxml2/pkg-plist (revision 348382) +++ textproc/libxml2/pkg-plist (working copy) @@ -52,7 +52,8 @@ lib/libxml2.a lib/libxml2.la lib/libxml2.so -lib/libxml2.so.5 +lib/libxml2.so.2 +lib/libxml2.so.%%LIBVERSION%% libdata/pkgconfig/libxml-2.0.pc share/aclocal/libxml.m4 man/man1/xml2-config.1.gz Index: textproc/py-libxml2/Makefile =================================================================== --- textproc/py-libxml2/Makefile (revision 348382) +++ textproc/py-libxml2/Makefile (working copy) @@ -1,7 +1,7 @@ # Created by: Alexander Nedotsukov # $FreeBSD$ -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= textproc gnome python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -28,7 +28,8 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-libxml2 post-install: - @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${STAGEDIR}${PYTHON_SITELIBDIR} - @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${STAGEDIR}${PYTHON_SITELIBDIR} + @cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} + @cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so .include "${MASTERDIR}/Makefile"