-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathINSTALL
66 lines (55 loc) · 2.18 KB
/
INSTALL
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
## screencast
Interface to record a X11 desktop
Copyright 2015-2025 Daniel Bermond
https://github.com/dbermond/screencast/
### Installation instructions
**screencast** is a POSIX-compliant shell script, so thre is nothing to build
in terms of binary files.
But the source code is splitted in modules for easy maintenance. The final
program is intented to be a single script file, instead of a main script that
loads the modules. This allows an easier development, deployment, testing,
debugging, installation and redistribution.
Being such, the script needs to be "built" from the modules in order to create
the intended final program. A Makefile is provided for this. A simple
installation procedure would be:
```
$ make
$ sudo make install
```
The provided Makefile supports the `DESTDIR` variable for staged
installations. Other common variables are also supported for the `install`
target, like `PREFIX`, `BINDIR`, `DOCDIR` and `MANDIR`. Bash-completion
directory can be changed with the `BCOMPDIR` variable. For example:
```
$ make
$ sudo make \
DESTDIR='./pkg' \
PREFIX='/usr' \
BCOMPDIR='/usr/share/bash-completion/completions' \
install
```
### Uninstall
Use the make `uninstall` target. It also supports the same variables of the
`install` target. For proper uninstallation, these variables must be used
with the same values used in the `install` target.
### Tests
**screencast** tests can be performed with the make `check` or `test` targets.
These targets supports the following environment variables:
- `AUDIOIN`: select the audio input device for tests
- `WEBCAM`: include webcam tests, using the specified webcam input device
- `VAAPI`: include VAAPI tests, using the specified DRM render node
- `WMARK_FONT`: font used for text watermark
- `USEDISPLAY`: select the X server display and screen to run the tests on
- `USESHELL`: use the specified shell to perform the tests (the special value
`all` will perfom tests with the shells bash, dash, yash, ksh, and zsh)
Test example:
```
$ make \
AUDIOIN='pulse' \
WEBCAM='/dev/video0' \
VAAPI='/dev/dri/renderD129' \
WMARK_FONT='NotoSans-Regular' \
USEDISPLAY=':71.0' \
USESHELL='all' \
test
```