5f6bb72e7f
message: On non-x86 systems, use "quarterly" packages. x86 architectures have "latest" package builds on stable/*, so keep using those (they'll get switched over to "quarterly" during releases). The original commit was a direct commit to stable/12, as at the time it was presumed it would not be necessary for head. However, when it is time to create a releng branch or switch from PRERELEASE/STABLE to BETA/RC, the pkg(7) Makefile needs further adjusting. This commit includes those further adjustments, evaluating the BRANCH variable from release/Makefile to determine the pkg(7) repository to use. MFC after: immediate (if possible) Sponsored by: Rubicon Communications, LLC (Netgate)
27 lines
598 B
Makefile
27 lines
598 B
Makefile
# $FreeBSD$
|
|
|
|
.if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
|
|
PKGCONFBRANCH?= quarterly
|
|
.else
|
|
_BRANCH!= ${MAKE} -C ${SRCTOP}/release -V BRANCH
|
|
BRANCH?= ${_BRANCH}
|
|
. if ${BRANCH:MBETA*} || ${BRANCH:MRC*} || ${BRANCH:MRELEASE*}
|
|
PKGCONFBRANCH?= quarterly
|
|
. else
|
|
PKGCONFBRANCH?= latest
|
|
. endif
|
|
.endif
|
|
CONFS= FreeBSD.conf.${PKGCONFBRANCH}
|
|
CONFSNAME= FreeBSD.conf
|
|
CONFSDIR= /etc/pkg
|
|
CONFSMODE= 644
|
|
PROG= pkg
|
|
SRCS= pkg.c dns_utils.c config.c
|
|
MAN= pkg.7
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
|
|
.PATH: ${SRCTOP}/contrib/libucl/include
|
|
LIBADD= archive fetch ucl sbuf crypto ssl
|
|
|
|
.include <bsd.prog.mk>
|