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

File: [cvs.NetBSD.org] / pkgsrc / devel / snappy-java10 / Makefile (download)

Revision 1.6, Sun Jul 30 22:32:18 2017 UTC (6 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3
Changes since 1.5: +2 -2 lines

Switch github HOMEPAGEs to https.

# $NetBSD: Makefile,v 1.6 2017/07/30 22:32:18 wiz Exp $

DISTNAME=	snappy-java-${SNAPPYVER}
PKGNAME=	${DISTNAME:S/java/java10/}
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=xerial/}

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	https://github.com/xerial/snappy-java/
COMMENT=	Snappy compressor/decompressor for Java
LICENSE=	apache-2.0

GITHUB_PROJECT=	snappy-java
SNAPPYVER=	1.0.5

DIST_SUBDIR=	${PKGBASE}
DISTFILES=	${DEFAULT_DISTFILES}
DISTFILES+=	snappy-java-${SNAPPYVER}-deps.tar.gz
DISTFILES+=	snappy-${SNAPPYVER}.tar.gz
SITES.snappy-${SNAPPYVER}.tar.gz=		https://snappy.googlecode.com/files/
SITES.snappy-java-${SNAPPYVER}-deps.tar.gz=	ftp://ftp.NetBSD.org/pub/NetBSD/misc/fhajny/
EXTRACT_DIR.snappy-${SNAPPYVER}.tar.gz=		${WRKSRC}/target

TOOL_DEPENDS+=	apache-maven-[0-9]*:../../devel/apache-maven

USE_LANGUAGES=	c++
USE_TOOLS+=	gmake
USE_JAVA=	yes
USE_JAVA2=	6

MAVEN_FLAGS+=	-Duser.home=${FAKEHOMEDIR}
MAVEN_FLAGS+=	-Dmaven.repo.local=${WRKDIR}/deps
MAVEN_FLAGS+=	--offline

MAKE_FLAGS+=	JAVA_HOME=${PKG_JAVA_HOME}
MAKE_FLAGS+=	MVN="mvn ${MAVEN_FLAGS}"
MAKE_JOBS_SAFE=	no

INSTALLATION_DIRS+=	lib/java/snappy-java

post-extract:
	${TOUCH} ${WRKSRC}/target/snappy-extracted.log

do-install:
	${INSTALL_DATA} ${WRKSRC}/target/snappy-java-${SNAPPYVER}.jar \
		${DESTDIR}${PREFIX}/lib/java/snappy-java

.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"