2000-08-24 15:29:31 -04:00
|
|
|
# New ports collection makefile for: StarOffice 5.2
|
|
|
|
# Date created: 22 August 2000
|
|
|
|
# Whom: Martin Blapp
|
1999-12-09 12:08:31 -05:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 20:25:54 -04:00
|
|
|
PORTNAME= staroffice
|
2000-08-24 15:29:31 -04:00
|
|
|
PORTVERSION= 5.2
|
2000-02-28 03:34:04 -05:00
|
|
|
CATEGORIES= editors linux
|
2001-06-03 12:29:56 -04:00
|
|
|
MASTER_SITES= ftp://ftp.csua.berkeley.edu/pub/.1/ports/distfiles/staroffice52/ \
|
2000-08-28 09:35:26 -04:00
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/staroffice/english/ \
|
2001-06-03 12:29:56 -04:00
|
|
|
ftp://ftp.snerpa.is/pub/linux/staroffice/ \
|
2000-08-28 09:35:26 -04:00
|
|
|
ftp://ftp.linux.tucows.com/pub/Linuxberg/ \
|
2000-12-24 09:28:59 -05:00
|
|
|
ftp://ftp.linux.hr/pub/staroffice/5.2/ \
|
2001-06-03 12:29:56 -04:00
|
|
|
ftp://ftp.sunsite.auc.dk/disk2/sun-patches/ \
|
2000-12-24 09:28:59 -05:00
|
|
|
ftp://sunsite.uio.no/pub/sun/sun-patches/ \
|
2001-06-03 12:29:56 -04:00
|
|
|
ftp://ftp.hu-berlin.de/pub/mirrors/sunsolve.sun.com/pub/patches/ \
|
2000-12-24 09:28:59 -05:00
|
|
|
ftp://ftp.sunet.se/pub7/security/vendor/sun/patches/
|
2000-08-24 15:29:31 -04:00
|
|
|
DISTNAME= so-5_2-ga-bin-linux-en.bin
|
2001-06-03 12:29:56 -04:00
|
|
|
DISTFILES= so-5_2-ga-bin-linux-en.bin 109939-02.tar.Z
|
|
|
|
.if defined(WITH_ADABAS)
|
|
|
|
DISTFILES+= soa-5_2-ga-bin-linux-en.bin
|
|
|
|
.endif
|
2000-12-24 09:28:59 -05:00
|
|
|
EXTRACT_ONLY= 109939-02.tar.Z
|
1999-12-09 12:08:31 -05:00
|
|
|
|
2000-02-28 18:55:27 -05:00
|
|
|
MAINTAINER= mb@imp.ch
|
1999-12-31 15:14:55 -05:00
|
|
|
|
2000-09-23 06:32:30 -04:00
|
|
|
FETCH_DEPENDS= ${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
|
1999-12-09 12:08:31 -05:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
NO_CDROM= 'Must be downloaded direct from Sun via www interface'
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
NO_BUILD= yes
|
2000-08-24 15:29:31 -04:00
|
|
|
DIST_SUBDIR= staroffice52
|
|
|
|
WRKSRC= ${WRKDIR}/office52
|
2000-01-29 16:52:21 -05:00
|
|
|
TMPDIR= ${WRKDIR}/tmp
|
2000-09-23 06:32:30 -04:00
|
|
|
LD_PATH= ${TMPDIR}:${WRKSRC}:${LINUXBASE}/lib:${LINUXBASE}/usr/lib
|
2000-12-24 09:21:47 -05:00
|
|
|
INSTDB.INS= ${PREFIX}/office52/program/instdb.ins
|
2000-12-24 09:28:59 -05:00
|
|
|
SUNSOLVE= ${WRKDIR}/109939-02
|
2001-06-03 12:29:56 -04:00
|
|
|
ADABAS_DIST= soa-5_2-ga-bin-linux-en.bin
|
|
|
|
SIZE!= /bin/df -k . | /usr/bin/tail -n 1 | /usr/bin/awk '{print $$4}'
|
1999-12-09 12:08:31 -05:00
|
|
|
|
1999-12-14 18:14:36 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-08-25 09:48:08 -04:00
|
|
|
pre-fetch:
|
2000-08-24 15:29:31 -04:00
|
|
|
.if ${OSVERSION} < 410000
|
2000-08-25 09:48:08 -04:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} OS-VERSION ${OSVERSION}
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Staroffice depends on a scripting fix for
|
2000-09-23 06:32:30 -04:00
|
|
|
@${ECHO} /usr/src/sys/i386/linux/linux_sysvec.c
|
|
|
|
@${ECHO} \(revision 1.55.2.1 or higher\)
|
2000-08-25 09:48:08 -04:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Please upgrade to FreeBSD 4.1
|
|
|
|
@${ECHO}
|
|
|
|
@${FALSE}
|
1999-12-14 18:14:36 -05:00
|
|
|
.endif
|
2001-06-03 12:29:56 -04:00
|
|
|
.if ${SIZE} < 250000
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} There is too few free disk space in your port
|
|
|
|
@${ECHO} directory. To unpack Staroffice needs
|
|
|
|
@${ECHO} at least 250MB 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
|
2000-08-24 15:29:31 -04:00
|
|
|
.if defined(WITH_CDROM)
|
2000-09-15 12:33:34 -04:00
|
|
|
.if !exists(${CD_MOUNTPT}/linux/office52/setup)
|
2000-08-25 09:48:08 -04:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Please mount the Sun StarOffice 5.2 CDROM
|
2000-10-14 16:10:11 -04:00
|
|
|
@${ECHO} onto ${CD_MOUNTPT} and run make again.
|
2000-08-25 09:48:08 -04:00
|
|
|
@${ECHO}
|
|
|
|
@${FALSE}
|
1999-12-14 18:14:36 -05:00
|
|
|
.endif
|
2000-09-15 12:33:34 -04:00
|
|
|
.endif
|
1999-12-14 18:14:36 -05:00
|
|
|
|
2000-04-16 20:18:05 -04:00
|
|
|
.if defined(WITH_CDROM)
|
2000-10-14 16:10:11 -04:00
|
|
|
do-extract: do-extract-cdrom
|
|
|
|
do-extract-cdrom:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@cd ${WRKSRC} && ${LN} -s ${CD_MOUNTPT}/linux/office52/* .
|
1999-12-14 18:14:36 -05:00
|
|
|
.endif
|
|
|
|
|
2000-08-24 15:29:31 -04:00
|
|
|
do-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}
|
2001-06-03 12:29:56 -04:00
|
|
|
.if defined(WITH_ADABAS)
|
|
|
|
@${CP} ${_DISTDIR}/${ADABAS_DIST} ${WRKSRC}
|
|
|
|
@${CHMOD} 755 ${WRKSRC}/${ADABAS_DIST}
|
|
|
|
.endif
|
2000-08-24 15:29:31 -04:00
|
|
|
@cd ${WRKSRC}
|
2000-08-25 09:48:08 -04:00
|
|
|
@SAL_IGNOREXERRORS=1 ${WRKSRC}/${DISTNAME} -extract ${WRKSRC}
|
2001-06-03 12:29:56 -04:00
|
|
|
@${RM} ${WRKSRC}/${DISTNAME}
|
2000-08-24 15:29:31 -04:00
|
|
|
@cd ../../
|
2000-12-24 09:28:59 -05:00
|
|
|
@for file in ${EXTRACT_ONLY}; do \
|
|
|
|
if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
|
|
|
${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS}) ; \
|
|
|
|
then \
|
|
|
|
exit 1; \
|
|
|
|
fi \
|
|
|
|
done
|
2000-08-24 15:29:31 -04:00
|
|
|
.endif
|
1999-12-09 12:08:31 -05:00
|
|
|
|
|
|
|
post-configure:
|
2000-08-24 15:29:31 -04:00
|
|
|
@${PERL} -pi.orig -e 's|DefaultDestPath = "office52";|DefaultDestPath = "${PREFIX}/office52";|' ${WRKSRC}/setup.ins
|
1999-12-09 12:08:31 -05:00
|
|
|
|
|
|
|
do-install:
|
2000-08-24 15:29:31 -04:00
|
|
|
.if !defined(DISPLAY) || ${DISPLAY} == ""
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} Can\'t open display:
|
|
|
|
@ ${ECHO} Please check your DISPLAY variable.
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${FALSE}
|
|
|
|
.else
|
2000-09-23 06:32:30 -04:00
|
|
|
.if exists(${LINUXBASE}/${PREFIX})
|
2000-12-24 09:28:59 -05:00
|
|
|
@ ${LN} -fs ${LINUXBASE}/${PREFIX}/office52 ${PREFIX}/office52
|
2000-08-24 15:29:31 -04:00
|
|
|
.endif
|
2000-10-08 06:23:48 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-03-01 19:27:40 -05:00
|
|
|
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" TEMP=${TMPDIR} LD_LIBRARY_PATH=${LD_PATH} ${LINUXBASE}/bin/sh -c '${WRKSRC}/setup /net'
|
2000-09-07 10:22:48 -04:00
|
|
|
@if [ -f ${PREFIX}/office52/program/setup ]; then \
|
|
|
|
${ECHO} ; \
|
|
|
|
${ECHO} Ignore the error-message. StarOffice5.2 has been installed ; \
|
|
|
|
${ECHO} successfully on your system. ; \
|
|
|
|
${ECHO} ; \
|
|
|
|
else \
|
|
|
|
${ECHO} ; \
|
|
|
|
${ECHO} An error occured during StarOffice5.2 install. Please send a mail with debug-output and ; \
|
|
|
|
${ECHO} some information about your FreeBSD-environment to mb@imp.ch. Thanks. ; \
|
|
|
|
${ECHO} ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
2000-12-24 09:28:59 -05:00
|
|
|
.if ! defined(WITH_CDROM)
|
|
|
|
@${ECHO_MSG} "===> Applying sunsolve patches for ${PKGNAME}"
|
|
|
|
@for file in ${SUNSOLVE}/* ; do \
|
|
|
|
${CP} -Rv $$file ${PREFIX}/office52/ ; \
|
|
|
|
done
|
|
|
|
.endif
|
2000-08-24 15:29:31 -04:00
|
|
|
.endif
|
1999-12-09 12:08:31 -05:00
|
|
|
|
2000-08-24 15:29:31 -04:00
|
|
|
post-install:
|
|
|
|
@${PATCH} -s ${PREFIX}/office52/program/setup ${FILESDIR}/setup.patch
|
|
|
|
@${PATCH} -s ${PREFIX}/office52/program/soffice ${FILESDIR}/soffice.patch
|
2000-12-24 09:21:47 -05:00
|
|
|
@${CP} ${INSTDB.INS} ${INSTDB.INS}.orig
|
2001-06-03 12:29:56 -04:00
|
|
|
@${SED} -e 's%DefaultDestPath = "${PREFIX}/office52%DefaultDestPath = "office52%' \
|
2000-12-24 09:21:47 -05:00
|
|
|
< ${INSTDB.INS}.orig > ${INSTDB.INS}
|
1999-12-09 12:08:31 -05:00
|
|
|
|
|
|
|
install-user:
|
2001-03-01 19:50:43 -05:00
|
|
|
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" ${LINUXBASE}/bin/sh -c \
|
|
|
|
${PREFIX}/office52/program/setup
|
1999-12-09 12:08:31 -05:00
|
|
|
|
1999-12-14 18:14:36 -05:00
|
|
|
.include <bsd.port.post.mk>
|