blob: 227b008f88ed8a6a6a34602de2711bb5e9ba84a8 (
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
|
# 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
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= trevor
MAINTAINER= phoenix@geeksrus.net # 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
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
freetype-config:${PORTSDIR}/print/freetype2
USE_X_PREFIX= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
#USE_AUTOCONF_VER= 213
GNU_CONFIGURE= yes
USE_GNOMENG= yes
USE_GNOME= gtk12 ORBit
CFLAGS+= ${PTHREAD_CFLAGS}
LIBS+= ${PTHREAD_LIBS}
.if defined(OPTIMIZE)
CFLAGS+= -O2
.endif # defined(OPTIMIZE)
NO_MTREE= yes
WRKSRC= ${WRKDIR}/mozilla
LOCAL_PREFIX= ${PREFIX}/lib/${PORTNAME}
.include <bsd.port.pre.mk>
SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
PERL_MAJOR=${PERL_VER:C|^([1-9]+).*|\1|}
PERL_MINOR=${PERL_VER:C|^[1-9]+\.0*([1-9]+).*|\1|}
.if ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS= ${BUILD_DEPENDS}
.endif # ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
.if ${OSVERSION} > 500038
BROKEN= "on -CURRENT, can only be used with local files"
.endif
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
# 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:
${LN} -s ${LOCAL_PREFIX}/bin/phoenix \
${PREFIX}/bin/phoenix
${LN} -s ${LOCAL_PREFIX}/bin/mozilla-config \
${PREFIX}/bin/phoenix-config
.include <bsd.port.post.mk>
#EOF
|