forked from Lainports/freebsd-ports
Currently they are not checked and something like PORTREVISION=foo or just PORTREVISION= is accepted. Some ports use indirection via custom variables for them so it is worthwhile to check that they are set to sane values. While here fix ports that currently have non-integer PORTREVISION or PORTEPOCH. Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D21225
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
# Created by: lev@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
WITH_SUBVERSION_VER?= 112
|
|
|
|
PKGDIR= ${.CURDIR}
|
|
|
|
SVN_BUILD_ADDONS= yes
|
|
|
|
.if ${WITH_SUBVERSION_VER} == 112
|
|
CONFLICTS_BUILD+= ${PORTNAME}-1.[0-9].[0-9]* \
|
|
${PORTNAME}-1.[^1][0-9].[0-9]* \
|
|
${PORTNAME}-1.1[0-1].[0-9]* \
|
|
${PORTNAME}-lts-1.[0-9][0-9].[0-9]*
|
|
PORTREVISION= ${PORTREVISION_112:U0}
|
|
PLIST_SUB+= SVN112="" SVNLTS="@comment "
|
|
LIB_DEPENDS+= libsvn_client-1.so:devel/subversion
|
|
OPTIONS_NAME= devel_subversion
|
|
MASTERDIR= ${.CURDIR}/../../devel/subversion
|
|
.include "${MASTERDIR}/Makefile.common"
|
|
.elif ${WITH_SUBVERSION_VER} == LTS
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-lts
|
|
CONFLICTS_BUILD+= ${PORTNAME}-1.[0-9].[0-9]* \
|
|
${PORTNAME}-1.[0-9][0-9].[0-9]*
|
|
PORTREVISION= ${PORTREVISION_LTS:U0}
|
|
PLIST_SUB+= SVN112="@comment " SVNLTS=""
|
|
LIB_DEPENDS+= libsvn_client-1.so:devel/subversion-lts
|
|
OPTIONS_NAME= devel_subversion-lts
|
|
MASTERDIR= ${.CURDIR}/../../devel/subversion-lts
|
|
.include "${MASTERDIR}/Makefile.common"
|
|
.else
|
|
BROKEN= Wrong WITH_SUBVERSION_VER=${WITH_SUBVERSION_VER}, only 112 (default) and LTS are supported
|
|
.endif
|