openbsd-ports/textproc/libxml/Makefile

82 lines
2.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.135 2011/06/01 17:31:21 gsoares Exp $
1999-03-14 11:06:54 -05:00
COMMENT-main= XML parsing library
COMMENT-python= Python bindings for libxml
VERSION= 2.7.8
DISTNAME= libxml2-${VERSION}
2009-10-11 06:39:42 -04:00
PKGNAME-main= libxml-${VERSION}
REVISION = 2
REVISION-python = 1
2009-10-11 06:39:42 -04:00
PKGNAME-python= py-libxml-${VERSION}
SHARED_LIBS= xml2 12.0
CATEGORIES= textproc
2006-05-12 12:08:36 -04:00
MASTER_SITES= ftp://xmlsoft.org/libxml/ \
2009-10-11 06:39:42 -04:00
${MASTER_SITE_GNOME:=sources/libxml2/2.7/}
HOMEPAGE= http://xmlsoft.org/
1999-03-14 11:06:54 -05:00
2003-11-27 14:28:21 -05:00
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m z
2006-06-13 13:31:29 -04:00
2004-08-10 04:46:49 -04:00
MODULES= converters/libiconv
USE_LIBTOOL= Yes
2010-11-20 14:56:47 -05:00
USE_GROFF = Yes
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"
CONFIGURE_ARGS+= --with-iconv="${DEPBASE}"
# only used to fetch data during regression test
CONFIGURE_ENV= WGET=/usr/bin/ftp
2006-06-13 13:31:29 -04: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=
.if !${FLAVOR:L:Mno_python}
MULTI_PACKAGES+= -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}
FAKE_FLAGS= EXAMPLE_DIR=${PREFIX}/share/examples/libxml2/
2006-06-13 13:31:29 -04:00
.endif
1999-03-14 11:06:54 -05:00
CONFIGURE_ARGS+= --without-threads
2010-11-20 14:56:47 -05:00
REGRESS_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 !${FLAVOR:Mno_python}
2006-06-17 13:04:15 -04:00
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}${MODPY_SITEPKG}
.endif
do-regress:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${GMAKE} \
${ALL_REGRESS_FLAGS} -f ${MAKE_FILE} ${REGRESS_TARGET}
1999-03-14 11:06:54 -05:00
.include <bsd.port.mk>
.if ${FLAVOR:L:Mno_python} || ${NO_SHARED_LIBS:L} == "yes"
CONFIGURE_ARGS+= --without-python
.else
CONFIGURE_ARGS+= --with-python
.endif