summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-01-13 11:38:08 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-01-13 11:38:08 +0000
commit237e02f2b0afec0e67ec49a8501b8ff38d9b1b69 (patch)
treef480544428b2d516b844f482ca9737a26171eb20 /lang
parentUpdate to 0.7.2 release. (diff)
- fix option GNUSTEP_WITH_LIBOBJC2
- allow build with gcc from ports
Notes
Notes: svn path=/head/; revision=289100
Diffstat (limited to 'lang')
-rw-r--r--lang/gnustep-base/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/gnustep-base/Makefile b/lang/gnustep-base/Makefile
index 52706c488899..3c9c04c811cb 100644
--- a/lang/gnustep-base/Makefile
+++ b/lang/gnustep-base/Makefile
@@ -63,12 +63,14 @@ EXTRA_PATCHES+= ${FILESDIR}/NSFileManager.m.patch
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 900036
+.if defined(GNUSTEP_WITH_BASE_GCC)
IGNORE= needs an objective C compiler
.endif
+.endif
-.if defined(GNUSTEP_WITH_LIBOBJC2)
-LIB_DEPENDS+= objc:${PORTSDIR}/${PKGCATEGORY}/gnustep-libobjc
-CFLAGS+= -I${GNUSTEP_SYSTEM_ROOT}/Library/Headers -DOBJC2RUNTIME=1
+.if defined(GNUSTEP_WITH_LIBOBJC2) || defined(GNUSTEP_WITH_CLANG)
+LIB_DEPENDS+= objc:${PORTSDIR}/${PKGCATEGORY}/libobjc2
+CFLAGS+= -I${LOCALBASE}/include -DOBJC2RUNTIME=1
.endif
PATH:= ${PREFIX}/System/Tools:${PATH}