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