aboutsummaryrefslogtreecommitdiffstats
path: root/net/tn5250j/Makefile
blob: e60c8eda1389b48b8f91f0211296e3d38da9b66f (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
62
# Created by: Marcin Cieslak <saper@SYSTEM.PL>
# $FreeBSD$

PORTNAME=   tn5250j
PORTVERSION=    0.6.0
PORTREVISION=   3
CATEGORIES= net java
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= saper@saper.info
COMMENT=    5250 terminal emulator for the AS/400 written in Java

BUILD_DEPENDS=  ${JAVAJARDIR}/mail.jar:java/javamail \
        ${JYTHON_JAR}:lang/jython \
        ${JAVAJARDIR}/jt400.jar:sysutils/jtopen \
        ${JAVAJARDIR}/itext.jar:devel/itext \
        ${JAVAJARDIR}/log4j.jar:devel/log4j
RUN_DEPENDS=    ${JAVAJARDIR}/mail.jar:java/javamail \
        ${JYTHON_JAR}:lang/jython \
        ${JAVAJARDIR}/jt400.jar:sysutils/jtopen \
        ${JAVAJARDIR}/itext.jar:devel/itext \
        ${JAVAJARDIR}/log4j.jar:devel/log4j

USES=       dos2unix zip
USE_ANT=    yes
USE_JAVA=   1.3+
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DOS2UNIX_FILES= build.xml

ALL_TARGET= package
MAKE_ENV+=  CLASSPATH=${JYTHON_PREFIX}
MAKE_ARGS+= -Dlib.dir=${JAVALIBDIR}

JYTHON_PREFIX=  ${LOCALBASE}/lib/jython
JYTHON_JAR= ${JYTHON_PREFIX}/jython.jar

DOC_FILES=  CHANGELOG.txt applet.txt filetransfers.txt readme.txt antbuild.txt\
         e-mail.txt macros.txt scripting.txt

SUB_FILES=  tn5250j
SUB_LIST=   JYTHON_JAR=${JYTHON_JAR}

OPTIONS_DEFINE= DOCS

.include <bsd.port.pre.mk>
 
.if ${JAVA_PORT_VERSION:M1.8.*}
BROKEN=     Does not build with JDK 1.8
.endif

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/tn5250j ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/build/tn5250j.jar ${STAGEDIR}${JAVAJARDIR}

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for d in ${DOC_FILES}
    ${INSTALL_MAN} ${WRKSRC}/src/${d} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.post.mk>