From 03e401cf11fa9c26ab4cfd1c3eca67403879d771 Mon Sep 17 00:00:00 2001 From: edwin Date: Thu, 13 Mar 2008 11:21:27 +0000 Subject: [patch] improve Mk/bsd.sites.mk MASTER_SITE_GOOGLE_CODE variable There are 18 ports which can't use the MASTER_SITE_GOOGLE_CODE variable for MASTER_SITES yet because their PORTNAME isn't the same as the hostname. For example: graphics/tesseract/Makefile:MASTER_SITES= http://tesseract-ocr.googlecode.com/files/ CENKES net-im/jabber-pyaim/Makefile:MASTER_SITES= http://pyaimt.googlecode.com/files/ net-im/jabber-pyicq/Makefile:MASTER_SITES= http://pyicqt.googlecode.com/files/ This patch introduces the PROJECTHOST variable which can be used to overcome this problem. PR: ports/121453 Submitted by: Edwin Groothuis Reviewed by: pav@ --- Mk/bsd.sites.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Mk') diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk index cc1300198041..0fd7b750f52c 100644 --- a/Mk/bsd.sites.mk +++ b/Mk/bsd.sites.mk @@ -596,9 +596,14 @@ MASTER_SITE_GNU_ALPHA+= \ .endif .if !defined(IGNORE_MASTER_SITE_GOOGLE_CODE) +.if defined(PROJECTHOST) +MASTER_SITE_GOOGLE_CODE+= \ + http://${PROJECTHOST}.googlecode.com/files/ +.else MASTER_SITE_GOOGLE_CODE+= \ http://${PORTNAME}.googlecode.com/files/ .endif +.endif .if !defined(IGNORE_MASTER_SITE_HORDE) MASTER_SITE_HORDE+= \ -- cgit