gunnar: server/php Makefile,1.22,1.23
cvs at kolab.org
cvs at kolab.org
Thu Jul 9 18:02:03 CEST 2009
Author: gunnar
Update of /kolabrepository/server/php
In directory doto:/tmp/cvs-serv27936
Modified Files:
Makefile
Log Message:
Simplify the Makefile
Index: Makefile
===================================================================
RCS file: /kolabrepository/server/php/Makefile,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Makefile 25 Jun 2009 13:07:39 -0000 1.22
+++ Makefile 9 Jul 2009 16:02:01 -0000 1.23
@@ -1,22 +1,4 @@
-ifeq "x$(KOLABPKGURI)" "x"
- KOLABPKGURI = http://files.kolab.org/server/development-2.2/openpkg-orig-srpms/
-endif
-ifeq "x$(KOLABRPMSRC)" "x"
- KOLABRPMSRC = $(HOME)/RPM/SRC
-endif
-ifeq "x$(KOLABRPMPKG)" "x"
- KOLABRPMPKG = $(HOME)/RPM/PKG
-endif
-ifeq "x$(KOLABCVSDIR)" "x"
- KOLABCVSDIR = $(CURDIR)
-endif
-ifeq "x$(RPM)" "x"
- RPM = $(HOME)/bin/openpkg rpm
-endif
-
-ifeq "x$(PLATTAG)" "x"
- PLATTAG = $(shell $(RPM) -q --qf="%{ARCH}-%{OS}" openpkg)-$(HOME:/%=%)
-endif
+include ../Base.mk
PACKAGE=php
VERSION=5.2.8
@@ -24,17 +6,18 @@
KOLABRELEASE=20081209_kolab3
PATCHES=../php/patches/php-$(VERSION)/KOLAB_php-$(VERSION)_Annotations.patch \
- ../php/patches/php-$(VERSION)/KOLAB_php-$(VERSION)_myrights.patch
+ ../php/patches/php-$(VERSION)/KOLAB_php-$(VERSION)_myrights.patch \
+ kolab.patch
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
-$(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).$(PLATTAG).rpm $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(KOLABCVSDIR)/kolab.patch $(PATCHES) Makefile
+$(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).$(PLATTAG).rpm $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(PATCHES) Makefile
$(RPM) -ihv $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
cp $(PATCHES) $(KOLABRPMSRC)/$(PACKAGE)/
- cd $(KOLABRPMSRC)/$(PACKAGE) && patch < $(KOLABCVSDIR)/kolab.patch && $(RPM) -ba $(PACKAGE).spec \
+ cd $(KOLABRPMSRC)/$(PACKAGE) && patch < kolab.patch && $(RPM) -ba $(PACKAGE).spec \
--define 'with_imap_annotate yes' --define 'with_imap_myrights yes' \
--define 'with_pear yes' --define 'with_spl yes' --define 'with_gettext yes' \
--define 'with_dom yes' --define 'with_mcrypt yes' --define 'with_iconv yes' \
@@ -45,18 +28,18 @@
--define 'with_sqlite yes' --define 'with_spl yes' --define 'with_hash yes' \
--define 'with_json yes'
- cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm $(KOLABCVSDIR)
+ cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm .
$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm:
wget -c $(KOLABPKGURI)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
.PHONY: dist
dist: all
- cp $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm ../stage/
+ cp $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm ../stage/
.PHONY: clean
clean:
- rm -f $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
+ rm -f $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
.PHONY: install
install: $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).$(PLATTAG).rpm
More information about the commits
mailing list