blob: db9bda5358220935bfe9314035443d2b887f7867 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $FreeBSD$
#
# 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.4 || ${SAMBA_DEFAULT} == 4.5 || ${SAMBA_DEFAULT} == 4.6 || ${SAMBA_DEFAULT} == 4.7
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
|