add option to build with gnutls support. no change to the default

(nss) so no PKGREVISION bump.

ok'd by the MAINTAINER, Matthew Luckie.
This commit is contained in:
grant 2005-08-19 10:24:25 +00:00
parent a3a9013fb7
commit 4c18cd82e3
2 changed files with 25 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.96 2005/08/12 17:52:16 reed Exp $
# $NetBSD: Makefile,v 1.97 2005/08/19 10:24:25 grant Exp $
DISTNAME= gaim-1.5.0
CATEGORIES= chat x11
@ -22,18 +22,15 @@ GNU_CONFIGURE= yes
SHLIBTOOL_OVERRIDE= libtool
CONFIGURE_ARGS+= --disable-binreloc
CONFIGURE_ARGS+= --disable-gnutls
CONFIGURE_ARGS+= --disable-nas
CONFIGURE_ARGS+= --disable-perl
CONFIGURE_ARGS+= --disable-tcl
CONFIGURE_ARGS+= --disable-gevolution
CONFIGURE_ARGS+= --with-nspr-includes=${BUILDLINK_PREFIX.nspr}/include/nspr
CONFIGURE_ARGS+= --with-nspr-libs=${BUILDLINK_PREFIX.nspr}/lib/nspr
CONFIGURE_ARGS+= --with-nss-includes=${BUILDLINK_PREFIX.nss}/include/nss/nss
CONFIGURE_ARGS+= --with-nss-libs=${BUILDLINK_PREFIX.nss}/lib/nss
CONFIGURE_ARGS+= --with-silc-includes=${BUILDLINK_PREFIX.silc-toolkit}/include/silc
CONFIGURE_ARGS+= --with-silc-libs=${BUILDLINK_PREFIX.silc-toolkit}/lib/silc
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if !exists(${X11BASE}/include/X11/extensions/scrnsaver.h)
@ -45,7 +42,6 @@ CONFIGURE_ARGS+= --disable-screensaver
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/nss/buildlink3.mk"
.include "../../devel/silc-toolkit/buildlink3.mk"
.include "../../textproc/gtkspell/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"

22
chat/gaim/options.mk Normal file
View file

@ -0,0 +1,22 @@
# $NetBSD: options.mk,v 1.1 2005/08/19 10:24:25 grant Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gaim
PKG_SUPPORTED_OPTIONS+= gnutls
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgnutls)
CONFIGURE_ARGS+= --disable-nss
CONFIGURE_ARGS+= --with-gnutls-includes=${BUILDLINK_PREFIX.gnutls}/include
CONFIGURE_ARGS+= --with-gnutls-libs=${BUILDLINK_PREFIX.gnutls}/lib
. include "../../security/gnutls/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-gnutls
CONFIGURE_ARGS+= --with-nspr-includes=${BUILDLINK_PREFIX.nspr}/include/nspr
CONFIGURE_ARGS+= --with-nspr-libs=${BUILDLINK_PREFIX.nspr}/lib/nspr
CONFIGURE_ARGS+= --with-nss-includes=${BUILDLINK_PREFIX.nss}/include/nss/nss
CONFIGURE_ARGS+= --with-nss-libs=${BUILDLINK_PREFIX.nss}/lib/nss
. include "../../devel/nss/buildlink3.mk"
.endif