[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / cfr

File: [cvs.NetBSD.org] / pkgsrc / devel / cfr / Makefile (download)

Revision 1.2, Sun Jan 26 17:30:56 2020 UTC (2 months ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines

all: migrate homepages from http to https

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.

# $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"