aboutsummaryrefslogtreecommitdiff
path: root/graphics/yed/Makefile
blob: 53f21164fefbd91a78e5c4d27921b9ec6ea8041f (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
PORTNAME=	yed
DISTVERSION=	3.22
CATEGORIES=	graphics java
MASTER_SITES=	#
DISTNAME=	yEd-${DISTVERSION}

MAINTAINER=	myc@barev.net
COMMENT=	Editor for graphs and diagrams
WWW=		https://www.yworks.com/products/yed

LICENSE=	YED_1_1
LICENSE_NAME=	yEd Software License Agreement (Version 1.1)
LICENSE_TEXT=	Description of the license can be obtained from the following URL: \
		http://www.yworks.com/products/yed/license.html
# Downloading requires acceptance of license agreement
LICENSE_PERMS=	no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept

USES=		cpe zip
CPE_VENDOR=	yworks
USE_JAVA=	yes
JAVA_VERSION=	8+

DESKTOP_ENTRIES="yEd" "${COMMENT}" "" "yed" "Graphics;" false

NO_ARCH=	yes
NO_BUILD=	yes

SUB_FILES=	${PORTNAME}
SUB_LIST=	JAVA_HOME=${JAVA_HOME}

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

DOWNLOAD_URL?=	http://www.yworks.com/downloads\#yEd

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE=	you must manually obtain ${DISTNAME}${EXTRACT_SUFX} from\
	'${DOWNLOAD_URL}', place it in ${DISTDIR} and then run make again
.endif

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/license.html ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/thirdpartylicenses.html ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${DATADIR}
	@${MKDIR}  ${STAGEDIR}${DATADIR}/lib
.	for lib in common-image.jar \
		common-io.jar \
		common-lang.jar \
		imageio-bmp.jar \
		imageio-core.jar \
		imageio-hdr.jar \
		imageio-icns.jar \
		imageio-iff.jar \
		imageio-jpeg.jar \
		imageio-metadata.jar \
		imageio-pcx.jar \
		imageio-pict.jar \
		imageio-psd.jar \
		imageio-sgi.jar \
		imageio-tga.jar \
		imageio-thumbsdb.jar \
		imageio-tiff.jar \
		vectorgraphics.jar
		${INSTALL_DATA} ${WRKSRC}/lib/${lib} ${STAGEDIR}${DATADIR}/lib
.	endfor

.include <bsd.port.post.mk>