# New ports collection makefile for: libobjc2 # Date created: 7 October 2010 # Whom: Pete French # # $FreeBSD$ # PORTNAME= libobjc2 PORTVERSION= 1.5.1 CATEGORIES= lang devel gnustep MASTER_SITES= http://download.gna.org/gnustep/ MAINTAINER= dinoex@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= NSOBJECT_ROOT "Root class is NSObject not Object" On \ LIBDISPATCH "Build with libdispatch from ports" Off SHLIB_VERSION?= 15 .include .if defined(WITH_LIBDISPATCH) LIB_DEPENDS+= dispatch.0:${PORTSDIR}/devel/libdispatch MAKE_ARGS+= -DWITHOUT_TOYDISPATCH PLIST_SUB+= WITH_TOYDISPATCH="@comment " .else PLIST_SUB+= WITH_TOYDISPATCH="" .endif .if !defined(WITHOUT_NSOBJECT_ROOT) CPPFLAGS+= -DGNUSTEP .endif .include .if ${OSVERSION} >= 900000 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} .endif .if (${ARCH} == i386) || (${ARCH} == i486) CFLAGS+= -march=i586 .endif post-patch: ${RM} ${WRKSRC}/GNUmakefile post-install: .if defined(WITH_LIBDISPATCH) ${RM} ${PREFIX}/include/objc/toydispatch.h .endif .include