added php

This commit is contained in:
2022-05-01 22:11:03 +02:00
parent 09dd1edfa0
commit 8eb9329204
476 changed files with 10083 additions and 227 deletions

View File

@@ -0,0 +1,65 @@
#
# $Id: Makefile 2636 2009-09-30 12:09:37Z root $
#
PORTNAME= php${PORTVERSION:R:S/.//g}-mod-${MODULE_NAME}
PORTVERSION= 8.1.5
CATEGORIES= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP}
MASTER_SITE_SUBDIR= distributions
DISTNAME= php-${PORTVERSION}
MASTER_SITES+= http://dk.php.net/%SUBDIR%/
MASTER_SITES+= http://de.php.net/%SUBDIR%/
MASTER_SITES+= http://es.php.net/%SUBDIR%/
MASTER_SITES+= http://fi.php.net/%SUBDIR%/
MASTER_SITES+= http://fr.php.net/%SUBDIR%/
MASTER_SITES+= http://gr.php.net/%SUBDIR%/
MASTER_SITES+= http://it.php.net/%SUBDIR%/
MASTER_SITES+= http://jp.php.net/%SUBDIR%/
MASTER_SITES+= http://se.php.net/%SUBDIR%/
MASTER_SITES+= http://uk.php.net/%SUBDIR%/
MASTER_SITES+= http://us2.php.net/%SUBDIR%/
MASTER_SITES+= http://br.php.net/%SUBDIR%/
MASTER_SITES+= http://cn.php.net/%SUBDIR%/
MASTER_SITE_SUBDIR= distributions
MAINTAINER= onborodin@gmail.com
COMMENT= PHP Scripting Language (Apache Module and CLI)
BUILD_DEPENDS+= php:lang/php${PORTVERSION:R:S/.//g}
#RUN_DEPENDS
#BUILD_DEPENDS+= ${RUN_DEPENDS}
#USES+= pgsql
BUILD_DEPENDS+= php${PORTVERSION:R:S/.//g}-mod-pdo>0:php${PORTVERSION:R:S/.//g}/php-mod-pdo
RUN_DEPENDS+= php${PORTVERSION:R:S/.//g}-mod-pdo>0:php${PORTVERSION:R:S/.//g}/php-mod-pdo
EXTRACT_AFTER_ARGS= ${DISTNAME}/ext/${MODULE_NAME}
WRKSRC= ${WRKDIR}/${DISTNAME}/ext/${MODULE_NAME}
EXTRACT_AFTER_ARGS= ${DISTNAME}/ext/${MODULE_NAME}
USES+= tar:xz gmake
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/php
LDFLAGS= -L${LOCALBASE}/lib
MODULE_NAME= pdo_pgsql
DESTDIRNAME= INSTALL_ROOT
#EXTDIR
#INCLUDEDIR
pre-configure:
cd ${WRKSRC} && ${CONFIGURE_ENV} phpize .
post-install:
${RM} -f ${TMPPLIST}
cd ${STAGEDIR}${PREFIX} && ${FIND} lib/php -type f >> ${TMPPLIST}
${MKDIR} ${STAGEDIR}${PREFIX}/include/php
cd ${STAGEDIR}${PREFIX} && ${FIND} include/php -type f >> ${TMPPLIST}
cd ${STAGEDIR}${PREFIX} && ${FIND} -ds lib/php -type d | ${SED} -e 's,^,@dir ,' >> ${TMPPLIST}
cd ${STAGEDIR}${PREFIX} && ${FIND} -ds include/php -type d | ${SED} -e 's,^,@dir ,' >> ${TMPPLIST}
.include <bsd.port.mk>
#EOF

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1651433152
SHA256 (php-8.1.5.tar.xz) = 7647734b4dcecd56b7e4bd0bc55e54322fa3518299abcdc68eb557a7464a2e8a
SIZE (php-8.1.5.tar.xz) = 11752684

View File

@@ -0,0 +1,9 @@
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
Source general-purpose scripting language that is especially suited for
Web development and can be embedded into HTML. Its syntax draws upon C,
Java, and Perl, and is easy to learn. The main goal of the language is to
allow web developers to write dynamically generated webpages quickly, but
you can do much more with PHP.
WWW: http://www.php.net/