summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-03-13 11:21:27 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-03-13 11:21:27 +0000
commitba391f6a40dcd8927b57d910490d1dc05f2ac571 (patch)
treebb896aacd420e7d44e8c2788913d0adbc0a51855 /Mk
parent- Mark xtrans as a BUILD_DEPENDS only (unless specified otherwise with :both) (diff)
[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@
Notes
Notes: svn path=/head/; revision=208926
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+= \