mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
18 lines
637 B
Text
18 lines
637 B
Text
startup --output_user_root="%%BAZEL_DIR%%/.cache/"
|
|
|
|
# make bazel only fetch distfiles from the cache
|
|
fetch --repository_cache="%%BAZEL_DIR%%/bazel-cache/" --distdir="%%BAZEL_DIST%%/bazel-dist/"
|
|
build --repository_cache="%%BAZEL_DIR%%/bazel-cache/" --distdir="%%BAZEL_DIST%%/bazel-dist/"
|
|
|
|
build --define=PREFIX=%%LOCALBASE%%
|
|
build --define=LIBDIR=%%LOCALBASE%%/lib
|
|
build --define=INCLUDEDIR=%%LOCALBASE%%/include
|
|
build --define=PROTOBUF_INCLUDE_PATH=%%LOCALBASE%%/include
|
|
|
|
build --extra_toolchains=//freebsd:cc-toolchain-freebsd
|
|
|
|
# for python
|
|
build --action_env=PATH=%%PATH%%
|
|
build --host_action_env=PATH=%%PATH%%
|
|
|
|
build --config=freebsd
|