aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2012-01-13 19:38:08 +0800
committerdinoex <dinoex@FreeBSD.org>2012-01-13 19:38:08 +0800
commit3b6b29421b5fe77495c725051ca5b68ddc024c18 (patch)
treebcb6ab2281362e11684bc70fb543c23866c42d39 /lang
parent061ba234e64c7d7a70f1a1f1259aab466a817797 (diff)
downloadfreebsd-ports-gnome-3b6b29421b5fe77495c725051ca5b68ddc024c18.tar.gz
freebsd-ports-gnome-3b6b29421b5fe77495c725051ca5b68ddc024c18.tar.zst
freebsd-ports-gnome-3b6b29421b5fe77495c725051ca5b68ddc024c18.zip
- fix option GNUSTEP_WITH_LIBOBJC2
- allow build with gcc from ports
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}