mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# New ports collection makefile for: loudmouth
|
|
# Date created: 08 July 2003
|
|
# Whom: Adam Weinberger <adamw@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= loudmouth
|
|
PORTVERSION= 1.4.3
|
|
PORTREVISION= 6
|
|
CATEGORIES= net-im gnome
|
|
MASTER_SITES= GNOME
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Lightweight Jabber client library
|
|
|
|
LIB_DEPENDS= idn.17:${PORTSDIR}/dns/libidn
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_GETTEXT= yes
|
|
USE_AUTOTOOLS= libtool
|
|
USE_LDCONFIG= yes
|
|
USE_GNOME= gnomehack glib20 ltverhack
|
|
CONFIGURE_ARGS= --disable-gtk-doc
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -Wl,-Bsymbolic -L${LOCALBASE}/lib
|
|
|
|
OPTIONS= GNUTLS "Enable SSL (via GnuTLS) support" on \
|
|
OPENSSL "Enable SSL (via OpenSSL) support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_GNUTLS)
|
|
LIB_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
|
.endif
|
|
|
|
.if defined(WITH_OPENSSL)
|
|
USE_OPENSSL= yes
|
|
CONFIGURE_ARGS+=--with-ssl=openssl
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
|
.endif
|
|
|
|
.if !defined(WITH_GNUTLS) && !defined(WITH_OPENSSL)
|
|
CONFIGURE_ARGS+=--without-ssl
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
${WRKSRC}/loudmouth/lm-ssl-gnutls.c
|
|
|
|
.include <bsd.port.post.mk>
|