summaryrefslogtreecommitdiff
path: root/math/octave-forge/Makefile
blob: 8431a5ab12c1903dbd35a4f306830315739b7645 (plain)
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
50
51
52
53
# $NetBSD: Makefile,v 1.10 2005/04/01 10:19:58 adam Exp $

DISTNAME=	octave-forge-2004.11.16
PKGREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=octave/}

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://octave.sourceforge.net/
COMMENT=	Extensions to Octave

PKG_INSTALLATION_TYPES= overwrite pkgviews

USE_BUILDLINK3=		yes
USE_GNU_TOOLS+=		make
USE_X11=		yes
GNU_CONFIGURE=		yes

UNLIMIT_RESOURCES=	datasize

BUILD_TARGET=	# empty
TEST_DIRS=	${WRKSRC}
TEST_TARGET=	check

GCC_REQD=	3.0
USE_LANGUAGES=	c c++ fortran

.include "../../math/octave/octave.mk"

PLIST_SUBST+=	OCT_LOCALVERFCNFILEDIR=${OCT_LOCALVERFCNFILEDIR:S/${LOCALBASE}\///}
PLIST_SUBST+=	OCT_LOCALVEROCTFILEDIR=${OCT_LOCALVEROCTFILEDIR:S/${LOCALBASE}\///}
PLIST_SUBST+=	OCT_LOCALVERARCHLIBDIR=${OCT_LOCALVERARCHLIBDIR:S/${LOCALBASE}\///}
PLIST_SUBST+=	OCT_VERSION=${OCT_VERSION}

MESSAGE_SUBST+=	OCT_LOCALVERFCNFILEDIR=${OCT_LOCALVERFCNFILEDIR}
MESSAGE_SUBST+=	OCT_LOCALVEROCTFILEDIR=${OCT_LOCALVEROCTFILEDIR}
MESSAGE_SUBST+=	OCT_LOCALVERARCHLIBDIR=${OCT_LOCALVERARCHLIBDIR}

# the 'fixed' module has problems with recent gcc.  Perhaps
# someone with a c++ clue can fix it.
post-extract:
	${TOUCH} ${WRKSRC}/main/fixed/NOINSTALL

post-patch:
	${MKDIR} ${WRKSRC}/extra/pdb/scripts
	${MV} ${WRKSRC}/extra/pdb/bin/rasmol.sh ${WRKSRC}/extra/pdb/scripts/rasmol.sh

.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
.include "../../math/octave/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"