aboutsummaryrefslogtreecommitdiffstats
path: root/java/shujit/Makefile
blob: a0869253d3cca4d3380d8910fe49cfc3aa520566 (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
# New ports collection makefile for:    shujit
# Date created:     30 April 1999
# Whom:         jake@checker.org
#
# $FreeBSD$
#

PORTNAME=   shujit
PORTVERSION=    0.7.14
CATEGORIES= java
MASTER_SITES=   http://www.shudo.net/jit/dist/

MAINTAINER= sobomax@FreeBSD.org
COMMENT=    A Just In Time java bytecode compiler

LIB_DEPENDS=    gdbm:${PORTSDIR}/databases/gdbm

WRKSRC=     ${WRKDIR}/${PORTNAME}
ONLY_FOR_ARCHS= i386

USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
MAKEFILE=   GNUmakefile

USE_RUBY=   yes
RUBY_NO_RUN_DEPENDS=    yes

USE_JAVA=   1.1+
CONFIGURE_ARGS= --with-jdk="${JAVA_HOME}"
MAKE_ENV=   JAVADIR="${JAVA_HOME}"

post-configure:
    @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/README

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/libshujit.so ${PREFIX}/lib

post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    @${ENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>