aboutsummaryrefslogtreecommitdiffstats
path: root/biology/figtree/Makefile
blob: b13dc923a9a1c193bf90886a4d7a78e8b3943163 (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
# $FreeBSD$

PORTNAME=   figtree
DISTVERSIONPREFIX=  v
DISTVERSION=    1.4.4
CATEGORIES= biology java

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Graphical viewer of phylogenetic trees

LICENSE=    GPLv2

USE_JAVA=   yes
USE_ANT=    yes
USE_GITHUB= yes
GH_ACCOUNT= rambaut

NO_ARCH=    yes

DESKTOP_ENTRIES="FigTree" "Phylogenetic tree viewer" "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \
        "Biology;Science;Education;" true

PLIST_FILES=    bin/${PORTNAME} \
        ${JAVAJARDIR}/${PORTNAME}-pdf.jar \
        ${JAVAJARDIR}/${PORTNAME}.jar \
        ${JAVAJARDIR}/figtreepanel.jar \
        share/pixmaps/${PORTNAME}.png \

do-install:
    @(echo "#!/bin/sh"; \
      echo ""; \
      echo ${JAVA} -jar ${JAVAJARDIR}/${PORTNAME}.jar \
    ) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    @${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/dist/*.jar ${STAGEDIR}${JAVAJARDIR}
    ${INSTALL_DATA} ${WRKSRC}/release/Linux/icons/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png

.include <bsd.port.mk>