blob: 7b6c77346bf5f5de7428abfa139c7c2978447512 (
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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
# New ports collection makefile for: OpenOffice
# Date created: 28 Februar 2002
# Whom: Martin Blapp
#
# $FreeBSD$
#
PORTNAME= openoffice
PORTVERSION= 1.0.0
CATEGORIES= editors
MASTER_SITES= ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/${PORTVERSION}/ \
http://niihau.student.utwente.nl/openoffice/${PORTVERSION}/ \
http://sf1.mirror.openoffice.org/${PORTVERSION}/ \
ftp://gd.tuwien.ac.at/office/openoffice/${PORTVERSION}/ \
ftp://ftp.cs.man.ac.uk/pub/toby/gpc/ \
http://people.freebsd.org/~mbr/distfiles/
DISTFILES= OOo_${PORTVERSION}_source.tar.bz2 gpc231.tar.Z \
oo_moz1.0RC3_includes.tgz
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
.if defined(USE_GCC) && ${USE_GCC} == 2.95
DISTFILES+= oo_moz1.0RC3_${ARCH}_FreeBSD-5-gcc2.95-ports.tar.gz
.else
DISTFILES+= oo_moz1.0RC3_${ARCH}_FreeBSD-5-gcc3.1-system.tar.gz
.endif
.else
.if defined(USE_GCC) && ${USE_GCC} == 3.1
DISTFILES+= oo_moz1.0RC3_${ARCH}_FreeBSD-4-gcc3.1-ports.tar.gz
.else
DISTFILES+= oo_moz1.0RC3_${ARCH}_FreeBSD-4-gcc2.95-system.tar.gz
.endif
.endif
EXTRACT_ONLY= OOo_${PORTVERSION}_source.tar.bz2
MAINTAINER= mbr@FreeBSD.org
.if ${OSVERSION} < 500000 && !defined(USE_GCC)
BUILD_DEPENDS= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
.endif
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk13
BUILD_DEPENDS+= imake:${PORTSDIR}/devel/imake-4
LIB_DEPENDS+= pth.14:${PORTSDIR}/devel/pth
USE_PERL5= yes
USE_XLIB= yes
USE_BZIP2= yes
USE_BISON= yes
USE_GMAKE= yes
EXTRACT_BEFORE_ARGS_R= -dc
EXTRACT_AFTER_ARGS_R= | ${TAR} -xf -
EXTRACT_CMD_R= ${GZIP_CMD}
.if ${OSVERSION} > 500000
.if defined(USE_GCC) && ${USE_GCC} == 2.95
EXTRACT_REST= gpc231.tar.Z oo_moz1.0RC3_${ARCH}_FreeBSD-5-gcc2.95-ports.tar.gz
.else
EXTRACT_REST= gpc231.tar.Z oo_moz1.0RC3_${ARCH}_FreeBSD-5-gcc3.1-system.tar.gz
.endif
.else
.if defined(USE_GCC) && ${USE_GCC} == 3.1
EXTRACT_REST= gpc231.tar.Z oo_moz1.0RC3_${ARCH}_FreeBSD-4-gcc3.1-ports.tar.gz
.else
EXTRACT_REST= gpc231.tar.Z oo_moz1.0RC3_${ARCH}_FreeBSD-4-gcc2.95-system.tar.gz
.endif
.endif
EXTRACT_REST+= oo_moz1.0RC3_includes.tgz
JDK13DIR?= ${LOCALBASE}/jdk1.3.1
JAVAVM= ${JDK13DIR}/bin/java
GNU_CONFIGURE= yes
USE_AUTOCONF= yes
WRKSRC= ${WRKDIR}/oo_1.0_src/config_office
LD_PATH1= ${WRKSRC}/../vos/unxfbsd.pro/lib/:${WRKSRC}/../ucbhelper/unxfbsd.pro/lib/
LD_PATH= ${LD_PATH1}:${WRKSRC}/../solver/641/unxfbsd.pro/lib
CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS}
CONFIGURE_ARGS+= --with-jdk-home=${JDK13DIR} \
--with-os-version=${OSVERSION}
.if !defined(USE_GCC)
CONFIGURE_ARGS+= --with-stlport4-home=${PREFIX}
.endif
.if defined(USE_GCC) && (${USE_GCC} == 3.1 || ${USE_GCC} == 3.2)
CONFIGURE_ARGS+= --enable-gcc3
.endif
.if ${OSVERSION} > 500000 && !defined(USE_GCC)
CONFIGURE_ARGS+= --enable-gcc3
.endif
pre-fetch:
.if !defined(USE_GCC)
@${ECHO}
@${ECHO} You can compile openoffice with different
@${ECHO} gcc compiler versions:
@${ECHO}
@${ECHO} Use: USE_GCC=2.95 or USE_GCC=3.1
@${ECHO} to compile openoffice with your
@${ECHO} prefered compiler.
@${ECHO}
.endif
.if ${OSVERSION} < 450002
@${ECHO}
@${ECHO} OS-VERSION ${OSVERSION} too low
@${ECHO}
@${ECHO} Openoffice need some important libc_r and
@${ECHO} gcc fixes to build. Please upgrade to 4.6
@${ECHO} PRE-RELEASE or RELEASE.
@${FALSE}
.endif
@${ECHO}
@${ECHO} NOTICE:
@${ECHO}
@${ECHO} To build Openoffice, you should have a lot
@${ECHO} of free diskspace \(~ 6GB\) and you should
@${ECHO} be an experienced port builder. This port
@${ECHO} has beta quality and does not yet work as
@${ECHO} stable as it should.
@${ECHO}
pre-extract:
@${ECHO}
@${ECHO} Openoffice needs a larger stack- and
@${ECHO} datasize to build. Check your limit
@${ECHO} settings and add this to your KERNEL
@${ECHO} configuration if necessary:
@${ECHO}
@${ECHO} options MAXDSIZ=\"\(1024*1024*1024\)\"
@${ECHO} options MAXSSIZ=\"\(256*1024*1024\)\"
@${ECHO}
.if !defined(DISPLAY) || ${DISPLAY} == ""
@ ${ECHO}
@ ${ECHO} "Cannot open display; please check your DISPLAY variable."
@ ${ECHO}
@ ${FALSE}
.endif
.if !exists(/usr/include/langinfo.h)
@${ECHO}
@${ECHO} langinfo.h is missing !
@${ECHO}
@${ECHO} Please upgrade to 4.5 STABLE or
@${ECHO} 4.6 RELEASE.
@${ECHO}
@${FALSE}
.endif
post-extract:
@for file in ${EXTRACT_REST}; do \
if ! (cd ${WRKDIR} && ${EXTRACT_CMD_R} \
${EXTRACT_BEFORE_ARGS_R} \
${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS_R}) ; \
then \
exit 1; \
fi \
done
${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/../external/gpc/
${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/../external/gpc/
${CP} ${WRKDIR}/FREEBSDGCCIinc.zip ${WRKSRC}/../moz/zipped/
${CP} ${WRKDIR}/FREEBSDGCCIlib.zip ${WRKSRC}/../moz/zipped/
${CP} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKSRC}/../moz/zipped/
post-patch:
@${FIND} ${WRKSRC}/.. | ${EGREP} "\.(cxx|h|c)$$" | ${XARGS} \
${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g"
do-build:
@cd ${WRKSRC}/.. && PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" ./bootstrap
@cd ${WRKSRC}/.. && PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \
tcsh -c 'source FreeBSDEnv.Set && dmake'
pre-install:
@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/oo_setup.resp \
> ${WRKSRC}/../instsetoo/unxfbsd.pro/01/normal/oo_setup.resp
do-install:
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
TEMP=${WRKDIR} DISPLAY=${DISPLAY} \
${WRKSRC}/../instsetoo/*.pro/01/normal/setup -r:oo_setup.resp
install-user:
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" \
${PREFIX}/OpenOffice.org1.0/program/setup
.include <bsd.port.post.mk>
|