Project

General

Profile

« Previous | Next » 

Revision 6187

root Makefile: PostgreSQL: postgres-Darwin: Updated for PostgreSQL 9.1.6, which requires some /usr/lib/ symlinks to be changed to newer versions installed in the PostgreSQL lib/ dir

View differences:

Makefile
150 150
# run pg_version inline because it needs postgresql to be installed first
151 151
# ignore errors if conf files already edited
152 152

  
153
define macUsePostgresLib
154
sudo mv $(libDest) $(libDest).old||sudo rm -f $(libDest)
155
sudo ln -s /Library/PostgreSQL/9.1/lib/$(1) $(libDest)
156

  
157
endef
158
libDest = /usr/lib/$(1)
159

  
160
macPostgresLibs := libcrypto libssl
161
macPostgresLibs := $(macPostgresLibs) $(macPostgresLibs:%=%.1.0.0)
162
macPostgresLibs := $(macPostgresLibs:%=%.dylib)
163

  
153 164
postgres-Darwin: _always
154 165
	@echo $(emph)'Installing PostgreSQL on Mac OS X:'$(endEmph)
155 166
	@echo 'Download it using the topmost "Mac OS X" link at http://http://www.enterprisedb.com/products-services-training/pgdownload'
156 167
	@echo 'Open the disk image'
157 168
	@echo 'Run the installer in it'
158 169
	@$(wait)
170
	$(foreach lib,$(macPostgresLibs),$(call macUsePostgresLib,$(lib)))
159 171

  
160 172
postgres-: _always ; # other OSes
161 173

  

Also available in: Unified diff