make install and dev-install build-depend on all
[LibreOffice.git] / libgsf / makefile.mk
blob6a481a2debc815716c5386fbeda75784ea4e5f97
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)"=="MACOSX" || "$(OS)"=="WNT"
53 .IF "$(OS)" == "WNT"
54 PATCH_FILES=libgsf-1.14.19.windows.patch
56 BUILD_DIR=gsf
57 BUILD_ACTION=dmake
59 ADDITIONAL_FILES=\
60 gsf/makefile.mk \
61 gsf/gsf-config.h
63 .ELSE
64 PATCH_FILES=libgsf-1.14.19.patch
66 CONFIGURE_DIR=
67 CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) \
68 ./configure \
69 --prefix=$(SRC_ROOT)/$(PRJNAME)/$(MISC) \
70 CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS) $(LIBXML_CFLAGS) -I$(SOLARINCDIR)/external -I$(SOLARINCDIR)/external/glib-2.0" \
71 LDFLAGS="-L$(SOLARLIBDIR) $(eq,$(OS),MACOSX $(EXTRA_LINKFLAGS) $(NULL))" \
72 --without-python \
73 --without-bonobo \
74 --with-bz2 \
75 --with-gio \
76 --with-gdk_pixbuf \
77 --without-gnome-vfs \
78 --disable-nls \
79 LIBGSF_CFLAGS="-I$(SOLARINCDIR)/external/glib-2.0" \
80 LIBGSF_LIBS="-lxml2 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl" \
81 LIBGSF_GIO_CFLAGS="-I$(SOLARINCDIR)/external/glib-2.0" \
82 LIBGSF_GIO_LIBS="-lgio-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl" \
83 GDK_PIXBUF_CFLAGS="-I$(SOLARINCDIR)/external/gdk-pixbuf-2.0" \
84 GDK_PIXBUF_LIBS="-lgdk_pixbuf-2.0"
87 CONFIGURE_FLAGS=$(eq,$(OS),MACOSX CPPFLAGS="$(EXTRA_CDEFS)" $(NULL))
89 .IF "$(CROSS_COMPILING)"=="YES"
90 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
91 .ENDIF
93 BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) \
94 $(GNUMAKE)
95 BUILD_DIR=$(CONFIGURE_DIR)
97 .ENDIF
99 .IF "$(OS)"=="MACOSX"
100 EXTRPATH=LOADER
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 .ENDIF
155 # --- Targets ------------------------------------------------------
157 .INCLUDE : set_ext.mk
158 .INCLUDE : target.mk
159 .INCLUDE : tg_ext.mk