2001-08-28 02:33:11 +02:00
|
|
|
# New ports collection makefile for: OpenOffice
|
2002-03-01 00:36:03 +01:00
|
|
|
# Date created: 28 Februar 2002
|
2000-08-24 21:29:31 +02:00
|
|
|
# Whom: Martin Blapp
|
1999-12-09 18:08:31 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-10-16 21:23:34 +02:00
|
|
|
PORTNAME= openoffice
|
2002-03-01 00:36:03 +01:00
|
|
|
PORTVERSION= 6.0.641
|
2000-10-16 21:23:34 +02:00
|
|
|
CATEGORIES= editors
|
2002-03-01 00:36:03 +01:00
|
|
|
MASTER_SITES= http://sf1.mirror.openoffice.org/641b/ \
|
|
|
|
ftp://ftp.cs.man.ac.uk/pub/toby/gpc/ \
|
|
|
|
ftp://ftp.netbsd.org/pub/NetBSD/misc/mrauch/
|
|
|
|
DISTFILES= oo_641_src.tar.bz2 gpc231.tar.Z oo_moz_641.tar.gz
|
|
|
|
EXTRACT_ONLY= oo_641_src.tar.bz2
|
|
|
|
EXTRACT_REST= gpc231.tar.Z oo_moz_641.tar.gz
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-01-27 13:17:21 +01:00
|
|
|
MAINTAINER= mbr@FreeBSD.org
|
2002-03-01 00:36:03 +01:00
|
|
|
BROKEN= 'Work in progress -- does not build yet till the end'
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
EXTRACT_BEFORE_ARGS_R= -dc
|
|
|
|
EXTRACT_AFTER_ARGS_R= | ${TAR} -xf -
|
|
|
|
EXTRACT_CMD_R= ${GZIP_CMD}
|
|
|
|
|
|
|
|
GCC_VERSION!= ${CC} --version
|
2002-03-03 01:00:14 +01:00
|
|
|
JDK13DIR?= ${LOCALBASE}/jdk1.3.1
|
|
|
|
JAVAVM= ${JDK13DIR}/bin/java
|
1999-12-31 21:14:55 +01:00
|
|
|
|
2001-08-28 02:33:11 +02:00
|
|
|
BUILD_DEPENDS= stlport:${PORTSDIR}/devel/stlport
|
2002-03-01 00:36:03 +01:00
|
|
|
BUILD_DEPENDS+= bison:${PORTSDIR}/devel/bison
|
|
|
|
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
|
|
|
|
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
|
|
|
|
BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk13
|
2002-03-03 01:00:14 +01:00
|
|
|
BUILD_DEPENDS+= pth-config:${PORTSDIR}/devel/pth
|
2001-08-28 02:33:11 +02:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/oo_641_src/config_office
|
2000-10-19 22:48:34 +02:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
CONFIGURE_ARGS+= --with-stlport4-home=${PREFIX} \
|
2002-03-03 01:00:14 +01:00
|
|
|
--with-jdk-home=${JDK13DIR}
|
1999-12-09 18:08:31 +01:00
|
|
|
|
1999-12-15 00:14:36 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
pre-fetch:
|
|
|
|
.if ${GCC_VERSION}!="2.95.2" && ${GCC_VERSION}!="2.95.3"
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} Openoffice requires gcc 2.95.2 or better
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${FALSE}
|
|
|
|
.endif
|
|
|
|
.if ${OSVERSION} < 500031
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} OS-VERSION ${OSVERSION}
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Openoffice depends on OS-Fixes which are
|
|
|
|
@${ECHO} not yet available.
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-extract:
|
2000-08-24 21:29:31 +02:00
|
|
|
.if !defined(DISPLAY) || ${DISPLAY} == ""
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} Can\'t open display:
|
|
|
|
@ ${ECHO} Please check your DISPLAY variable.
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${FALSE}
|
|
|
|
.endif
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
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/
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKDIR}/oo_641_src && ./bootstrap
|
|
|
|
@cd ${WRKDIR}/oo_641_src && /bin/tcsh -c 'source FreeBSDEnv.Set && dmake'
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
do-install:
|
|
|
|
@cd ${WRKDIR}/oo_641_src && ./setup -r:oo_setup.resp
|
1999-12-09 18:08:31 +01:00
|
|
|
|
1999-12-15 00:14:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|