1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

Fix depends on gcc34 on 5.x unless WITH_3DNOW_GCC40 is defined then it

will depend on gcc40+

Reported by:	pav
This commit is contained in:
Michael Johnson 2006-11-19 23:25:49 +00:00
parent 729e3a8e20
commit 0637d1df99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177635

View File

@ -24,13 +24,19 @@ CFLAGS+= -O2
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000 && ${OSVERSION} > 500000
USE_GCC= 3.4+
RUN_DEPENDS+= ${CC}:${PORTSDIR}/lang/${CC}
.if ${OSVERSION} < 600000 && ${OSVERSION} > 500000 && !defined(WITH_3DNOW_GCC40)
BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34
RUN_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34
CC:= gcc34
CXX:= g++34
.endif
.if defined(WITH_3DNOW_GCC40)
USE_GCC= 4.0+
.if ${OSVERSION} < 600000 && ${OSVERSION} > 500000
# yeah yeah, I know other stuff will be added that shouldn't...
RUN_DEPENDS+= ${BUILD_DEPENDS}
.endif
.endif
pre-everything::