openbsd-ports/textproc/libxslt/Makefile
ajacoutot 752755ad7a - remove stupid collision between the 2 subpackages, tsk tsk...
- fix LIB_DEPENDS
- regen PLIST and WANTLIB while here
2009-01-12 15:46:20 +00:00

64 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.59 2009/01/12 15:46:20 ajacoutot Exp $
COMMENT-main= XSLT C Library for GNOME
COMMENT-python= Python bindings for libxslt
VERSION= 1.1.24
DISTNAME= libxslt-${VERSION}
PKGNAME-main= libxslt-${VERSION}p1
PKGNAME-python= py-libxslt-${VERSION}
SHARED_LIBS= exslt 9.7 \
xslt 3.7
CATEGORIES= textproc
HOMEPAGE= http://xmlsoft.org/XSLT/
MASTER_SITES= ftp://xmlsoft.org/libxslt/ \
${MASTER_SITE_GNOME:=sources/libxslt/1.1/}
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= gpg-error m z
MODULES= devel/gettext
PSEUDO_FLAVORS= no_python
FLAVOR?=
MULTI_PACKAGES= -main
WANTLIB-main= ${WANTLIB} c
LIB_DEPENDS-main= ${MODGETTEXT_LIB_DEPENDS} \
xml2.>=9:libxml->=2.6.27:textproc/libxml \
gcrypt.>=12::security/libgcrypt
USE_LIBTOOL= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--with-libxml-include-prefix="${LOCALBASE}/include/"
.if !${FLAVOR:L:Mno_python}
MULTI_PACKAGES+= -python
MODULES+= lang/python
BUILD_DEPENDS+= :py-libxml-*:textproc/libxml,-python
WANTLIB-python= ${WANTLIB} gcrypt xml2
LIB_DEPENDS-python= exslt,xslt::textproc/libxslt,-main \
${MODGETTEXT_LIB_DEPENDS}
CONFIGURE_ENV+= PYTHON="${MODPY_BIN}"
FAKE_FLAGS= EXAMPLE_DIR=${PREFIX}/share/examples/libxslt/
.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