2007-09-28 04:53:51 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sivp
|
2012-04-27 01:16:05 +02:00
|
|
|
DISTVERSION= 1.0.0.r286
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 7
|
2007-09-28 04:53:51 +02:00
|
|
|
CATEGORIES= math graphics multimedia
|
2012-04-27 01:16:05 +02:00
|
|
|
MASTER_SITES= LOCAL/makc
|
2007-09-28 04:53:51 +02:00
|
|
|
PKGNAMEPREFIX= scilab-toolbox-
|
|
|
|
|
2009-02-21 12:31:28 +01:00
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2007-09-28 04:53:51 +02:00
|
|
|
COMMENT= Scilab Image and Video Processing Toolbox
|
|
|
|
|
2010-10-17 18:32:46 +02:00
|
|
|
BUILD_DEPENDS= ${SCILAB_CMD}:${PORTSDIR}/math/scilab
|
2013-10-23 15:08:41 +02:00
|
|
|
LIB_DEPENDS= libopencv_legacy.so:${PORTSDIR}/graphics/opencv
|
2010-10-17 18:32:46 +02:00
|
|
|
RUN_DEPENDS= ${SCILAB_CMD}:${PORTSDIR}/math/scilab
|
2007-09-28 04:53:51 +02:00
|
|
|
|
2014-05-01 16:31:00 +02:00
|
|
|
USES= dos2unix pkgconfig tar:xz
|
2014-09-04 20:21:49 +02:00
|
|
|
DOS2UNIX_FILES= etc/SIVP.start \
|
|
|
|
sci_gateway/cpp/builder_gateway_cpp.sce \
|
|
|
|
sci_gateway/cpp/sivp_init.cpp
|
|
|
|
|
|
|
|
SCILAB_CMD= ${LOCALBASE}/bin/scilab-adv-cli
|
|
|
|
SCILAB_ARGS= -noatomsautoload -nb -nouserstartup
|
|
|
|
MAKE_ENV= LC_ALL="C" SCI_JAVA_ENABLE_HEADLESS=1 SCI_DISABLE_TK=1
|
2011-07-02 21:32:34 +02:00
|
|
|
|
2010-10-17 18:32:46 +02:00
|
|
|
CONTRIBDIR?= share/scilab/contrib
|
|
|
|
TOOLBOXDIR_REL?= ${CONTRIBDIR}/${PORTNAME}
|
|
|
|
TOOLBOXDIR= ${PREFIX}/${TOOLBOXDIR_REL}
|
|
|
|
PLIST_SUB= TOOLBOXDIR=${TOOLBOXDIR_REL}
|
2012-04-27 01:16:05 +02:00
|
|
|
TOOLBOX_SUBDIRS= demos etc images macros
|
|
|
|
|
2012-07-27 13:03:38 +02:00
|
|
|
OPTIONS_DEFINE= HELP
|
2014-09-04 20:21:49 +02:00
|
|
|
OPTIONS_DEFAULT= HELP
|
|
|
|
OPTIONS_SUB= yes
|
2012-07-27 13:03:38 +02:00
|
|
|
HELP_DESC= Build help files (requires scilab with gui support)
|
2012-04-27 01:16:05 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-07-27 13:03:38 +02:00
|
|
|
.if !${PORT_OPTIONS:MHELP}
|
2014-09-04 20:21:49 +02:00
|
|
|
SCILAB_ARGS+= -nwni
|
2012-04-27 01:16:05 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-etc__SIVP.start
|
|
|
|
.else
|
|
|
|
TOOLBOX_SUBDIRS+= jar
|
|
|
|
.endif
|
2007-09-28 04:53:51 +02:00
|
|
|
|
|
|
|
pre-everything::
|
2014-09-04 20:21:49 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2007-09-28 04:53:51 +02:00
|
|
|
|
2012-04-27 01:16:05 +02:00
|
|
|
post-patch:
|
2012-07-27 13:03:38 +02:00
|
|
|
.if !${PORT_OPTIONS:MHELP}
|
2012-04-27 01:16:05 +02:00
|
|
|
${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
|
|
|
|
|
2010-10-17 18:32:46 +02:00
|
|
|
do-build:
|
2012-04-27 01:16:05 +02:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${SCILAB_CMD} ${SCILAB_ARGS} -f builder.sce
|
|
|
|
|
2010-10-17 18:32:46 +02:00
|
|
|
do-install:
|
2013-10-23 15:08:41 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/cpp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/loader.sce ${STAGEDIR}${TOOLBOXDIR}
|
2010-10-17 18:32:46 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sci_gateway/loader_gateway.sce \
|
2013-10-23 15:08:41 +02:00
|
|
|
${STAGEDIR}${TOOLBOXDIR}/sci_gateway
|
2012-04-27 01:16:05 +02:00
|
|
|
cd ${WRKSRC}/sci_gateway/cpp && \
|
2013-10-23 15:08:41 +02:00
|
|
|
${INSTALL_DATA} loader.sce ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/cpp && \
|
|
|
|
${INSTALL_PROGRAM} libgw_sivp.so ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/cpp
|
2012-04-27 01:16:05 +02:00
|
|
|
.for d in ${TOOLBOX_SUBDIRS}
|
2013-10-23 15:08:41 +02:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${TOOLBOXDIR}
|
2010-10-17 18:32:46 +02:00
|
|
|
.endfor
|
|
|
|
|
2007-09-28 04:53:51 +02:00
|
|
|
.include <bsd.port.mk>
|