xref: /aoo41x/main/RepositoryFixes.mk (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir# fixes for all the libraries that are named with too much creativity and do
29*cdf0e10cSrcweir# not follow any of the established nameschemes
30*cdf0e10cSrcweir
31*cdf0e10cSrcweirifeq ($(OS),LINUX)
32*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES))
33*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES))
34*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES))
35*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
36*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
37*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
38*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
39*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES))
40*cdf0e10cSrcweir
41*cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES)
42*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:%,stl:libstdc++.so,$(gb_Library_FILENAMES))
43*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS))
44*cdf0e10cSrcweirendif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweirendif
47*cdf0e10cSrcweir
48*cdf0e10cSrcweir
49*cdf0e10cSrcweirifeq ($(OS),MACOSX)
50*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES))
51*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES))
52*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
53*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
54*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES))
55*cdf0e10cSrcweir
56*cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES)
57*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:%,stl:libstdc++.dylib,$(gb_Library_FILENAMES))
58*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS))
59*cdf0e10cSrcweirendif
60*cdf0e10cSrcweir
61*cdf0e10cSrcweirendif
62*cdf0e10cSrcweir
63*cdf0e10cSrcweir
64*cdf0e10cSrcweirifeq ($(OS),WNT)
65*cdf0e10cSrcweirifneq ($(USE_MINGW),)
66*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:icomphelper%,comphelper:icomphelp%,$(gb_Library_FILENAMES))
67*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppunit:icppunit%,cppunit:libcppunit.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
68*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cui:icui%,cui:icuin%,$(gb_Library_FILENAMES))
69*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:ii18nisolang1%,i18nisolang1:ii18nisolang%,$(gb_Library_FILENAMES))
70*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:iii18nisolang1%,i18nisolang1:iii18nisolang%,$(gb_Library_FILENAMES))
71*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sb:isb%,sb:basic%,$(gb_Library_FILENAMES))
72*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sfx:isfx%,sfx:sfx%,$(gb_Library_FILENAMES))
73*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst svt:isvt%,svt:svtool%,$(gb_Library_FILENAMES))
74*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst tl:itl%,tl:itools%,$(gb_Library_FILENAMES))
75*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vbahelper:ivbahelper%,vbahelper:vbahelper%,$(gb_Library_FILENAMES))
76*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vos3:ivos3%,vos3:ivos%,$(gb_Library_FILENAMES))
77*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
78*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
79*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
80*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst z:iz%,z:zlib%,$(gb_Library_FILENAMES))
81*cdf0e10cSrcweirifeq ($(gb_PRODUCT),$(true))
82*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71%,$(gb_Library_FILENAMES))
83*cdf0e10cSrcweirelse
84*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71_stldebug%,$(gb_Library_FILENAMES))
85*cdf0e10cSrcweirendif
86*cdf0e10cSrcweirgb_Library_NOILIBFILENAMES:=\
87*cdf0e10cSrcweir	icuuc \
88*cdf0e10cSrcweir	sot \
89*cdf0e10cSrcweir	uwinapi \
90*cdf0e10cSrcweir
91*cdf0e10cSrcweirgb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES))
92*cdf0e10cSrcweirgb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT))
93*cdf0e10cSrcweir
94*cdf0e10cSrcweirgb_Library_ILIBFILENAMES:=\
95*cdf0e10cSrcweir	unicows \
96*cdf0e10cSrcweir	uuid \
97*cdf0e10cSrcweir
98*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(filter-out $(foreach lib,$(gb_Library_ILIBFILENAMES),$(lib):%),$(gb_Library_DLLFILENAMES))
99*cdf0e10cSrcweirgb_Library_DLLFILENAMES += $(foreach lib,$(gb_Library_ILIBFILENAMES),$(lib):$(PSDK_HOME)/lib/$(lib)$(gb_Library_ILIBEXT))
100*cdf0e10cSrcweir
101*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst comphelper:comphelper%,comphelper:comphelp%,$(gb_Library_DLLFILENAMES))
102*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst icuuc:icuuc%,icuuc:icuuc40%,$(gb_Library_DLLFILENAMES))
103*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst ucbhelper:ucbhelper%,ucbhelper:ucbhelper4%,$(gb_Library_DLLFILENAMES))
104*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_DLLFILENAMES))
105*cdf0e10cSrcweir
106*cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES)
107*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:%,stl:$(gb_Library_IARCSYSPRE)stdc++_s$(gb_Library_IARCSYSPRE),$(gb_Library_FILENAMES))
108*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS))
109*cdf0e10cSrcweirendif
110*cdf0e10cSrcweir
111*cdf0e10cSrcweirelse
112*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:icomphelper%,comphelper:icomphelp%,$(gb_Library_FILENAMES))
113*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppunit:icppunit%,cppunit:icppunit_dll%,$(gb_Library_FILENAMES))
114*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cui:icui%,cui:icuin%,$(gb_Library_FILENAMES))
115*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:ii18nisolang1%,i18nisolang1:ii18nisolang%,$(gb_Library_FILENAMES))
116*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:iii18nisolang1%,i18nisolang1:iii18nisolang%,$(gb_Library_FILENAMES))
117*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sb:isb%,sb:basic%,$(gb_Library_FILENAMES))
118*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sfx:isfx%,sfx:sfx%,$(gb_Library_FILENAMES))
119*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst svt:isvt%,svt:svtool%,$(gb_Library_FILENAMES))
120*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst tl:itl%,tl:itools%,$(gb_Library_FILENAMES))
121*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vbahelper:ivbahelper%,vbahelper:vbahelper%,$(gb_Library_FILENAMES))
122*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vos3:ivos3%,vos3:ivos%,$(gb_Library_FILENAMES))
123*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2%,$(gb_Library_FILENAMES))
124*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt%,$(gb_Library_FILENAMES))
125*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf%,$(gb_Library_FILENAMES))
126*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst z:iz%,z:zlib%,$(gb_Library_FILENAMES))
127*cdf0e10cSrcweirifeq ($(gb_PRODUCT),$(true))
128*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71%,$(gb_Library_FILENAMES))
129*cdf0e10cSrcweirelse
130*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71_stldebug%,$(gb_Library_FILENAMES))
131*cdf0e10cSrcweirendif
132*cdf0e10cSrcweirgb_Library_NOILIBFILENAMES:=\
133*cdf0e10cSrcweir	advapi32 \
134*cdf0e10cSrcweir	gdi32 \
135*cdf0e10cSrcweir	gdiplus \
136*cdf0e10cSrcweir	graphite_dll \
137*cdf0e10cSrcweir	gnu_getopt \
138*cdf0e10cSrcweir	icuuc \
139*cdf0e10cSrcweir	icule \
140*cdf0e10cSrcweir	imm32\
141*cdf0e10cSrcweir	kernel32 \
142*cdf0e10cSrcweir	msimg32 \
143*cdf0e10cSrcweir	msvcrt \
144*cdf0e10cSrcweir	mpr \
145*cdf0e10cSrcweir	oldnames \
146*cdf0e10cSrcweir	ole32 \
147*cdf0e10cSrcweir	oleaut32 \
148*cdf0e10cSrcweir	shell32 \
149*cdf0e10cSrcweir	sot \
150*cdf0e10cSrcweir	unicows \
151*cdf0e10cSrcweir	user32 \
152*cdf0e10cSrcweir	uuid \
153*cdf0e10cSrcweir	uwinapi \
154*cdf0e10cSrcweir	winspool \
155*cdf0e10cSrcweir
156*cdf0e10cSrcweirgb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES))
157*cdf0e10cSrcweirgb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT))
158*cdf0e10cSrcweirifneq ($(gb_PRODUCT),$(true))
159*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst msvcrt:msvcrt%,msvcrt:msvcrtd%,$(gb_Library_FILENAMES))
160*cdf0e10cSrcweirendif
161*cdf0e10cSrcweir
162*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst comphelper:comphelper%,comphelper:comphelp%,$(gb_Library_DLLFILENAMES))
163*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst icuuc:icuuc%,icuuc:icuuc40%,$(gb_Library_DLLFILENAMES))
164*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst ucbhelper:ucbhelper%,ucbhelper:ucbhelper4%,$(gb_Library_DLLFILENAMES))
165*cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_DLLFILENAMES))
166*cdf0e10cSrcweir
167*cdf0e10cSrcweirendif
168*cdf0e10cSrcweir
169*cdf0e10cSrcweirendif
170*cdf0e10cSrcweir
171*cdf0e10cSrcweirifeq ($(OS),SOLARIS)
172*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES))
173*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES))
174*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES))
175*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
176*cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
177*cdf0e10cSrcweir#$(info libnames: $(gb_Library_FILENAMES))
178*cdf0e10cSrcweir
179*cdf0e10cSrcweirendif
180*cdf0e10cSrcweir
181*cdf0e10cSrcweir# we do not require a known rule for these, when using system libs
182*cdf0e10cSrcweir
183*cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES)
184*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS))
185*cdf0e10cSrcweirendif
186*cdf0e10cSrcweir
187*cdf0e10cSrcweirifeq ($(SYSTEM_LIBXML),YES)
188*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out xml2,$(gb_Library_TARGETS))
189*cdf0e10cSrcweirendif
190*cdf0e10cSrcweir
191*cdf0e10cSrcweirifeq ($(SYSTEM_LIBXSLT),YES)
192*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out xslt,$(gb_Library_TARGETS))
193*cdf0e10cSrcweirendif
194*cdf0e10cSrcweir
195*cdf0e10cSrcweirifeq ($(SYSTEM_REDLAND),YES)
196*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out rdf,$(gb_Library_TARGETS))
197*cdf0e10cSrcweirendif
198*cdf0e10cSrcweir
199*cdf0e10cSrcweirifeq ($(SYSTEM_ICU),YES)
200*cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out icuuc,$(gb_Library_TARGETS))
201*cdf0e10cSrcweirendif
202*cdf0e10cSrcweir
203*cdf0e10cSrcweir# vim: set noet sw=4 ts=4:
204