blob: d35e6e9f3704e74327d1f0d80a4890445751e802 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
# $FreeBSD$
# $MCom: ports/Mk/bsd.mozilla.mk,v 1.7 2005/11/12 07:55:19 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:
#
# WANT_MOZILLA= yes
# include bsd.mozilla.mk
#
# USE_MOZILLA= mozilla firefox mozilla-devel
# Lists gecko's the port supports. The first entry will
# be the default gecko to use unless WITH_MOZILLA is defined
# then bsd.mozilla.mk will test if the listed entries in
# WITH_MOZILLA and match ones in USE_MOZILLA, if true then the
# first match found in WITH_MOZILLA will be used. bsd.mozilla.mk
# will set MOZILLA to the gecko it will be using.
#
# The use of USE_MOZILLA= yes will default to firefox unless
# WITH_MOZILLA is defined and this means your port supports
# every gecko listed in bsd.mozilla.mk
#
# .if ${MOZILLA}=="seamonkey"
# CONFIGURE_ARGS+= --with-mozilla=${MOZILLA}
# .endif
#
# End users can use the following:
#
# WITH_MOZILLA= 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_MOZILLA
.for badgecko in ${USE_MOZILLA}
. if ${_GECKO_ALL:M${badgecko}}!=""
GOOD_USE_MOZILLA+= ${badgecko}
. endif
.endfor
# Figure out which mozilla to use and weed out the bad ones
.if defined(WITH_MOZILLA) && defined(GOOD_USE_MOZILLA)
. for badgecko in ${WITH_MOZILLA}
. if ${GOOD_USE_MOZILLA:M${badgecko}}!=""
GOOD_WITH_MOZILLA+= ${badgecko}
. endif
. endfor
. if defined(GOOD_WITH_MOZILLA)
MOZILLA= #### CHANGE ME
. endif
.endif
.if !defined(MOZILLA) && defined(GOOD_USE_MOZILLA)
MOZILLA= #### CHANGE ME
.endif
.if defined(MOZILLA) && ${_GECKO_ALL:M${MOZILLA}}!=""
. if ${_NEW_GCC_GECKO:M${MOZILLA}!=""
USE_GCC?= 3.4+
. endif
BUILD_DEPENDS+= ${MOZILLA_${PLIST}}:${MOZILLA_${DEPENDS}}
RUN_DEPENDS+= ${MOZILLA_${PLIST}}:${MOZILLA_${DEPENDS}}
.else
BROKEN="Bad use of USE_MOZILLA"
.endif
.endif # end all
# HERE THERE BE TACOS
|