summaryrefslogtreecommitdiff
path: root/devel/avr-gcc
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2017-04-11 15:21:23 +0000
committerMathieu Arnold <mat@FreeBSD.org>2017-04-11 15:21:23 +0000
commit6d588589c24082c8afc98e114cb7a21a81f76082 (patch)
tree5a5d971bd61fde66fbaa1b8da9469708d182ffc8 /devel/avr-gcc
parent- Update to 6.4.0 (diff)
Make defining both PORTVERSION and DISTVERSION a DEV_ERROR.
There are two cases: - The upstream versionning is compatible with our versionning, or using DISTVERSION's magic leads to a compatible PORTVERSION, use DISTVERSION. If it is possible to use DISTVERSIONPREFIX and DISTVERSIONSUFFIX to make it compatible, use them. - The upstream versionning is not compatible with our versionning, and DISTVERSION's magic does not lead to a correct PORTVERSION, then set PORTVERSION to the equivalent of our versionning, and set DISTNAME. It is possible to use a third variable where you store upstream's version and use it to compute PORTVERSION and/or DISTNAME, like the dns/bind9* ports do. Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=438272
Diffstat (limited to 'devel/avr-gcc')
-rw-r--r--devel/avr-gcc/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/avr-gcc/Makefile b/devel/avr-gcc/Makefile
index 855ddebb1fc3..afbcf61b995c 100644
--- a/devel/avr-gcc/Makefile
+++ b/devel/avr-gcc/Makefile
@@ -3,9 +3,9 @@
PORTNAME= gcc
PORTVERSION= 5.4.0
CATEGORIES= devel
-MASTER_SITES= GCC/releases/gcc-${DISTVERSION}
+MASTER_SITES= GCC/releases/gcc-${DIST_VERSION}
PKGNAMEPREFIX= avr-
-# DISTNAME= gcc-${DISTVERSION}
+DISTNAME= gcc-${DIST_VERSION}
MAINTAINER= joerg@FreeBSD.org
COMMENT= FSF GCC for Atmel AVR 8-bit RISC cross-development
@@ -21,11 +21,11 @@ LIB_DEPENDS= libmpfr.so:math/mpfr \
RUN_DEPENDS= avr-as:devel/avr-binutils \
avr-ld:devel/avr-binutils
-# DISTVERSION relates to downloads, GCC_VERSION and SUFFIX to names
+# DIST_VERSION relates to downloads, GCC_VERSION and SUFFIX to names
# of executables and directories once installed. A PORTVERSION of
# 4.Y.2.s20130808 results in values of 4.Y-20130808, 4.Y.2, and 4Y
# for these three.
-DISTVERSION= ${PORTVERSION:C/([0-9]+\.[0-9]+).*\.s([0-9]+)/\1-\2/}
+DIST_VERSION= ${PORTVERSION:C/([0-9]+\.[0-9]+).*\.s([0-9]+)/\1-\2/}
GCC_VERSION= ${PORTVERSION:C/(.+)\.s[0-9]{8}/\1/}
SUFFIX= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}