pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/libreoffice libreoffice: PKG_OPTIONalize ldap and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e980cd166d41
branches:  trunk
changeset: 441030:e980cd166d41
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Oct 24 16:51:49 2020 +0000

description:
libreoffice: PKG_OPTIONalize ldap and dbus, g/c unused cups PLIST_VAR

diffstat:

 misc/libreoffice/Makefile   |   9 ++++++---
 misc/libreoffice/PLIST      |   4 ++--
 misc/libreoffice/options.mk |  24 ++++++++++++++++++++----
 3 files changed, 28 insertions(+), 9 deletions(-)

diffs (111 lines):

diff -r 1b5cd7376e40 -r e980cd166d41 misc/libreoffice/Makefile
--- a/misc/libreoffice/Makefile Sat Oct 24 16:33:48 2020 +0000
+++ b/misc/libreoffice/Makefile Sat Oct 24 16:51:49 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.240 2020/10/09 15:54:33 ryoon Exp $
+# $NetBSD: Makefile,v 1.241 2020/10/24 16:51:49 tnn Exp $
 
 VERREL=                7.0.2
 VERRC=         2
@@ -40,7 +40,7 @@
 BUILD_TARGET=  build
 
 .include "../../mk/bsd.prefs.mk"
-.if !empty(MACHINE_PLATFORM:MNetBSD*)
+.if ${OPSYS} == "NetBSD"
 pre-build:
        cd ${WRKSRC} && ${BUILD_MAKE_CMD} Executable_gengal && ${TOOLS_PLATFORM.paxctl} +m instdir/program/gengal.bin
 .endif
@@ -181,7 +181,6 @@
 
 CONFIGURE_ARGS+=       --prefix=${PREFIX}/${PKGNAME_NOREV}
 CONFIGURE_ARGS+=       --disable-ccache
-CONFIGURE_ARGS+=       --enable-dbus
 CONFIGURE_ARGS+=       --disable-epm
 CONFIGURE_ARGS+=       --disable-fetch-external
 CONFIGURE_ARGS+=       --disable-firebird-sdbc
@@ -333,7 +332,9 @@
 .include "../../converters/orcus/buildlink3.mk"
 .include "../../databases/db4/buildlink3.mk"
 .include "../../databases/mysql57-client/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mldap)
 .include "../../databases/openldap-client/buildlink3.mk"
+.endif
 .include "../../databases/shared-mime-info/buildlink3.mk"
 .include "../../databases/unixodbc/buildlink3.mk"
 .include "../../devel/apr-util/buildlink3.mk"
@@ -389,8 +390,10 @@
 #.include "../../print/poppler-includes/buildlink3.mk"
 .include "../../security/gpgme/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mdbus)
 .include "../../sysutils/dbus/buildlink3.mk"
 .include "../../sysutils/dbus-glib/buildlink3.mk"
+.endif
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../textproc/expat/buildlink3.mk"
 .include "../../textproc/hunspell/buildlink3.mk"
diff -r 1b5cd7376e40 -r e980cd166d41 misc/libreoffice/PLIST
--- a/misc/libreoffice/PLIST    Sat Oct 24 16:33:48 2020 +0000
+++ b/misc/libreoffice/PLIST    Sat Oct 24 16:51:49 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.39 2020/08/11 16:07:38 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.40 2020/10/24 16:51:49 tnn Exp $
 bin/libreoffice
 bin/lobase
 bin/localc
@@ -145,7 +145,7 @@
 ${PKGNAME}/lib/libreoffice/program/libinvocadaptlo.so
 ${PKGNAME}/lib/libreoffice/program/libinvocationlo.so
 ${PKGNAME}/lib/libreoffice/program/libiolo.so
-${PKGNAME}/lib/libreoffice/program/libldapbe2lo.so
+${PLIST.ldap}${PKGNAME}/lib/libreoffice/program/libldapbe2lo.so
 ${PKGNAME}/lib/libreoffice/program/liblnglo.so
 ${PKGNAME}/lib/libreoffice/program/liblnthlo.so
 ${PKGNAME}/lib/libreoffice/program/liblocalebe1lo.so
diff -r 1b5cd7376e40 -r e980cd166d41 misc/libreoffice/options.mk
--- a/misc/libreoffice/options.mk       Sat Oct 24 16:33:48 2020 +0000
+++ b/misc/libreoffice/options.mk       Sat Oct 24 16:51:49 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: options.mk,v 1.11 2020/09/09 10:48:25 nia Exp $
+# $NetBSD: options.mk,v 1.12 2020/10/24 16:51:49 tnn Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.libreoffice
-PKG_SUPPORTED_OPTIONS= java debug gtk3 cups
+PKG_SUPPORTED_OPTIONS= java debug gtk3 cups ldap dbus
+PKG_SUGGESTED_OPTIONS= ldap dbus
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -16,7 +17,7 @@
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=   java gtk3 cups
+PLIST_VARS+=   java gtk3 ldap
 
 .if !empty(PKG_OPTIONS:Mjava)
 .include "../../mk/java-env.mk"
@@ -55,6 +56,21 @@
 CONFIGURE_ARGS+=       --disable-gtk3
 .endif
 
-.if empty(PKG_OPTIONS:Mcups)
+.if !empty(PKG_OPTIONS:Mcups)
+CONFIGURE_ARGS+=       --enable-cups
+.else
 CONFIGURE_ARGS+=       --disable-cups
 .endif
+
+.if !empty(PKG_OPTIONS:Mdbus)
+CONFIGURE_ARGS+=       --enable-dbus
+.else
+CONFIGURE_ARGS+=       --disable-dbus
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+CONFIGURE_ARGS+=       --enable-ldap
+PLIST.ldap=            yes
+.else
+CONFIGURE_ARGS+=       --disable-ldap
+.endif



Home | Main Index | Thread Index | Old Index