aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/jing/Makefile
blob: f8be3ca9df5381dc6fdeb9cf136e1c8da0f85412 (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
# New ports collection makefile for:   jing
# Date created:                3 February 2002
# Whom:                        Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#

PORTNAME=   jing
PORTVERSION=    2002.02.13
CATEGORIES= textproc
MASTER_SITES=   http://www.thaiopensource.com/relaxng/
DISTNAME=   ${PORTNAME}
DISTFILES=  ${JAR} jing.html copying.txt
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=

MAINTAINER= fuyuki@mj.0038.net

JAXP?=      crimson # or xalan, saxon

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

.if ${JAXP} == "xalan"
RUN_DEPENDS+=   ${LOCALBASE}/xalan-j2.1.0/bin/${JAXP}.jar:${PORTSDIR}/java/xalan-j
.else
RUN_DEPENDS+=   ${LOCALBASE}/share/java/classes/${JAXP}.jar:${PORTSDIR}/textproc/${JAXP}
.endif

NO_BUILD=   yes

JAR=        ${DISTNAME}.jar
JAVALIBDIR= ${PREFIX}/share/java/classes

do-install:
    ${MKDIR} ${JAVALIBDIR}
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${JAR} ${JAVALIBDIR}

post-install:
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.html ${DOCSDIR}
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*.txt ${DOCSDIR}

.include <bsd.port.mk>