Make the determination of SUFFIX more general and the one of

CONFIGURE_SCRIPT more robust.
This commit is contained in:
Gerald Pfeifer 2009-05-19 02:10:13 +00:00
parent 3bb9ab0da0
commit 290cdcd62c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234183

View file

@ -29,7 +29,7 @@ DISTFILES+= gcc-testsuite-${VERSIONSTRING}${EXTRACT_SUFX}
BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu
.endif
SUFFIX= ${PORTVERSION:C/([0-9]).([0-9]).*/\1\2/}
SUFFIX= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
LATEST_LINK= gcc${SUFFIX}${PKGNAMESUFFIX}
NOT_FOR_ARCHS= alpha ia64 powerpc
USE_BISON= build
@ -41,7 +41,7 @@ MAKE_JOBS_SAFE= yes
WANT_GNOME= yes
PATCH_WRKSRC= ${SRCDIR}
CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure
CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure
.include <bsd.port.pre.mk>