1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- fix option GNUSTEP_WITH_LIBOBJC2

- allow build with gcc from ports
This commit is contained in:
Dirk Meyer 2012-01-13 11:38:08 +00:00
parent 4c75d843eb
commit 237e02f2b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289100

View File

@ -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}