1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/java/jode/Makefile
Mikhail Teterin da0cac05ab Update to 1.1.2-pre1 released in February 2004. Some serious
REINPLACE-ing was required to turn all variables named `enum' into
`enumeration', because `enum' is a keyword in Java-1.5

The program seems to work now and builds with Java-1.5 (and, presumably,
earlier).

The portversion is set to 1.1.1.1 in anticipation of the eventual
release of 1.1.2 by the vendor.
2005-07-07 18:38:19 +00:00

56 lines
1.5 KiB
Makefile

# New ports collection makefile for: jode-regexp
# Date created: June 24th 2003
# Whom: mi
#
# $FreeBSD$
PORTNAME= jode
PORTVERSION= 1.1.1.1
CATEGORIES= java devel
DISTNAME= ${PORTNAME}-${VENDOR_VERSION}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}
MAINTAINER= mi@aldan.algebra.com
COMMENT= A java package containing a decompiler and an optimizer for java
BUILD_DEPENDS= ${GETOPT_JAR}:${PORTSDIR}/java/java-getopt
RUN_DEPENDS= ${BUILD_DEPENDS}
VENDOR_VERSION= 1.1.2-pre1
USE_JAVA= 1.2+
NEED_JAVAC= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
GETOPT_JAR= ${JAVAJARDIR}/getopt.jar
CLASSLIB= ${JAVA_CLASSES}:${GETOPT_JAR}
CONFIGURE_ENV+= CLASSLIB=${CLASSLIB} JAR="${JAR}" \
JAVA="${JAVA}" JAVAC="${JAVAC}"
CONFIGURE_ARGS+=--datadir="${JAVAJARDIR}"
# Don't create the dependencies:
MAKE_ARGS+= JAVADEP=:
PLIST_SUB+= VERSION=${VENDOR_VERSION}
post-patch:
${FIND} ${WRKSRC} -name '*.java*' | \
${XARGS} ${GREP} --mmap -l 'Enumeration enum ' | \
${XARGS} ${REINPLACE_CMD} -E \
-e 's,enum([ \.]),enumeration\1,g'
post-build:
cd ${WRKSRC} && ${JAR} cvf ${PORTNAME}-${VENDOR_VERSION}.jar \
`${FIND} jode -name \*.class`
post-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${VENDOR_VERSION}.jar \
${JAVAJARDIR}/
# Documentation HTML seems broken and out of date. Don't bother
#.ifndef (NOPORTDOCS)
# ${MKDIR} ${DOCSDIR}
# ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.gif ${DOCSDIR}/
#.endif
.include <bsd.port.mk>