diff options
Diffstat (limited to 'net/netatalk4/files/patch-meson.build')
-rw-r--r-- | net/netatalk4/files/patch-meson.build | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/net/netatalk4/files/patch-meson.build b/net/netatalk4/files/patch-meson.build new file mode 100644 index 000000000000..e37e854f53c3 --- /dev/null +++ b/net/netatalk4/files/patch-meson.build @@ -0,0 +1,79 @@ +--- meson.build.orig 2025-02-10 20:41:20 UTC ++++ meson.build +@@ -66,6 +66,7 @@ libdir = prefix / get_option('libdir') + datadir = prefix / get_option('datadir') + includedir = prefix / get_option('includedir') + libdir = prefix / get_option('libdir') ++libexecdir = prefix / get_option('libexecdir') + mandir = prefix / get_option('mandir') + sbindir = prefix / get_option('sbindir') + sysconfdir = prefix / get_option('sysconfdir') +@@ -138,7 +139,7 @@ statedir = '-D_PATH_STATEDIR="' + localstatedir + '/ne + dversion = '-DVERSION="' + netatalk_version + '"' + messagedir = '-DSERVERTEXT="' + localstatedir + '/netatalk/msg/"' + statedir = '-D_PATH_STATEDIR="' + localstatedir + '/netatalk/"' +-uamdir = '-D_PATH_AFPDUAMPATH="' + libdir + '/netatalk/"' ++uamdir = '-D_PATH_AFPDUAMPATH="' + libexecdir + '/netatalk-uams/"' + + ############ + # Includes # +@@ -464,6 +465,7 @@ bdb_subdirs = [ + endif + + bdb_subdirs = [ ++ '%%DB_NAME%%', + 'db62', + 'db6.2', + 'db61', +@@ -641,6 +643,11 @@ if crypt.found() + if crypt.found() + cdata.set('HAVE_CRYPT_H', 1) + cdata.set('HAVE_LIBCRYPT', 1) ++else ++ crypt = cc.find_library('crypt', has_headers: 'unistd.h', required: false) ++ if crypt.found() ++ cdata.set('HAVE_LIBCRYPT', 1) ++ endif + endif + + # +@@ -819,12 +826,12 @@ dns_sd_libs = [] + + dns_sd_libs = [] + +-dns_sd = cc.find_library('dns_sd', required: false) ++dns_sd = cc.find_library('dns_sd', dirs: libsearch_dirs, required: false) + if dns_sd.found() + dns_sd_libs += dns_sd + endif + +-system = cc.find_library('system', required: false) ++system = cc.find_library('system', dirs: libsearch_dirs, required: false) + if dns_sd.found() + dns_sd_libs += system + endif +@@ -838,6 +845,8 @@ have_dns = ( + ) + ) + ++threads = dependency('threads', required: true) ++ + if enable_zeroconf + if avahi.found() + have_zeroconf = true +@@ -854,6 +863,7 @@ if enable_zeroconf + cdata.set('HAVE_MDNS', 1) + cdata.set('freebsd_zeroconf', 'mdnsd') + zeroconf_provider += 'mDNS' ++ dns_sd_libs += threads + endif + endif + +@@ -1709,6 +1719,7 @@ if not enable_pam + + if not enable_pam + have_pam = false ++ pam = dependency('', required: false) + else + if host_os != 'sunos' + pam_paths = [ |