summaryrefslogtreecommitdiffstats
path: root/www/firefox35/Makefile
blob: e1f36bdd8f8743996f63200771dcc34567459926 (plain)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# ex:ts=8
#
# New ports collection makefile for:	phoenix
# Date created:			2002/10/21
# Whom:				Alan Eldridge <alane@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=		phoenix
PORTVERSION=		0.4
PORTREVISION=		6
CATEGORIES=		www # pita
MASTER_SITES=		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	trevor

MAINTAINER=		phoenix@freebsd.org # alane@fbsd and trevor@fbsd

LIB_DEPENDS=	gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		png.5:${PORTSDIR}/graphics/png \
		mng.1:${PORTSDIR}/graphics/libmng \
		freetype.9:${PORTSDIR}/print/freetype2 \
		IDL.2:${PORTSDIR}/devel/ORBit \
		Xft2.2:${PORTSDIR}/x11-fonts/Xft \
		iconv.3:${PORTSDIR}/converters/libiconv

BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip \
		freetype-config:${PORTSDIR}/print/freetype2

USE_X_PREFIX=		yes

USE_BZIP2=		yes
USE_GMAKE=		yes
USE_PERL5=		yes
USE_REINPLACE=		yes
HAS_CONFIGURE=		yes

USE_GNOMENG=		yes
USE_GNOME=		gtk12 orbit

CFLAGS+=		${PTHREAD_CFLAGS}
LIBS+=			${PTHREAD_LIBS}

NO_MTREE=		yes
WRKSRC=			${WRKDIR}/mozilla
LOCAL_PREFIX=		${PREFIX}/lib/${PORTNAME}
MAKE_ENV+=		XP_UNIX=1
MAKE_ARGS+=		XP_UNIX=1

.include <bsd.port.pre.mk>

.if !defined(PERL_LEVEL)
perl_major=${PERL_VERSION:C|^([1-9]+).*|\1|}
_perl_minor=00${PERL_VERSION:C|^([1-9]+)\.([0-9]+).*|\2|}
perl_minor=${_perl_minor:C|^.*(...)|\1|}
.if ${perl_minor} >= 100
perl_minor=${PERL_VERSION:C|^([1-9]+)\.([0-9][0-9][0-9]).*|\2|}
perl_patch=${PERL_VERSION:C|^.*(..)|\1|}
.else # ${perl_minor} < 100
_perl_patch=0${PERL_VERSION:C|^([1-9]+)\.([0-9]+)\.*|0|}
perl_patch=${_perl_patch:C|^.*(..)|\1|}
.endif # ${perl_minor} < 100
PERL_LEVEL=${perl_major}${perl_minor}${perl_patch}
.endif # !defined(PERL_LEVEL)

SITE_PERL?=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}

.if ${OSVERSION} > 500038

BROKEN=	"on -CURRENT, can only be used with local files. You can run"
BROKEN+="make with -DNO_IGNORE to override this message"

.endif

.if ${PERL_LEVEL} < 500601
.undef NO_IGNORE
BROKEN=	"right now, we can only support the ports versions of Perl."
BROKEN+="We are working on the problem. Sorry for the inconvenience."
BROKEN+="If you have installed a Perl port, and are getting this message,"
BROKEN+="please make sure you have issued the command 'use.perl port'"

.endif # ${PERL_LEVEL} < 500601

pre-extract::
	@${ECHO_MSG}
	@${ECHO_MSG} "Extracting source (this takes a while) ..."
	@${ECHO_MSG}

post-extract::
	@${SED} -e 's|@CFLAGS@|${CFLAGS}|'		\
		-e 's|@LIBS@|${LIBS}|'			\
		-e 's|@X11BASE@|${X11BASE}|'		\
		-e 's|@LOCALBASE@|${LOCALBASE}|'	\
		-e 's|@PREFIX@|${LOCAL_PREFIX}|'	\
		<${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig
	@${CAT} ${PKGMESSAGE} 2>/dev/null; sleep 5

# fix for Xft (thanks to marcus@)
post-patch:
	cd ${WRKSRC}/gfx/src/gtk;				\
	${REINPLACE_CMD} -e 's|X11/Xft/Xft\.h|X11/Xft/Xft2.h|g'	\
		nsDrawingSurfaceGTK.cpp	nsFontMetricsXft.h

post-install:
	@${RM} -f ${PREFIX}/bin/phoenix
	@${LN} -s ${LOCAL_PREFIX}/bin/phoenix \
		${PREFIX}/bin/phoenix
	@${RM} -f ${PREFIX}/bin/phoenix-config
	@${LN} -s ${LOCAL_PREFIX}/bin/mozilla-config \
		${PREFIX}/bin/phoenix-config
	@${CAT} ${PKGMESSAGE} 2>/dev/null; sleep 5
	@${RM} -fr ${LOCAL_PREFIX}/share
	@${RM} -fr ${LOCAL_PREFIX}/include

.include <bsd.port.post.mk>

#EOF
OpenPOWER on IntegriCloud