openbsd-ports/textproc/libxml/Makefile

76 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.109 2007/10/08 08:22:43 steven Exp $
1999-03-14 11:06:54 -05:00
COMMENT-main= XML parsing library
COMMENT-python= Python bindings for libxml
2007-09-10 13:21:05 -04:00
VERSION= 2.6.30
DISTNAME= libxml2-${VERSION}
PKGNAME-main= libxml-${VERSION}
PKGNAME-python= py-libxml-${VERSION}p0
2007-09-10 13:21:05 -04:00
SHARED_LIBS= xml2 9.7
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/}
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
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}"
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
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
CONFIGURE_ARGS+= --without-threads
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} \
${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