aboutsummaryrefslogtreecommitdiffstats
path: root/lang/libobjc2/Makefile
blob: 983a61c8768e461a8a19a5ecb8bdc78767cb801f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:    libobjc2
# Date created:     7 October 2010
# Whom:         Pete French <pete@twisted.org.uk>
#
# $FreeBSD$
#

PORTNAME=   libobjc2
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= lang devel gnustep
MASTER_SITES=   http://download.gna.org/gnustep/

MAINTAINER= pete@twisted.org.uk
COMMENT=    Replacement Objective-C runtime supporting Obj-C 2 features

WRKSRC=     ${WRKDIR}/${PORTNAME}
USE_BZIP2=  yes
USE_LDCONFIG=   yes

OPTIONS=    NSOBJECT_ROOT   "Root class is NSObject not Object" On \
        LIBDISPATCH "Build with libdispatch from ports" Off

.include <bsd.port.options.mk>

.if defined(WITH_LIBDISPATCH)
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} >= 900000
BROKEN=     does not compile on 9.X
.endif

.if (${ARCH} == i386) || (${ARCH} == i486)
CFLAGS+=    -march=i586
.endif

.include <bsd.port.post.mk>