Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/PocketMine/php-build-scripts

Compile scripts used to build PHP on multiple platforms
https://github.com/PocketMine/php-build-scripts

Last synced: 2 months ago
JSON representation

Compile scripts used to build PHP on multiple platforms

Awesome Lists containing this project

README

        

# Custom PHP build scripts for PocketMine-MP

## compile.sh

Use this script to build the custom PHP binary. Make sure you have ``make autoconf automake libtool m4 wget getconf gzip bzip2 bison g++``.

| Flag | Description |
| ------ | ------------------------------------------------------------ |
| -t | Set target |
| -j | Set make threads to # |
| -c | Will force compile cURL |
| -l | Will compile with LevelDB support (not supported with PHP7) |
| -f | Enabling abusive optimizations... |

### Example:

| Target | Arguments |
| ------- | --------- |
| linux64 | ``-t linux64 -l -j 2 -c -f x86_64`` |
| mac64 | ``-t mac64 -l -j -c -f`` |

## installer.sh

Script to install PocketMine-MP and PHP binaries.

| Flag | Description |
| ------ | ----------------------------------- |
| -u | Update PocketMine-MP |
| -d | Install directory |
| -v | Channel (stable or development) |

## jenkins.sh

PHP binaries provided by PocketMine are build using this script. The script runs the ``compile.sh`` with some default arguments.

## Extra libraries

### Unix

- https://github.com/madler/zlib/
- http://sourceforge.net/projects/mcrypt/
- https://gmplib.org/
- https://tls.mbed.org/
- https://github.com/bagder/curl/
- http://pyyaml.org/ or https://github.com/yaml/libyaml/
- https://sourceforge.net/projects/libpng/
- https://pecl.php.net/package/pthreads
- https://pecl.php.net/package/Weakref
- https://github.com/php/pecl-file_formats-yaml/

### Windows

- http://windows.php.net/downloads/pecl/releases/pthreads/
- http://windows.php.net/downloads/pecl/releases/weakref/
- http://windows.php.net/downloads/pecl/releases/yaml/