aboutsummaryrefslogtreecommitdiffstats
path: root/lang/libobjc2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/libobjc2/Makefile')
-rw-r--r--lang/libobjc2/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/libobjc2/Makefile b/lang/libobjc2/Makefile
index 1db9ef85cec..439a4f1fca6 100644
--- a/lang/libobjc2/Makefile
+++ b/lang/libobjc2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libobjc2
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= lang devel gnustep
MASTER_SITES= http://download.gna.org/gnustep/
@@ -17,7 +18,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USE_BZIP2= yes
USE_LDCONFIG= yes
-OPTIONS= LIBDISPATCH "Build with libdispatch from ports" Off
+OPTIONS= NSOBJECT_ROOT "Root class is NSObject not Object" On \
+ LIBDISPATCH "Build with libdispatch from ports" Off
.include <bsd.port.options.mk>
@@ -26,6 +28,10 @@ LIB_DEPENDS+= dispatch.0:${PORTSDIR}/devel/libdispatch
MAKE_ARGS+= -DWITHOUT_TOYDISPATCH
.endif
+.if !defined(WITHOUT_NSOBJECT_ROOT)
+MAKE_ARGS+= -DWITH_NSOBJECT_ROOT
+.endif
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700000