2017-11-04 14:31:37 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.89 2017/11/04 14:31:37 steven Exp $
|
2001-04-18 18:25:33 +00:00
|
|
|
|
2008-12-26 10:54:21 +00:00
|
|
|
COMMENT-main= XSLT C Library for GNOME
|
|
|
|
COMMENT-python= Python bindings for libxslt
|
2001-04-18 18:25:33 +00:00
|
|
|
|
2017-11-04 14:31:37 +00:00
|
|
|
VERSION= 1.1.32
|
2008-12-26 10:54:21 +00:00
|
|
|
DISTNAME= libxslt-${VERSION}
|
2009-10-11 10:40:22 +00:00
|
|
|
PKGNAME-main= libxslt-${VERSION}
|
|
|
|
PKGNAME-python= py-libxslt-${VERSION}
|
2005-12-25 11:44:54 +00:00
|
|
|
|
2017-09-14 14:57:13 +00:00
|
|
|
SHARED_LIBS += xslt 4.0 # 2.28
|
2015-06-28 14:06:38 +00:00
|
|
|
SHARED_LIBS += exslt 9.8 # 8.17
|
|
|
|
|
2003-08-11 23:49:45 +00:00
|
|
|
CATEGORIES= textproc
|
2001-04-18 18:25:33 +00:00
|
|
|
|
2003-08-11 23:49:45 +00:00
|
|
|
HOMEPAGE= http://xmlsoft.org/XSLT/
|
2001-04-18 18:25:33 +00:00
|
|
|
|
2015-11-24 09:11:02 +00:00
|
|
|
MASTER_SITES= https://distfiles.nl/ \
|
2013-03-14 19:56:53 +00:00
|
|
|
ftp://xmlsoft.org/libxslt/
|
2003-08-11 23:49:45 +00:00
|
|
|
|
|
|
|
# BSD-like
|
2001-04-18 18:25:33 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2008-12-26 10:54:21 +00:00
|
|
|
|
2016-04-06 19:55:04 +00:00
|
|
|
WANTLIB= gpg-error iconv intl lzma m z
|
2008-12-26 10:54:21 +00:00
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_python
|
|
|
|
FLAVOR?=
|
|
|
|
|
2011-10-15 12:55:14 +00:00
|
|
|
MULTI_PACKAGES= -main -python
|
2008-12-26 10:54:21 +00:00
|
|
|
|
2015-06-28 14:06:38 +00:00
|
|
|
WANTLIB-main= ${WANTLIB} c xml2 gcrypt pthread
|
2016-04-06 19:55:04 +00:00
|
|
|
LIB_DEPENDS-main= textproc/libxml \
|
2010-11-20 19:56:47 +00:00
|
|
|
security/libgcrypt
|
2001-04-18 18:25:33 +00:00
|
|
|
|
2003-08-11 23:49:45 +00:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
2017-09-14 14:57:13 +00:00
|
|
|
CONFIGURE_ARGS+= --with-libxml-include-prefix="${LOCALBASE}/include/libxml2" \
|
2009-10-11 10:40:22 +00:00
|
|
|
--with-html-subdir=libxslt/html
|
2017-09-14 14:57:13 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
XML_CONFIG="${LOCALBASE}/bin/xml2-config"
|
2008-12-26 10:54:21 +00:00
|
|
|
|
2011-10-15 12:55:14 +00:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
2015-06-30 04:37:01 +00:00
|
|
|
.if !${BUILD_PACKAGES:M-python}
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
.else
|
2008-12-26 10:54:21 +00:00
|
|
|
MODULES+= lang/python
|
2011-05-16 09:58:28 +00:00
|
|
|
MODPY_RUNDEP= No
|
2010-11-20 19:56:47 +00:00
|
|
|
BUILD_DEPENDS+= textproc/libxml,-python
|
2012-09-30 12:21:34 +00:00
|
|
|
WANTLIB-python= ${WANTLIB} gcrypt xml2 exslt xslt pthread util \
|
|
|
|
${MODPY_WANTLIB}
|
2016-04-06 19:55:04 +00:00
|
|
|
RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS}
|
|
|
|
LIB_DEPENDS-python= textproc/libxslt,-main
|
2008-12-26 10:54:21 +00:00
|
|
|
FAKE_FLAGS= EXAMPLE_DIR=${PREFIX}/share/examples/libxslt/
|
2011-10-15 12:55:14 +00:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
2013-03-16 09:59:19 +00:00
|
|
|
|
|
|
|
post-install:
|
2015-06-28 14:06:38 +00:00
|
|
|
# empty file
|
2016-09-01 21:56:34 +00:00
|
|
|
rm ${PREFIX}/share/doc/libxslt-python-${VERSION}/TODO
|
|
|
|
rmdir ${PREFIX}/share/doc/libxslt-python-${VERSION}
|
2013-03-16 09:59:19 +00:00
|
|
|
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/*.{la,a}
|
2008-12-26 10:54:21 +00:00
|
|
|
.endif
|
2001-11-13 18:02:26 +00:00
|
|
|
|
2001-04-18 18:25:33 +00:00
|
|
|
.include <bsd.port.mk>
|