aboutsummaryrefslogtreecommitdiff
path: root/misc/caffe/files/patch-python_CMakeLists.txt
blob: f35ac9083cca5277739d7128b18c735c6ce3ffd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- python/CMakeLists.txt.orig	2020-02-13 07:20:36 UTC
+++ python/CMakeLists.txt
@@ -23,12 +23,12 @@ endif()
 
 # ---[ Install
 # scripts
-file(GLOB python_files *.py requirements.txt)
-install(FILES ${python_files} DESTINATION python)
+#file(GLOB python_files *.py requirements.txt)
+#install(FILES ${python_files} DESTINATION python)
 
 # module
 install(DIRECTORY caffe
-    DESTINATION python
+    DESTINATION ${FREEBSD_PYTHONPREFIX_SITELIBDIR}/caffe
     FILES_MATCHING
     PATTERN "*.py"
     PATTERN "ilsvrc_2012_mean.npy"
@@ -36,5 +36,5 @@ install(DIRECTORY caffe
     )
 
 # _caffe.so
-install(TARGETS pycaffe  DESTINATION python/caffe)
+install(TARGETS pycaffe  DESTINATION ${FREEBSD_PYTHONPREFIX_SITELIBDIR}/caffe)