aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-12-19 16:39:41 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-12-19 16:39:41 +0000
commit7593464b0b7c2edd53ba60d8774439974c0a468f (patch)
treeb03305f1bef16b2ec26cfef355cd2423d8a2a509 /Mk
parent89a50dd083cb8e58dff02b62b4fcff71931a7e57 (diff)
downloadports-7593464b0b7c2edd53ba60d8774439974c0a468f.tar.gz
ports-7593464b0b7c2edd53ba60d8774439974c0a468f.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 26492211b6ea..17e607cfef3b 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1265,6 +1265,9 @@ _PREMKINCLUDED= yes
.if ${PORTVERSION:M*[-_,]*}x != x
IGNORE= PORTVERSION ${PORTVERSION} may not contain '-' '_' or ','
.endif
+.if defined(DISTVERSION)
+DEV_WARNING+= "Defining both PORTVERSION and DISTVERSION is wrong, only set one and let the framework create the other one"
+.endif
DISTVERSION?= ${PORTVERSION:S/:/::/g}
.elif defined(DISTVERSION)
PORTVERSION= ${DISTVERSION:tl:C/([a-z])[a-z]+/\1/g:C/([0-9])([a-z])/\1.\2/g:C/:(.)/\1/g:C/[^a-z0-9+]+/./g}