pkg(php-8.0.2): switch to new build system
This commit is contained in:
parent
a0e7d1b736
commit
083793ee43
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p build/tmp build/php
|
||||||
|
cd build
|
||||||
|
|
||||||
|
curl "https://www.php.net/distributions/php-8.0.2.tar.gz" -o php.tar.gz
|
||||||
|
tar xzf php.tar.gz --strip-components=1 -C php
|
||||||
|
|
||||||
|
cd php
|
||||||
|
|
||||||
|
|
||||||
|
./configure --prefix /piston/packages/php/8.0.2/php-8.0.2
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
INSTALL_ROOT=build/tmp make install -j$(nproc)
|
||||||
|
|
||||||
|
|
||||||
|
mv build/tmp/piston/packages/php/8.0.2/php-8.0.2 ../../output
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"language": "php",
|
||||||
|
"version": "8.0.2",
|
||||||
|
"author": "Martin Kos <martinkos007@gmail.com>",
|
||||||
|
"dependencies": {},
|
||||||
|
"aliases": ["php8","html"]
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
php $*
|
|
@ -0,0 +1 @@
|
||||||
|
OK
|
|
@ -1,24 +0,0 @@
|
||||||
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 $@
|
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
echo "OK";
|
|
||||||
?>
|
|
Loading…
Reference in New Issue