head	1.16;
access;
symbols
	RELEASE_8_3_0:1.12
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3;
locks; strict;
comment	@# @;


1.16
date	2012.11.17.05.58.52;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.10.04.07.21.06;	author bapt;	state Exp;
branches;
next	1.14;

1.14
date	2012.06.26.05.43.28;	author dinoex;	state Exp;
branches;
next	1.13;

1.13
date	2012.05.27.06.56.59;	author linimon;	state Exp;
branches;
next	1.12;

1.12
date	2012.02.19.10.28.29;	author dinoex;	state Exp;
branches;
next	1.11;

1.11
date	2012.01.28.20.22.19;	author pav;	state Exp;
branches;
next	1.10;

1.10
date	2012.01.13.17.00.36;	author dinoex;	state Exp;
branches;
next	1.9;

1.9
date	2012.01.12.06.22.36;	author dinoex;	state Exp;
branches;
next	1.8;

1.8
date	2011.12.13.18.05.25;	author dinoex;	state Exp;
branches;
next	1.7;

1.7
date	2011.10.29.20.41.06;	author dinoex;	state Exp;
branches;
next	1.6;

1.6
date	2011.10.19.18.56.47;	author dinoex;	state Exp;
branches;
next	1.5;

1.5
date	2011.06.02.20.06.44;	author pav;	state dead;
branches;
next	1.4;

1.4
date	2011.05.17.22.20.58;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2010.11.13.22.06.23;	author dinoex;	state Exp;
branches;
next	1.2;

1.2
date	2010.10.24.21.59.42;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2010.10.13.16.41.24;	author dinoex;	state Exp;
branches;
next	;


desc
@@


1.16
log
@Switch exporter over
@
text
@# Created by: Pete French <pete@@twisted.org.uk>
# $FreeBSD: head/lang/libobjc2/Makefile 305238 2012-10-04 07:21:06Z bapt $

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

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Replacement Objective-C runtime supporting Obj-C 2 features

BUILD_DEPENDS=	${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils

USE_BZIP2=	yes
USE_LDCONFIG=	yes
MAKE_ENV+=	LD=${LOCALBASE}/bin/ld
MAKE_ENV+=	SHLIB_VERSION="${SHLIB_VERSION}"
PLIST_SUB=	SHLIB=${SHLIB_VERSION}

OPTIONS_DEFINE=	NSOBJECT_ROOT LIBDISPATCH
OPTIONS_DEFAULT=	NSOBJECT_ROOT
NSOBJECT_ROOT_DESC=	Root class is NSObject not Object
LIBDISPATCH_DESC=	Build with libdispatch from ports

SHLIB_VERSION?=	16

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLIBDISPATCH}
LIB_DEPENDS+=	dispatch.0:${PORTSDIR}/devel/libdispatch
MAKE_ARGS+=	-DWITHOUT_TOYDISPATCH
PLIST_SUB+=	WITH_TOYDISPATCH="@@comment "
.else
PLIST_SUB+=	WITH_TOYDISPATCH=""
.endif

