9637f7852e
pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
40 lines
1,018 B
Makefile
40 lines
1,018 B
Makefile
# $NetBSD: Makefile,v 1.2 2020/01/26 17:30:56 rillig Exp $
|
|
|
|
DISTNAME= cfr_0_125
|
|
PKGNAME= ${DISTNAME:S/_/-/:S/_/./g}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.benf.org/other/cfr/
|
|
EXTRACT_SUFX= .jar
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.benf.org/other/cfr/
|
|
COMMENT= Another java decompiler
|
|
LICENSE= mit
|
|
|
|
NO_CONFIGURE= yes
|
|
USE_JAVA= run
|
|
USE_JAVA2= 6
|
|
WRKSRC= ${WRKDIR}
|
|
EXTRACT_CMD= ${CP} -f "$$extract_file" "${WRKSRC}"
|
|
|
|
LIBDIR= lib/java/cfr
|
|
INSTALLATION_DIRS= bin ${LIBDIR}
|
|
|
|
# CFR tends to consume a huge amount of memory:
|
|
# -Xmx<size> maximum Java heap size
|
|
JVM_ARGS= -Xmx4G
|
|
|
|
do-build:
|
|
${PRINTF} '#!%s\nexec "%s" %s -jar "%s" "$$@"\n' \
|
|
"${SH}" \
|
|
"${JAVA_BINPREFIX}-java" \
|
|
"${JVM_ARGS}" \
|
|
"${PREFIX}/${LIBDIR}/${DISTNAME}${EXTRACT_SUFX}" \
|
|
> "${WRKSRC}/cfr"
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} "${WRKSRC}/cfr" "${DESTDIR}${PREFIX}/bin"
|
|
${INSTALL_DATA} "${WRKSRC}/${DISTNAME}${EXTRACT_SUFX}" "${DESTDIR}${PREFIX}/${LIBDIR}"
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|