Files
ports/databases/ldb28/files/patch-buildtools_wafsamba_wscript
T
Mateusz Piotrowski 1aa6d61564 databases/ldb28: Add a new version of ldb
This port is based on ldb25. The changes are:

- Fix checks for Python support

  The bsd.port.pre.mk was included too early and USES=python wasn't
  processed as expected. As a result, the checks for Python support were
  broken.

- Switch from waf to configure and make.

  Upstream wants us to do it this way. Otherwise, the build system
  produces the following error message:

  > ===>  Configuring for ldb28-2.8.1
  > PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!

  So, set HAS_CONFIGURE and BINARY_ALIAS to make the port build without
  waf.

- Clean up the makefile (sort variables and fix indentation)

- Drop the NO_PYTHON variable. It complicates the makefile
  unnecessarily. It is still possible to disable Python support by
  configuring the PYTHON3 option.

- Use WITH_DEBUG instead of option DEBUG.

- Enable PYTHON3 by default.

  The PYTHON3 option is required by net/samba419 to build without the
  bundled dependencies. The primary purpose of databases/ldb28 is to
  make it possible, so enable Python support by default.

PR:		280510
Sponsored by:	Klara, Inc.
2024-07-31 10:59:42 +02:00

23 lines
1.2 KiB
Plaintext

--- buildtools/wafsamba/wscript.orig 2022-03-29 07:53:52 UTC
+++ buildtools/wafsamba/wscript
@@ -133,12 +133,17 @@ Currently the only tested value is 'smbtorture,smbd/sm
help=("private library directory [PREFIX/lib/%s]" % Context.g_module.APPNAME),
action="store", dest='PRIVATELIBDIR', default=None)
+ opt.add_option('--with-openldap',
+ help='additional directory to search for OpenLDAP libs',
+ action='store', dest='ldap_open', default=None,
+ match = ['Checking for library lber', 'Checking for library ldap'])
+
opt.add_option('--with-libiconv',
help='additional directory to search for libiconv',
- action='store', dest='iconv_open', default='/usr/local',
+ action='store', dest='iconv_open', default=None,
match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
opt.add_option('--without-gettext',
- help=("Disable use of gettext"),
+ help=("disable use of gettext"),
action="store_true", dest='disable_gettext', default=False)
gr = opt.option_group('developer options')