summaryrefslogtreecommitdiff
path: root/science/ovt/Makefile
blob: 6bc5fcb84a56b833ecfcbe049baaca4f0902cbf5 (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
50
51
52
# New ports collection makefile for:   ovt
# Date created:                16 Sept 2003
# Whom:                        Mykola Khotyaintsev <ko@nest.irfu.se>
#
# $FreeBSD$
#

PORTNAME=	ovt
PORTVERSION=	2.3
PORTREVISION=	1
CATEGORIES=	science astro java
MASTER_SITES=	# http://ovt.irfu.se/download/
DISTNAME=	${PORTNAME}-${PORTVERSION}_${OVTBUILD}-src

MAINTAINER=	ko@nest.irfu.se
COMMENT=	The Orbit Visualization Tool

LIB_DEPENDS=	vtkCommonJava:${PORTSDIR}/math/vtk-java

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
OVTBUILD=	3
USE_BZIP2=	yes
USE_GMAKE=	yes
INSTALLS_SHLIB=	yes
GNU_CONFIGURE=	yes
ONLY_FOR_ARCHS=	i386

USE_JAVA=	yes
JAVA_VERSION=	1.4+
JAVA_OS=	native

CONFIGURE_ARGS=	--with-jdk=${JAVA_HOME}

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

RESTRICTED=	yes

.include <bsd.port.pre.mk>

# Check for OVT distfile
.if !exists(${DISTDIR}/${DISTNAME}.tar.bz2) && !defined(PACKAGE_BUILDING)
ECHO_MSG=/usr/bin/printf
IGNORE=	:\n\
Because of licensing restrictions, you must fetch the source distribution\n\
manually.  Please access http://ovt.irfu.se/download/ with a web browser and\n\
follow the \"Download\" link for the \"OVT ${PORTVERSION} Sources\".\n\
You will be required to log in and register, but you can create an account\n\
on this page.  After registration download the source file, ${DISTFILES}.\n\
Please place this file in ${DISTDIR}.\n
.endif

.include <bsd.port.post.mk>