blob: e85455b51ad05f68b39a4277a0d3967497126e97 (
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
|
# New ports collection makefile for: OpenOffice
# Date created: 28 Februar 2002
# Whom: Martin Blapp
#
# $FreeBSD$
#
PORTNAME= openoffice
PORTVERSION= 641c
CATEGORIES= editors x11
MASTER_SITES= http://sf1.mirror.openoffice.org/641c/ \
ftp://ftp.cs.man.ac.uk/pub/toby/gpc/ \
ftp://ftp.netbsd.org/pub/NetBSD/misc/mrauch/
DISTFILES= oo_${PORTVERSION}_src.tar.bz2 gpc231.tar.Z oo_moz_641.tar.gz
EXTRACT_ONLY= oo_${PORTVERSION}_src.tar.bz2
EXTRACT_REST= gpc231.tar.Z oo_moz_641.tar.gz
MAINTAINER= mbr@FreeBSD.org
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
JDK13DIR?= ${LOCALBASE}/jdk1.3.1
JAVAVM= ${JDK13DIR}/bin/java
BUILD_DEPENDS= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
BUILD_DEPENDS+= bison:${PORTSDIR}/devel/bison
BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk13
BUILD_DEPENDS+= pth-config:${PORTSDIR}/devel/pth
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/oo_${PORTVERSION}_src/config_office
CONFIGURE_ARGS+= --with-stlport4-home=${PREFIX} \
--with-jdk-home=${JDK13DIR}
.include <bsd.port.pre.mk>
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:
.if !defined(DISPLAY) || ${DISPLAY} == ""
@ ${ECHO}
@ ${ECHO} Can\'t open display:
@ ${ECHO} Please check your DISPLAY variable.
@ ${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}/NETBSDGCCIinc.zip ${WRKSRC}/../moz/zipped/FREEBSDGCCIinc.zip
${CP} ${WRKDIR}/NETBSDGCCIlib.zip ${WRKSRC}/../moz/zipped/FREEBSDGCCIlib.zip
${CP} ${WRKDIR}/NETBSDGCCIruntime.zip ${WRKSRC}/../moz/zipped/FREEBSDGCCIruntime.zip
@${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'
do-install:
@cd ${WRKSRC}/.. && ./setup -r:oo_setup.resp
.include <bsd.port.post.mk>
|