View | Details | Raw Unified | Return to bug 217428 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/caffe/Makefile (+67 lines)
Line 0 Link Here
1
# $FreeBSD: head/graphics/caffe/Makefile$
2
3
PORTNAME=	caffe
4
PORTVERSION=	1.0.0.r4
5
DISTVERSION=	rc4
6
CATEGORIES=	graphics
7
8
MAINTAINER=	ports@FreeBSD.org
9
COMMENT=	Caffe: a fast open framework for deep learning.
10
11
LICENSE=	BSD2CLAUSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
BUILD_DEPENDS=	${PYNUMPY} \
15
	${LOCALBASE}/bin/cython:lang/cython \
16
  ${LOCALBASE}/include/cblas.h:math/cblas \
17
	bash:shells/bash
18
LIB_DEPENDS=	\
19
	libopenblas.so:math/openblas \
20
	libboost_system.so:devel/boost-libs \
21
	libprotobuf.so:devel/protobuf \
22
	libglog.so:devel/glog \
23
	libgflags.so:devel/gflags \
24
	libhdf5.so:science/hdf5 \
25
	libopencv_highgui.so:graphics/opencv2 \
26
	liblmdb.so:databases/lmdb \
27
	libleveldb.so:databases/leveldb \
28
	libboost_python.so:devel/boost-python-libs
29
RUN_DEPENDS=	${PYNUMPY} \
30
	${PYTHON_PKGNAMEPREFIX}protobuf>=2.5.0:devel/py-protobuf \
31
	${PYTHON_PKGNAMEPREFIX}skimage>=0.12:graphics/py-skimage \
32
  ${PYTHON_PKGNAMEPREFIX}pillow>=1.7:graphics/py-pillow \
33
  ${PYTHON_PKGNAMEPREFIX}networkx>=1.8:math/py-networkx \
34
  ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.1:math/py-matplotlib \
35
  ${PYTHON_PKGNAMEPREFIX}PyWavelets>=0.4:math/py-PyWavelets
36
37
USE_LDCONFIG=	yes
38
USES=		gmake python fortran compiler:c++11-lib pkgconfig
39
40
CXXFLAGS+=	-DGTEST_USE_OWN_TR1_TUPLE=1
41
LDFLAGS+=	-DGTEST_USE_OWN_TR1_TUPLE=1
42
LDFLAGS+=	-lboost_thread
43
MAKE_ARGS+=	DISTRIBUTE_DIR=${STAGEDIR}${PREFIX}
44
ALL_TARGET=	all py
45
INSTALL_TARGET=	dist
46
TEST_TARGET=	runtest
47
PLIST_SUB=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} DATADIR=${DATADIR}
48
49
GH_ACCOUNT=	BVLC
50
USE_GITHUB=	yes
51
52
post-extract:
53
	@${CP} -v ${.CURDIR}/files/Makefile.config ${WRKSRC}/
54
post-patch:
55
	@${REINPLACE_CMD} \
56
  	-e "s|%%CXX%%|clang++|g" \
57
  	-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
58
  	-e "s|%%DATADIR%%|${DATADIR}|g" \
59
  	-e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" \
60
  	-e "s|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|g" \
61
  	-e "s|%%STAGEDIR%%|${STAGEDIR}|g" \
62
    ${WRKSRC}/Makefile.config ${WRKSRC}/Makefile
63
pre-install:
64
	@${MKDIR} ${STAGEDIR}${DATADIR}
65
	@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
66
67
.include <bsd.port.mk>
(-)graphics/caffe/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1485817615
2
SHA256 (BVLC-caffe-rc4_GH0.tar.gz) = 018792411d75ee34b6107216550cca2a1d668d45cb366033ba3c647e6a3018df
3
SIZE (BVLC-caffe-rc4_GH0.tar.gz) = 8505551
(-)graphics/caffe/files/Makefile.config (+9 lines)
Line 0 Link Here
1
# %%PYTHON_LIBDIR%%
2
CUSTOM_CXX := %%CXX%%
3
CPU_ONLY := 1
4
BLAS := open
5
PYTHON_INCLUDE := %%PYTHON_INCLUDEDIR%% %%PYTHON_SITELIBDIR%%/numpy/core/include
6
PYTHON_LIB := %%LOCALBASE%%/lib
7
INCLUDE_DIRS := $(PYTHON_INCLUDE) %%LOCALBASE%%/include
8
LIBRARY_DIRS := $(PYTHON_LIB) %%LOCALBASE%%/lib /usr/lib
9
USE_PKG_CONFIG := 1
(-)graphics/caffe/files/patch-Makefile (+19 lines)
Line 0 Link Here
1
--- Makefile.orig	2017-01-19 16:10:51.000000000 -0800
2
+++ Makefile	2017-01-30 17:41:55.606929000 -0800
3
@@ -681,7 +681,7 @@ $(DIST_ALIASES): $(DISTRIBUTE_DIR)
4
5
 $(DISTRIBUTE_DIR): all py | $(DISTRIBUTE_SUBDIRS)
6
 	# add proto
