b2654064c2
OpenSSL 3.0 has deprecated the sha256 api, let's use libmd which has the same API instead. In order to avoid the collision in definitions (sha256.h cannot be included in the same file as a file where openssl headers has been included) let's move the sha256 related code in its own file PR: 270023 Reported by: ngie
34 lines
777 B
Makefile
34 lines
777 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE= pkg-bootstrap
|
|
|
|
_BRANCH!= ${MAKE} -C ${SRCTOP}/release -V BRANCH
|
|
BRANCH?= ${_BRANCH}
|
|
.if ${BRANCH:MCURRENT} != ""
|
|
PKGCONFBRANCH?= latest
|
|
.else
|
|
. if ${BRANCH:MBETA*} || ${BRANCH:MRC*} || ${BRANCH:MRELEASE*}
|
|
PKGCONFBRANCH?= quarterly
|
|
. else
|
|
. if ${MACHINE} != "amd64" && ${MACHINE} != "i386" && ${MACHINE} != "arm64"
|
|
PKGCONFBRANCH?= quarterly
|
|
. else
|
|
PKGCONFBRANCH?= latest
|
|
. endif
|
|
. endif
|
|
.endif
|
|
PKGCONF?= FreeBSD.conf.${PKGCONFBRANCH}
|
|
CONFS= ${PKGCONF}
|
|
CONFSNAME_${PKGCONF}= ${PKGCONF:C/\.conf.+$/.conf/}
|
|
CONFSDIR= /etc/pkg
|
|
CONFSMODE= 644
|
|
PROG= pkg
|
|
SRCS= pkg.c dns_utils.c config.c hash.c
|
|
MAN= pkg.7
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
|
|
.PATH: ${SRCTOP}/contrib/libucl/include
|
|
LIBADD= archive fetch ucl crypto ssl util md
|
|
|
|
.include <bsd.prog.mk>
|