|
| 1 | +# Custom PHP build scripts for PocketMine-MP |
| 2 | + |
| 3 | +## compile.sh |
| 4 | + |
| 5 | +Use this script to build the custom PHP binary. Make sure you have ``make autoconf automake libtool m4 wget getconf gzip bzip2 bison g++``. |
| 6 | + |
| 7 | +| Flag | Description | |
| 8 | +| ------ | ------------------------------------------------------------ | |
| 9 | +| -t | Set target | |
| 10 | +| -j | Set make threads to # | |
| 11 | +| -c | Will force compile cURL | |
| 12 | +| -l | Will compile with LevelDB support (not supported with PHP7) | |
| 13 | +| -f | Enabling abusive optimizations... | |
| 14 | + |
| 15 | +### Example: |
| 16 | + |
| 17 | +| Target | Arguments | |
| 18 | +| ------- | --------- | |
| 19 | +| linux64 | ``-t linux64 -l -j 2 -c -f x86_64`` | |
| 20 | +| mac64 | ``-t mac64 -l -j -c -f`` | |
| 21 | + |
| 22 | +## installer.sh |
| 23 | + |
| 24 | +Script to install PocketMine-MP and PHP binaries. |
| 25 | + |
| 26 | +| Flag | Description | |
| 27 | +| ------ | ----------------------------------- | |
| 28 | +| -u | Update PocketMine-MP | |
| 29 | +| -d | Install directory | |
| 30 | +| -v | Channel (stable or development) | |
| 31 | + |
| 32 | +## jenkins.sh |
| 33 | + |
| 34 | +PHP binaries provided by PocketMine are build using this script. The script runs the ``compile.sh`` with some default arguments. |
| 35 | + |
| 36 | +## Extra libraries |
| 37 | + |
| 38 | +### Unix |
| 39 | + |
| 40 | +- https://github.com/madler/zlib/ |
| 41 | +- http://sourceforge.net/projects/mcrypt/ |
| 42 | +- https://gmplib.org/ |
| 43 | +- https://tls.mbed.org/ |
| 44 | +- https://github.com/bagder/curl/ |
| 45 | +- http://pyyaml.org/ or https://github.com/yaml/libyaml/ |
| 46 | +- https://sourceforge.net/projects/libpng/ |
| 47 | +- https://pecl.php.net/package/pthreads |
| 48 | +- https://pecl.php.net/package/Weakref |
| 49 | +- https://github.com/php/pecl-file_formats-yaml/ |
| 50 | + |
| 51 | +### Windows |
| 52 | + |
| 53 | +- http://windows.php.net/downloads/pecl/releases/pthreads/ |
| 54 | +- http://windows.php.net/downloads/pecl/releases/weakref/ |
| 55 | +- http://windows.php.net/downloads/pecl/releases/yaml/ |
0 commit comments