2019-11-25 07:49:13 +11:00
VERSION := ` date '+%y%m%d' `
2019-12-16 05:44:52 +01:00
i f e q ( $( PLATFORM ) , w i n )
PYTHONOCC_URL := https://anaconda.org/DLR-SC/pythonocc-core/0.17.3/download/win-64/pythonocc-core-0.17.3-py37he980bc4_10.tar.bz2
OCE_URL := https://anaconda.org/DLR-SC/oce/0.17.2/download/win-64/oce-0.17.2-he980bc4_14.tar.bz2
TBB_URL := https://anaconda.org/DLR-SC/tbb/2019.5/download/win-64/tbb-2019.5-he980bc4_0.tar.bz2
e n d i f
i f e q ( $( PLATFORM ) , m a c o s )
PYTHONOCC_URL := https://anaconda.org/DLR-SC/pythonocc-core/0.17.3/download/osx-64/pythonocc-core-0.17.3-py37h04f5b5a_10.tar.bz2
OCE_URL := https://anaconda.org/DLR-SC/oce/0.17.2/download/osx-64/oce-0.17.2-h04f5b5a_12.tar.bz2
TBB_URL := https://anaconda.org/DLR-SC/tbb/4.3.6/download/osx-64/tbb-4.3.6-0.tar.bz2
e n d i f
i f e q ( $( PLATFORM ) , l i n u x )
PYTHONOCC_URL := https://anaconda.org/DLR-SC/pythonocc-core/0.17.3/download/linux-64/pythonocc-core-0.17.3-py37h6bb024c_10.tar.bz2
OCE_URL := https://anaconda.org/DLR-SC/oce/0.17.2/download/linux-64/oce-0.17.2-h6bb024c_14.tar.bz2
TBB_URL := https://anaconda.org/DLR-SC/tbb/4.3.6/download/linux-64/tbb-4.3.6-0.tar.bz2
e n d i f
2019-11-25 07:49:13 +11:00
2019-10-06 19:59:41 +11:00
.PHONY : dist
dist :
i f n d e f P L A T F O R M
$( error PLATFORM is not set )
e n d i f
r m - r f d i s t
2019-12-16 05:44:52 +01:00
m k d i r - p d i s t / w o r k i n g
m k d i r - p d i s t / b l e n d e r b i m
2019-12-19 05:05:57 +01:00
i f n e q ( $( PLATFORM ) , w i n )
m k d i r - p d i s t / l i b
e n d i f
2019-12-16 05:44:52 +01:00
c p - r b l e n d e r b i m / * d i s t / b l e n d e r b i m /
cd dist/working && wget https : //s 3.amazonaws .com /ifcopenshell -builds /ifcblender -python -37-v 0.6.0-9bcd 932-$( PLATFORM ) 64.zip
cd dist/working && unzip ifcblender*
2019-12-19 04:35:19 +01:00
cp -r dist/working/io_import_scene_ifc/ifcopenshell dist/
2019-12-16 05:44:52 +01:00
rm -rf dist/working
mkdir dist/working
cd dist/working && wget $( PYTHONOCC_URL)
cd dist/working && tar -xjvf pythonocc-core*
i f e q ( $( PLATFORM ) , w i n )
2019-12-19 04:35:19 +01:00
c d d i s t / w o r k i n g & & c p - r L i b / s i t e - p a c k a g e s / O C C . . /
2019-12-16 05:44:52 +01:00
e l s e
2019-12-19 04:35:19 +01:00
c d d i s t / w o r k i n g & & c p - r l i b / p y t h o n 3 . 7 / s i t e - p a c k a g e s / O C C . . /
2019-12-16 05:44:52 +01:00
e n d i f
r m - r f d i s t / w o r k i n g
m k d i r d i s t / w o r k i n g
c d d i s t / w o r k i n g & & w g e t $( OCE_URL )
c d d i s t / w o r k i n g & & t a r - x j v f o c e *
i f e q ( $( PLATFORM ) , w i n )
2019-12-19 04:35:19 +01:00
c d d i s t / w o r k i n g & & c p - r L i b r a r y / b i n / * . . / O C C /
2019-12-16 05:44:52 +01:00
e l s e
2019-12-19 05:05:57 +01:00
c d d i s t / w o r k i n g & & c p - r l i b / * . . / l i b /
2019-12-16 05:44:52 +01:00
e n d i f
r m - r f d i s t / w o r k i n g
m k d i r d i s t / w o r k i n g
c d d i s t / w o r k i n g & & w g e t $( TBB_URL )
c d d i s t / w o r k i n g & & t a r - x j v f t b b *
i f e q ( $( PLATFORM ) , w i n )
2019-12-19 04:35:19 +01:00
c d d i s t / w o r k i n g & & c p - r L i b r a r y / b i n / * . . / O C C /
2019-12-16 05:44:52 +01:00
e l s e
2019-12-19 05:05:57 +01:00
c d d i s t / w o r k i n g & & c p - r l i b / * . . / l i b /
2019-12-16 05:44:52 +01:00
e n d i f
r m - r f d i s t / w o r k i n g
2019-12-19 05:05:57 +01:00
i f e q ( $( PLATFORM ) , m a c o s )
m k d i r d i s t / w o r k i n g
cd dist/working && wget https : //blenderbim .org /builds /patch -blender 28-bim -macos .zip
cd dist/working && unzip patch*
cd dist/working && cp -r *.dylib ../lib/
rm -rf dist/working
e n d i f
2019-12-16 05:44:52 +01:00
m k d i r d i s t / w o r k i n g
cd dist/working && wget https : //files .pythonhosted .org /packages /d 6/fd /eb 8c 212053addd 941cc 90baac 307c 00ac 246ac 3fce 7166b 86434c 6eae 963/pystache -0.5.4.tar .gz
cd dist/working && tar -xzvf pystache*
2019-12-19 04:35:19 +01:00
cd dist/working/pystache-0.5.4/ && python setup.py build && cp -r build/lib/pystache ../../
2019-12-16 05:44:52 +01:00
rm -rf dist/working
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/79/e8/7eb2ba188eda14a4b47e33b51f3b4978985f4116655c699bcd18c79279b5/svgwrite-1.3.1.zip
cd dist/working && unzip svgwrite*
2019-12-19 04:35:19 +01:00
cp -r dist/working/svgwrite-1.3.1/svgwrite dist/
2019-12-16 05:44:52 +01:00
rm -rf dist/working
2020-01-07 14:42:03 +11:00
mkdir dist/working
cd dist/working && wget https://github.com/Moult/deepdiff/archive/master.zip
cd dist/working && unzip master.zip
cp -r dist/working/deepdiff-master/deepdiff dist/
rm -rf dist/working
mkdir dist/working
cd dist/working && wget https : //files .pythonhosted .org /packages /00/55/ce 2cbc 6d 64034b 30cad 81a 29ba 61bdba 456f 190f 5e 83c 09831304bf 68d 6b /jsonpickle -1.2.tar .gz
cd dist/working && tar -xzvf jsonpickle*
cp -r dist/working/jsonpickle-1.2/jsonpickle dist/
rm -rf dist/working
mkdir dist/working
cd dist/working && wget https : //files .pythonhosted .org /packages /a 3/b 7/d 4d 69641cbe 707a 45c 23b 190f 2d 717466ba 5accc 4c 70b 5f 7a 8a 450387895/ordered -set -3.1.1.tar .gz
cd dist/working && tar -xzvf ordered-set*
cp -r dist/working/ordered-set-3.1.1/ordered_set.py dist/
rm -rf dist/working
2019-12-16 05:44:52 +01:00
mkdir dist/working
cd dist/working && wget https://files.pythonhosted.org/packages/00/32/8076fa13e832bb4dcff379f18f228e5a53412be0631808b9ca2610c0f566/pyparsing-2.4.5.tar.gz
cd dist/working && tar -xzvf pyparsing*
2019-12-19 04:35:19 +01:00
cp -r dist/working/pyparsing-2.4.5/pyparsing.py dist/
2019-12-16 05:44:52 +01:00
rm -rf dist/working
2019-11-25 07:49:13 +11:00
cd dist/blenderbim && sed -i " s/999999/ $( VERSION) / " __init__.py
2019-12-19 04:35:19 +01:00
cd dist && zip -r blender28-bim-$( VERSION) -$( PLATFORM) .zip ./*
rm -rf dist/blenderbim
rm -rf dist/ifcopenshell
rm -rf dist/OCC
rm -rf dist/pystache
rm -rf dist/svgwrite
2020-01-07 14:42:03 +11:00
rm -rf dist/deepdiff
rm -rf dist/jsonpickle
rm -rf dist/ordered_set.py
2019-12-19 04:35:19 +01:00
rm -rf dist/pyparsing.py
2019-12-19 05:05:57 +01:00
i f n e q ( $( PLATFORM ) , w i n )
r m - r f d i s t / l i b
e n d i f
2019-10-06 19:59:41 +11:00
.PHONY : clean
clean :
rm -rf dist