.if ${PORT_OPTIONS:MNSOBJECT_ROOT}
CPPFLAGS+=	-DGNUSTEP
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900000
.if defined(CC) && ${CC:T:Mclang}
# all done
.else
# force clang
CC=	${LOCALBASE}/bin/clang
BUILD_DEPENDS+=	${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang
.endif
.endif

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

.if ${ARCH} == "powerpc"
BROKEN=		Does not compile on powerpc: Unsupported relocation type 10
.endif

post-patch:
	${RM} ${WRKSRC}/GNUmakefile

post-install:
.if ${PORT_OPTIONS:MLIBDISPATCH}
	${RM} ${PREFIX}/include/objc/toydispatch.h
.endif

.include <bsd.port.post.mk>
@


1.15
log
@SVN rev 305238 on 2012-10-04 07:21:06Z by bapt

Convert to new options framework
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.14
log
@- reset MAINTAINER
@
text
@d1 1
a1 4
# New ports collection makefile for:	libobjc2
# Date created:		7 October 2010
# Whom:			Pete French <pete@@twisted.org.uk>
#
a2 1
#
d20 4
a23 2
OPTIONS=	NSOBJECT_ROOT	"Root class is NSObject not Object" On \
		LIBDISPATCH	"Build with libdispatch from ports" Off
d29 1
a29 1
.if defined(WITH_LIBDISPATCH)
d37 1
a37 1
.if !defined(WITHOUT_NSOBJECT_ROOT)
d65 1
a65 1
.if defined(WITH_LIBDISPATCH)
@


1.13
log
@Mark as broken on powerpc: Unsupported relocation type 10.

Hat:		portmgr
@
text
@d13 1
a13 1
MAINTAINER=	dinoex@@FreeBSD.org
@


1.12
log
@- force build with clang
@
text
@d59 4
@


1.11
log
@- Mark BROKEN on 9.X:
  gcc46: error: unrecognized option '-no-integrated-as'

Reported by:	pointyhat
@
text
@d49 1
a49 1
.if defined(GNUSTEP_WITH_CLANG)
a51 4
.else
USE_GCC=	4.6+
BROKEN=		does not compile
.endif
@


1.10
log
@- make check safer
@
text
@d54 1
@


1.9
log
@- add USE_GCC
@
text
@d46 1
a46 1
.if defined(CC) && ${CC:Mclang}
@


1.8
log
@- update to 1.6
- fix build with clang
@
text
@d46 1
a46 1
.if defined(CC) && ${CC} == "clang"
d49 6
a54 10
V:=	42
_GCC_BUILD_DEPENDS:=	gcc${V}
_GCC_PORT_DEPENDS:=	gcc${V}
CC:=			gcc${V}
CXX:=			g++${V}
CPP:=			cpp${V}
LDFLAGS+=	-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}
LDFLAGS+=	-L${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}
BUILD_DEPENDS+=	${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
RUN_DEPENDS+=	${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
@


1.7
log
@- fix build for FreeBSD-9
@
text
@d9 1
a9 1
PORTVERSION=	1.5.1
d27 1
a27 1
SHLIB_VERSION?=	15
d46 3
d60 1
@


1.6
log
@Replacement for the GNU Objective-C runtime supporting the features
of Objective-C 2 for use with GNUstep and other Objective-C programs.
This runtime is based on the Etoile Objective-C Runtime, an earlier
research prototype, and includes support for non-fragile instance
variables, type-dependent dispatch, and object planes. It is fully
compatible with the FSF's GCC Objective-C ABI and also implements
a new ABI that is supported by Clang and is required for some of
the newer features.
@
text
@d46 10
a55 1
BROKEN=		does not compile on 9.X
@


1.5
log
@- Remove lang/libobjc2, it's duplicate of gnustep-libobjc

Submitted by:	Pete French <pete@@twisted.org.uk> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/libobjc2/Makefile,v 1.4 2011/05/17 22:20:58 pav Exp $
d9 1
a9 2
PORTVERSION=	1.0
PORTREVISION=	1
d13 1
a13 1
MAINTAINER=	pete@@twisted.org.uk
d16 2
a17 1
WRKSRC=		${WRKDIR}/${PORTNAME}
d20 3
d27 2
d34 3
d40 1
a40 1
MAKE_ARGS+=	-DWITH_NSOBJECT_ROOT
d53 8
@


1.4
log
@- Mark BROKEN on 9.X: does not compile
  cc: NSBlocks.m: Objective-C compiler not installed on this system

Reported by:	pointyhat
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.3
log
@- add new option WITHOUT_NSOBJECT_ROOT
Submitted by:	Pete French (maintainer)
Reviewed by:	dinoex
@
text
@d37 2
a38 2
.if ${OSVERSION} < 700000
BROKEN=		does not compile on 6.X
@


1.2
log
@- Mark BROKEN on 6.X: does not compile

Reported by:	pointyhat
@
text
@d10 1
d21 2
a22 1
OPTIONS=	LIBDISPATCH "Build with libdispatch from ports" Off
d31 4
@


1.1
log
@Replacement for the GNU Objective-C runtime supporting the features
of Objective-C 2 for use with GNUstep and other Objective-C programs.
This runtime is based on the Etoile Objective-C Runtime, an earlier
research prototype, and includes support for non-fragile instance
variables, type-dependent dispatch, and object planes. It is fully
compatible with the FSF's GCC Objective-C ABI and also implements
a new ABI that is supported by Clang and is required for some of
the newer features.

Submitted by:	Pete French
Reviewed by:	dinoex
@
text
@d31 4
@

