# $OpenBSD: Makefile,v 1.43 2004/12/07 00:23:22 alek Exp $

COMMENT=		"XSLT C Library for GNOME"

DISTNAME=		libxslt-1.1.12
PKGNAME=		$(DISTNAME)p1
CATEGORIES=		textproc

HOMEPAGE=		http://xmlsoft.org/XSLT/

MASTER_SITES=		ftp://xmlsoft.org/ \
			${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=		c gpg-error iconv intl m z 

LIB_DEPENDS=		xml2.8::textproc/libxml \
			gcrypt.12::security/libgcrypt

USE_GMAKE=		Yes
CONFIGURE_STYLE=	gnu
CONFIGURE_ARGS+=	${CONFIGURE_SHARED}
CONFIGURE_ARGS+=	--with-libxml-include-prefix='${LOCALBASE}/include/'
CONFIGURE_ARGS+=	--without-python

MAKE_FLAGS=	libxslt_la_LDFLAGS='-version-info 3:0:0' \
		libexslt_la_VERSION='-version-info 9:0:0'

.include <bsd.port.mk>
