summaryrefslogtreecommitdiffstats
path: root/graphics/jdraw/Makefile
blob: c4d10121bcba7c2b60b6d52ea45f10a5fd9fca4a (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
# Created by: Nicola Vitale	<nivit@email.it>
# $FreeBSD$

PORTNAME=	jdraw
PORTVERSION=	1.1.5
PORTREVISION=	2
CATEGORIES=	graphics java
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
DISTNAME=	${PORTNAME}_v${PORTVERSION}
EXTRACT_SUFX=	.jar
EXTRACT_ONLY=

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	Pixel oriented graphics editor

NO_BUILD=	yes
USE_JAVA=	yes

OPTIONS_DEFINE=		PLASTIC3D
OPTIONS_DEFAULT=	PLASTIC3D
PLASTIC3D_DESC=		Use Plastic3DLook&Feel

DATADIR=	${JAVASHAREDIR}/${PORTNAME}
SUB_FILES=	${PORTNAME}
SUB_LIST=	JAVA_VERSION=${JAVA_VERSION} JDRAWJAR=${JDRAWJAR} PLASTIC3D=${PLASTIC3D}

JDRAWJAR=	${DATADIR}/${DISTFILES}

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPLASTIC3D}
PLASTIC3D=	"-Dlf=\"com.jgoodies.looks.plastic.Plastic3DLookAndFeel\""
RUN_DEPENDS+=	${JAVAJARDIR}/looks.jar:${PORTSDIR}/devel/looks
.endif
JAVA_VERSION=	1.6+

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