2007-09-28 04:53:51 +02:00
|
|
|
# New ports collection makefile for: sivp
|
|
|
|
# Date created: 2007-09-15
|
|
|
|
# Whom: Max Brazhnikov <makc@issp.ac.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sivp
|
2010-10-17 18:32:46 +02:00
|
|
|
DISTVERSION= 0.5.2
|
2007-09-28 04:53:51 +02:00
|
|
|
CATEGORIES= math graphics multimedia
|
2010-10-17 18:32:46 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}
|
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
|
2010-01-30 15:27:27 +01:00
|
|
|
LIB_DEPENDS= cv.2:${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
|
|
|
|
2010-10-17 18:32:46 +02:00
|
|
|
USE_ZIP= yes
|
2007-09-28 04:53:51 +02:00
|
|
|
|
2011-07-02 21:32:34 +02:00
|
|
|
BROKEN= doesn't not compile with opencv-2.3
|
|
|
|
|
2010-10-17 18:32:46 +02:00
|
|
|
SCILAB_CMD= ${LOCALBASE}/bin/scilab
|
|
|
|
CONTRIBDIR?= share/scilab/contrib
|
|
|
|
TOOLBOXDIR_REL?= ${CONTRIBDIR}/${PORTNAME}
|
|
|
|
TOOLBOXDIR= ${PREFIX}/${TOOLBOXDIR_REL}
|
|
|
|
PLIST_SUB= TOOLBOXDIR=${TOOLBOXDIR_REL}
|
2007-09-28 04:53:51 +02:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${ECHO_CMD} "If you want video support, OpenCV should be compiled with ffmpeg!"
|
|
|
|
@${ECHO_CMD}
|
|
|
|
|
2010-10-17 18:32:46 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${SCILAB_CMD} -nogui -f builder.sce
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${TOOLBOXDIR}/sci_gateway/c
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/loader.sce ${TOOLBOXDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sci_gateway/loader_gateway.sce \
|
|
|
|
${TOOLBOXDIR}/sci_gateway
|
|
|
|
cd ${WRKSRC}/sci_gateway/c && \
|
|
|
|
${INSTALL_DATA} loader.sce ${TOOLBOXDIR}/sci_gateway/c && \
|
|
|
|
${INSTALL_PROGRAM} libsivp.so ${TOOLBOXDIR}/sci_gateway/c
|
|
|
|
.for d in demos etc images jar macros
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${TOOLBOXDIR}
|
|
|
|
.endfor
|
|
|
|
|
2007-09-28 04:53:51 +02:00
|
|
|
.include <bsd.port.mk>
|