ports/devel/libopenbsd/Makefile
Michael Osipov e83f0a9c84 */*: Properly depend on Subversion LTS or latest with WITH_SUBVERSION_VER
When LTS version of Subversion is set in make.conf (WITH_SUBVERSION_VER)
depending ports will still depend on latest version (devel/subversion)
instead of LTS one (devel/subversion-lts). This will cause dependency
conflicts when packages are distributed with Poudriere, namely pkg(8)
will report them and fail to install.
Make all affected ports properly depend on the right port based on the
value set in WITH_SUBVERSION_VER.

Approved by:	jrm (mentor), otis (mentor), lev (maintainer timeout)
Differential Revision:	https://reviews.freebsd.org/D43864
2024-02-28 16:53:37 +01:00

58 lines
1.4 KiB
Makefile

PORTNAME= libopenbsd
PORTVERSION= r298107
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= LOCAL/jbeich \
https://svn.freebsd.org/base/head/lib/${PORTNAME}/:svn
MAINTAINER= ports@FreeBSD.org
COMMENT= imsg and ohash routines from OpenBSD libutil
LICENSE= ISCL
USES= uidfix tar:xz
MAKE_ENV= SHLIB_MAJOR=0 WITHOUT_PROFILE=1
MAKE_ARGS= INCLUDEDIR="${PREFIX}/include" LIBDIR="${PREFIX}/lib" \
MANDIR="${PREFIX}/share/man/man"
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
#
# To update snapshot: make makesum BOOTSTRAP=
# Specific snapshot: make makesum SVN_FETCH= PORTVERSION=r1234
#
.if defined(BOOTSTRAP)
SVN_REV!= svn info ${MASTER_SITES:M*\:svn:S/:svn//} | \
${SED} -n 's/^Last Changed Rev: //p'
PORTVERSION:= r${SVN_REV}
.else
SVN_REV?= ${PORTVERSION:S/r//}
.endif
.if defined(BOOTSTRAP) || defined(SVN_FETCH)
.if ${WITH_SUBVERSION_VER:U} == LTS
FETCH_DEPENDS+= svn:devel/subversion-lts
.else
FETCH_DEPENDS+= svn:devel/subversion
.endif
NO_CHECKSUM= yes
do-fetch:
${MKDIR} ${WRKDIR}
svn export -r${SVN_REV} ${_MASTER_SITES_svn} ${WRKSRC}
(cd ${WRKDIR} && ${TAR} cJvf \
${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
--uid 0 --gid 0 ${DISTNAME})
. ifmake makesum
${REINPLACE_CMD} -i '' '/^PORTVERSION=/s/r.*/r${SVN_REV}/' \
${MASTERDIR}/Makefile
. endif
. if ${USER} == ${MAINTAINER:C/@.*//}
-scp ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
freefall.freebsd.org:public_distfiles/
. endif
.endif
.include <bsd.port.mk>