landry 176eab4f30 Remove gd.tuwien.ac.at from MASTER_SITES, seems it doesnt exist anymore.
I checked that the distfiles still fetched from their alternative
source.
There still remains two issues with converters/xlhtml (no other source
for the oooooold version we have in tree) and the gentoo patch in
x11/qt3.
2018-06-30 11:41:36 +00:00

76 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.175 2018/06/30 11:41:36 landry Exp $
COMMENT-main= XML parsing library
COMMENT-python= Python bindings for libxml
VERSION= 2.9.8
DISTNAME= libxml2-${VERSION}
PKGNAME-main= libxml-${VERSION}
PKGNAME-python= py-libxml-${VERSION}
SHARED_LIBS += xml2 16.1 # 11.8
CATEGORIES= textproc
MASTER_SITES= ftp://xmlsoft.org/libxml/
REVISION-main= 0
HOMEPAGE= http://xmlsoft.org/
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= iconv lzma m z
LIB_DEPENDS= archivers/xz \
converters/libiconv
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.69
CONFIGURE_ARGS+= --enable-static \
--with-html-dir="${PREFIX}/share/doc" \
--with-html-subdir="libxml2/html" \
--with-iconv="${LOCALBASE}" \
--with-lzma="${LOCALBASE}" \
--without-threads
# only used to fetch data during regression test
CONFIGURE_ENV= WGET=/usr/bin/ftp
PSEUDO_FLAVORS= no_python
FLAVOR?=
MULTI_PACKAGES= -main -python
WANTLIB-main= ${WANTLIB} c pthread
RUN_DEPENDS-main=
.include <bsd.port.arch.mk>
.if ${BUILD_PACKAGES:M-python}
MODULES+= lang/python
LIB_DEPENDS-python= textproc/libxml,-main=${VERSION} \
${MODPY_LIB_DEPENDS} \
converters/libiconv
WANTLIB-python= ${WANTLIB} ${MODPY_WANTLIB} \
pthread util xml2>=11
FAKE_FLAGS= exampledir=${PREFIX}/share/examples/libxml2
CONFIGURE_ARGS+= --with-python
.else
CONFIGURE_ARGS+= --without-python
.endif
TEST_DEPENDS= devel/gmake
post-configure:
sed -e 's,@PREFIX@,${PREFIX},' <${FILESDIR}/rebuild >${WRKBUILD}/rebuild
post-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/libxml2
${INSTALL_SCRIPT} ${WRKBUILD}/rebuild ${PREFIX}/share/libxml2/
.if ${BUILD_PACKAGES:M-python}
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}${MODPY_SITEPKG}
.endif
do-test:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${GMAKE} \
${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET}
.include <bsd.port.mk>