2011-05-16 05:58:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.68 2011/05/16 09:58:28 sthen Exp $
|
2001-04-18 14:25:33 -04:00
|
|
|
|
2008-12-26 05:54:21 -05:00
|
|
|
COMMENT-main= XSLT C Library for GNOME
|
|
|
|
COMMENT-python= Python bindings for libxslt
|
2001-04-18 14:25:33 -04:00
|
|
|
|
2009-10-11 06:40:22 -04:00
|
|
|
VERSION= 1.1.26
|
2008-12-26 05:54:21 -05:00
|
|
|
DISTNAME= libxslt-${VERSION}
|
2009-10-11 06:40:22 -04:00
|
|
|
PKGNAME-main= libxslt-${VERSION}
|
|
|
|
PKGNAME-python= py-libxslt-${VERSION}
|
2011-05-16 05:58:28 -04:00
|
|
|
REVISION-main= 2
|
2010-11-10 17:44:03 -05:00
|
|
|
REVISION-python= 1
|
2009-10-11 06:40:22 -04:00
|
|
|
SHARED_LIBS= exslt 9.8 \
|
|
|
|
xslt 3.8
|
2005-12-25 06:44:54 -05:00
|
|
|
|
2003-08-11 19:49:45 -04:00
|
|
|
CATEGORIES= textproc
|
2001-04-18 14:25:33 -04:00
|
|
|
|
2003-08-11 19:49:45 -04:00
|
|
|
HOMEPAGE= http://xmlsoft.org/XSLT/
|
2001-04-18 14:25:33 -04:00
|
|
|
|
2006-05-12 12:08:36 -04:00
|
|
|
MASTER_SITES= ftp://xmlsoft.org/libxslt/ \
|
2004-10-22 18:06:57 -04:00
|
|
|
${MASTER_SITE_GNOME:=sources/libxslt/1.1/}
|
2003-08-11 19:49:45 -04:00
|
|
|
|
|
|
|
# BSD-like
|
2001-04-18 14:25:33 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-12-26 05:54:21 -05:00
|
|
|
|
|
|
|
WANTLIB= gpg-error m z
|
2001-04-18 14:25:33 -04:00
|
|
|
|
2007-04-23 11:38:04 -04:00
|
|
|
MODULES= devel/gettext
|
2008-12-26 05:54:21 -05:00
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_python
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
|
2010-11-20 14:56:47 -05:00
|
|
|
WANTLIB-main= ${WANTLIB} c xml2>=9 gcrypt>=12
|
2009-01-12 10:46:20 -05:00
|
|
|
LIB_DEPENDS-main= ${MODGETTEXT_LIB_DEPENDS} \
|
2010-11-20 14:56:47 -05:00
|
|
|
textproc/libxml>=2.6.27 \
|
|
|
|
security/libgcrypt
|
2001-04-18 14:25:33 -04:00
|
|
|
|
2005-12-25 06:44:54 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2003-08-11 19:49:45 -04:00
|
|
|
USE_GMAKE= Yes
|
2011-05-16 05:58:28 -04:00
|
|
|
USE_GROFF= Yes
|
2003-08-11 19:49:45 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2008-12-26 05:54:21 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2009-10-11 06:40:22 -04:00
|
|
|
--with-libxml-include-prefix="${LOCALBASE}/include/" \
|
|
|
|
--with-html-subdir=libxslt/html
|
2008-12-26 05:54:21 -05:00
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_python}
|
|
|
|
MULTI_PACKAGES+= -python
|
|
|
|
MODULES+= lang/python
|
2011-05-16 05:58:28 -04:00
|
|
|
MODPY_RUNDEP= No
|
2010-11-20 14:56:47 -05:00
|
|
|
BUILD_DEPENDS+= textproc/libxml,-python
|
2010-11-10 17:44:03 -05:00
|
|
|
WANTLIB-python= ${WANTLIB} gcrypt xml2 exslt xslt
|
2011-05-16 05:58:28 -04:00
|
|
|
RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS} \
|
|
|
|
${MODGETTEXT_RUN_DEPENDS}
|
2010-11-20 14:56:47 -05:00
|
|
|
LIB_DEPENDS-python= textproc/libxslt,-main \
|
2008-12-26 05:54:21 -05:00
|
|
|
${MODGETTEXT_LIB_DEPENDS}
|
|
|
|
FAKE_FLAGS= EXAMPLE_DIR=${PREFIX}/share/examples/libxslt/
|
|
|
|
.endif
|
2001-11-13 13:02:26 -05:00
|
|
|
|
2001-04-18 14:25:33 -04:00
|
|
|
.include <bsd.port.mk>
|
2008-12-26 05:54:21 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_python} || ${NO_SHARED_LIBS:L} == "yes"
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-python
|
|
|
|
.endif
|