aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/aoi/Makefile
blob: a1533128922f6c422e17ee920ae900e44ffd8554 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   aoi
PORTVERSION=    2.9.2
PORTREVISION=   1
CATEGORIES= graphics java
MASTER_SITES=   SF/${PORTNAME}/ArtOfIllusion/${PORTVERSION}
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//g}
DIST_SUBDIR=    java

MAINTAINER= nemysis@gmx.ch
COMMENT=    Open source Java written 3D modelling and rendering studio

LICENSE=    GPLv2

RUN_DEPENDS=    java:${PORTSDIR}/java/javavmwrapper

USE_ZIP=    yes
EXTRACT_BEFORE_ARGS=    -a -q
USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/ArtOfIllusion${PORTVERSION:S/.//g}

PORTDOCS=   HISTORY README
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}

SUB_FILES=  ${PORTNAME} \
        pkg-message

DESKTOP_ENTRIES="Art of Illusion" "3D modelling and rendering studio" \
        "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
        "${PORTNAME}" "Graphics;3DGraphics;" false

NO_STAGE=   yes
.include <bsd.port.options.mk>

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
.for d in Icons Plugins Scripts lib *.jar
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
.endfor
    @(cd ${WRKSRC} && ${CP} -r "Textures and Materials" ${DATADIR})

post-install:
# Fix Permission that user can write in Plugins and Scripts
    @(cd ${DATADIR} && ${CHMOD} -R 774 Plugins Scripts)
    ${LN} -sf ${DATADIR}/Icons/48x48.png ${PREFIX}/share/pixmaps/${PORTNAME}.png

.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

    @${ECHO_CMD}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD}

.include <bsd.port.mk>