Skip to content

Commit 800c564

Browse files
committed
add PECL installation option "with-bz2"
1 parent dd0bacb commit 800c564

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ For more information, visit his website at <http://www.daemonology.net/bsdiff/>.
1919

2020
## Installation
2121

22+
## Install via PECL
23+
24+
```bash
25+
pecl install bsdiff
26+
```
27+
28+
In case BZip2 can't be found automatically, use option `--with-bz2` to specify the installation directory of BZip2. e.g.,
29+
30+
```bash
31+
pecl install -D 'with-bz2="/usr/local/opt/bzip2"'
32+
```
33+
34+
## Manual Installation
35+
2236
```bash
2337
phpize
2438
./configure

package.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
</required>
6060
</dependencies>
6161
<providesextension>bsdiff</providesextension>
62-
<extsrcrelease/>
62+
<extsrcrelease>
63+
<configureoption default="/usr" name="with-bz2" prompt="BZip2 installation prefix"/>
64+
</extsrcrelease>
6365
<changelog>
6466
<release>
6567
<date>2022-10-07</date>

0 commit comments

Comments
 (0)