File: rules

package info (click to toggle)
php-maxminddb 1.11.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 148 kB
  • sloc: ansic: 676; xml: 56; makefile: 4
file content (7 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#!/usr/bin/make -f
export REPORT_EXIT_STATUS:=0
PECL_CONFIGURE_MAINT_APPEND := --with-libmaxminddb
include /usr/share/dh-php/pkg-pecl.mk

# Override the source directory to be the ext/ subdir
$(foreach ver,$(DH_PHP_VERSIONS),$(eval PECL_SOURCE_$(ver) := $(if $(PACKAGE_XML_$(ver)),$(shell xml2 < $(PACKAGE_XML_$(ver)) | sed -ne "s,^/package/name=,,p")-$(shell xml2 < $(PACKAGE_XML_$(ver)) | sed -ne "s,^/package/version/release=,,p")/ext,undefined)))