Index: science/tensorflow-core/Makefile =================================================================== --- /dev/null +++ science/tensorflow-core/Makefile @@ -0,0 +1,63 @@ +# $FreeBSD$ + +PORTNAME= tensorflow +DISTVERSIONPREFIX= v +DISTVERSION= 1.11.0 +CATEGORIES= science + +MAINTAINER= arrowd@FreeBSD.org +COMMENT= Computation using data flow graphs for scalable machine learning + +LICENSE= APACHE20 + +FETCH_DEPENDS= bazel:devel/bazel \ + python:lang/python +BUILD_DEPENDS= bazel:devel/bazel + +HAS_CONFIGURE= yes +CONFIGURE_ENV= PYTHON_BIN_PATH=${PYTHON_CMD} \ + USE_DEFAULT_PYTHON_LIB_PATH=1 \ + TF_NEED_S3=0 \ + TF_NEED_JEMALLOC=0 \ + TF_NEED_GCP=0 \ + TF_NEED_HDFS=0 \ + TF_NEED_KAFKA=0 \ + TF_ENABLE_XLA=0 \ + TF_NEED_GDR=0 \ + TF_NEED_VERBS=0 \ + TF_NEED_OPENCL_SYCL=0 \ + TF_NEED_CUDA=0 \ + TF_DOWNLOAD_CLANG=0 \ + TF_NEED_MPI=0 \ + TF_SET_ANDROID_WORKSPACE=0 \ + CC_OPT_FLAGS="${CFLAGS}" + +USES= python shebangfix + +USE_GITHUB= yes + +#SHEBANG_GLOB= *.py + +PLIST_SUB= TF_PORT_VERSION=${PORTVERSION} + +.include + +BAZEL_TARGET?= //tensorflow:libtensorflow.so + +post-fetch: + @make do-extract + cd ${WRKSRC} && \ + bazel fetch --repository_cache=${WRKDIR}/bazel_cache ${BAZEL_TARGET} + @make do-clean + +do-build: + cd ${WRKSRC} && bazel info && \ + bazel build --config=opt ${BAZEL_EXTRA_ARGS} ${BAZEL_TARGET} + +do-install: + +pre-clean: + cd ${WRKSRC} && \ + bazel clean --repository_cache=${WRKDIR}/bazel_cache + +.include Index: science/tensorflow-core/distinfo =================================================================== --- /dev/null +++ science/tensorflow-core/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1538467773 +SHA256 (tensorflow-tensorflow-v1.11.0_GH0.tar.gz) = f49ce3f1d04cee854bc9f74fa9696991140b34a2e2447f35f01391b72c8bfa9f +SIZE (tensorflow-tensorflow-v1.11.0_GH0.tar.gz) = 25024790 Index: science/tensorflow-core/pkg-descr =================================================================== --- /dev/null +++ science/tensorflow-core/pkg-descr @@ -0,0 +1,12 @@ +TensorFlow is an open source software library for numerical computation using +data flow graphs. Nodes in the graph represent mathematical operations, while +the graph edges represent the multidimensional data arrays (tensors) +communicated between them. The flexible architecture allows you to deploy +computation to one or more CPUs or GPUs in a desktop, server, or mobile device +with a single API. TensorFlow was originally developed by researchers and +engineers working on the Google Brain Team within Google's Machine Intelligence +research organization for the purposes of conducting machine learning and deep +neural networks research, but the system is general enough to be applicable in +a wide variety of other domains as well. + +WWW: https://www.tensorflow.org