diff options
Diffstat (limited to 'lang/see-devel/Makefile')
-rw-r--r-- | lang/see-devel/Makefile | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/lang/see-devel/Makefile b/lang/see-devel/Makefile index f01fb3f..c281a91 100644 --- a/lang/see-devel/Makefile +++ b/lang/see-devel/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: see-devel -# Date created: 29 Oct 2005 -# Whom: Simun Mikecin <numisemis@yahoo.com> -# +# Created by: Simun Mikecin <numisemis@yahoo.com> # $FreeBSD$ -# PORTNAME= see PORTVERSION= 3.0.1376 @@ -16,10 +12,10 @@ PKGNAMESUFFIX= -devel MAINTAINER= numisemis@yahoo.com COMMENT= Simple ECMAScript Engine (SEE) -OPTIONS= GC "Use Boehm-Weiser garbage collection package" on \ - OPTIMIZED_CFLAGS "Enable some additional optimizations" off \ - SEE_DEBUG "Internal SEE library debugging" off \ - MULTIPLE_THREADS "Enable thread-safety" on +OPTIONS_DEFINE= GC OPTIMIZED_CFLAGS SEE_DEBUG THREADS DOCS +OPTIONS_DEFAULT= GC THREADS +GC_DESC= Use Boehm-Weiser garbage collection package +SEE_DEBUG_DESC= Internal SEE library debugging CONFLICTS= see-[0-9]* @@ -31,25 +27,25 @@ GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_MULTIPLE_THREADS) +.if ${PORT_OPTIONS:MMULTIPLE_THREADS} CFLAGS+= -DMULTIPLE_THREADS .endif -.if !defined(WITH_SEE_DEBUG) +.if ! ${PORT_OPTIONS:MSEE_DEBUG} CFLAGS+= -DNDEBUG .endif -.if defined(WITH_OPTIMIZED_CFLAGS) +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} CFLAGS+= -O3 -fomit-frame-pointer .endif -.if defined(WITH_GC) +.if ${PORT_OPTIONS:MGC} LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc .else CONFIGURE_ARGS+= --without-boehm-gc -.if !defined(WITH_MULTIPLE_THREADS) +.if ! ${PORT_OPTIONS:MTHREADS} PTHREAD_CFLAGS= PTHREAD_LIBS= .endif @@ -59,7 +55,7 @@ post-patch: @${REINPLACE_CMD} -e "s|PACKAGE_BUGREPORT='leonard@users|PACKAGE_BUGREPORT='leonard\\\@users|" \ ${WRKSRC}/configure -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: ${MKDIR} ${DOCSDIR} .for f in doc/USAGE.html AUTHORS NEWS README TODO COPYING @@ -67,4 +63,4 @@ post-install: .endfor .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |