2013-03-21 04:45:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.76 2013/03/21 08:48:54 ajacoutot 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
|
|
|
|
2013-03-16 05:59:19 -04:00
|
|
|
VERSION= 1.1.28
|
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}
|
|
|
|
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
|
|
|
|
2013-03-14 15:56:53 -04:00
|
|
|
MASTER_SITES= http://distfiles.nl/ \
|
|
|
|
ftp://xmlsoft.org/libxslt/
|
2003-08-11 19:49:45 -04:00
|
|
|
|
|
|
|
# BSD-like
|
2001-04-18 14:25:33 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= 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?=
|
|
|
|
|
2011-10-15 08:55:14 -04:00
|
|
|
MULTI_PACKAGES= -main -python
|
|
|
|
NOT_FOR_ARCHS-python = ${NO_SHARED_ARCHS}
|
2008-12-26 05:54:21 -05:00
|
|
|
|
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
|
|
|
|
2003-08-11 19:49:45 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
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
|
|
|
|
2011-10-15 08:55:14 -04:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
|
|
|
.if ${BUILD_PACKAGES:M-python}
|
2008-12-26 05:54:21 -05:00
|
|
|
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
|
2012-09-30 08:21:34 -04:00
|
|
|
WANTLIB-python= ${WANTLIB} gcrypt xml2 exslt xslt pthread util \
|
|
|
|
${MODPY_WANTLIB}
|
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/
|
2011-10-15 08:55:14 -04:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
2013-03-16 05:59:19 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/*.{la,a}
|
2011-10-15 08:55:14 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
2008-12-26 05:54:21 -05:00
|
|
|
.endif
|
2001-11-13 13:02:26 -05:00
|
|
|
|
2001-04-18 14:25:33 -04:00
|
|
|
.include <bsd.port.mk>
|