blob: da0b7bbf8fa96d50d971046e49b7f502eb4adbf2 (
plain)
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
|
# $NetBSD: Makefile,v 1.26 2007/10/12 15:41:43 hira Exp $
#
OO_VER= 2.3.0
DISTNAME= openoffice-${OO_VER}
PKGNAME= openoffice2-${OO_VER}
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_OPENOFFICE:=stable/${OO_VER}/}
DIST_SUBDIR= ${DISTNAME}
DISTFILES= OOo_${OO_VER}_src_core.tar.bz2
DISTFILES+= OOo_${OO_VER}_src_binfilter.tar.bz2
DISTFILES+= OOo_${OO_VER}_src_l10n.tar.bz2
#DISTFILES+= OOo_${OO_VER}_src_sdk.tar.bz2
DISTFILES+= OOo_${OO_VER}_src_system.tar.bz2
MAINTAINER= hira@NetBSD.org
HOMEPAGE= http://www.openoffice.org/
COMMENT= Integrated office productivity suite (version 2)
BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip
BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
BUILD_DEPENDS+= p5-Archive-Zip-[0-9]*:../../archivers/p5-Archive-Zip
DEPENDS+= libpaper-[0-9]*:../../print/libpaper
.include "../../mk/bsd.prefs.mk"
WRKSRC= ${WRKDIR}/OOG680_m5
CONFIGURE_DIRS= config_office
# Cannot compile with 3.3.x (GCC Bugzilla Bug 16879).
GCC_REQD+= 3.4
USE_LANGUAGES+= c c++
USE_TOOLS+= bash gmake imake perl pkg-config tar
PTHREAD_OPTS+= require
PTHREAD_AUTO_VARS= yes
CONFLICTS+= staroffice-[0-9]*
CONFLICTS+= openoffice-[0-9]*
CONFLICTS+= openoffice-bin-[0-9]*
CONFLICTS+= openoffice2-bin-[0-9]*
CONFLICTS+= openoffice-linux-[0-9]*
ONLY_FOR_PLATFORM= NetBSD-1.6Z[G-Z]*-i386 NetBSD-[2-9]*-i386
ONLY_FOR_PLATFORM+= NetBSD-1.6Z[G-Z]*-x86_64 NetBSD-[2-9]*-x86_64
GNU_CONFIGURE= yes
CONFIGURE_ENV+= X_LIBS=${X11_LDFLAGS:M*:Q}
CONFIGURE_ARGS+= --with-use-shell=bash
CONFIGURE_ARGS+= --enable-binfilter
CONFIGURE_ARGS+= --enable-cairo
CONFIGURE_ARGS+= --disable-ldap
CONFIGURE_ARGS+= --with-system-stdlibs
CONFIGURE_ARGS+= --with-system-freetype
CONFIGURE_ARGS+= --with-system-libxml2
CONFIGURE_ARGS+= --with-system-libxslt
CONFIGURE_ARGS+= --with-system-python
CONFIGURE_ARGS+= --with-system-zlib
# `portable' supports all platforms.
CONFIGURE_ARGS+= --enable-epm --with-package-format=portable
# XXX: Error in OOo internal libsndfile.
CONFIGURE_ARGS+= --disable-pasf --without-nas
# systray quickstarter is broken with mutex handling.
CONFIGURE_ARGS+= --disable-systray
# Disable Java.
CONFIGURE_ARGS+= --without-java --disable-odk --disable-gcjaot
# NOTE: In this version, this value should be separated by space (comma
# causes build error).
CONFIGURE_ARGS+= --with-lang=${OO_LANGS:Q}
.include "options.mk"
UNLIMIT_RESOURCES+= datasize
OO_RELEASE= OpenOffice.org${OO_VER}
PLIST_SRC+= ${WRKDIR}/.PLIST_SRC
MESSAGE_SUBST+= OO_RELEASE=${OO_RELEASE}
INSTALLATION_DIRS= bin
OO_UNXNAME= openoffice.org2.3
OO_PKGPATH= ${WRKSRC}/instsetoo_native/${OPENOFFICE_OUTPATH}.pro/OpenOffice/portable/install
OO_PKGROOT= /opt/${OO_UNXNAME}
OO_PROGRAMS= scalc sdraw simpress soffice swriter unopkg
post-extract:
cd ${WRKSRC}/bridges/source/cpp_uno && \
mv gcc3_netbsd_intel gcc3_netbsd_intel.orig && \
cp -Rp gcc3_freebsd_intel gcc3_netbsd_intel && \
cp -Rp gcc3_freebsd_x86-64 gcc3_netbsd_x86-64
do-build:
${_ULIMIT_CMD} ${SETENV} ${MAKE_ENV} bash -c "cd ${WRKSRC} && ./bootstrap && source ${OPENOFFICE_SETFILE}Env.Set.sh && dmake build_all"
post-build:
cd ${WRKDIR} && \
rm -fr opt && \
for l in ${OO_LANGS}; do \
for f in ${OO_PKGPATH:Q}/$${l}/*/*.sw; do \
tar xpfk $$f; \
done; \
done
${ECHO} "#!${SH}" > ${WRKDIR}/${OO_UNXNAME}
${ECHO} "exec ${PREFIX}/${OO_RELEASE}/program/soffice \"\$$@\"" \
>> ${WRKDIR}/${OO_UNXNAME}
${ECHO} "#!${SH}" > ${WRKDIR}/${OO_UNXNAME}-printeradmin
${ECHO} "exec ${PREFIX}/${OO_RELEASE}/program/spadmin" \
>> ${WRKDIR}/${OO_UNXNAME}-printeradmin
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${OO_RELEASE}
cd ${WRKDIR}${OO_PKGROOT} && \
tar cf - . | tar Cxpf ${PREFIX}/${OO_RELEASE} -
for f in ${OO_PROGRAMS}; do \
ln -sf ${PREFIX}/${OO_RELEASE}/program/$$f \
${PREFIX}/bin/$$f; \
done
${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME}-printeradmin \
${PREFIX}/bin
post-install:
cd ${PREFIX} && \
find ${OO_RELEASE} \! -type d -print | \
sort > ${PLIST_SRC} && \
find ${OO_RELEASE} -type d -print | sort -r | \
awk '{print("@dirrm "$$1)}' >> ${PLIST_SRC}
for f in ${OO_PROGRAMS}; do \
${ECHO} bin/$$f >> ${PLIST_SRC}; \
done
${ECHO} bin/${OO_UNXNAME} >> ${PLIST_SRC}
${ECHO} bin/${OO_UNXNAME}-printeradmin >> ${PLIST_SRC}
# everything specific to your OS/Arch goes into its own Makefile
# group together i386, i486, i586 and i686 (for Linux)
#
ARCH= ${MACHINE_ARCH:C/i[3-6]86/i386/g}
.if exists(Makefile.${OPSYS}.${ARCH})
. include "Makefile.${OPSYS}.${ARCH}"
.endif
PYTHON_VERSIONS_ACCEPTED= 24 23 22
.include "../../lang/python/application.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXcursor/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXfixes/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/libXrender/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/compiler.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|