7
-	cp -r src/caffe/proto $(DISTRIBUTE_DIR)/
8
+	cp -r src/caffe/proto %%STAGEDIR%%%%DATADIR%%/
9
 	# add include
10
 	cp -r include $(DISTRIBUTE_DIR)/
11
 	mkdir -p $(DISTRIBUTE_DIR)/include/caffe/proto
12
@@ -694,6 +694,6 @@ $(DISTRIBUTE_DIR): all py | $(DISTRIBUTE
13
 	install -m 644 $(DYNAMIC_NAME) $(DISTRIBUTE_DIR)/lib
14
 	cd $(DISTRIBUTE_DIR)/lib; rm -f $(DYNAMIC_NAME_SHORT);   ln -s $(DYNAMIC_VERSIONED_NAME_SHORT) $(DYNAMIC_NAME_SHORT)
15
 	# add python - it's not the standard way, indeed...
16
-	cp -r python $(DISTRIBUTE_DIR)/python
17
+	cp -r python/caffe %%STAGEDIR%%%%PYTHON_SITELIBDIR%%/
18
19
 -include $(DEPS)
(-)graphics/caffe/pkg-descr (+6 lines)
Line 0 Link Here
1
Caffe is a deep learning framework made with expression, speed, and modularity
2
in mind. It is developed by the Berkeley Vision and Learning Center (BVLC) and
3
by community contributors. Yangqing Jia created the project during his PhD at
4
UC Berkeley. Caffe is released under the BSD 2-Clause license.
5
6
WWW: http://caffe.berkeleyvision.org/
(-)graphics/caffe/pkg-plist (+150 lines)
Line 0 Link Here
1
bin/device_query.bin
2
bin/convert_mnist_siamese_data.bin
3
bin/caffe.bin
4
bin/convert_cifar_data.bin
5
bin/net_speed_benchmark.bin
6
bin/test_net.bin
7
bin/convert_imageset.bin
8
bin/train_net.bin
9
bin/upgrade_net_proto_text.bin
10
bin/upgrade_solver_proto_text.bin
11
bin/finetune_net.bin
12
bin/classification.bin
13
bin/compute_image_mean.bin
14
bin/convert_mnist_data.bin
15
bin/upgrade_net_proto_binary.bin
16
bin/extract_features.bin
17
lib/libcaffe.a
18
lib/libcaffe.so.1.0.0-rc3
19
lib/libcaffe.so
20
include/caffe/blob.hpp
21
include/caffe/layer.hpp
22
include/caffe/util/rng.hpp
23
include/caffe/util/blocking_queue.hpp
24
include/caffe/util/hdf5.hpp
25
include/caffe/util/cudnn.hpp
26
include/caffe/util/io.hpp
27
include/caffe/util/upgrade_proto.hpp
28
include/caffe/util/benchmark.hpp
29
include/caffe/util/nccl.hpp
30
include/caffe/util/signal_handler.h
31
include/caffe/util/gpu_util.cuh
32
include/caffe/util/format.hpp
33
include/caffe/util/mkl_alternate.hpp
34
include/caffe/util/db_leveldb.hpp
35
include/caffe/util/math_functions.hpp
36
include/caffe/util/insert_splits.hpp
37
include/caffe/util/db.hpp
38
include/caffe/util/db_lmdb.hpp
39
include/caffe/util/device_alternate.hpp
40
include/caffe/util/im2col.hpp
41
include/caffe/layers/softmax_layer.hpp
42
include/caffe/layers/cudnn_sigmoid_layer.hpp
43
include/caffe/layers/crop_layer.hpp
44
include/caffe/layers/cudnn_lcn_layer.hpp
45
include/caffe/layers/mvn_layer.hpp
46
include/caffe/layers/accuracy_layer.hpp
47
include/caffe/layers/cudnn_lrn_layer.hpp
48
include/caffe/layers/conv_layer.hpp
49
include/caffe/layers/python_layer.hpp
50
include/caffe/layers/dummy_data_layer.hpp
51
include/caffe/layers/spp_layer.hpp
52
include/caffe/layers/image_data_layer.hpp
53
include/caffe/layers/relu_layer.hpp
54
include/caffe/layers/inner_product_layer.hpp
55
include/caffe/layers/multinomial_logistic_loss_layer.hpp
56
include/caffe/layers/scale_layer.hpp
57
include/caffe/layers/exp_layer.hpp
58
include/caffe/layers/softmax_loss_layer.hpp
59
include/caffe/layers/recurrent_layer.hpp
60
include/caffe/layers/log_layer.hpp
61
include/caffe/layers/split_layer.hpp
62
include/caffe/layers/window_data_layer.hpp
63
include/caffe/layers/silence_layer.hpp
64
include/caffe/layers/reduction_layer.hpp
65
include/caffe/layers/slice_layer.hpp
66
include/caffe/layers/pooling_layer.hpp
67
include/caffe/layers/im2col_layer.hpp
68
include/caffe/layers/lrn_layer.hpp
69
include/caffe/layers/loss_layer.hpp
70
include/caffe/layers/data_layer.hpp
71
include/caffe/layers/tile_layer.hpp
72
include/caffe/layers/elu_layer.hpp
73
include/caffe/layers/parameter_layer.hpp
74
include/caffe/layers/cudnn_tanh_layer.hpp
75
include/caffe/layers/neuron_layer.hpp
76
include/caffe/layers/bnll_layer.hpp
77
include/caffe/layers/contrastive_loss_layer.hpp
78
include/caffe/layers/reshape_layer.hpp
79
include/caffe/layers/cudnn_pooling_layer.hpp
80
include/caffe/layers/threshold_layer.hpp
81
include/caffe/layers/rnn_layer.hpp
82
include/caffe/layers/lstm_layer.hpp
83
include/caffe/layers/memory_data_layer.hpp
84
include/caffe/layers/hinge_loss_layer.hpp
85
include/caffe/layers/euclidean_loss_layer.hpp
86
include/caffe/layers/prelu_layer.hpp
87
include/caffe/layers/flatten_layer.hpp
88
include/caffe/layers/dropout_layer.hpp
89
include/caffe/layers/cudnn_conv_layer.hpp
90
include/caffe/layers/argmax_layer.hpp
91
include/caffe/layers/base_data_layer.hpp
92
include/caffe/layers/power_layer.hpp
93
include/caffe/layers/cudnn_relu_layer.hpp
94
include/caffe/layers/deconv_layer.hpp
95
include/caffe/layers/concat_layer.hpp
96
include/caffe/layers/infogain_loss_layer.hpp
97
include/caffe/layers/sigmoid_cross_entropy_loss_layer.hpp
98
include/caffe/layers/sigmoid_layer.hpp
99
include/caffe/layers/filter_layer.hpp
100
include/caffe/layers/cudnn_softmax_layer.hpp
101
include/caffe/layers/absval_layer.hpp
102
include/caffe/layers/input_layer.hpp
103
include/caffe/layers/batch_norm_layer.hpp
104
include/caffe/layers/batch_reindex_layer.hpp
105
include/caffe/layers/hdf5_output_layer.hpp
106
include/caffe/layers/tanh_layer.hpp
107
include/caffe/layers/eltwise_layer.hpp
108
include/caffe/layers/bias_layer.hpp
109
include/caffe/layers/base_conv_layer.hpp
110
include/caffe/layers/hdf5_data_layer.hpp
111
include/caffe/layers/embed_layer.hpp
112
include/caffe/caffe.hpp
113
include/caffe/common.hpp
114
include/caffe/parallel.hpp
115
include/caffe/solver.hpp
116
include/caffe/proto/caffe.pb.h
117
include/caffe/net.hpp
118
include/caffe/sgd_solvers.hpp
119
include/caffe/solver_factory.hpp
120
include/caffe/data_transformer.hpp
121
include/caffe/layer_factory.hpp
122
include/caffe/internal_thread.hpp
123
include/caffe/syncedmem.hpp
124
include/caffe/filler.hpp
125
include/caffe/test/test_gradient_check_util.hpp
126
include/caffe/test/test_caffe_main.hpp
127
%%PYTHON_SITELIBDIR%%/caffe/_caffe.so
128
%%PYTHON_SITELIBDIR%%/caffe/coord_map.py
129
%%PYTHON_SITELIBDIR%%/caffe/io.py
130
%%PYTHON_SITELIBDIR%%/caffe/proto/__init__.py
131
%%PYTHON_SITELIBDIR%%/caffe/proto/caffe_pb2.py
132
%%PYTHON_SITELIBDIR%%/caffe/detector.py
133
%%PYTHON_SITELIBDIR%%/caffe/pycaffe.py
134
%%PYTHON_SITELIBDIR%%/caffe/draw.py
135
%%PYTHON_SITELIBDIR%%/caffe/test/test_solver.py
136
%%PYTHON_SITELIBDIR%%/caffe/test/test_net.py
137
%%PYTHON_SITELIBDIR%%/caffe/test/test_python_layer_with_param_str.py
138
%%PYTHON_SITELIBDIR%%/caffe/test/test_net_spec.py
139
%%PYTHON_SITELIBDIR%%/caffe/test/test_io.py
140
%%PYTHON_SITELIBDIR%%/caffe/test/test_python_layer.py
141
%%PYTHON_SITELIBDIR%%/caffe/test/test_layer_type_list.py
142
%%PYTHON_SITELIBDIR%%/caffe/test/test_coord_map.py
143
%%PYTHON_SITELIBDIR%%/caffe/net_spec.py
144
%%PYTHON_SITELIBDIR%%/caffe/classifier.py
145
%%PYTHON_SITELIBDIR%%/caffe/__init__.py
146
%%PYTHON_SITELIBDIR%%/caffe/imagenet/ilsvrc_2012_mean.npy
147
%%PYTHON_SITELIBDIR%%/caffe/_caffe.cpp
148
%%DATADIR%%/proto/caffe.proto
149
@dir %%DATADIR%%/proto
150
@dir %%DATADIR%%

Return to bug 217428