pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/php72



Module Name:    pkgsrc
Committed By:   otis
Date:           Fri Nov 20 15:51:25 UTC 2020

Modified Files:
        pkgsrc/lang/php72: Makefile Makefile.php PLIST

Log Message:
php72: add default-off php-embed option to install embed SAPI

Requested by Sergey Osokin in PR 55508.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/lang/php72/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/php72/Makefile.php
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/php72/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/php72/Makefile
diff -u pkgsrc/lang/php72/Makefile:1.29 pkgsrc/lang/php72/Makefile:1.30
--- pkgsrc/lang/php72/Makefile:1.29     Thu Nov  5 09:06:58 2020
+++ pkgsrc/lang/php72/Makefile  Fri Nov 20 15:51:24 2020
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.29 2020/11/05 09:06:58 ryoon Exp $
+# $NetBSD: Makefile,v 1.30 2020/11/20 15:51:24 otis Exp $
 
 #
 # We can't omit PKGNAME here to handle PKG_OPTIONS.
 #
 PKGNAME=               php-${PHP_VERSION:S/RC/rc/}
-PKGREVISION=           1
+PKGREVISION=           2
 
 COMMENT=               PHP Hypertext Preprocessor version 7.2
 LICENSE=               php

Index: pkgsrc/lang/php72/Makefile.php
diff -u pkgsrc/lang/php72/Makefile.php:1.14 pkgsrc/lang/php72/Makefile.php:1.15
--- pkgsrc/lang/php72/Makefile.php:1.14 Mon Dec 16 15:58:18 2019
+++ pkgsrc/lang/php72/Makefile.php      Fri Nov 20 15:51:25 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.14 2019/12/16 15:58:18 taca Exp $
+# $NetBSD: Makefile.php,v 1.15 2020/11/20 15:51:25 otis Exp $
 # used by lang/php72/Makefile
 # used by www/ap-php/Makefile
 # used by www/php-fpm/Makefile
@@ -53,7 +53,7 @@ CONFIGURE_ARGS+=      --with-libxml-dir=${PRE
 CONFIGURE_ARGS+=       --with-pcre-regex=${BUILDLINK_PREFIX.pcre}
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.${PHP_PKG_PREFIX}
-PKG_SUPPORTED_OPTIONS+=        inet6 ssl maintainer-zts readline argon2
+PKG_SUPPORTED_OPTIONS+=        inet6 ssl maintainer-zts readline argon2 php-embed
 PKG_SUPPORTED_OPTIONS+=        disable-filter-url
 PKG_SUGGESTED_OPTIONS+=        inet6 ssl readline
 
@@ -109,5 +109,19 @@ CONFIGURE_ARGS+=   --with-password-argon2=
 CFLAGS+=               -DDISABLE_FILTER_URL
 .endif
 
+PLIST_VARS+=    embed
+
+.if !empty(PKG_OPTIONS:Mphp-embed)
+CONFIGURE_ARGS+=       --enable-embed
+INSTALLATION_DIRS+=    include/php/sapi/embed
+PLIST.embed=           yes
+
+.PHONY: post-install-embed
+post-install: post-install-embed
+post-install-embed:
+       ${INSTALL_DATA} ${WRKSRC}/sapi/embed/php_embed.h ${DESTDIR}${PREFIX}/include/php/sapi/embed/
+       ${INSTALL_LIB} ${WRKSRC}/libs/libphp7.so ${DESTDIR}${PREFIX}/lib/
+.endif
+
 DL_AUTO_VARS=          yes
 .include "../../mk/dlopen.buildlink3.mk"

Index: pkgsrc/lang/php72/PLIST
diff -u pkgsrc/lang/php72/PLIST:1.2 pkgsrc/lang/php72/PLIST:1.3
--- pkgsrc/lang/php72/PLIST:1.2 Mon Feb  5 08:51:25 2018
+++ pkgsrc/lang/php72/PLIST     Fri Nov 20 15:51:25 2020
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2018/02/05 08:51:25 jdolecek Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/11/20 15:51:25 otis Exp $
 bin/phar
 bin/phar.phar
 bin/php
@@ -253,6 +253,8 @@ include/php/main/streams/php_stream_tran
 include/php/main/streams/php_stream_userspace.h
 include/php/main/streams/php_streams_int.h
 include/php/sapi/cli/cli.h
+${PLIST.embed}include/php/sapi/embed/php_embed.h
+${PLIST.embed}lib/libphp7.so
 lib/php/build/Makefile.global
 lib/php/build/acinclude.m4
 lib/php/build/ax_check_compile_flag.m4



Home | Main Index | Thread Index | Old Index