This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
univnautes-old/freebsd-ports/lasso/Makefile

73 lines
1.7 KiB
Makefile

# New ports collection makefile for: lasso
# Date created: 2007-07-16
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD: ports/security/lasso/Makefile,v 1.8 2010/12/02 17:07:13 jpaetzel Exp $
#
PORTNAME= lasso
PORTVERSION= 2.3.99
PORTREVISION= 8
CATEGORIES= security
MASTER_SITES= http://lasso.entrouvert.org/
MAINTAINER= tnoel@entrouvert.com
COMMENT= Free Liberty Alliance Implementation
RUN_DEPENDS= xmlsec1:${PORTSDIR}/security/xmlsec1
RUN_DEPENDS+= libffi:${PORTSDIR}/devel/libffi
BUILD_DEPENDS:= ${RUN_DEPENDS}
CONFIGURE_ARGS+= --disable-java --disable-gtk-doc --with-zlib
GNU_CONFIGURE= yes
USE_GNOME= gnomehack glib20 libxml2
USE_LDCONFIG= yes
USE_OPENSSL= yes
USE_PYTHON_BUILD= yes
OPTIONS= PERL "Enable Perl Bindings" Off \
PHP5 "Enable PHP5 Bindings" Off \
PYTHON "Enable Python Bindings" On
.include <bsd.port.options.mk>
.ifdef(WITH_PERL)
CONFIGURE_ARGS+= --enable-perl
PLIST_SUB+= WITH_PERL=""
USE_PERL5= yes
.else
CONFIGURE_ARGS+= --disable-perl
PLIST_SUB+= WITH_PERL="@comment "
.endif
.ifdef(WITH_PHP5)
CONFIGURE_ARGS+= --enable-php5 \
--with-php5-config="${LOCALBASE}/bin/php-config"
IGNORE_WITH_PHP= 4
LDFLAGS+= "-L${LOCALBASE}/lib"
LIB_DEPENDS+= expat:${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
.ifdef(WITH_PYTHON)
CONFIGURE_ARGS+= --enable-python
PLIST_SUB+= WITH_PYTHON=""
USE_PYTHON= yes
.else
CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= WITH_PYTHON="@comment "
.endif
post-install:
${RM} -f ${PREFIX}/lib/perl5/${PERL_VERSION}/${PERL_ARCH}/perllocal.pod
.ifdef(NOPORTDOCS)
${RM} -rf ${DOCSDIR}
.endif
.include <bsd.port.mk>