summaryrefslogtreecommitdiffstats
path: root/graphics/jumpgis/Makefile
blob: a8aa90ab45f22bc981454af4ff0fbe0a232e7261 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:	JUMP Unified Mapping Platform
# Date created:				June 16 2004
# Whom:					Sam Lawrance <boris@brooknet.com.au>
#
# $FreeBSD$
#

PORTNAME=	jumpgis
PORTVERSION=	1.1.2
PORTREVISION=	3
CATEGORIES=	graphics java geography
MASTER_SITES=	http://www.jump-project.org/downloads/jump/:main \
		http://people.tecnik93.com/~sam/ports/:extra
DISTFILES=	jump-${PORTVERSION}.zip:main \
		jump.png:extra jump.desktop:extra
EXTRACT_ONLY=	jump-${PORTVERSION}.zip

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A GUI based application for viewing and processing spatial data

WRKSRC=		${WRKDIR}/jump
EXTRACT_AFTER_ARGS=	-d ${WRKSRC}
TARGET_DIR=	${PREFIX}/${PORTNAME}

USE_JAVA=	yes
JAVA_VERSION=	1.3+
USE_ZIP=	yes
NO_BUILD=	yes
WANT_GNOME=	yes
PORTDOCS=	*

REINPLACE_ARGS=	-i ""

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgnomelibs}!=""
PLIST_SUB+=	GNOMELINKS=""
.else
PLIST_SUB+=	GNOMELINKS="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e "s,#!sh,#!/bin/sh,g" \
		-e "s,^LIB=../lib,LIB=${TARGET_DIR}/lib,g"	\
		-e "s,workbench-properties.xml,~/.jump-workbench-properties.xml,g" \
		${WRKSRC}/bin/JUMPWorkbench-unix.sh

do-install:
	@${ECHO_CMD} "---> Installing JAR files"
	${MKDIR} ${TARGET_DIR}/lib
	${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${TARGET_DIR}/lib
	${MKDIR} ${TARGET_DIR}/lib/ext
	@${ECHO_MSG} "Installing startup script"
	${INSTALL_SCRIPT} ${WRKSRC}/bin/JUMPWorkbench-unix.sh ${PREFIX}/bin/jumpgis

.if !defined(NOPORTDOCS)
	@${ECHO_MSG} "---> Installing documentation"
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.else
	@${ECHO_MSG} "---> Skipping documentation"
.endif

.if ${HAVE_GNOME:Mgnomelibs}!=""
	@${ECHO_MSG} "---> Installing GNOME application links"
	${INSTALL_DATA} ${DISTDIR}/jump.desktop ${LOCALBASE}/share/gnome/applications/
	${INSTALL_DATA} ${DISTDIR}/jump.png ${LOCALBASE}/share/gnome/pixmaps/
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud