1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Convert to new options framework

This commit is contained in:
Baptiste Daroussin 2012-10-04 07:21:06 +00:00
parent 5ac78e2f5e
commit 9dc0f62a37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305238

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: libobjc2 # Created by: Pete French <pete@twisted.org.uk>
# Date created: 7 October 2010
# Whom: Pete French <pete@twisted.org.uk>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= libobjc2 PORTNAME= libobjc2
PORTVERSION= 1.6 PORTVERSION= 1.6
@ -21,14 +17,16 @@ MAKE_ENV+= LD=${LOCALBASE}/bin/ld
MAKE_ENV+= SHLIB_VERSION="${SHLIB_VERSION}" MAKE_ENV+= SHLIB_VERSION="${SHLIB_VERSION}"
PLIST_SUB= SHLIB=${SHLIB_VERSION} PLIST_SUB= SHLIB=${SHLIB_VERSION}
OPTIONS= NSOBJECT_ROOT "Root class is NSObject not Object" On \ OPTIONS_DEFINE= NSOBJECT_ROOT LIBDISPATCH
LIBDISPATCH "Build with libdispatch from ports" Off OPTIONS_DEFAULT= NSOBJECT_ROOT
NSOBJECT_ROOT_DESC= Root class is NSObject not Object
LIBDISPATCH_DESC= Build with libdispatch from ports
SHLIB_VERSION?= 16 SHLIB_VERSION?= 16
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if defined(WITH_LIBDISPATCH) .if ${PORT_OPTIONS:MLIBDISPATCH}
LIB_DEPENDS+= dispatch.0:${PORTSDIR}/devel/libdispatch LIB_DEPENDS+= dispatch.0:${PORTSDIR}/devel/libdispatch
MAKE_ARGS+= -DWITHOUT_TOYDISPATCH MAKE_ARGS+= -DWITHOUT_TOYDISPATCH
PLIST_SUB+= WITH_TOYDISPATCH="@comment " PLIST_SUB+= WITH_TOYDISPATCH="@comment "
@ -36,7 +34,7 @@ PLIST_SUB+= WITH_TOYDISPATCH="@comment "
PLIST_SUB+= WITH_TOYDISPATCH="" PLIST_SUB+= WITH_TOYDISPATCH=""
.endif .endif
.if !defined(WITHOUT_NSOBJECT_ROOT) .if ${PORT_OPTIONS:MNSOBJECT_ROOT}
CPPFLAGS+= -DGNUSTEP CPPFLAGS+= -DGNUSTEP
.endif .endif
@ -64,7 +62,7 @@ post-patch:
${RM} ${WRKSRC}/GNUmakefile ${RM} ${WRKSRC}/GNUmakefile
post-install: post-install:
.if defined(WITH_LIBDISPATCH) .if ${PORT_OPTIONS:MLIBDISPATCH}
${RM} ${PREFIX}/include/objc/toydispatch.h ${RM} ${PREFIX}/include/objc/toydispatch.h
.endif .endif