Projects
Kolab:Winterfell
libkolabxml
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 18
View file
debian.rules
Changed
@@ -1,6 +1,8 @@ #!/usr/bin/make -f PHPAPI := $(shell php-config --phpapi) +PHPEXT := $(shell php-config --extension-dir) +PHPINC := $(shell php-config --include-dir) PYTHON_SITEARCH := $(shell python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') # Uncomment this to turn on verbose mode. @@ -17,12 +19,6 @@ dh_gencontrol override_dh_auto_configure: - phpinc=$$(ls -1d /usr/include/php/*/) ; \ - if [ ! -z "$${phpinc}" ]; then \ - paths=$$(echo $${phpinc} | sed -e 's|/usr/include/||' -e 's|/$$||g') ; \ - sed -i -e "s|php php5|php php5 $${paths}|g" src/php/CMakeLists.txt ; \ - fi - if [ $$(php-config --vernum) -gt 70000 ]; then \ sed -i -e 's/-c++ -php/-c++ -php7/g' src/php/CMakeLists.txt ; \ fi @@ -30,6 +26,7 @@ dh_auto_configure -- \ -DSWIG=/usr/bin/swig \ -DPHP_BINDINGS=ON \ + -DPHP_INCLUDE_DIR=$(PHPINC) \ -DPYTHON_BINDINGS=ON \ -DPYTHON_INSTALL_DIR=$(PYTHON_SITEARCH)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.