1 # $NetBSD: Makefile,v 1.85 2013/03/17 21:37:31 tsutsui Exp $
5 DISTNAME
= openoffice-
${OO_VER}
6 PKGNAME
= openoffice3-
${OO_VER}
9 MASTER_SITES
= ${MASTER_SITE_OPENOFFICE
:=stable
/${OO_VER}/}
10 DIST_SUBDIR
= ${DISTNAME}
12 DISTFILES
= OOo_
${OO_VER}_src_core.
tar.bz2
13 DISTFILES
+= OOo_
${OO_VER}_src_binfilter.
tar.bz2
14 DISTFILES
+= OOo_
${OO_VER}_src_l10n.
tar.bz2
15 DISTFILES
+= OOo_
${OO_VER}_src_system.
tar.bz2
16 DISTFILES
+= OOo_
${OO_VER}_src_extensions.
tar.bz2
18 MAINTAINER
= pkgsrc-users@NetBSD.org
19 HOMEPAGE
= http
://www.openoffice.org
/
20 COMMENT
= Integrated office productivity suite
(version
3)
23 BUILD_DEPENDS
+= p5-Archive-Zip-
[0-9]*:..
/..
/archivers
/p5-Archive-Zip
25 DEPENDS
+= libpaper-
[0-9]*:..
/..
/print/libpaper
27 .
include "../../mk/bsd.prefs.mk"
29 WRKSRC
= ${WRKDIR}/${OO_TAG}
31 # Cannot compile with 3.3.x (GCC Bugzilla Bug 16879).
35 CONFLICTS
+= staroffice-
[0-9]*
36 CONFLICTS
+= openoffice-
[0-9]*
37 CONFLICTS
+= openoffice2-
[0-9]*
38 CONFLICTS
+= openoffice-bin-
[0-9]*
39 CONFLICTS
+= openoffice2-bin-
[0-9]*
40 CONFLICTS
+= openoffice3-bin-
[0-9]*
41 CONFLICTS
+= openoffice-linux-
[0-9]*
43 USE_TOOLS
+= bash bison gmake imake perl pkg-config
tar unzip zip
44 PTHREAD_OPTS
+= require
45 PTHREAD_AUTO_VARS
= yes
47 ONLY_FOR_PLATFORM
= FreeBSD-
*-i386 FreeBSD-
*-x86_64
48 ONLY_FOR_PLATFORM
+= NetBSD-1.6Z
[G-Z
]*-i386 NetBSD-
[2-9]*-i386
49 ONLY_FOR_PLATFORM
+= NetBSD-1.6Z
[G-Z
]*-x86_64 NetBSD-
[2-9]*-x86_64
53 REPLACE_PERL
+= sd
/res
/webview
/editpic.pl \
54 sd
/res
/webview
/poll.pl \
55 sd
/res
/webview
/savepic.pl \
56 sd
/res
/webview
/show.pl \
57 sd
/res
/webview
/webview.pl
58 REPLACE_PYTHON
+= scripting
/source
/pyprov
/mailmerge.py
60 SUBST_CLASSES
+= prefix
61 SUBST_STAGE.
prefix= post-patch
62 SUBST_MESSAGE.
prefix= Fixing
prefix
63 SUBST_FILES.
prefix= sysui
/desktop
/share
/openoffice.sh
64 SUBST_FILES.
prefix+= sysui
/desktop
/share
/printeradmin.sh
65 SUBST_SED.
prefix= -e
's|@OO_PREFIX@|${OO_PREFIX}|g'
68 SUBST_STAGE.lib
= post-patch
69 SUBST_MESSAGE.lib
= Adding library paths
70 SUBST_FILES.lib
= solenv
/inc
/pkgsrc.mk
71 SUBST_SED.lib
+= -e
's|@COMPILER_RPATH_FLAG@|${COMPILER_RPATH_FLAG}|g'
72 SUBST_SED.lib
+= -e
's|@OO_LIBDIR@|${OO_PREFIX}/${OO_UNXNAME}/basis-link/program|g'
73 .for pkg in db4 expat icu jpeg zlib
74 LIB.
${pkg}= -L
${BUILDLINK_PREFIX.
${pkg}}/lib
75 LIB.
${pkg}+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.
${pkg}}/lib
76 SUBST_SED.lib
+= -e
's|@LIB_${pkg}@|${LIB.${pkg}}|g'
80 CONFIGURE_ENV
+= LIBS
=${LIBS
:O
:u
:Q
}
81 CONFIGURE_ENV
+= X_LIBS
=${X11_LDFLAGS
:M
*:Q
}
82 CONFIGURE_ENV
+= BLNK_PREFIX_db4
=${BUILDLINK_PREFIX.db4
}
83 CONFIGURE_ENV
+= ac_cv_path_SYSTEM_GENBRK
=${PREFIX}/bin
/genbrk
84 CONFIGURE_ENV
+= ac_cv_path_SYSTEM_GENCCODE
=${PREFIX}/sbin
/genccode
85 CONFIGURE_ENV
+= ac_cv_path_SYSTEM_GENCMN
=${PREFIX}/sbin
/gencmn
86 CONFIGURE_ENV
+= USE_BUILTIN_openssl
=${USE_BUILTIN.openssl
}
88 CONFIGURE_ARGS
+= --with-use-shell
=bash
89 CONFIGURE_ARGS
+= --enable-binfilter
90 CONFIGURE_ARGS
+= --enable-cairo
91 CONFIGURE_ARGS
+= --disable-systray
92 CONFIGURE_ARGS
+= --disable-ldap
93 CONFIGURE_ARGS
+= --disable-odk
94 CONFIGURE_ARGS
+= --disable-gcjaot
95 CONFIGURE_ARGS
+= --with-system-stdlibs
96 CONFIGURE_ARGS
+= --with-system-cairo
97 CONFIGURE_ARGS
+= --with-system-curl
98 CONFIGURE_ARGS
+= --with-system-db
99 CONFIGURE_ARGS
+= --with-system-expat
100 CONFIGURE_ARGS
+= --with-system-freetype
101 CONFIGURE_ARGS
+= --with-system-hunspell
102 CONFIGURE_ARGS
+= --with-system-icu
103 CONFIGURE_ARGS
+= --with-system-jpeg
104 CONFIGURE_ARGS
+= --with-system-libxml
105 CONFIGURE_ARGS
+= --with-system-libxslt
106 CONFIGURE_ARGS
+= --with-system-neon
107 CONFIGURE_ARGS
+= --with-system-openssl
108 CONFIGURE_ARGS
+= --with-system-python
109 CONFIGURE_ARGS
+= --with-system-zlib
110 CONFIGURE_ARGS
+= --with-dynamic-xinerama
113 CONFIGURE_ARGS
+= --enable-minimizer
114 CONFIGURE_ARGS
+= --enable-presenter-console
115 CONFIGURE_ARGS
+= --enable-pdfimport
116 OO_EXTENSIONS
+= minimizer
/sun-presentation-minimizer.oxt
117 OO_EXTENSIONS
+= pdfimport
/pdfimport.oxt
118 OO_EXTENSIONS
+= presenter
/presenter-screen.oxt
120 # `portable' supports all platforms.
121 CONFIGURE_ARGS
+= --enable-epm
--with-package-format
=portable
124 CONFIGURE_ARGS
+= --with-lang
=${OO_LANGS
:Q
}
126 .
include "options.mk"
128 UNLIMIT_RESOURCES
+= datasize
130 OO_RELEASE
= OpenOffice.org
${OO_VER}
131 PLIST_SRC
+= ${PKGDIR}/PLIST
132 PLIST_SRC
+= ${WRKDIR}/PLIST
133 PLIST_SUBST
+= OO_UNXNAME
=${OO_UNXNAME}
134 PLIST_SUBST
+= OO_ICON_PREFIX
=openofficeorg3
135 MESSAGE_SUBST
+= OO_PREFIX
=${OO_PREFIX}
136 INSTALLATION_DIRS
= bin lib
/${OO_RELEASE} share
/applications \
137 lib
/${OO_RELEASE}/extensions \
138 share
/application-registry share
/mime-info \
141 OO_UNXNAME
= openoffice.org3
142 OO_PKGPATH
= ${WRKSRC}/instsetoo_native
/${OPENOFFICE_OUTPATH}.pro
/OpenOffice
/portable
/install
143 OO_LANGPACKPATH
=${WRKSRC}/instsetoo_native
/${OPENOFFICE_OUTPATH}.pro
/OpenOffice_languagepack
/portable
/install
144 OO_PROGRAMS
= scalc sdraw simpress soffice swriter unopkg
145 OO_PREFIX
= ${PREFIX}/lib
/${OO_RELEASE}
148 cd
${WRKSRC}/bridges
/source
/cpp_uno
&& \
149 mv gcc3_netbsd_intel gcc3_netbsd_intel.orig
&& \
150 cp
-Rp gcc3_freebsd_intel gcc3_netbsd_intel
&& \
151 cp
-Rp gcc3_freebsd_x86-64 gcc3_netbsd_x86-64
154 @
${_ULIMIT_CMD} ${SETENV} ${MAKE_ENV} bash
-c \
155 "cd ${WRKSRC} && ./bootstrap && source ${OPENOFFICE_SETFILE}Env.Set.sh && cd instsetoo_native && build.pl --checkmodules && build.pl -P${MAKE_JOBS:U1} --all product=full && cd util && dmake openoffice_${OO_BASELANG} && dmake ooolanguagepack"
158 cd
${DESTDIR}${OO_PREFIX} && \
159 for f in
${OO_PKGPATH
:Q
}/${OO_BASELANG}/*/*.sw
; do \
162 for lang in
${OO_LANGPACKS}; do \
163 for f in
${OO_LANGPACKPATH
:Q
}/$$lang/*/*.sw
; do \
167 cd
${DESTDIR}${OO_PREFIX}/${OO_UNXNAME}/basis-link
/program
&& \
168 chmod
${SHAREMODE} gengalrc hid.lst testtoolrc
169 for f in
${OO_PROGRAMS}; do \
170 ln
-sf
${DESTDIR}${OO_PREFIX}/${OO_UNXNAME}/program
/$$f \
171 ${DESTDIR}${PREFIX}/bin
/$$f; \
173 cd
${WRKSRC}/solver
/310/${OPENOFFICE_OUTPATH}.pro
/bin
&& \
174 ${INSTALL_DATA} ${OO_EXTENSIONS} ${DESTDIR}${OO_PREFIX}/extensions
175 cd
${WRKSRC}/sysui
/${OPENOFFICE_OUTPATH}.pro
/misc
/openoffice.org
&& \
176 ${SETENV} ${MAKE_ENV} DESTDIR
=${DESTDIR} _PREFIX
=${PREFIX} \
177 GNOME
=${PKG_OPTIONS
:Mgnome
} KDE
=${PKG_OPTIONS
:Mkde
} \
178 OO_PREFIX
=${OO_PREFIX} ${SH} create_tree.sh
181 cd
${DESTDIR}${PREFIX} && \
182 find lib
/${OO_RELEASE} \
! -type d
-print | \
183 sort > ${WRKDIR}/PLIST
185 # OS specific Makefile
186 .if exists
(Makefile.
${OPSYS})
187 .
include "Makefile.${OPSYS}"
190 .
include "../../mk/compiler.mk"
192 .
include "../../databases/db4/buildlink3.mk"
193 .
include "../../databases/openldap-client/buildlink3.mk"
194 .
include "../../databases/shared-mime-info/mimedb.mk"
195 .
include "../../devel/gperf/buildlink3.mk"
196 .
include "../../devel/zlib/buildlink3.mk"
197 .
include "../../fonts/fontconfig/buildlink3.mk"
198 .
include "../../graphics/MesaLib/buildlink3.mk"
199 .
include "../../graphics/cairo/buildlink3.mk"
200 .
include "../../graphics/freetype2/buildlink3.mk"
201 .
include "../../graphics/hicolor-icon-theme/buildlink3.mk"
202 .
include "../../math/mpfr/buildlink3.mk"
203 .
include "../../mk/jpeg.buildlink3.mk"
204 .
include "../../lang/python/application.mk"
205 .
include "../../security/openssl/buildlink3.mk"
206 .
include "../../sysutils/desktop-file-utils/desktopdb.mk"
207 .
include "../../textproc/expat/buildlink3.mk"
208 .
include "../../textproc/hunspell/buildlink3.mk"
209 .
include "../../textproc/icu/buildlink3.mk"
210 .
include "../../textproc/libxml2/buildlink3.mk"
211 .
include "../../textproc/libxslt/buildlink3.mk"
212 .
include "../../textproc/raptor2/buildlink3.mk"
213 .
include "../../www/curl/buildlink3.mk"
214 .
include "../../www/neon/buildlink3.mk"
215 .
include "../../x11/libX11/buildlink3.mk"
216 .
include "../../x11/libXaw/buildlink3.mk"
217 .
include "../../x11/libXcursor/buildlink3.mk"
218 .
include "../../x11/libXext/buildlink3.mk"
219 .
include "../../x11/libXfixes/buildlink3.mk"
220 .
include "../../x11/libXi/buildlink3.mk"
221 .
include "../../x11/libXinerama/buildlink3.mk"
222 .
include "../../x11/libXrandr/buildlink3.mk"
223 .
include "../../x11/libXrender/buildlink3.mk"
224 .
include "../../x11/libXt/buildlink3.mk"
225 .
include "../../mk/dlopen.buildlink3.mk"
226 .
include "../../mk/pthread.buildlink3.mk"
227 .
include "../../mk/bsd.pkg.mk"