openbsd-ports/textproc/libxml/Makefile

83 lines
2.1 KiB
Makefile
Raw Normal View History

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
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
2011-09-16 07:41:38 -04:00
REVISION-python = 3
2009-10-11 06:39:42 -04:00
PKGNAME-python= py-libxml-${VERSION}
SHARED_LIBS= xml2 12.0
CATEGORIES= textproc
MASTER_SITES= http://fr.rpmfind.net/pub/libxml/ \
http://gd.tuwien.ac.at/pub/libxml/ \
ftp://xmlsoft.org/libxml/
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
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}
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}
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
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/
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
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>