[csw-devel] SF.net SVN: gar:[20594] csw/mgar/pkg/postgresql/branches/postgresql-9.1/ Makefile
guengel at users.sourceforge.net
guengel at users.sourceforge.net
Fri Apr 5 22:09:39 CEST 2013
Revision: 20594
http://gar.svn.sourceforge.net/gar/?rev=20594&view=rev
Author: guengel
Date: 2013-04-05 20:09:38 +0000 (Fri, 05 Apr 2013)
Log Message:
-----------
postgresql/branches/postgresql-9.1: Fixed alternatives.
Modified Paths:
--------------
csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile
Modified: csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile 2013-04-05 20:09:09 UTC (rev 20593)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.1/Makefile 2013-04-05 20:09:38 UTC (rev 20594)
@@ -502,12 +502,15 @@
uppercase_server = SERVER
uppercase_client = CLIENT
uppercase_contrib = CONTRIB
-$(foreach pkg,$(myALTERNATIVES),\
+(foreach pkg,$(myALTERNATIVES),\
$(eval alt_priority = 20) \
$(foreach alt,$(NEEDED_ISAS), \
$(eval alt_priority=$(shell expr $(alt_priority) + 10)) \
- $(eval ALTERNATIVE_$(pkg)_$(alt) = $(subst /$(ISA_DEFAULT)/,/,$(foreach n,$(firstword $(BIN_NAMES_$(uppercase_$(pkg)))),$(bindir)/$(n)-$(BASE_VERSION_NODOT) $(n)-$(BASE_VERSION_NODOT) $(libexecdir)/$(alt)/$(NAME)/$(BASE_VERSION_NODOT)/$(n))) $(alt_priority)) \
- $(eval ALTERNATIVE_$(pkg)_$(alt) += $(subst /$(ISA_DEFAULT)/,/,$(foreach n,$(wordlist 2,$(words $(BIN_NAMES_$(uppercase_$(pkg)))),$(BIN_NAMES_$(uppercase_$(pkg)))),$(bindir)/$(n)-$(BASE_VERSION_NODOT) $(n)-$(BASE_VERSION_NODOT) $(libexecdir)/$(alt)/$(NAME)/$(BASE_VERSION_NODOT)/$(n)))) \
+ $(eval firstbin=$(firstword $(BIN_NAMES_$(uppercase_$(pkg))))) \
+ $(eval mybindir=$(prefix)/bin) \
+ $(eval mylibexecdir=$(prefix)/libexec/$(alt)) \
+ $(eval ALTERNATIVE_$(pkg)_$(alt) = $(subst /$(ISA_DEFAULT)/,/,$(mybindir)/$(firstbin)-$(BASE_VERSION_NODOT) $(NAME)$(BASE_VERSION_NODOT)-$(pkg) $(mylibexecdir)/$(NAME)/$(BASE_VERSION_NODOT)/$(firstbin)) $(alt_priority)) \
+ $(eval ALTERNATIVE_$(pkg)_$(alt) += $(subst /$(ISA_DEFAULT)/,/,$(foreach n,$(wordlist 2,$(words $(BIN_NAMES_$(uppercase_$(pkg)))),$(BIN_NAMES_$(uppercase_$(pkg)))),$(mybindir)/$(n)-$(BASE_VERSION_NODOT) $(NAME)$(BASE_VERSION_NODOT)-$(pkg) $(mylibexecdir)/$(NAME)/$(BASE_VERSION_NODOT)/$(n)))) \
)\
)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list