aboutsummaryrefslogtreecommitdiffstats
path: root/math/scilab-toolbox-sivp/Makefile
blob: e9c570f152dbf1758201724d813d74d6d44c4895 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:    sivp
# Date created:     2007-09-15
# Whom:         Max Brazhnikov <makc@issp.ac.ru>
#
# $FreeBSD$
#

PORTNAME=   sivp
DISTVERSION=    0.5.2
CATEGORIES= math graphics multimedia
MASTER_SITES=   SF/${PORTNAME}
PKGNAMEPREFIX=  scilab-toolbox-

MAINTAINER= makc@FreeBSD.org
COMMENT=    Scilab Image and Video Processing Toolbox

BUILD_DEPENDS=  ${SCILAB_CMD}:${PORTSDIR}/math/scilab
LIB_DEPENDS=    cv.2:${PORTSDIR}/graphics/opencv
RUN_DEPENDS=    ${SCILAB_CMD}:${PORTSDIR}/math/scilab

USE_ZIP=    yes

SCILAB_CMD= ${LOCALBASE}/bin/scilab
CONTRIBDIR?=    share/scilab/contrib
TOOLBOXDIR_REL?=    ${CONTRIBDIR}/${PORTNAME}
TOOLBOXDIR= ${PREFIX}/${TOOLBOXDIR_REL}
PLIST_SUB=  TOOLBOXDIR=${TOOLBOXDIR_REL}

pre-everything::
    @${ECHO_CMD}
    @${ECHO_CMD} "If you want video support, OpenCV should be compiled with ffmpeg!"
    @${ECHO_CMD}

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

.include <bsd.port.mk>