aboutsummaryrefslogtreecommitdiffstats
path: root/java/netrexx/Makefile
blob: 4318895f15cc5e3ba44c9e0790f4ddcafa63c498 (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
# New ports collection makefile for:    NetRexx
# Date created:     Feb 8, 1999
# Whom:         Pedro Giffuni
#
# $FreeBSD$
#

PORTNAME=   NetRexx
PORTVERSION=    2.05
PORTREVISION=   1
CATEGORIES= java lang
MASTER_SITES=   ftp://ftp.software.ibm.com/software/awdtools/netrexx/
DISTNAME=   NetRexx

MAINTAINER= ports@FreeBSD.org
COMMENT=    Human-oriented programming language for writing/using Java classes

NO_BUILD=   yes
USE_ZIP=    yes
USE_JAVA=   yes

.include <bsd.port.pre.mk>

pre-patch:
    for file in ${WRKSRC}/bin/NetRexxC.sh ${WRKSRC}/read.me.first; do \
        ${TR} -d '\015' < $${file} > $${file}.new; \
        ${MV} $${file}.new $${file}; \
    done

post-patch:
    ${REINPLACE_CMD} -e 's,%%JAVA_HOME%%,${JAVA_HOME},' \
                     -e 's,%%JAVAJARDIR%%,${JAVAJARDIR},' \
                     ${WRKSRC}/bin/NetRexxC.sh

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.sh ${PREFIX}/bin
    @${LN} -sf ${PREFIX}/bin/NetRexxC.sh ${PREFIX}/bin/nrc

    @${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${JAVAJARDIR}
    @${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${JAVAJARDIR}

.if !defined(NOPORTDOCS)
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/bin/hello.nrx \
        ${EXAMPLESDIR}
    @cd ${WRKSRC}/browse && \
        ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
    @cd ${WRKSRC}/browse && \
        ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif

post-install:
    @${ECHO} "====================  IBM LICENSE  ===================="
    @${CAT} ${WRKSRC}/browse/license.txt
    @${ECHO} "-------------------------------------------------------"
    @${ECHO} "====================  IMPORTANT!!  ===================="
    @${CAT} ${WRKSRC}/read.me.first

.include <bsd.port.post.mk>