2007-10-08 04:22:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.109 2007/10/08 08:22:43 steven 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
|
|
|
|
2007-09-10 13:21:05 -04:00
|
|
|
VERSION= 2.6.30
|
2003-06-13 17:51:09 -04:00
|
|
|
DISTNAME= libxml2-${VERSION}
|
2007-04-23 11:34:04 -04:00
|
|
|
PKGNAME-main= libxml-${VERSION}
|
2007-10-08 04:22:38 -04:00
|
|
|
PKGNAME-python= py-libxml-${VERSION}p0
|
2007-09-10 13:21:05 -04:00
|
|
|
SHARED_LIBS= xml2 9.7
|
2003-06-13 17:51:09 -04:00
|
|
|
CATEGORIES= textproc
|
2006-05-12 12:08:36 -04:00
|
|
|
MASTER_SITES= ftp://xmlsoft.org/libxml/ \
|
2003-12-13 21:10:33 -05:00
|
|
|
${MASTER_SITE_GNOME:=sources/libxml2/2.6/}
|
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
|
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
|
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}"
|
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
|
|
|
|
2006-11-25 03:14:06 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2006-06-13 13:31:29 -04:00
|
|
|
|
2006-11-25 03:14:06 -05:00
|
|
|
WANTLIB-main= ${WANTLIB} c
|
|
|
|
RUN_DEPENDS-main=
|
2006-10-30 06:01:58 -05:00
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_python}
|
|
|
|
MULTI_PACKAGES+= -python
|
2006-06-13 13:31:29 -04:00
|
|
|
MODULES+= lang/python
|
2006-11-25 03:14:06 -05:00
|
|
|
LIB_DEPENDS-python= xml2.>=9::textproc/libxml,-main \
|
|
|
|
${MODLIBICONV_LIB_DEPENDS}
|
2006-06-13 13:31:29 -04:00
|
|
|
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
|
|
|
|
FAKE_FLAGS= EXAMPLE_DIR=${PREFIX}/share/examples/libxml2/ \
|
|
|
|
DEVHELP_DIR=${PREFIX}/share/doc/libxml2/html/devhelp
|
|
|
|
.endif
|
1999-03-14 11:06:54 -05:00
|
|
|
|
2006-10-30 06:01:58 -05:00
|
|
|
CONFIGURE_ARGS+= --without-threads
|
2006-03-20 08:36:54 -05:00
|
|
|
REGRESS_DEPENDS= ::devel/gmake
|
|
|
|
|
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/
|
2006-10-30 06:01:58 -05:00
|
|
|
.if !${FLAVOR:Mno_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} \
|
|
|
|
${REGRESS_FLAGS} -f ${MAKE_FILE} ${REGRESS_TARGET}
|
|
|
|
|
1999-03-14 11:06:54 -05:00
|
|
|
.include <bsd.port.mk>
|
2006-10-30 06:01:58 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_python} || ${NO_SHARED_LIBS:L} == "yes"
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
.endif
|