summaryrefslogtreecommitdiff
path: root/php/Makefile
blob: 94b73ff845e7516c7ab91b6219948d1c2b3ebd06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include ../make-helper/kolab.mk

PACKAGE = $(shell grep "^Name:" *.spec | sed -e "s/^Name:\s*\([a-z-]*\).*/\1/")
VERSION = $(shell grep "^Version:" *.spec | sed -e "s/^Version:\s*\([0-9.]*\).*/\1/")
RELEASE = $(shell grep "^Release:" *.spec | sed -e "s/^Release:\s*\([0-9]*\).*/\1/")

SOURCE_URL=http://www.php.net/distributions
SOURCE_0=php-$(VERSION).tar.bz2

PATCHES=patches/php-$(VERSION)/KOLAB_php-$(VERSION)_Annotations.patch \
        patches/php-$(VERSION)/KOLAB_php-$(VERSION)_myrights.patch \

EXTRA=$(PATCHES) php.ini php.patch

BUILD_OPTIONS=--define 'with_imap_annotate yes' --define 'with_imap_myrights yes' \
              --define 'with_pear yes' --define 'with_gettext yes' \
              --define 'with_dom yes' --define 'with_mcrypt yes' --define 'with_iconv yes' \
              --define 'with_mbstring yes' --define 'with_mbregex yes' --define 'with_gd yes' \
              --define 'with_imap yes' --define 'with_ssl yes' --define 'with_ctype yes' \
              --define 'with_openldap yes' --define 'with_hash yes' --define 'with_zlib yes' \
              --define 'with_bdb yes' --define 'with_xml yes' --define 'with_mm yes' \
              --define 'with_simplexml yes' --define 'with_sqlite yes' --define 'with_spl yes' \
              --define 'with_json yes' --define 'with_tokenizer yes'

include ../make-helper/package.mk
include ../make-helper/package-new.mk
include ../make-helper/fetch.mk