2001-02-10 00:19:44 +01:00
|
|
|
# New ports collection makefile for: libxslt
|
|
|
|
# Date created: 9th February 2001
|
|
|
|
# Whom: Ade Lovett <ade@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libxslt
|
2006-06-07 21:27:27 +02:00
|
|
|
PORTVERSION= 1.1.17
|
|
|
|
PORTREVISION?= 0
|
2004-07-06 05:02:16 +02:00
|
|
|
CATEGORIES?= textproc gnome
|
2001-02-10 00:19:44 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2003-11-04 19:22:35 +01:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.1
|
2002-03-11 20:04:17 +01:00
|
|
|
DIST_SUBDIR= gnome2
|
2001-02-10 00:19:44 +01:00
|
|
|
|
2004-07-06 05:11:13 +02:00
|
|
|
MAINTAINER?= gnome@FreeBSD.org
|
|
|
|
COMMENT?= The XSLT C library for GNOME
|
2001-02-10 00:19:44 +01:00
|
|
|
|
2002-03-11 20:04:17 +01:00
|
|
|
USE_BZIP2= yes
|
2006-05-11 19:36:53 +02:00
|
|
|
|
|
|
|
.if !defined(REFERENCE_PORT)
|
|
|
|
|
2001-02-10 00:19:44 +01:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2001-02-10 00:19:44 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2004-08-23 03:32:33 +02:00
|
|
|
USE_GNOME?= gnomehack gnometarget libxml2
|
2004-07-06 05:02:16 +02:00
|
|
|
CONFIGURE_ARGS?= --with-html-dir=${PREFIX}/share/doc \
|
|
|
|
--without-python
|
2004-07-06 01:48:29 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2001-02-10 00:19:44 +01:00
|
|
|
|
2004-07-06 05:02:16 +02:00
|
|
|
.if defined(MASTERDIR)
|
|
|
|
_SLAVE_PORT= yes
|
|
|
|
.else
|
2003-07-07 22:38:26 +02:00
|
|
|
MAN3= libexslt.3 libxslt.3
|
2001-10-16 15:33:19 +02:00
|
|
|
MAN1= xsltproc.1
|
2001-09-19 12:21:59 +02:00
|
|
|
|
2004-02-23 19:38:03 +01:00
|
|
|
OPTIONS= MEM_DEBUG "Enable memory debugging" off
|
2002-02-26 20:02:58 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-23 19:38:03 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-09-18 21:18:25 +02:00
|
|
|
.if defined(WITH_MEM_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --with-mem-debug
|
|
|
|
.endif
|
|
|
|
|
2004-07-06 05:02:16 +02:00
|
|
|
.if !defined(_SLAVE_PORT)
|
2004-07-06 01:48:29 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libgcrypt.so)
|
|
|
|
WITH_GCRYPT= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GCRYPT)
|
2005-01-12 08:25:23 +01:00
|
|
|
LIB_DEPENDS+= gcrypt.13:${PORTSDIR}/security/libgcrypt
|
2004-07-06 01:48:29 +02:00
|
|
|
.endif
|
|
|
|
|
2002-09-18 21:18:25 +02:00
|
|
|
pre-everything::
|
2002-02-26 20:02:58 +01:00
|
|
|
@${ECHO_MSG} ""
|
2004-02-23 19:38:03 +01:00
|
|
|
@${ECHO_MSG} "Libxslt has the following additional tunables:"
|
2002-09-18 21:18:25 +02:00
|
|
|
@${ECHO_MSG} ""
|
2004-07-06 01:48:29 +02:00
|
|
|
@${ECHO_MSG} " WITH_GCRYPT=yes Turns on libgcrypt support"
|
2002-02-26 20:02:58 +01:00
|
|
|
@${ECHO_MSG} ""
|
2004-07-06 05:02:16 +02:00
|
|
|
.endif
|
2002-02-26 20:02:58 +01:00
|
|
|
|
2004-01-14 19:17:59 +01:00
|
|
|
post-patch:
|
2006-05-11 19:36:53 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
2004-01-14 19:17:59 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|[$$](bindir)/xsltproc|../xsltproc/xsltproc|g ; \
|
|
|
|
s|[$$](bindir)/xmllint|../xmllint/xmllint|g' \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
|
2004-02-23 19:38:03 +01:00
|
|
|
.include <bsd.port.post.mk>
|
2006-05-11 19:36:53 +02:00
|
|
|
|
|
|
|
.endif
|