diff options
author | makc <makc@FreeBSD.org> | 2012-07-27 19:03:38 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2012-07-27 19:03:38 +0800 |
commit | 7e9888a561c1f2a53cfeca5bf54f5278294df386 (patch) | |
tree | 167ee4bd8c4cd737246cf4e2c40f36e42042084e /math/scilab-toolbox-sivp | |
parent | 7c887ca2a204b4cd88ce46806edb8ea718e69d9e (diff) | |
download | freebsd-ports-gnome-7e9888a561c1f2a53cfeca5bf54f5278294df386.tar.gz freebsd-ports-gnome-7e9888a561c1f2a53cfeca5bf54f5278294df386.tar.zst freebsd-ports-gnome-7e9888a561c1f2a53cfeca5bf54f5278294df386.zip |
- Convert my ports to new options framework
- use CONFLICTS_INSTALL
- other minor changes
Diffstat (limited to 'math/scilab-toolbox-sivp')
-rw-r--r-- | math/scilab-toolbox-sivp/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/math/scilab-toolbox-sivp/Makefile b/math/scilab-toolbox-sivp/Makefile index a27203b9ed9a..17cb1a7b57ed 100644 --- a/math/scilab-toolbox-sivp/Makefile +++ b/math/scilab-toolbox-sivp/Makefile @@ -28,11 +28,13 @@ TOOLBOXDIR= ${PREFIX}/${TOOLBOXDIR_REL} PLIST_SUB= TOOLBOXDIR=${TOOLBOXDIR_REL} TOOLBOX_SUBDIRS= demos etc images macros -OPTIONS= HELP "Build help files (requires scilab with gui support)" on +OPTIONS_DEFINE= HELP +OPTIONS_DEFAULT= ${OPTIONS_DEFINE} +HELP_DESC= Build help files (requires scilab with gui support) .include <bsd.port.options.mk> -.if defined(WITHOUT_HELP) +.if !${PORT_OPTIONS:MHELP} SCILAB_ARGS= -nogui PLIST_SUB+= HELP="@comment " EXTRA_PATCHES+= ${FILESDIR}/extrapatch-etc__SIVP.start @@ -49,14 +51,14 @@ pre-everything:: @${ECHO_CMD} post-patch: -.if defined(WITHOUT_HELP) +.if !${PORT_OPTIONS:MHELP} ${REINPLACE_CMD} -e '/tbx_builder_help/d' ${WRKSRC}/builder.sce .endif ${ECHO_CMD} quit >> ${WRKSRC}/builder.sce pre-build: ${FIND} -d ${WRKSRC} \( -name '*.orig' -or -name '*.bak' \) -delete -.if !defined(WITHOUT_HELP) && !defined(DISPLAY) +.if ${PORT_OPTIONS:MHELP} && !defined(DISPLAY) @if [ -f ${WRKDIR}/.Xvfb.pid ]; then \ ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \ ${RM} -f ${WRKDIR}/.Xvfb.pid ; \ @@ -70,7 +72,7 @@ do-build: ${SETENV} ${MAKE_ENV} ${SCILAB_CMD} ${SCILAB_ARGS} -f builder.sce post-build: -.if !defined(WITHOUT_HELP) && !defined(DISPLAY) +.if ${PORT_OPTIONS:MHELP} && !defined(DISPLAY) @if [ -f ${WRKDIR}/.Xvfb.pid ]; then \ ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \ ${RM} -f ${WRKDIR}/.Xvfb.pid ; \ |