aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2012-01-12 14:22:36 +0800
committerdinoex <dinoex@FreeBSD.org>2012-01-12 14:22:36 +0800
commit875e2252778fa585f9e9529c4f303f10e78d68d7 (patch)
tree49e09acdf8df22f65e0081ffc4c6dbd2af558ab9 /lang
parent9789111b6f1f4958a9790d0645bc7571d0c0aeab (diff)
downloadfreebsd-ports-gnome-875e2252778fa585f9e9529c4f303f10e78d68d7.tar.gz
freebsd-ports-gnome-875e2252778fa585f9e9529c4f303f10e78d68d7.tar.zst
freebsd-ports-gnome-875e2252778fa585f9e9529c4f303f10e78d68d7.zip
- add USE_GCC
Diffstat (limited to 'lang')
-rw-r--r--lang/libobjc2/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/lang/libobjc2/Makefile b/lang/libobjc2/Makefile
index e9b16695c68b..e27a76e8989c 100644
--- a/lang/libobjc2/Makefile
+++ b/lang/libobjc2/Makefile
@@ -43,19 +43,15 @@ CPPFLAGS+= -DGNUSTEP
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 900000
-.if defined(CC) && ${CC} == "clang"
+.if defined(CC) && ${CC:Mclang}
# all done
.else
-V:= 42
-_GCC_BUILD_DEPENDS:= gcc${V}
-_GCC_PORT_DEPENDS:= gcc${V}
-CC:= gcc${V}
-CXX:= g++${V}
-CPP:= cpp${V}
-LDFLAGS+= -rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}
-LDFLAGS+= -L${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}
-BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
-RUN_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
+.if defined(GNUSTEP_WITH_CLANG)
+CC= ${LOCALBASE}/bin/clang
+BUILD_DEPENDS+= ${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang
+.else
+USE_GCC= 4.6+
+.endif
.endif
.endif