SVNVER=1.4.6 SVNURL=http://subversion.tigris.org/downloads SVNDEPSVER=$(SVNVER) SVNDEPSURL=$(SVNURL) PACKAGEURLS:=\ http://softlayer.dl.sourceforge.net/project/expat/expat/1.95.8/expat-1.95.8.tar.gz \ http://download.oracle.com/berkeley-db/db-4.2.52.tar.gz \ http://www.oracle.com/technology/products/berkeley-db/db/update/4.2.52/patch.4.2.52.1 \ http://www.oracle.com/technology/products/berkeley-db/db/update/4.2.52/patch.4.2.52.2 \ http://www.oracle.com/technology/products/berkeley-db/db/update/4.2.52/patch.4.2.52.3 \ http://www.oracle.com/technology/products/berkeley-db/db/update/4.2.52/patch.4.2.52.4 \ http://www.oracle.com/technology/products/berkeley-db/db/update/4.2.52/patch.4.2.52.5 \ ${SVNURL}/subversion-${SVNVER}.tar.gz \ ${SVNDEPSURL}/subversion-deps-${SVNDEPSVER}.tar.gz PACKAGES:=$(notdir ${PACKAGEURLS}) # removes everything up to the last slash PACKAGETARS:=$(basename ${PACKAGES}) # removes ".gz" PACKAGEDIRS:=$(basename ${PACKAGETARS}) # removes ".tar" .PHONY: default build fetch verify archive prebuilt checksums clean default: build all: build build: fetch verify libtool ./build_01_db_mac ./build_03_expat_mac ./build_04_svn_mac ${SVNVER} ${SVNDEPSVER} chmod u+w inst/bin/* fetch: $(PACKAGES) verify: $(PACKAGES) @md5 $(PACKAGES) | diff -u checksums-$(SVNVER)-$(SVNDEPSVER).md5 - || (echo;echo "Checksums failed for one or more downloaded packages. Note that the db package checksum changes from time to time because the owners repackage and modify the archive. If you are happy with your copies, run 'make checksums'.";exit 1) $(PACKAGES): curl -LO $(filter %$@,$(PACKAGEURLS)) archive: inst/bin/svnversion tar cjvf scplugin-static-subversion-$(SVNVER).tbz inst md5 scplugin-static-subversion-$(SVNVER).tbz > scplugin-static-subversion-$(SVNVER).md5 prebuilt: scplugin-static-subversion-$(SVNVER).tbz md5 scplugin-static-subversion-$(SVNVER).tbz | \ diff -u scplugin-static-subversion-$(SVNVER).md5 - tar xjvf scplugin-static-subversion-$(SVNVER).tbz checksums: fetch md5 $(PACKAGES) > $@-$(SVNVER)-$(SVNDEPSVER).md5 % : %.gz gunzip < $< > $@ clean: rm -rf $(PACKAGEDIRS) inst clobber: clean rm -rf $(PACKAGES)