aboutsummaryrefslogtreecommitdiffstats
path: root/math/jeuclid/Makefile
blob: 708a1ea96454d4f88d7110078d2d01166c0fcf0e (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
# New ports collection makefile for:    jeuclid
# Date created:             11 February 2010
# Whom:                 rfarmer@predatorlabs.net
#
# $FreeBSD$
#

PORTNAME=   jeuclid
PORTVERSION=    3.1.9
CATEGORIES= math java
MASTER_SITES=   SF/${PORTNAME}/3.1.x/${PORTVERSION}/
EXTRACT_SUFX=   -distribution.zip

MAINTAINER= rfarmer@predatorlabs.net
COMMENT=    Java based MathML rendering solution

USE_JAVA=   yes
JAVA_VERSION=   1.5+
JAVA_RUN=   yes
NO_BUILD=   yes

DATADIR=    ${JAVASHAREDIR}/${PORTNAME}

post-patch:
    ${REINPLACE_CMD} -e 's|BASEDIR=`dirname $$0`/..|BASEDIR=${DATADIR}|g' ${WRKSRC}/bin/foprep
    ${REINPLACE_CMD} -e 's|BASEDIR=`dirname $$0`/..|BASEDIR=${DATADIR}|g' ${WRKSRC}/bin/listfonts
    ${REINPLACE_CMD} -e 's|BASEDIR=`dirname $$0`/..|BASEDIR=${DATADIR}|g' ${WRKSRC}/bin/mathviewer
    ${REINPLACE_CMD} -e 's|BASEDIR=`dirname $$0`/..|BASEDIR=${DATADIR}|g' ${WRKSRC}/bin/mml2xxx

do-install:
    ${MKDIR} ${DATADIR}/repo
    (cd ${WRKSRC}/repo/ && ${COPYTREE_SHARE} \* ${DATADIR}/repo/)
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/foprep ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/listfonts ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/mathviewer ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/mml2xxx ${PREFIX}/bin

.include <bsd.port.mk>