diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-26 13:11:25 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-26 13:11:25 +0800 |
commit | d027eea0fa068663203cda4eabf8eb8c77f50c2d (patch) | |
tree | 4d62d83626422f751dd3ca8ec656571f855c717b /www | |
parent | 7e5373c3d4f0dcae016e5d41e02e0d569db4611c (diff) | |
download | marcuscom-ports-d027eea0fa068663203cda4eabf8eb8c77f50c2d.tar marcuscom-ports-d027eea0fa068663203cda4eabf8eb8c77f50c2d.tar.gz marcuscom-ports-d027eea0fa068663203cda4eabf8eb8c77f50c2d.tar.bz2 marcuscom-ports-d027eea0fa068663203cda4eabf8eb8c77f50c2d.tar.lz marcuscom-ports-d027eea0fa068663203cda4eabf8eb8c77f50c2d.tar.xz marcuscom-ports-d027eea0fa068663203cda4eabf8eb8c77f50c2d.tar.zst marcuscom-ports-d027eea0fa068663203cda4eabf8eb8c77f50c2d.zip |
- Move Mk/bsd.mozilla.mk to www/mozilla/bsd.gecko.mk
Requested by: marcus and mezz
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5218 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www')
-rw-r--r-- | www/epiphany-extensions/Makefile | 3 | ||||
-rw-r--r-- | www/epiphany/Makefile | 3 | ||||
-rw-r--r-- | www/galeon/Makefile | 3 | ||||
-rw-r--r-- | www/mozilla/Makefile.common | 3 | ||||
-rw-r--r-- | www/mozilla/bsd.gecko.mk | 113 |
5 files changed, 120 insertions, 5 deletions
diff --git a/www/epiphany-extensions/Makefile b/www/epiphany-extensions/Makefile index 73224a48b..d5b70c61c 100644 --- a/www/epiphany-extensions/Makefile +++ b/www/epiphany-extensions/Makefile @@ -3,7 +3,7 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/www/epiphany-extensions/Makefile,v 1.57 2005/11/12 21:48:45 ahze Exp $ +# $MCom: ports/www/epiphany-extensions/Makefile,v 1.58 2005/11/24 03:00:51 ahze Exp $ # PORTNAME= epiphany @@ -40,6 +40,7 @@ WITH_OPENSP= yes .endif .include <bsd.port.pre.mk> +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" .if defined(WITH_OPENSP) || exists(${LOCALBASE}/lib/libosp.so) CONFIGURE_ARGS+= --enable-opensp=yes diff --git a/www/epiphany/Makefile b/www/epiphany/Makefile index 1265904c7..d27a65036 100644 --- a/www/epiphany/Makefile +++ b/www/epiphany/Makefile @@ -3,7 +3,7 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/www/epiphany/Makefile,v 1.88 2005/11/16 22:43:12 marcus Exp $ +# $MCom: ports/www/epiphany/Makefile,v 1.89 2005/11/24 03:00:50 ahze Exp $ # PORTNAME= epiphany @@ -42,6 +42,7 @@ PLIST_SUB+= EPHY_VERSION="${PORTVERSION:C/\.[0-9]+$//}" MAN1= epiphany.1 .include <bsd.port.pre.mk> +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" NO_WERROR= yes # allow build with more warnings enabled diff --git a/www/galeon/Makefile b/www/galeon/Makefile index c79640934..8cd2ea289 100644 --- a/www/galeon/Makefile +++ b/www/galeon/Makefile @@ -3,7 +3,7 @@ # Whom: Maxim Sobolev <sobomax@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/www/galeon/Makefile,v 1.3 2005/08/26 04:03:55 marcus Exp $ +# $MCom: ports/www/galeon/Makefile,v 1.5 2005/11/24 03:39:05 ahze Exp $ # PORTNAME= galeon @@ -36,6 +36,7 @@ MAN1= galeon.1 GCONF_SCHEMAS= galeon.schemas .include <bsd.port.pre.mk> +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" .if ${OSVERSION} > 500000 # Galeon does not build correctly in -CURRENT if -Werror is passed diff --git a/www/mozilla/Makefile.common b/www/mozilla/Makefile.common index 433bcc89f..6f8590903 100644 --- a/www/mozilla/Makefile.common +++ b/www/mozilla/Makefile.common @@ -4,7 +4,7 @@ # Whom: Michael Johnson <ahze@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/www/mozilla/Makefile.common,v 1.13 2005/11/23 04:54:58 ahze Exp $ +# $MCom: ports/www/mozilla/Makefile.common,v 1.14 2005/11/24 01:43:42 ahze Exp $ # Ports can use the following: # @@ -355,4 +355,3 @@ gecko-post-install: fi .endif @-update-desktop-database - diff --git a/www/mozilla/bsd.gecko.mk b/www/mozilla/bsd.gecko.mk new file mode 100644 index 000000000..c0f5fa018 --- /dev/null +++ b/www/mozilla/bsd.gecko.mk @@ -0,0 +1,113 @@ +#-*- mode: Fundamental; tab-width: 4; -*- +# ex:ts=4 +# +# $FreeBSD$ +# $MCom: ports/Mk/bsd.mozilla.mk,v 1.20 2005/11/26 00:06:25 ahze Exp $ +# +# 4 column tabs prevent hair loss and tooth decay! + +#.if defined(_POSTMKINCLUDED) && !defined(Mozilla_Pre_Include) + +# Please make sure all changes to this file are passed through the maintainer. +# Do not commit them yourself (unless of course you're the Port's Wraith ;). +Mozilla_Include_MAINTAINER= gnome@FreeBSD.org +Mozilla_Pre_Include= bsd.mozilla.mk + +# Ports can use the following: +# +# USE_GECKO= mozilla firefox mozilla-devel +# Lists gecko's the port supports. The first entry will +# be the default gecko to use unless WITH_GECKO is defined +# then bsd.mozilla.mk will test if the listed entries in +# WITH_GECKO and match ones in USE_GECKO, if true then the +# first match found in WITH_GECKO will be used. bsd.mozilla.mk +# will set MOZILLA to the gecko it will be using. +# +# The use of USE_GECKO= yes will default to firefox unless +# WITH_GECKO is defined and this means your port supports +# every gecko listed in bsd.mozilla.mk +# +# .if ${GECKO}=="seamonkey" +# CONFIGURE_ARGS+= --with-mozilla=${GECKO} +# .endif +# +# End users can use the following: +# +# WITH_GECKO= mozilla firefox seamonkey +# + +_GECKO_ALL= firefox firefox-devel mozilla mozilla-devel nvu \ + seamonkey sunbird thunderbird + +_NEW_GCC_GECKO= firefox firefox-devel mozilla-devel seamonkey sunbird + +sunbird_PORTSDIR= deskutils +thunderbird_PORTSDIR= mail + +.for gecko in ${_GECKO_ALL} +${gecko}_PORTSDIR?= www +${gecko}_DEPENDS?= ${PORTSDIR}/${${gecko}_PORTSDIR}/${gecko} +${gecko}_PLIST?= ${X11BASE}/lib/${gecko}/libgtkembedmoz.so +.endfor + +# Figure out which mozilla to use +# Weed out bad options in USE_GECKO +.for badgecko in ${USE_GECKO} +. if ${_GECKO_ALL:M${badgecko}}!="" +GOOD_USE_GECKO+= ${badgecko} +. endif +.endfor + +.undef GECKO_FALLTHROUGH +# Figure out which mozilla to use and weed out the bad ones +.if defined(WITH_GECKO) && defined(GOOD_USE_GECKO) +. for badgecko in ${WITH_GECKO} +. if ${GOOD_USE_GECKO:M${badgecko}}!="" +GOOD_WITH_GECKO+= ${badgecko} +. endif +. endfor +. if defined(GOOD_WITH_GECKO) +. for gecko in ${GOOD_WITH_GECKO} +. if !defined(GECKO_FALLTHROUGH) +GECKO= ${gecko} +GECKO_FALLTHROUGH= ${TRUE} +. endif +. endfor +. endif +.endif + +.if !defined(GECKO) && defined(GOOD_USE_GECKO) +. for gecko in ${GOOD_USE_GECKO} +. if !defined(GECKO_FALLTRHOUGH) +GECKO= ${gecko} +GECKO_FALLTRHOUGH= ${TRUE} +. endif +. endfor +.endif + +.if defined(GECKO) && ${_GECKO_ALL:M${GECKO}}!="" +. if ${_NEW_GCC_GECKO:M${GECKO}}!="" +USE_GCC?= 3.4+ +. endif +.endif + +.if defined(GECKO) && ${_GECKO_ALL:M${GECKO}}!="" +BUILD_DEPENDS+= ${${GECKO}_PLIST}:${${GECKO}_DEPENDS} +RUN_DEPENDS+= ${${GECKO}_PLIST}:${${GECKO}_DEPENDS} +.else +BROKEN="Bad use of USE_GECKO" +.endif + +pre-everything:: _gecko-pre-everything + +_gecko-pre-everything:: + @${ECHO_CMD} "" + @${ECHO_CMD} " ${PORTNAME} is using ${GECKO} for gecko support but you can" + @${ECHO_CMD} " change by defining WITH_GECKO to the following values:" + @${ECHO_CMD} "" +.for gecko in ${GOOD_USE_GECKO} + @${ECHO_CMD} " ${gecko} " +.endfor + @${ECHO_CMD} "" +#.endif # end it all +# HERE THERE BE TACOS |