summaryrefslogtreecommitdiffstats
path: root/cad/sweethome3d/Makefile
blob: b11a2816c96ed919d267efb3b556a6bab45f7d10 (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: Matthias Petermann <matthias@petermann-it.de>
# $FreeBSD$

PORTNAME=	sweethome3d
PORTVERSION=	4.1
CATEGORIES=	cad java
MASTER_SITES=	SF/${PORTNAME}/SweetHome3D-source/${DISTNAME}/
DISTNAME=	SweetHome3D-${PORTVERSION}-src

MAINTAINER=	matthias@petermann-it.de
COMMENT=	Free interior design application

LICENSE=	GPLv2

BUILD_DEPENDS=	java3d>=0:${PORTSDIR}/java/java3d
RUN_DEPENDS=	java3d>=0:${PORTSDIR}/java/java3d

USE_ZIP=	yes
USE_ANT=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6+

ALL_TARGET=	jarExecutable
JARNAME=	SweetHome3D-${PORTVERSION}.jar

SUB_FILES=	sweethome3d.sh
SUB_LIST=	JARNAME=${JARNAME}

PLIST_FILES=	bin/sweethome3d \
		%%JAVAJARDIR%%/${JARNAME} \
		share/pixmaps/sweethome3d-icon.png

DESKTOP_ENTRIES="Sweet Home 3D" "" "${PORTNAME}-icon" "${PORTNAME}" "" false

NO_STAGE=	yes
do-install:
	${INSTALL_DATA} ${WRKSRC}/install/${JARNAME} ${JAVAJARDIR}/${JARNAME}
	${INSTALL_SCRIPT} ${WRKDIR}/sweethome3d.sh ${PREFIX}/bin/sweethome3d
	${INSTALL_DATA} ${WRKSRC}/deploy/SweetHome3DIcon32x32.png \
		${PREFIX}/share/pixmaps/sweethome3d-icon.png

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