Projects
Kolab:Winterfell
libkolabxml
debian.rules
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package libkolabxml (Revision 17)
Currently displaying revision
17
,
Show latest
#!/usr/bin/make -f PHPAPI := $(shell php-config --phpapi) PYTHON_SITEARCH := $(shell python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export DH_OPTIONS=-v export DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed" %: dh $@ --parallel --with python2 override_dh_gencontrol: echo "php:Depends=phpapi-${PHPAPI}" >> debian/php-kolabformat.substvars 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 dh_auto_configure -- \ -DSWIG=/usr/bin/swig \ -DPHP_BINDINGS=ON \ -DPYTHON_BINDINGS=ON \ -DPYTHON_INSTALL_DIR=$(PYTHON_SITEARCH) override_dh_install: mkdir -p debian/tmp/usr/share/php mv debian/tmp/usr/lib/php*/$(PHPAPI)/kolabformat.php debian/tmp/usr/share/php/kolabformat.php dh_install --list-missing
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
.