From 49d0c5ffe215b688be077f3e0d0fdf105e9fe908 Mon Sep 17 00:00:00 2001 From: bapt Date: Tue, 4 Jun 2013 15:13:42 +0000 Subject: Convert to new options framework --- lang/ocaml/Makefile | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'lang/ocaml') diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile index d95f36427e81..393dfe9b10d6 100644 --- a/lang/ocaml/Makefile +++ b/lang/ocaml/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: ocaml -# Date created: 24 December 1996 -# Whom: Kiriyama Kazuhiko -# +# Created by: Kiriyama Kazuhiko # $FreeBSD$ -# PORTNAME= ocaml PORTVERSION= 3.12.1 @@ -28,11 +24,11 @@ MAKE_JOBS_UNSAFE= yes CONFIGURE_ARGS= -verbose -prefix "${PREFIX}" -cc "${CC}" -as "${AS}" \ -aspp "${CC} -c" -partialld "${LD} -r" -OPTIONS= X11 "Build with X11 support" on \ - TK "Build LablTk library (requires X11 support)" on \ - THREADS "Build with Posix threads support" on \ - CMP_LIB "Install compiler's libraries" off \ - OPT_DEF "Use system-optimized binaries by default" off +OPTIONS_DEFINE= X11 TK THREADS CMP_LIB OPT_DEF +OPTIONS_DEFAULT= X11 TK THREADS +TK_DESC= LablTk library (requires X11 support) +CMP_LIB_DESC= Install compiler's libraries +OPT_DEF_DESC= Use system-optimized binaries by default MODOPT= camlp4o camlp4r ocamlc ocamldep ocamldoc ocamllex ocamlopt PATTERN= [[:space:]]*(do|then)?[[:space:]]*)(\$$\(CP\)|cp)([[:space:]] @@ -51,7 +47,7 @@ PLIST_SUB+= PROF="" .include "${FILESDIR}/manfiles" -.if !defined(WITHOUT_THREADS) +.if ${PORT_OPTIONS:MTHREADS} PLIST_SUB+= THREADS="" THR_CPP= ${PTHREAD_CFLAGS} THR_LD= ${PTHREAD_LIBS} @@ -62,7 +58,7 @@ THR_LD= #empty CONFIGURE_ARGS+=-no-pthread .endif -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} PLIST_SUB+= X11="" USE_XORG= x11 CONFIGURE_ARGS+=-x11include ${LOCALBASE}/include -x11lib ${LOCALBASE}/lib @@ -74,9 +70,9 @@ CONFLICTS+= ocaml-[0-9]* ocaml-notk-[0-9]* CONFIGURE_ARGS+=-no-x11 .endif -.if defined(WITHOUT_TK) +.if ! ${PORT_OPTIONS:MTK} PLIST_SUB+= TK="@comment " -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} SFX= -notk CONFLICTS+= ocaml-[0-9]* ocaml-nox11-[0-9]* .endif @@ -115,7 +111,7 @@ post-patch: @${REINPLACE_CMD} -e 's|gcc|$$(CC)|' \ ${WRKSRC}/*/Makefile \ ${WRKSRC}/*/*/Makefile -.if defined(WITH_TK) +.if ${PORT_OPTIONS:MTK} @${REINPLACE_CMD} -e 's|/usr/bin/wish|${WISH}|' \ ${WRKSRC}/otherlibs/labltk/examples_labltk/hello.tcl .endif @@ -146,7 +142,7 @@ check test: install post-install: @${TOUCH} ${PREFIX}/lib/ocaml/ocamldoc/custom/.keep -.if !defined(WITHOUT_TK) +.if ${PORT_OPTIONS:MTK} @${MKDIR} ${EXAMPLESDIR} @(cd ${WRKSRC}/otherlibs/labltk && \ ${COPYTREE_SHARE} examples_labltk ${EXAMPLESDIR} \ @@ -164,7 +160,7 @@ post-install: @${CHMOD} 644 ${PREFIX}/lib/ocaml/ld.conf # Do we want .opt version of tools to be the default ? -.if defined(WITH_OPT_DEF) +.if ${PORT_OPTIONS:MOPT_DEF} . for module in ${MODOPT} # First, we save bytecode version @${MV} ${PREFIX}/bin/${module} ${PREFIX}/bin/${module}.byte @@ -177,7 +173,7 @@ post-install: .endif # Add compiler's libs if required -.if defined(WITH_CMP_LIB) +.if ${PORT_OPTIONS:MCMP_LIB} @${MKDIR} ${PREFIX}/lib/ocaml/compiler-lib @${INSTALL_DATA} ${WRKSRC}/utils/*.cm* ${PREFIX}/lib/ocaml/compiler-lib @${INSTALL_DATA} ${WRKSRC}/utils/*.o ${PREFIX}/lib/ocaml/compiler-lib -- cgit arn/devel/electron6/files/ini-1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* -remove MD5ohauer2011-07-031-1/+0
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1
* - Welcome X.org 7.2 \o/.flz2007-05-20