switch to bsd.port.arch.mk

This commit is contained in:
espie 2011-10-15 12:55:14 +00:00
parent 0fcc916d16
commit 7fe0085494

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.70 2011/09/16 11:41:41 espie Exp $
# $OpenBSD: Makefile,v 1.71 2011/10/15 12:55:14 espie Exp $
COMMENT-main= XSLT C Library for GNOME
COMMENT-python= Python bindings for libxslt
@ -32,7 +32,8 @@ MODULES= devel/gettext
PSEUDO_FLAVORS= no_python
FLAVOR?=
MULTI_PACKAGES= -main
MULTI_PACKAGES= -main -python
NOT_FOR_ARCHS-python = ${NO_SHARED_ARCHS}
WANTLIB-main= ${WANTLIB} c xml2>=9 gcrypt>=12
LIB_DEPENDS-main= ${MODGETTEXT_LIB_DEPENDS} \
@ -47,8 +48,9 @@ CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--with-libxml-include-prefix="${LOCALBASE}/include/" \
--with-html-subdir=libxslt/html
.if !${FLAVOR:L:Mno_python}
MULTI_PACKAGES+= -python
.include <bsd.port.arch.mk>
.if ${BUILD_PACKAGES:M-python}
MODULES+= lang/python
MODPY_RUNDEP= No
BUILD_DEPENDS+= textproc/libxml,-python
@ -58,12 +60,9 @@ RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS} \
LIB_DEPENDS-python= textproc/libxslt,-main \
${MODGETTEXT_LIB_DEPENDS}
FAKE_FLAGS= EXAMPLE_DIR=${PREFIX}/share/examples/libxslt/
CONFIGURE_ARGS+= --with-python
.else
CONFIGURE_ARGS+= --without-python
.endif
.include <bsd.port.mk>
.if ${FLAVOR:L:Mno_python} || ${NO_SHARED_LIBS:L} == "yes"
CONFIGURE_ARGS+= --without-python
.else
CONFIGURE_ARGS+= --with-python
.endif