Projects
Kolab:16:Enterprise
libkolab
debian.rules
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package libkolab (Revision 7)
Currently displaying revision
7
,
Show latest
#!/usr/bin/make -f PHPAPI := $(shell php-config --phpapi) PHPBIN := $(shell php-config --php-binary) 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)') export DH_VERBOSE=1 export DH_OPTIONS=-v export DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed" %: dh $@ --parallel --with python2 override_dh_auto_configure: if [ $$(php-config --vernum) -gt 70000 ]; then \ sed -i \ -e 's/-c++ -php/-c++ -php7/g' \ -e 's|php php5|php php5 php/$(PHPAPI)|g' cmake/modules/SWIGUtils.cmake ; \ fi dh_auto_configure -- \ -DLIB_INSTALL_DIR=/usr/lib \ -DPHP_BINDINGS=ON \ -DPHP_INSTALL_DIR=$(PHPEXT) \ -DPHP4_EXECUTABLE=$(PHPBIN) \ -DPHP4_INCLUDE_PATH=$(PHPINC) \ -DPYTHON_BINDINGS=ON \ -DPYTHON_INSTALL_DIR=$(PYTHON_SITEARCH) \ -DUSE_LIBCALENDARING=ON override_dh_gencontrol: echo "php:Depends=phpapi-${PHPAPI}" >> debian/php-kolab.substvars dh_gencontrol override_dh_install: # Install the PHP modules manually, because they depend on PHP the API version, # which has to be determined dynamically, so we can't put it into an .install file. mkdir -p debian/tmp/usr/share/php mv debian/tmp/$(PHPEXT)/kolabcalendaring.php debian/tmp/usr/share/php/kolabcalendaring.php mv debian/tmp/$(PHPEXT)/kolabicalendar.php debian/tmp/usr/share/php/kolabicalendar.php mv debian/tmp/$(PHPEXT)/kolabobject.php debian/tmp/usr/share/php/kolabobject.php mv debian/tmp/$(PHPEXT)/kolabshared.php debian/tmp/usr/share/php/kolabshared.php echo "$(PHPEXT)" >> debian/php-kolab.install # Put kolab.ini into place if [ -d "/etc/php/7.2/mods-available" ]; then \ echo "debian/kolab.ini etc/php/7.2/mods-available" >> debian/php-kolab.install ; \ elif [ -d "/etc/php/7.0/mods-available" ]; then \ echo "debian/kolab.ini etc/php/7.0/mods-available" >> debian/php-kolab.install ; \ elif [ -d "/etc/php/mods-available" ]; then \ echo "debian/kolab.ini etc/php/mods-available" >> debian/php-kolab.install ; \ else \ echo "debian/kolab.ini etc/php5/mods-available" >> debian/php-kolab.install ; \ fi touch debian/tmp/$(PYTHON_SITEARCH)/kolab/__init__.py # Install the packages dh_install --list-missing override_dh_auto_test: dh_auto_test || : override_dh_shlibdeps: dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
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
.