2011-10-02 04:18:04 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.139 2011/10/02 08:18:04 espie Exp $
|
1999-03-14 11:06:54 -05:00
|
|
|
|
2007-09-15 16:59:36 -04:00
|
|
|
COMMENT-main= XML parsing library
|
|
|
|
COMMENT-python= Python bindings for libxml
|
2001-03-25 22:00:39 -05:00
|
|
|
|
2010-11-15 04:54:11 -05:00
|
|
|
VERSION= 2.7.8
|
2003-06-13 17:51:09 -04:00
|
|
|
DISTNAME= libxml2-${VERSION}
|
2009-10-11 06:39:42 -04:00
|
|
|
PKGNAME-main= libxml-${VERSION}
|
2011-06-01 13:31:21 -04:00
|
|
|
REVISION = 2
|
2011-09-16 07:41:38 -04:00
|
|
|
REVISION-python = 3
|
2009-10-11 06:39:42 -04:00
|
|
|
PKGNAME-python= py-libxml-${VERSION}
|
2010-11-21 07:25:49 -05:00
|
|
|
SHARED_LIBS= xml2 12.0
|
2003-06-13 17:51:09 -04:00
|
|
|
CATEGORIES= textproc
|
2011-06-03 06:12:15 -04:00
|
|
|
MASTER_SITES= http://fr.rpmfind.net/pub/libxml/ \
|
|
|
|
http://gd.tuwien.ac.at/pub/libxml/ \
|
|
|
|
ftp://xmlsoft.org/libxml/
|
2000-08-08 14:55:00 -04:00
|
|
|
|
2003-06-13 17:51:09 -04:00
|
|
|
HOMEPAGE= http://xmlsoft.org/
|
1999-03-14 11:06:54 -05:00
|
|
|
|
2003-11-27 14:28:21 -05:00
|
|
|
# BSD-like
|
2000-08-08 14:55:00 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-04-26 07:01:04 -04:00
|
|
|
|
2006-10-30 06:01:58 -05:00
|
|
|
WANTLIB= m z
|
2006-06-13 13:31:29 -04:00
|
|
|
|
2004-08-10 04:46:49 -04:00
|
|
|
MODULES= converters/libiconv
|
2001-11-06 03:40:52 -05:00
|
|
|
|
2005-12-25 11:33:47 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2010-11-20 14:56:47 -05:00
|
|
|
USE_GROFF = Yes
|
2003-06-13 17:51:09 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --enable-static
|
2004-04-06 02:50:30 -04:00
|
|
|
CONFIGURE_ARGS+= --with-html-dir="${PREFIX}/share/doc"
|
|
|
|
CONFIGURE_ARGS+= --with-html-subdir="libxml2/html"
|
2005-04-25 12:43:30 -04:00
|
|
|
CONFIGURE_ARGS+= --with-iconv="${DEPBASE}"
|
2008-06-20 06:49:42 -04:00
|
|
|
# only used to fetch data during regression test
|
|
|
|
CONFIGURE_ENV= WGET=/usr/bin/ftp
|
2006-06-13 13:31:29 -04:00
|
|
|
|
2006-10-30 06:01:58 -05:00
|
|
|
PSEUDO_FLAVORS= no_python
|
|
|
|
FLAVOR?=
|
2006-06-13 13:31:29 -04:00
|
|
|
|
2011-10-02 04:18:04 -04:00
|
|
|
MULTI_PACKAGES= -main -python
|
2006-06-13 13:31:29 -04:00
|
|
|
|
2006-11-25 03:14:06 -05:00
|
|
|
WANTLIB-main= ${WANTLIB} c
|
|
|
|
RUN_DEPENDS-main=
|
2011-10-02 04:18:04 -04:00
|
|
|
NOT_FOR_ARCHS-python = ${NO_SHARED_ARCHS}
|
2006-10-30 06:01:58 -05:00
|
|
|
|
2011-10-02 04:18:04 -04:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
|
|
|
.if ${BUILD_PACKAGES:M-python}
|
2006-06-13 13:31:29 -04:00
|
|
|
MODULES+= lang/python
|
2010-11-20 14:56:47 -05:00
|
|
|
LIB_DEPENDS-python= textproc/libxml,-main \
|
2009-10-11 06:39:42 -04:00
|
|
|
${MODPY_LIB_DEPENDS} \
|
2006-11-25 03:14:06 -05:00
|
|
|
${MODLIBICONV_LIB_DEPENDS}
|
2010-11-20 14:56:47 -05:00
|
|
|
WANTLIB-python= m z util xml2>=11 ${MODPY_WANTLIB} ${MODLIBICONV_WANTLIB}
|
2008-06-01 10:56:06 -04:00
|
|
|
FAKE_FLAGS= EXAMPLE_DIR=${PREFIX}/share/examples/libxml2/
|
2011-10-02 04:18:04 -04:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
2006-06-13 13:31:29 -04:00
|
|
|
.endif
|
1999-03-14 11:06:54 -05:00
|
|
|
|
2011-10-02 04:18:04 -04:00
|
|
|
|
2006-10-30 06:01:58 -05:00
|
|
|
CONFIGURE_ARGS+= --without-threads
|
2010-11-20 14:56:47 -05:00
|
|
|
REGRESS_DEPENDS= devel/gmake
|
2006-03-20 08:36:54 -05:00
|
|
|
|
2005-09-04 19:38:17 -04:00
|
|
|
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/
|
2011-10-02 04:18:04 -04:00
|
|
|
.if ${BUILD_PACKAGES:M-python}
|
2006-06-17 13:04:15 -04:00
|
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}${MODPY_SITEPKG}
|
|
|
|
.endif
|
2005-09-04 19:38:17 -04:00
|
|
|
|
2006-03-20 08:36:54 -05:00
|
|
|
do-regress:
|
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
2008-01-04 13:38:51 -05:00
|
|
|
${ALL_REGRESS_FLAGS} -f ${MAKE_FILE} ${REGRESS_TARGET}
|
2006-03-20 08:36:54 -05:00
|
|
|
|
1999-03-14 11:06:54 -05:00
|
|
|
.include <bsd.port.mk>
|