blob: f27086296a80aac818a8c1604787f74eccabe8ce (
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
190
191
192
193
194
195
|
# New ports collection makefile for: StarOffice 6.0
# Date created: 03 October 2001
# Whom: Martin Blapp
#
# $FreeBSD$
#
PORTNAME= staroffice
PORTVERSION= 6.0
PORTREVISION= 1
CATEGORIES= editors linux
MASTER_SITES=
DISTNAME= so-6_0-ga-bin-linux-en.bin
DISTFILES= so-6_0-ga-bin-linux-en.bin 112887-02.tar.Z
.if defined(WITH_ADABAS)
DISTFILES+= soa-6_0-ga-bin-linux-en.bin
.endif
EXTRACT_ONLY= 112887-02.tar.Z
MAINTAINER= mbr@FreeBSD.org
ONLY_FOR_ARCHS= i386
NO_CDROM= 'Must be downloaded direct from Sun via www interface'
USE_LINUX= yes
IS_INTERACTIVE= yes
NO_BUILD= yes
SOVERSION= ${PORTNAME}${PORTVERSION}
WRKSRC= ${WRKDIR}/${SOVERSION}
TMPDIR= ${WRKDIR}/tmp
LD_PATH= ${TMPDIR}:${WRKSRC}:${LINUXBASE}/lib:${LINUXBASE}/usr/lib
INSTDB.INS= ${PREFIX}/${SOVERSION}/program/instdb.ins
SUNSOLVE= ${WRKDIR}/112887-02
ADABAS_DIST= soa-6_0-ga-bin-linux-en.bin
.include <bsd.port.pre.mk>
SIZE!= /bin/df -k . | ${TAIL} -n 1 | ${AWK} '{print $$4}'
LINPROCFS!= /sbin/mount | ${GREP} linprocfs | ${AWK} '{print $1}'
pre-fetch:
.if ${LINPROCFS}
@${ECHO}
@${ECHO} Check if linprocfs is running: YES
.else
@${ECHO}
@${ECHO} ERROR:
@${ECHO}
@${ECHO} Staroffice setup needs a running linprocfs, which is not
@${ECHO} activated on your system. Please read the linprocfs\(5\)
@${ECHO} manpage and add the following line to /etc/fstab:
@${ECHO}
@${ECHO} linproc /compat/linux/proc linprocfs rw 0 0
@${ECHO}
@${FALSE}
.endif
.if !exists(${LINUXBASE}/etc/mtab)
@${ECHO}
@${ECHO} ERROR:
@${ECHO}
@${ECHO} The file ${LINUXBASE}/etc/mtab is missing.
@${ECHO} Staroffice needs this file else some functions
@${ECHO} are not working. You can create it with
@${ECHO}
@${ECHO} touch ${LINUXBASE}/etc/mtab
@${ECHO}
@${FALSE}
.else
@${ECHO} Check if ${LINUXBASE}/etc/mtab exists: YES
.endif
.if ${OSVERSION} < 450000
@${ECHO}
@${ECHO} ERROR:
@${ECHO}
@${ECHO} OS-VERSION ${OSVERSION}
@${ECHO}
@${ECHO} Staroffice depends on a scripting fix for
@${ECHO} /usr/src/sys/i386/linux/linux_sysvec.c
@${ECHO} \(revision 1.55.2.1 or higher\)
@${ECHO}
@${ECHO} Please upgrade to FreeBSD 4.5
@${ECHO}
@${FALSE}
.endif
.if ${SIZE} < 400000
@${ECHO}
@${ECHO} ERROR:
@${ECHO}
@${ECHO} There is only ${SIZE}K free disk space in
@${ECHO} ${WRKDIRPREFIX}. To unpack Staroffice needs
@${ECHO} at least 400000K free diskspace.
@${FALSE}
.endif
.if !defined(WITH_ADABAS)
@${ECHO}
@${ECHO} If you like to install staroffice with ADABAS database support,
@${ECHO} cancel this installation now and start make again with
@${ECHO} WITH_ADABAS=YES.
@${ECHO}
.endif
.if !exists(${DISTDIR}/${DISTNAME})
IGNORE="Please manually download ${DISTNAME} from http://www.sun.com/staroffice. Put ${DISTNAME} into the directory ${DISTDIR} and run make again."
.endif
post-extract:
.if !defined(DISPLAY) || ${DISPLAY} == ""
@ ${ECHO}
@ ${ECHO} Can\'t open display:
@ ${ECHO} Please check your DISPLAY variable.
@ ${ECHO}
@ ${FALSE}
.else
@${MKDIR} ${WRKSRC}
@${MKDIR} ${TMPDIR}
@${CP} ${_DISTDIR}/${DISTNAME} ${WRKSRC}
@${CHMOD} 755 ${WRKSRC}/${DISTNAME}
@cd ${WRKSRC}
@SAL_IGNOREXERRORS=1 ${WRKSRC}/${DISTNAME} -extract ${WRKSRC}
@${RM} ${WRKSRC}/${DISTNAME}
.if defined(WITH_ADABAS)
@${CP} ${_DISTDIR}/${ADABAS_DIST} ${WRKSRC}
@${CHMOD} 755 ${WRKSRC}/${ADABAS_DIST}
.endif
.endif
post-configure:
@${PERL} -pi.orig -e \
's|DefaultDestPath = "staroffice%PRODUCTVERSION";|DefaultDestPath = "${PREFIX}/staroffice%PRODUCTVERSION";|' \
${WRKSRC}/setup.ins
do-install:
.if !defined(DISPLAY) || ${DISPLAY} == ""
@ ${ECHO}
@ ${ECHO} Can\'t open display:
@ ${ECHO} Please check your DISPLAY variable.
@ ${ECHO}
@ ${FALSE}
.else
.if exists(${LINUXBASE}/${PREFIX})
@${LN} -fs ${LINUXBASE}/${PREFIX}/${SOVERSION} ${PREFIX}/${SOVERSION}
.endif
.if !exists(${LINUXBASE}/usr/X11R6/lib/libXrender.so)
@${LN} -fs ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0 \
${WRKDIR}/tmp/libXrender.so
.endif
@${ECHO} ;
@${ECHO_MSG} "===> STEP 1: Main Setup ${PKGNAME}"
@${ECHO} ;
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup /net'
@if [ -f ${PREFIX}/${SOVERSION}/program/setup ]; then \
${ECHO} ; \
${ECHO} Ignore the error-message. StarOffice6.0 has been installed ; \
${ECHO} successfully on your system. ; \
${ECHO} ; \
else \
${ECHO} ; \
${ECHO} An error occured during StarOffice6.0 install. Please send a mail with debug-output and ; \
${ECHO} some information about your FreeBSD-environment to mb@imp.ch. Thanks. ; \
${ECHO} ; \
${FALSE} ; \
fi
@${ECHO} ;
@${ECHO_MSG} "===> STEP 2: Choosing now a workstation installation for user root"
@${ECHO} ;
@${ECHO} This step is needed to be able to install the service pack. ;
@${ECHO} ;
.if !exists(${LINUXBASE}/usr/X11R6/lib/libXrender.so)
@${LN} -fs ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0 ${PREFIX}/${SOVERSION}/program/libXrender.so
.endif
@${MV} ${INSTDB.INS} ${INSTDB.INS}.orig
@${SED} -e 's%DefaultDestPath = "${PREFIX}/staroffice%DefaultDestPath = "staroffice%' \
${INSTDB.INS}.orig > ${INSTDB.INS}
@make install-user
.endif
.if defined(WITH_ADABAS)
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/${ADABAS_DIST}'
.endif
@${ECHO} ;
@${ECHO_MSG} "===> STEP 3: Applying sunsolve patches for ${PKGNAME}"
@${ECHO} ;
@make install-patch
@${CAT} ${PKGMESSAGE}
install-user:
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" ${LINUXBASE}/bin/sh -c \
${PREFIX}/${SOVERSION}/program/setup
install-patch:
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/../112887-02/so-6_0-pp1-bin-linux.bin'
.include <bsd.port.post.mk>
|