2010-07-28 09:44:50 +02:00
|
|
|
# $NetBSD: options.mk,v 1.4 2010/07/28 07:44:50 dsainty Exp $
|
2008-10-27 00:17:21 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.evolution
|
2010-07-18 06:50:29 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= krb5 ssl
|
2008-10-27 00:17:21 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= ssl
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2010-07-28 09:27:54 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mssl) && !empty(PKG_OPTIONS:Mkrb5)
|
2008-10-27 00:17:21 +01:00
|
|
|
# If Kerberos is enabled, the libcrypto library is linked in, which causes
|
|
|
|
# function name conflicts with libsoftokn3 provided by Mozilla NSS. These
|
|
|
|
# cause runtime crashes, so don't allow these options to be specified
|
|
|
|
# together.
|
|
|
|
PKG_FAIL_REASON+= "Kerberos support conflicts with SSL"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mkrb5)
|
2010-07-28 09:44:50 +02:00
|
|
|
CPPFLAGS+= -I/usr/include/gssapi
|
|
|
|
CPPFLAGS+= -I/usr/include/krb5
|
|
|
|
CONFIGURE_ARGS+= --with-krb5=/usr
|
2008-10-27 00:17:21 +01:00
|
|
|
. include "../../mk/krb5.buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-krb5
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_VARS+= smime
|
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
|
|
CONFIGURE_ARGS+= --enable-nss=yes
|
|
|
|
PLIST.smime= yes
|
|
|
|
PRINT_PLIST_AWK+= /smime/ { print "$${HAVE_SMIME}" $$0; next; }
|
|
|
|
# XXX Workaround for the following problem: addressbook/util/libeabutil.la
|
|
|
|
# is compiled as a static library only which uses the NSS stuff. When other
|
|
|
|
# parts of the program use this .la archive, they get the right -L flags
|
|
|
|
# (from the dependency_libs variable) but not the rpaths. buildlink3 should
|
|
|
|
# add rpath flags to the dependency_libs, but there is an strange comment
|
|
|
|
# in the wrapper saying that it shouldn't.
|
|
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.nss}/lib/nss
|
|
|
|
BUILDLINK_API_DEPENDS.nss+= nss>=3.9.2nb3
|
|
|
|
. include "../../devel/nspr/buildlink3.mk"
|
|
|
|
. include "../../devel/nss/buildlink3.mk"
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.nss}/include/nss/nss
|
|
|
|
|
|
|
|
post-wrapper:
|
|
|
|
cd ${BUILDLINK_DIR}/lib/pkgconfig && ${LN} -s nspr.pc mozilla-nspr.pc
|
|
|
|
cd ${BUILDLINK_DIR}/lib/pkgconfig && ${LN} -s nss.pc mozilla-nss.pc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nss
|
|
|
|
.endif
|