aboutsummaryrefslogtreecommitdiffstats
path: root/java/jlex/Makefile
blob: 5c0ea4f57014bb3d733b56f43776eaff40814664 (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
# New ports collection makefile for:    jlex
# Date created:     1 June 1999
# Whom:         jake@checker.org
#
# $FreeBSD$
#

PORTNAME=   jlex
PORTVERSION=    1.2.6
CATEGORIES= java devel
MASTER_SITES=   http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.6/
DISTNAME=   Main
EXTRACT_SUFX=   .java
EXTRACT_ONLY=   #

MAINTAINER= ports@FreeBSD.org
COMMENT=    A lexical analyzer generator, written for Java, in Java

PLIST_FILES=    %%JAVAJARDIR%%/jlex.jar
USE_JAVA=   1.1+
NEED_JAVAC= yes
NO_WRKSUBDIR=   yes

PKGMESSAGE= ${WRKDIR}/pkg-message

do-extract:
    @${RM} -rf ${WRKDIR}
    @${MKDIR} ${WRKDIR}
    @${CP} ${DISTDIR}/Main.java ${WRKDIR}

do-build:
    @cd ${WRKDIR} && \
        ${JAVAC} -d . Main.java && \
        ${JAR} cf ${PORTNAME}.jar JLex/*.class

do-install:
    @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}
    @${SED} s:%%JAVAJARDIR%%:${JAVAJARDIR}: < ${PKGDIR}/pkg-message \
        > ${PKGMESSAGE}

post-install:
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_MSG}

.include <bsd.port.mk>