mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
pkg(php): Added php 7.4.15 8.0.2
This commit is contained in:
parent
d7687096ff
commit
bbe80e8028
3 changed files with 29 additions and 2 deletions
|
@ -204,7 +204,7 @@ Content-Type: application/json
|
||||||
|
|
||||||
# Supported Languages
|
# Supported Languages
|
||||||
|
|
||||||
`python`,
|
`python`,`php`
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
24
packages/php.mk
Normal file
24
packages/php.mk
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
NAME=php
|
||||||
|
AUTHOR=Martin Kos <martinkos007@gmail.com>
|
||||||
|
DEPENDENCIES=
|
||||||
|
COMPILED=false
|
||||||
|
VERSIONS=7.4.15 8.0.2
|
||||||
|
|
||||||
|
include common.mk
|
||||||
|
|
||||||
|
|
||||||
|
${RUN_FILE}:
|
||||||
|
echo 'php $$*' > $@
|
||||||
|
|
||||||
|
${ENV_FILE}:
|
||||||
|
echo 'export PATH=$$PWD/bin:$$PATH' > $@
|
||||||
|
|
||||||
|
${BIN_DIR}: ${BUILD_DIR}php-${VERSION}-sources/
|
||||||
|
$(eval TMP_DIR=${PWD}/${BUILD_DIR}tmpout)
|
||||||
|
cd $< && ./configure --prefix ${PREFIX}
|
||||||
|
$(MAKE) -C $<
|
||||||
|
INSTALL_ROOT=${TMP_DIR}/ $(MAKE) -C $< install
|
||||||
|
mv ${TMP_DIR}${PREFIX} ${BIN_DIR} && rm -r ${TMP_DIR}
|
||||||
|
|
||||||
|
${BUILD_DIR}php-${VERSION}-sources.tar.gz:
|
||||||
|
curl "https://www.php.net/distributions/php-${VERSION}.tar.gz" -o $@
|
3
packages/php.test
Normal file
3
packages/php.test
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
echo "OK";
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue