blob: 97b1ffd514b9bb32fda59cb8ebaaf5ba54404f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Note to committers:
# With each version update, a new maven repository must be created
# and distributed so build is repeatable and cluster-safe.
PORTNAME= snappy
PORTVERSION= 1.1.7.5
CATEGORIES= archivers java
MASTER_SITES= LOCAL/pi:repo
PKGNAMESUFFIX= java
DISTFILES+= ${PORTNAME}-${PKGNAMESUFFIX}-repository-${PORTVERSION}${EXTRACT_SUFX}:repo
EXTRACT_ONLY= ${DISTFILE_DEFAULT} \
${PORTNAME}-${PKGNAMESUFFIX}-repository-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= language.devel@gmail.com
COMMENT= Fast compressor/decompressor library
WWW= https://github.com/xerial/snappy-java
LICENSE= APACHE20
BROKEN_armv6= fails to build: maven-assembly-plugin: Failed to retrieve numeric file attributes
BROKEN_armv7= fails to build: maven-assembly-plugin: Failed to retrieve numeric file attributes
BUILD_DEPENDS= cmake:devel/cmake \
sbt:devel/sbt
USES= gmake
USE_JAVA= yes
USE_LDCONFIG= yes
MAKE_ARGS+= CXX="${CXX}"
TEST_TARGET= test
BITSHUFFLE_V= 0.3.2
USE_GITHUB= yes
GH_ACCOUNT= xerial \
google:google \
kiyo-masui:masui
GH_PROJECT= snappy-java \
snappy:google \
bitshuffle:masui
GH_TAGNAME= ${PORTVERSION} \
${PORTVERSION:R}:google \
${BITSHUFFLE_V}:masui
PLIST_FILES= ${JAVAJARDIR}/snappy-java.jar lib/libsnappyjava.so
post-extract:
@${MKDIR} ${WRKSRC}/target
@${RM} ${WRKSRC}/sbt
@${CP} ${DISTDIR}/${DISTFILE_google} ${WRKSRC}/target/snappy-${PORTVERSION:R}${EXTRACT_SUFX}
@${CP} ${DISTDIR}/${DISTFILE_masui} ${WRKSRC}/target/bitshuffle-${BITSHUFFLE_V}${EXTRACT_SUFX}
do-build:
cd ${WRKSRC} && ${SETENV} JAVA_HOME=${JAVA_HOME} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_ARGS} SBT_IVY_HOME=${WRKDIR}/repository SBT_BOOT_DIR=${WRKDIR}/sbt_boot SBT_GLOBAL_DIR=${WRKDIR}/sbt_global
do-test:
cd ${WRKSRC} && ${SETENV} JAVA_HOME=${JAVA_HOME} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_ARGS} SBT_IVY_HOME=${WRKDIR}/repository SBT_BOOT_DIR=${WRKDIR}/sbt_boot SBT_GLOBAL_DIR=${WRKDIR}/sbt_global test
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
. if ${ARCH} == amd64
PLATFORM_DIR_SUFFIX= FreeBSD-x86_64
. elif ${ARCH} == i386
PLATFORM_DIR_SUFFIX= FreeBSD-x86
. elif ${ARCH} == aarch64
PLATFORM_DIR_SUFFIX= FreeBSD-aarch64
. elif ${ARCH} == powerpc64
PLATFORM_DIR_SUFFIX= FreeBSD-ppc64
. elif ${ARCH} == powerpc64le
PLATFORM_DIR_SUFFIX= FreeBSD-ppc64le
. else
PLATFORM_DIR_SUFFIX= Default
. endif
.else
PLATFORM_DIR_SUFFIX= Default
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/target/snappy-java-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}/snappy-java.jar
${INSTALL_LIB} ${WRKSRC}/target/snappy-${PORTVERSION:R}-${PLATFORM_DIR_SUFFIX}/libsnappyjava.so \
${STAGEDIR}${LOCALBASE}/lib
.include <bsd.port.post.mk>
|