Mercurial > code > home > repos > light9
comparison makefile @ 2038:5154f5a23e85
reworking initial setup; get bin/asco running
author | drewp@bigasterisk.com |
---|---|
date | Mon, 09 May 2022 18:45:04 -0700 |
parents | 00afa5ec081a |
children | d8bac44781d4 |
comparison
equal
deleted
inserted
replaced
2037:b731eaad3adf | 2038:5154f5a23e85 |
---|---|
1 ### setup ### | 1 ### setup ### |
2 | 2 |
3 packages: | 3 packages: |
4 sudo aptitude install coffeescript normalize-audio audacity python3-pygame libffi-dev tix libzmq3-dev python3-dev libssl-dev python3-opencv python3-cairo npm git virtualenv python3-virtualenv nginx-full python3-tk zlib1g-dev libjpeg8-dev curl | 4 sudo aptitude install -y \ |
5 | 5 audacity \ |
6 # also pip3 install -U invoke (don't use ubuntu's version) | 6 coffeescript \ |
7 curl \ | |
8 git \ | |
9 libffi-dev \ | |
10 libjpeg8-dev \ | |
11 libssl-dev \ | |
12 libzmq3-dev \ | |
13 nginx-core \ | |
14 nginx-full \ | |
15 normalize-audio \ | |
16 npm \ | |
17 python3-cairo \ | |
18 python3-dev \ | |
19 python3-opencv \ | |
20 python3-pygame \ | |
21 python3-tk \ | |
22 tix \ | |
23 zlib1g-dev | |
7 | 24 |
8 gst_packages: | 25 gst_packages: |
9 sudo aptitude install python3-gi gir1.2-gst-plugins-base-1.0 libgirepository-1.0-1 gir1.2-gstreamer-1.0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-pulseaudio python3-gst-1.0 gir1.2-goocanvas-2.0 | 26 sudo aptitude install -y \ |
27 gir1.2-goocanvas-2.0 \ | |
28 gir1.2-gst-plugins-base-1.0 \ | |
29 gir1.2-gstreamer-1.0 \ | |
30 gstreamer1.0-plugins-good \ | |
31 gstreamer1.0-pulseaudio \ | |
32 gstreamer1.0-tools \ | |
33 libgirepository-1.0-1 \ | |
34 libgirepository1.0-dev \ | |
35 python3-gi \ | |
36 python3-gst-1.0 | |
10 | 37 |
11 node_modules/bower/bin/bower: | 38 pnpm: |
12 pnpm install | 39 # holding pnpm back because we don't have the latest nodejs: https://pnpm.io/installation#compatibility |
13 | 40 sudo npm install -g pnpm@6.32.12 |
41 | |
14 bin/node: | 42 bin/node: |
15 ln -sf `which nodejs` bin/node | 43 ln -sf `which nodejs` bin/node |
16 | 44 |
17 bower: node_modules/bower/bin/bower bin/node | 45 js: pnpm |
18 cd light9/web/lib; nodejs ../../../node_modules/bower/bin/bower install | 46 pnpm install --reporter append-only |
19 | 47 |
20 npm_install: | 48 py: |
21 pnpm install | 49 pdm sync |
22 | 50 |
23 node_modules/n3/n3-browser.js: | 51 refresh: packages gst_packages js py |
24 (cd node_modules/n3; pnpx browserify --standalone N3 --require n3 -o n3-browser.js) | |
25 | 52 |
26 light9/web/lib/debug/debug-build.js: | |
27 pnpx browserify light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug | |
28 | 53 |
29 light9/web/lib/debug/debug-build-es6.js: | |
30 pnpx browserify light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build-es6.js --standalone debug | |
31 echo "\nexport default window.debug;" >> light9/web/lib/debug/debug-build-es6.js | |
32 | 54 |
33 lit_fix: | |
34 perl -pi -e "s,'lit-html,'/node_modules/lit-html,; s,lit-html',lit-html/lit-html.js'," node_modules/lit-element/lit-element.js | |
35 | 55 |
36 round_fix: | |
37 perl -pi -e 's/module.exports = rounding/export { rounding }/' node_modules/significant-rounding/index.js | |
38 | 56 |
39 light9/web/lib/underscore/underscore-min-es6.js: | |
40 cp light9/web/lib/underscore/underscore-min.js light9/web/lib/underscore/underscore-min-es6.js | |
41 perl -pi -e 's/call\(this\);/call(window); export default window._;/' light9/web/lib/underscore/underscore-min-es6.js | |
42 | 57 |
43 npm: npm_install node_modules/n3/n3-browser.js light9/web/lib/debug/debug-build.js light9/web/lib/debug/debug-build-es6.js lit_fix round_fix light9/web/lib/underscore/underscore-min-es6.js | |
44 | 58 |
45 | 59 |
46 bin/ascoltami2: gst_packages link_to_sys_packages | 60 bin/ascoltami2: gst_packages link_to_sys_packages |
47 | 61 |
48 effect_node_setup: create_virtualenv packages binexec install_python_deps | 62 effect_node_setup: create_virtualenv packages binexec install_python_deps |