aboutsummaryrefslogtreecommitdiffstats
path: root/math/scilab-toolbox-swt/Makefile
blob: 8c83adab8596acde88dfb030c94c437550ef3578 (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
## New ports collection makefile for:   swt
# Date created:         28 March 2006
# Whom:             Max Brazhnikov makc@issp.ac.ru
#
# $FreeBSD$
#

PORTNAME=   swt
DISTVERSION=    0.1.0rc4
PORTREVISION=   4
CATEGORIES= math
MASTER_SITES=   SF/scwt/${PORTNAME}/0.1.0rc4Linux
PKGNAMEPREFIX=  scilab-toolbox-
DISTNAME=   ${PORTNAME}${DISTVERSION}

MAINTAINER= makc@FreeBSD.org
COMMENT=    Scilab 1-D and 2-D Wavelet Toolbox

BUILD_DEPENDS=  ${LOCALBASE}/bin/scilab:${PORTSDIR}/math/scilab
RUN_DEPENDS=    ${BUILD_DEPENDS}

IGNORE=     doesn't build with Scilab 5.2

WRKSRC=     ${WRKDIR}/${PORTNAME}-${DISTVERSION}

SCILABDIR?= lib/scilab
CONTRIBDIR?=    ${SCILABDIR}/contrib
TOOLBOXDIR?=    ${CONTRIBDIR}/${PORTNAME}

HAS_CONFIGURE=  yes
CONFIGURE_ARGS+=--prefix=${PREFIX}/${TOOLBOXDIR}
CONFIGURE_ENV+= SCI="${LOCALBASE}/${SCILABDIR}"

PLIST_SUB=  TOOLBOXDIR=${TOOLBOXDIR}

OPTIONS=    SIVP "Enable Image and Video support" off

.include <bsd.port.pre.mk>

.if defined(WITH_SIVP)
RUN_DEPENDS+=   ${LOCALBASE}/${CONTRIBDIR}/sivp/loader.sce:${PORTSDIR}/math/scilab-toolbox-sivp
.endif

post-install:
     @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>