aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2008-03-13 19:21:27 +0800
committeredwin <edwin@FreeBSD.org>2008-03-13 19:21:27 +0800
commit03e401cf11fa9c26ab4cfd1c3eca67403879d771 (patch)
treeda7124a8884530415f0995661f8cf3d9b93991a1 /Mk
parent0168f07d84c75869f83514e0ec3b0292b66a99ea (diff)
downloadfreebsd-ports-gnome-03e401cf11fa9c26ab4cfd1c3eca67403879d771.tar.gz
freebsd-ports-gnome-03e401cf11fa9c26ab4cfd1c3eca67403879d771.tar.zst
freebsd-ports-gnome-03e401cf11fa9c26ab4cfd1c3eca67403879d771.zip
[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 <edwin@mavetju.org> Reviewed by: pav@
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.sites.mk5
1 files changed, 5 insertions, 0 deletions
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+= \