7
include /usr/share/cdbs/1/rules/debhelper.mk
9
PHP_EX7=$(shell /usr/bin/php-config7.0 --extension-dir)
11
# don't link against unnecessary libraries such as libX11
12
export LDFLAGS += -Wl,--as-needed
14
# error linking: contains an unresolvable reference to symbol php_info_print_table_row
15
# export DEB_DH_SHLIBDEPS_ARGS_ALL=--dpkg-shlibdeps-params=--ignore-missing-info
22
rm -f debian/php7.0-*.postrm \
23
debian/php7.0-*.postinst
24
-cd $(DEB_SRCDIR) && phpize7.0 --clean
26
configure_for_php7.0::
28
# - we don't want the module linked against some libx* (unused symbols)
29
# We want to link with just needed libraries
30
# - "-Wl,--as-needed" is ignored if not the first argument of the linker
31
# We have to patch the linker call script ltmain.sh
32
cd $(DEB_SRCDIR) && phpize7.0 && \
33
./configure --enable-$(PHP_EXTNAME) --with-php-config=/usr/bin/php-config7.0
34
sed -e 's/phpX/php7.0/g' < debian/phpX-$(PHP_PKGNAME).postinst > debian/php7.0-$(PHP_PKGNAME).postinst
35
sed -e 's/phpX/php7.0/g' < debian/phpX-$(PHP_PKGNAME).postrm > debian/php7.0-$(PHP_PKGNAME).postrm
41
install/php7.0-imagick:: configure_for_php7.0
42
$(MAKE) -C $(DEB_SRCDIR)
43
mkdir -p debian/php7.0-$(PHP_PKGNAME)$(PHP_EX7)
44
install -m 644 -o root -g root $(DEB_SRCDIR)/modules/$(PHP_EXTNAME).so debian/php7.0-$(PHP_PKGNAME)$(PHP_EX7)/$(PHP_EXTNAME).so
45
echo "php7:Depends=phpapi-`php-config7.0 --phpapi`, php7.0-common" >> debian/php7.0-$(PHP_PKGNAME).substvars
46
mkdir -p debian/php7.0-$(PHP_PKGNAME)/usr/share/php7.0-$(PHP_PKGNAME)
47
cp debian/$(PHP_EXTNAME).ini debian/php7.0-$(PHP_PKGNAME)/usr/share/php7.0-$(PHP_PKGNAME)/$(PHP_EXTNAME).ini-dist