1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/lang/linux-j/Makefile
Baptiste Daroussin 7c354b1913 Decommissioning java 1.5 (EOLed since October 2009):
suppress any reference to JAVA_VERSION=	1.5+ (part2)
2012-12-10 13:18:28 +00:00

51 lines
1.3 KiB
Makefile

# Created by: js@jeannot.org
# $FreeBSD$
PORTNAME= j
PORTVERSION= 504b
PORTREVISION= 2
CATEGORIES= lang linux java
MASTER_SITES= http://www.jsoftware.com/download/
PKGNAMEPREFIX= linux-
DISTNAME= j${PORTVERSION}_linux32
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A general purpose programming language
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
USE_LINUX= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
ONLY_FOR_ARCHS= i386
NO_WRKSUBDIR= yes
NO_BUILD= yes
MAN1= j-jconsole.1
SUB_FILES= j-jconsole.sh jw.sh
SUB_LIST= PORTVERSION=${PORTVERSION:S/b//g}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/j-jconsole.sh ${PREFIX}/bin/j-jconsole
${INSTALL_SCRIPT} ${WRKSRC}/jw.sh ${PREFIX}/bin/jw
${INSTALL_MAN} ${WRKSRC}/j${PORTVERSION:S/b//g}/system/extras/help/man/jconsole.1 ${PREFIX}/man/man1/${MAN1}
@${MKDIR} ${PREFIX}/lib/j
cd ${WRKSRC}/j${PORTVERSION:S/b//g} && \
${TAR} -cf - system user profile.ijs j.jar | \
${TAR} -xf - -C ${PREFIX}/lib/j
@${FIND} ${PREFIX}/lib/j/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
@${FIND} ${PREFIX}/lib/j/ -type f -exec ${CHOWN} ${SHAREOWN} {} \;
${INSTALL_PROGRAM} ${WRKSRC}/j${PORTVERSION:S/b//g}/jconsole ${PREFIX}/lib/j/jconsole
${BRANDELF} -t Linux ${PREFIX}/lib/j/jconsole
post-install:
.if !defined(BATCH)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>