forked from Lainports/freebsd-ports
* Introduce 3 new variable, SAMBA_TALLOC_PORT, SAMBA_TDB_PORT and
SAMBA_TEVENT_PORT. Proper port origin ("databases/ldb29" for
example) is assigned to them depending on the value of
SAMBA_DEFAULT. They are intended to be used by ports that works with
Samba to specify proper version of talloc, tdb and/or tevent as
dependency.
* Add item in CHANGES.
Reviewed by: 0mp, kiwi
Differential Revision: https://reviews.freebsd.org/D48857
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
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)
|
|
#
|
|
# MAINTAINER: samba@FreeBSD.org
|
|
|
|
.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
|
|
|
|
. if ${SAMBA_DEFAULT} != 4.16 && ${SAMBA_DEFAULT} != 4.19 && ${SAMBA_DEFAULT} != 4.20
|
|
IGNORE= Invalid version of samba: ${SAMBA_DEFAULT}
|
|
. endif
|
|
|
|
SAMBA_SUFFIX= ${SAMBA_DEFAULT:S/.//}
|
|
|
|
SAMBA_PORT_416= net/samba416
|
|
SAMBA_LDB_PORT_416= databases/ldb25
|
|
SAMBA_TALLOC_PORT_416= devel/talloc
|
|
SAMBA_TDB_PORT_416= databases/tdb
|
|
SAMBA_TEVENT_PORT_416= devel/tevent
|
|
SAMBA_PORT_419= net/samba419
|
|
SAMBA_LDB_PORT_419= databases/ldb28
|
|
SAMBA_TALLOC_PORT_419= devel/talloc
|
|
SAMBA_TDB_PORT_419= databases/tdb
|
|
SAMBA_TEVENT_PORT_419= devel/tevent
|
|
SAMBA_PORT_420= net/samba420
|
|
SAMBA_LDB_PORT_420= databases/ldb29
|
|
SAMBA_TALLOC_PORT_420= devel/talloc242
|
|
SAMBA_TDB_PORT_420= databases/tdb1410
|
|
SAMBA_TEVENT_PORT_420= devel/tevent016
|
|
|
|
SAMBA_PORT= ${SAMBA_PORT_${SAMBA_SUFFIX}}
|
|
SAMBA_INCLUDEDIR= ${LOCALBASE}/include/samba4
|
|
SAMBA_LIBDIR= ${LOCALBASE}/lib/samba4
|
|
SAMBA_LDB_PORT= ${SAMBA_LDB_PORT_${SAMBA_SUFFIX}}
|
|
SAMBA_TALLOC_PORT= ${SAMBA_TALLOC_PORT_${SAMBA_SUFFIX}}
|
|
SAMBA_TDB_PORT= ${SAMBA_TDB_PORT_${SAMBA_SUFFIX}}
|
|
SAMBA_TEVENT_PORT= ${SAMBA_TEVENT_PORT_${SAMBA_SUFFIX}}
|
|
|
|
. if ${samba_ARGS:Mbuild}
|
|
BUILD_DEPENDS+= smbd:${SAMBA_PORT}
|
|
. endif
|
|
. if ${samba_ARGS:Mlib}
|
|
LIB_DEPENDS+= libsmbclient.so:${SAMBA_PORT}
|
|
. endif
|
|
. if ${samba_ARGS:Mrun}
|
|
RUN_DEPENDS+= smbd:${SAMBA_PORT}
|
|
. endif
|
|
.endif
|