Bump for 3.6-28
[LibreOffice.git] / libgsf / makefile.mk
blob684ea56bfa6b0756aa49a2fc3b6c3060dabf3866
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
29 PRJ=.
31 PRJNAME=libgsf
32 TARGET=so_libgsf
34 # --- Settings -----------------------------------------------------
36 .INCLUDE : settings.mk
38 .IF "$(SYSTEM_LIBGSF)" == "YES"
39 all:
40 @echo "An already available installation of gdk-pixbuf should exist on your system."
41 @echo "Therefore the version provided here does not need to be built in addition."
42 .ENDIF
44 # --- Files --------------------------------------------------------
46 LIBGSFVERSION=1.14.19
48 TARFILE_NAME=$(PRJNAME)-$(LIBGSFVERSION)
49 TARFILE_MD5=3a84ac2da37cae5bf7ce616228c6fbde
51 .IF "$(OS)" == "WNT"
52 PATCH_FILES=libgsf-1.14.19.windows.patch
54 BUILD_DIR=gsf
55 BUILD_ACTION=dmake
57 ADDITIONAL_FILES=\
58 gsf/makefile.mk \
59 gsf/gsf-config.h
61 .ENDIF
63 .IF "$(OS)"=="MACOSX"
64 PATCH_FILES=libgsf-1.14.19.patch
66 LOADER_PATTERN:=-Wl,-dylib_file,@loader_path/REPLACEME:$(SOLARLIBDIR)/REPLACEME
67 LOADER_LIBS:=glib-2.0.0 gmodule-2.0.0 gobject-2.0.0 gthread-2.0.0
68 EXTRA_LINKFLAGS+=$(foreach,lib,$(LOADER_LIBS) $(subst,REPLACEME,lib$(lib).dylib $(LOADER_PATTERN)))
70 CONFIGURE_DIR=
71 CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) \
72 ./configure \
73 --prefix=/@.__________________________________________________$(EXTRPATH) \
74 CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS) $(LIBXML_CFLAGS) -I$(SOLARINCDIR)/external -I$(SOLARINCDIR)/external/glib-2.0" \
75 LDFLAGS="-L$(SOLARLIBDIR) $(EXTRA_LINKFLAGS)" \
76 --without-python \
77 --without-bonobo \
78 --with-bz2 \
79 --with-gio \
80 --with-gdk_pixbuf \
81 --without-gnome-vfs \
82 --disable-nls \
83 LIBGSF_CFLAGS="-I$(SOLARINCDIR)/external/glib-2.0" \
84 LIBGSF_LIBS="-lxml2 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl" \
85 LIBGSF_GIO_CFLAGS="-I$(SOLARINCDIR)/external/glib-2.0" \
86 LIBGSF_GIO_LIBS="-lgio-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl" \
87 GDK_PIXBUF_CFLAGS="-I$(SOLARINCDIR)/external/gdk-pixbuf-2.0" \
88 GDK_PIXBUF_LIBS="-lgdk_pixbuf-2.0"
91 CONFIGURE_FLAGS=CPPFLAGS="$(EXTRA_CDEFS)"
93 .IF "$(CROSS_COMPILING)"=="YES"
94 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
95 .ENDIF
97 BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) \
98 $(GNUMAKE)
99 BUILD_DIR=$(CONFIGURE_DIR)
101 OUT2LIB+=gsf/.libs/libgsf-1.114.dylib
102 .ENDIF
104 OUT2INC+=gsf/gsf-blob.h
105 OUT2INC+=gsf/gsf-input-impl.h
106 OUT2INC+=gsf/gsf-outfile.h
107 OUT2INC+=gsf/gsf-clip-data.h
108 OUT2INC+=gsf/gsf-input-iochannel.h
109 OUT2INC+=gsf/gsf-output-bzip.h
110 OUT2INC+=gsf/gsf-doc-meta-data.h
111 OUT2INC+=gsf/gsf-input-memory.h
112 OUT2INC+=gsf/gsf-output-csv.h
113 OUT2INC+=gsf/gsf-docprop-vector.h
114 OUT2INC+=gsf/gsf-input-proxy.h
115 OUT2INC+=gsf/gsf-output-gio.h
116 OUT2INC+=gsf/gsf-impl-utils.h
117 OUT2INC+=gsf/gsf-input-stdio.h
118 OUT2INC+=gsf/gsf-output-gzip.h
119 OUT2INC+=gsf/gsf-infile-impl.h
120 OUT2INC+=gsf/gsf-input-textline.h
121 OUT2INC+=gsf/gsf-output-iconv.h
122 OUT2INC+=gsf/gsf-infile-msole.h
123 OUT2INC+=gsf/gsf-input.h
124 OUT2INC+=gsf/gsf-output-impl.h
125 OUT2INC+=gsf/gsf-infile-msvba.h
126 OUT2INC+=gsf/gsf-libxml.h
127 OUT2INC+=gsf/gsf-output-iochannel.h
128 OUT2INC+=gsf/gsf-infile-stdio.h
129 OUT2INC+=gsf/gsf-meta-names.h
130 OUT2INC+=gsf/gsf-output-memory.h
131 OUT2INC+=gsf/gsf-infile-tar.h
132 OUT2INC+=gsf/gsf-msole-utils.h
133 OUT2INC+=gsf/gsf-output-stdio.h
134 OUT2INC+=gsf/gsf-infile-zip.h
135 OUT2INC+=gsf/gsf-open-pkg-utils.h
136 OUT2INC+=gsf/gsf-output.h
137 OUT2INC+=gsf/gsf-infile.h
138 OUT2INC+=gsf/gsf-opendoc-utils.h
139 OUT2INC+=gsf/gsf-shared-memory.h
140 OUT2INC+=gsf/gsf-input-bzip.h
141 OUT2INC+=gsf/gsf-outfile-impl.h
142 OUT2INC+=gsf/gsf-structured-blob.h
143 OUT2INC+=gsf/gsf-input-gio.h
144 OUT2INC+=gsf/gsf-outfile-msole.h
145 OUT2INC+=gsf/gsf-timestamp.h
146 OUT2INC+=gsf/gsf-input-gzip.h
147 OUT2INC+=gsf/gsf-outfile-stdio.h
148 OUT2INC+=gsf/gsf-utils.h
149 OUT2INC+=gsf/gsf-input-http.h
150 OUT2INC+=gsf/gsf-outfile-zip.h
151 OUT2INC+=gsf/gsf.h
153 # --- Targets ------------------------------------------------------
155 .INCLUDE : set_ext.mk
156 .INCLUDE : target.mk
157 .INCLUDE : tg_ext.mk