-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add PHP pkg-config (pkgconf) .pc metadata file(s) #13755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
b3ed03b
782626e
1de4e4b
33c26fb
177a6e4
1e6acee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1392,6 +1392,8 @@ AC_SUBST([SAPI_LIBNAME_STATIC]) | |
AC_SUBST([PHP_VERSION]) | ||
AC_SUBST([PHP_VERSION_ID]) | ||
AC_SUBST([PHP_LDFLAGS]) | ||
AC_SUBST([PHP_THREAD_SAFETY]) | ||
AC_SUBST([ZEND_DEBUG]) | ||
|
||
PHP_UTILIZE_RPATHS | ||
|
||
|
@@ -1467,7 +1469,7 @@ PHP_SUBST_OLD([EXTENSION_DIR]) | |
PHP_SUBST([EXTRA_LDFLAGS]) | ||
PHP_SUBST([EXTRA_LDFLAGS_PROGRAM]) | ||
PHP_SUBST_OLD([EXTRA_LIBS]) | ||
PHP_SUBST([ZEND_EXTRA_LIBS]) | ||
PHP_SUBST_OLD([ZEND_EXTRA_LIBS]) | ||
Comment on lines
-1470
to
+1472
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Out of curiosity, what's the difference between these macros? |
||
PHP_SUBST([INCLUDES]) | ||
PHP_SUBST([EXTRA_INCLUDES]) | ||
PHP_SUBST([INSTALL_IT]) | ||
|
@@ -1604,7 +1606,7 @@ else | |
fi; | ||
|
||
all_targets="\$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd" | ||
install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install" | ||
install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install $install_embed" | ||
|
||
PHP_SUBST([all_targets]) | ||
PHP_SUBST([install_targets]) | ||
|
@@ -1804,6 +1806,7 @@ AC_CONFIG_FILES([ | |
scripts/man1/php-config.1 | ||
scripts/man1/phpize.1 | ||
scripts/php-config | ||
scripts/php.pc | ||
scripts/phpize | ||
]) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
install-embed: | ||
@echo "Installing PHP Embed .pc file: $(INSTALL_ROOT)$(orig_libdir)/pkgconfig/" | ||
@$(mkinstalldirs) $(INSTALL_ROOT)$(orig_libdir)/pkgconfig | ||
@$(INSTALL_DATA) sapi/embed/php-embed.pc $(INSTALL_ROOT)$(orig_libdir)/pkgconfig/$(program_prefix)php-embed$(program_suffix).pc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# The pkg-config .pc file for PHP Embed SAPI. | ||
|
||
prefix=@prefix@ | ||
exec_prefix=@exec_prefix@ | ||
includedir=@includedir@/php | ||
libdir=@orig_libdir@ | ||
# PHP extension directory containing dynamically loadable PHP extensions. | ||
php_extension_dir=@EXTENSION_DIR@ | ||
# PHP version as integer. | ||
php_vernum=@PHP_VERSION_ID@ | ||
# The path where to scan for additional INI configuration files. | ||
php_ini_dir=@EXPANDED_PHP_CONFIG_FILE_SCAN_DIR@ | ||
# The path in which to look for php.ini. | ||
php_ini_path=@EXPANDED_PHP_CONFIG_FILE_PATH@ | ||
# Whether PHP is built in debug mode (yes) or not (no). | ||
php_debug=@ZEND_DEBUG@ | ||
# Whether PHP is built with thread safety (yes) or not (no). | ||
php_zts=@PHP_THREAD_SAFETY@ | ||
|
||
Name: PHP Embed SAPI | ||
Description: A lightweight SAPI to embed PHP into application using C bindings | ||
URL: https://www.php.net | ||
License: PHP | ||
Version: @PHP_VERSION@ | ||
Cflags: -I${includedir} -I${includedir}/main -I${includedir}/TSRM -I${includedir}/Zend -I${includedir}/ext -I${includedir}/ext/date/lib | ||
Libs.private: @EXTRA_LIBS@ @ZEND_EXTRA_LIBS@ | ||
Libs: -L${libdir} -lphp |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||||
# The pkg-config .pc file for PHP. | ||||||
|
||||||
prefix=@prefix@ | ||||||
exec_prefix=@exec_prefix@ | ||||||
includedir=@includedir@/php | ||||||
libdir=@orig_libdir@ | ||||||
# PHP extension directory containing dynamically loadable PHP extensions. | ||||||
php_extension_dir=@EXTENSION_DIR@ | ||||||
# PHP version as integer. | ||||||
php_vernum=@PHP_VERSION_ID@ | ||||||
# The path where to scan for additional INI configuration files. | ||||||
php_ini_dir=@EXPANDED_PHP_CONFIG_FILE_SCAN_DIR@ | ||||||
# The path in which to look for php.ini. | ||||||
php_ini_path=@EXPANDED_PHP_CONFIG_FILE_PATH@ | ||||||
# Whether PHP is built in debug mode (yes) or not (no). | ||||||
php_debug=@ZEND_DEBUG@ | ||||||
# Whether PHP is built with thread safety (yes) or not (no). | ||||||
php_zts=@PHP_THREAD_SAFETY@ | ||||||
|
||||||
Name: PHP | ||||||
Description: Build extension for a PHP general-purpose scripting language | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, isn't this supposed to be the description of the package? So maybe instead
Suggested change
|
||||||
URL: https://www.php.net | ||||||
License: PHP | ||||||
Version: @PHP_VERSION@ | ||||||
Cflags: -I${includedir} -I${includedir}/main -I${includedir}/TSRM -I${includedir}/Zend -I${includedir}/ext -I${includedir}/ext/date/lib | ||||||
Libs.private: @EXTRA_LIBS@ @ZEND_EXTRA_LIBS@ | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to add |
||||||
Libs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might better be
pkg-config metadata file
or maybe just.pc
, or something like this.