xref: /freebsd/usr.sbin/pkg/Makefile (revision 3d0a0dda3a7d57bbd4eaf65ba8da0f2a36089c0e)
1ec0ea6efSEmmanuel VadotPACKAGE=	pkg-bootstrap
2ec0ea6efSEmmanuel Vadot
35f6bb72eSGlen Barber_BRANCH!=	${MAKE} -C ${SRCTOP}/release -V BRANCH
45f6bb72eSGlen BarberBRANCH?=	${_BRANCH}
548c8f7d4SGlen Barber.if ${BRANCH:MCURRENT} != ""
648c8f7d4SGlen BarberPKGCONFBRANCH?=	latest
748c8f7d4SGlen Barber.else
85f6bb72eSGlen Barber. if ${BRANCH:MBETA*} || ${BRANCH:MRC*} || ${BRANCH:MRELEASE*}
95f6bb72eSGlen BarberPKGCONFBRANCH?=	quarterly
105f6bb72eSGlen Barber. else
11f92e0d6aSEd Maste.  if ${MACHINE} != "amd64" && ${MACHINE} != "i386" && ${MACHINE} != "arm64"
1248c8f7d4SGlen BarberPKGCONFBRANCH?=	quarterly
1348c8f7d4SGlen Barber.  else
140b18e008SColin PercivalPKGCONFBRANCH?=	latest
155f6bb72eSGlen Barber.  endif
165f6bb72eSGlen Barber. endif
1748c8f7d4SGlen Barber.endif
18d3516453SKyle EvansPKGCONF?=	FreeBSD.conf.${PKGCONFBRANCH}
19d3516453SKyle EvansCONFS=		${PKGCONF}
20d3516453SKyle EvansCONFSNAME_${PKGCONF}=	${PKGCONF:C/\.conf.+$/.conf/}
215836319aSBrad DavisCONFSDIR=	/etc/pkg
225836319aSBrad DavisCONFSMODE=	644
233aa4b42aSBaptiste DaroussinPROG=	pkg
24*3d0a0ddaSKyle EvansSRCS=	pkg.c rsa.c dns_utils.c config.c ecc.c hash.c
255eb90b9aSBryan DreweryMAN=	pkg.7
263aa4b42aSBaptiste Daroussin
2764a0982bSEnji CooperCFLAGS+=-I${SRCTOP}/contrib/libucl/include
2864a0982bSEnji Cooper.PATH:	${SRCTOP}/contrib/libucl/include
29*3d0a0ddaSKyle EvansLIBADD=	archive der fetch pkgecc ucl crypto ssl util md
30*3d0a0ddaSKyle Evans
31*3d0a0ddaSKyle EvansCFLAGS+=-I${SRCTOP}/contrib/libder/libder
32*3d0a0ddaSKyle EvansCFLAGS+=-I${SRCTOP}/crypto/libecc/include
333aa4b42aSBaptiste Daroussin
343aa4b42aSBaptiste Daroussin.include <bsd.prog.mk>
35