freebsd-ports/math/scilab-toolbox-sivp/Makefile
Gerald Pfeifer 1cd277bdce Update the default version of GCC used in the Ports Collection from
GCC 4.6.4 to GCC 4.7.3.  This entails updating the lang/gcc port as
well as changing the default in Mk/bsd.default-versions.mk.

Part II, Bump PORTREVISIONs.

PR:		182136
Supported by:	Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports)
Tested by:	bdrewery (two -exp runs)
2014-03-10 20:55:20 +00:00

74 lines
2 KiB
Makefile

# $FreeBSD$
PORTNAME= sivp
DISTVERSION= 1.0.0.r286
PORTREVISION= 4
CATEGORIES= math graphics multimedia
MASTER_SITES= LOCAL/makc
PKGNAMEPREFIX= scilab-toolbox-
MAINTAINER= makc@FreeBSD.org
COMMENT= Scilab Image and Video Processing Toolbox
BUILD_DEPENDS= ${SCILAB_CMD}:${PORTSDIR}/math/scilab
LIB_DEPENDS= libopencv_legacy.so:${PORTSDIR}/graphics/opencv
RUN_DEPENDS= ${SCILAB_CMD}:${PORTSDIR}/math/scilab
USES= pkgconfig
USE_XZ= yes
SCILAB_CMD= ${LOCALBASE}/bin/scilab
CONTRIBDIR?= share/scilab/contrib
TOOLBOXDIR_REL?= ${CONTRIBDIR}/${PORTNAME}
TOOLBOXDIR= ${PREFIX}/${TOOLBOXDIR_REL}
PLIST_SUB= TOOLBOXDIR=${TOOLBOXDIR_REL}
TOOLBOX_SUBDIRS= demos etc images macros
OPTIONS_DEFINE= HELP
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
HELP_DESC= Build help files (requires scilab with gui support)
.include <bsd.port.options.mk>
.if !${PORT_OPTIONS:MHELP}
SCILAB_ARGS= -nogui
PLIST_SUB+= HELP="@comment "
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-etc__SIVP.start
.else
USES+= display:build
MAKE_ENV= LC_ALL="C"
PLIST_SUB+= HELP=""
TOOLBOX_SUBDIRS+= jar
.endif
pre-everything::
@${ECHO_CMD}
@${ECHO_CMD} "If you want video support, OpenCV should be compiled with ffmpeg!"
@${ECHO_CMD}
post-patch:
.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
do-build:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${SCILAB_CMD} ${SCILAB_ARGS} -f builder.sce
do-install:
${MKDIR} ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/cpp
${INSTALL_DATA} ${WRKSRC}/loader.sce ${STAGEDIR}${TOOLBOXDIR}
${INSTALL_DATA} ${WRKSRC}/sci_gateway/loader_gateway.sce \
${STAGEDIR}${TOOLBOXDIR}/sci_gateway
cd ${WRKSRC}/sci_gateway/cpp && \
${INSTALL_DATA} loader.sce ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/cpp && \
${INSTALL_PROGRAM} libgw_sivp.so ${STAGEDIR}${TOOLBOXDIR}/sci_gateway/cpp
.for d in ${TOOLBOX_SUBDIRS}
cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${TOOLBOXDIR}
.endfor
.include <bsd.port.mk>