aboutsummaryrefslogtreecommitdiff
path: root/security/lasso/Makefile
blob: d2642225cb7a3514547e13fe3a8ee6ddf2b1cf18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=	lasso
PORTVERSION=	2.1.1
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://labs.libre-entreprise.org/frs/download.php/594/

MAINTAINER=	tj@FreeBSD.org
COMMENT=	Free Liberty Alliance Implementation

BROKEN=		Fails to build

RUN_DEPENDS=	xmlsec1:${PORTSDIR}/security/xmlsec1
BUILD_DEPENDS:=	${RUN_DEPENDS}

CONFIGURE_ARGS+=	--disable-java --disable-php4 --with-zlib
GNU_CONFIGURE=	yes
USES=		pkgconfig
USE_GNOME=	gnomehack glib20 libxml2
USE_LDCONFIG=	yes
USE_OPENSSL=	yes

OPTIONS_DEFINE=	PERL PHP PYTHON DOCS

.include <bsd.port.options.mk>

.if !empty(PORT_OPTIONS:MPERL)
CONFIGURE_ARGS+=	--enable-perl
PLIST_SUB+=	WITH_PERL=""
USES+=		perl5
.else
CONFIGURE_ARGS+=	--disable-perl
PLIST_SUB+=	WITH_PERL="@comment "
.endif

.if !empty(PORT_OPTIONS:MPHP)
CONFIGURE_ARGS+=	--enable-php5 \
		--with-php5-config="${LOCALBASE}/bin/php-config"
LDFLAGS+=	"-L${LOCALBASE}/lib"
LIB_DEPENDS+=	libexpat.so:${PORTSDIR}/textproc/expat2
PLIST_SUB+=	WITH_PHP5=""
USE_PHP=	yes
USE_PHP_BUILD=	yes
.else
CONFIGURE_ARGS+=	--disable-php5
PLIST_SUB+=	WITH_PHP5="@comment "
.endif

.if !empty(PORT_OPTIONS:MPYTHON)
CONFIGURE_ARGS+=	--enable-python
PLIST_SUB+=	WITH_PYTHON=""
USES+=		python
USE_PYTHON=	yes
.else
USES+=		python:build
CONFIGURE_ARGS+=	--disable-python
PLIST_SUB+=	WITH_PYTHON="@comment "
.endif

.include <bsd.port.mk>