Lines 1-11
Link Here
|
1 |
# Created by: Klaus Aehlig <aehlig@linta.de> |
1 |
# Created by: Klaus Aehlig <aehlig@linta.de> |
2 |
# $FreeBSD: head/devel/bazel/Makefile 430235 2017-01-01 03:45:12Z sunpoet $ |
2 |
# $FreeBSD: head/devel/bazel/Makefile 427983 2016-12-06 19:25:23Z pi $ |
3 |
|
3 |
|
4 |
PORTNAME= bazel |
4 |
PORTNAME= bazel |
5 |
PORTVERSION= 0.4.2r # rc2 of 0.4.2 |
5 |
PORTVERSION= 0.4.4 |
6 |
CATEGORIES= devel java |
6 |
CATEGORIES= devel java |
7 |
MASTER_SITES= https://storage.googleapis.com/bazel/0.4.2/rc2/ |
7 |
MASTER_SITES= https://storage.googleapis.com/bazel/${PORTVERSION}/rc${FINALRC}/ |
8 |
DISTNAME= bazel-0.4.2rc2-dist |
8 |
DISTNAME= bazel-${PORTVERSION}rc${FINALRC}-dist |
9 |
|
9 |
|
10 |
MAINTAINER= aehlig@linta.de |
10 |
MAINTAINER= aehlig@linta.de |
11 |
COMMENT= Fast and correct build system |
11 |
COMMENT= Fast and correct build system |
Lines 16-21
Link Here
|
16 |
BUILD_DEPENDS= bash:shells/bash \ |
16 |
BUILD_DEPENDS= bash:shells/bash \ |
17 |
zip:archivers/zip |
17 |
zip:archivers/zip |
18 |
|
18 |
|
|
|
19 |
# In bazel, a release is always code-wise identical to the final release candidate. |
20 |
# Hence we can also download that one and so have a simple way to also test earlier release |
21 |
# candidates. |
22 |
FINALRC= 1 |
23 |
|
24 |
BROKEN_FreeBSD_9= fails with static_assert expression error in src/main/cpp/util/numbers.cc |
25 |
|
19 |
NO_WRKSUBDIR= YES |
26 |
NO_WRKSUBDIR= YES |
20 |
USES= shebangfix zip |
27 |
USES= shebangfix zip |
21 |
SHEBANG_FILES= ${WRKSRC}/tools/cpp/link_dynamic_library.sh |
28 |
SHEBANG_FILES= ${WRKSRC}/tools/cpp/link_dynamic_library.sh |
Lines 25-40
Link Here
|
25 |
JAVA_BUILD= yes |
32 |
JAVA_BUILD= yes |
26 |
JAVA_RUN= yes |
33 |
JAVA_RUN= yes |
27 |
|
34 |
|
28 |
PLIST_FILES= bin/bazel |
35 |
# Have the location of the system-wide rc file reside ${ETCDIR}. |
|
|
36 |
# Also adapt the sample file to disable persistent java workers as they |
37 |
# do not work reliably on FreeBSD. |
38 |
post-patch: |
39 |
@${REINPLACE_CMD} \ |
40 |
-e "s|\"/etc/bazel.bazelrc\"|\"${ETCDIR}/bazel.bazelrc\"|" \ |
41 |
${WRKSRC}/src/main/cpp/workspace_layout.cc |
42 |
@${ECHO_CMD} build --strategy=Javac=standalone >> ${WRKSRC}/scripts/packages/debian/bazel.bazelrc |
29 |
|
43 |
|
30 |
do-build: |
44 |
do-build: |
31 |
@${MKDIR} ${WRKDIR}/bazel_tmp |
45 |
@${MKDIR} ${WRKDIR}/bazel_tmp |
32 |
(cd ${WRKSRC} && \ |
46 |
(cd ${WRKSRC} && \ |
33 |
${SETENV} BAZEL_SH=${LOCALBASE}/bin/bash \ |
47 |
${SETENV} BAZEL_SH=${LOCALBASE}/bin/bash \ |
34 |
TMPDIR=${WRKDIR}/bazel_tmp \ |
48 |
TMPDIR=${WRKDIR}/bazel_tmp \ |
|
|
49 |
EMBED_LABEL='${PORTVERSION}' \ |
35 |
${LOCALBASE}/bin/bash ./compile.sh) |
50 |
${LOCALBASE}/bin/bash ./compile.sh) |
36 |
|
51 |
|
37 |
do-install: |
52 |
do-install: |
38 |
@${CP} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin |
53 |
${CP} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin |
|
|
54 |
@${MKDIR} ${STAGEDIR}${ETCDIR} |
55 |
${INSTALL_DATA} ${WRKSRC}/scripts/packages/debian/bazel.bazelrc ${STAGEDIR}${ETCDIR}/bazel.bazelrc.sample |
39 |
|
56 |
|
40 |
.include <bsd.port.mk> |
57 |
.include <bsd.port.mk> |