aboutsummaryrefslogtreecommitdiff
path: root/devel/visualparadigm/Makefile
blob: 4f41feae9181636a77a4fea338a2617da2ff731f (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
# $FreeBSD$

PORTNAME=	visualparadigm
DISTVERSION=	14.2.20171107
CATEGORIES=	devel java
MASTER_SITES=	https://eu5.visual-paradigm.com/visual-paradigm/vpce${PORTVERSION:R}/${PORTVERSION:E}/
DISTNAME=	Visual_Paradigm_CE_${PORTVERSION:C/\./_/g}_Unix_InstallFree

MAINTAINER=	fernape@FreeBSD.org
COMMENT=	Visual modeling tool for all kinds of UML diagrams

BROKEN=		unfetchable

LICENSE=	VPCEL
LICENSE_NAME=	Visual Paradigm Community Edition License Agreement
LICENSE_FILE=	${WRKSRC}/.install4j/i4j_extf_5_aprh35.txt
LICENSE_PERMS=	no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell

RUN_DEPENDS=	${LOCALBASE}/lib/libsqlitejdbc.so:java/sqlitejdbc

USE_JAVA=	yes
JAVA_VERSION=	1.8+
JAVA_OS=	linux
NO_BUILD=	yes

WRKSRC=		${WRKDIR}/${EXTRACT_NAME}

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

EXTRACT_NAME=	Visual_Paradigm_CE_${PORTVERSION:R}

post-patch:
	@${FIND} ${WRKSRC} -name *.dll -delete -or -name *.exe -delete -or -name *.orig -delete

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${BUILD_WRKSRC}${BUILD_PREFIX}/Application/bin/Visual_Paradigm* ${STAGEDIR}${DATADIR}/Application/bin
	${INSTALL_SCRIPT} ${BUILD_WRKSRC}${BUILD_PREFIX}/Visual_Paradigm* ${STAGEDIR}${DATADIR}

post-install:
	@${CHMOD} +w ${STAGEDIR}${DATADIR}/Application/bin/vp_windows/ci
	${STRIP_CMD} ${STAGEDIR}${DATADIR}/Application/bin/vp_windows/ci
	@${CHMOD} -w ${STAGEDIR}${DATADIR}/Application/bin/vp_windows/ci

.include <bsd.port.mk>