File: rules

package info (click to toggle)
php-adodb 5.04-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 160 kB
  • ctags: 158
  • sloc: ansic: 1,436; php: 19; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 699 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
EXTN=adodb
BUILD=$(CURDIR)/debian/php5-$(EXTN)
PHP_EX=$(shell /usr/bin/php-config5 --extension-dir)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

CFLAGS += -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
DEB_CONFIGURE_EXTRA_FLAGS = --disable-rpath --with-php-config=/usr/bin/php-config5
DEB_MAKE_INSTALL_TARGET =

makebuilddir/php5-$(EXTN)::
	[ -f configure ] || phpize5

clean::
	phpize5 --clean

install/php5-$(EXTN)::
	install -D -m 644 modules/$(EXTN).so $(BUILD)$(PHP_EX)/$(EXTN).so
	install -D -m 644 debian/$(EXTN).ini $(BUILD)/etc/php5/conf.d/$(EXTN).ini
	echo "php:Depends=phpapi-`php-config5 --phpapi`" >> $(BUILD).substvars