1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/Mk/Uses/samba.mk
Timur I. Bakeyev d485effa8f net/samba412: Remove Samba 4.12 from the default versions
And add samba416 as a new option. Make samba413 a default for now.
2022-10-26 01:35:19 +02:00

41 lines
944 B
Makefile

# Handle dependency on samba
#
# Feature: samba
# Usage: USES=samba or USES=samba:ARGS
# Valid ARGS: build, env, lib, run
# default is build,run (implicit)
#
# When subpackages are available this can be more granular
#
.if !defined(_INCLUDE_USES_SAMBA_MK)
_INCLUDE_USES_SAMBA_MK= yes
. if !${samba_ARGS}
samba_ARGS= build run
. endif
. if ${samba_ARGS:Nbuild:Nenv:Nlib:Nrun}
IGNORE= USES=samba has invalid arguments: ${samba_ARGS:Nbuild:Nenv:Nlib:Nrun}
. endif
SAMBAPORT= net/samba${SAMBA_DEFAULT:S/.//}
SAMBAINCLUDES= ${LOCALBASE}/include/samba4
. if ${SAMBA_DEFAULT} == 4.13 || ${SAMBA_DEFAULT} == 4.16
SAMBALIBS= ${LOCALBASE}/lib/samba4
. else
IGNORE= Invalid version of samba: ${SAMBA_DEFAULT}
. endif
. if ${samba_ARGS:Mbuild}
BUILD_DEPENDS+= smbd:${SAMBAPORT}
. endif
. if ${samba_ARGS:Mlib}
LIB_DEPENDS+= libsmbclient.so:${SAMBAPORT}
. endif
. if ${samba_ARGS:Mrun}
RUN_DEPENDS+= smbd:${SAMBAPORT}
. endif
.endif