Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / liblangtag / makefile.mk
bloba8efa55b7d12d51bbeceb5581b3eacd768137fed
2 # Copyright 2012 LibreOffice contributors.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 PRJ=.
11 PRJNAME=liblangtag
12 TARGET=liblangtag
14 LIBLANGTAG_MAJOR=0
15 LIBLANGTAG_MINOR=2
16 LIBLANGTAG_MICRO=0
17 # Currently liblangtag.so.0.1.0 is generated instead of 0.2.0, presumably a bug?
18 # For new versions adapt symlink in prj/d.lst
20 # --- Settings -----------------------------------------------------
22 .INCLUDE : settings.mk
24 # --- Files --------------------------------------------------------
26 .IF "$(SYSTEM_LIBLANGTAG)" == "YES"
27 @all:
28 @echo "Using system liblangtag."
29 .ENDIF
31 TARFILE_NAME=liblangtag-$(LIBLANGTAG_MAJOR).$(LIBLANGTAG_MINOR)
32 TARFILE_MD5=fa6a2f85bd28baab035b2c95e722713f
34 # liblangtag 132170753ea9cbd63cda8f3a80498c144f75b8ba
35 PATCH_FILES=liblangtag-0.2-0001-Fix-a-memory-leak.patch
36 # liblangtag cf8dfcf1604e534f4c9eccbd9a05571c8a9dc74d
37 PATCH_FILES+=liblangtag-0.2-0002-Fix-invalid-memory-access.patch
38 PATCH_FILES+=liblangtag-0.2-configure.patch
39 PATCH_FILES+=liblangtag-0.2-datadir.patch
41 CONFIGURE_DIR=.
42 BUILD_DIR=$(CONFIGURE_DIR)
44 CONFIGURE_FLAGS+= --prefix=$(SRC_ROOT)$/$(PRJNAME)$/$(MISC)$/install
46 .IF "$(SYSTEM_LIBXML)"!="YES"
47 CONFIGURE_FLAGS+= LIBXML2_CFLAGS='-I$(SOLARINCDIR)$/external$/libxml'
48 .IF "$(GUI)"=="WNT" && "$(COM)"!="GCC"
49 CONFIGURE_FLAGS+= LIBXML2_LIBS='$(SOLARLIBDIR)$/libxml2.lib'
50 .ELSE
51 CONFIGURE_FLAGS+= LIBXML2_LIBS='-L$(SOLARLIBDIR) -lxml2'
52 .ENDIF
53 .ENDIF
55 .IF "$(SYSTEM_GLIB)"!="YES"
56 # we're cheating here.. pkg-config wouldn't find anything useful, see configure patch
57 CONFIGURE_FLAGS+= LIBO_GLIB_CHEAT=YES
58 CONFIGURE_FLAGS+= GLIB_CFLAGS='-I$(SOLARINCDIR)/external/glib-2.0'
59 .IF "$(GUI)"=="WNT" && "$(COM)"!="GCC"
60 CONFIGURE_FLAGS+= GLIB_LIBS='$(SOLARLIBDIR)$/gio-2.0.lib $(SOLARLIBDIR)$/gobject-2.0.lib $(SOLARLIBDIR)$/gthread-2.0.lib $(SOLARLIBDIR)$/gmodule-2.0.lib $(SOLARLIBDIR)$/glib-2.0.lib'
61 .ELSE
62 CONFIGURE_FLAGS+= GLIB_LIBS='-L$(SOLARLIBDIR) -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0'
63 .ENDIF
64 CONFIGURE_FLAGS+= GLIB_GENMARSHAL=glib-genmarshal
65 CONFIGURE_FLAGS+= GLIB_MKENUMS=glib-mkenums
66 CONFIGURE_FLAGS+= GOBJECT_QUERY=gobject-query
67 CONFIGURE_FLAGS+= --disable-glibtest
68 .ENDIF
70 CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) .$/configure
72 BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE) -j$(EXTMAXPROCESS) && \
73 $(AUGMENT_LIBRARY_PATH) $(GNUMAKE) install
76 .IF "$(GUI)"=="WNT"
77 .IF "$(COM)"=="GCC"
79 CONFIGURE_FLAGS+= LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
81 .IF "$(CROSS_COMPILING)"=="YES"
82 CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
83 .ENDIF
85 .ELSE # "$(COM)"=="GCC"
87 PATCH_FILES+=liblangtag-0.2-msc-configure.patch
89 .ENDIF # "$(COM)"=="GCC"
90 .ENDIF # "$(GUI)"=="WNT"
93 # --- Targets ------------------------------------------------------
95 .INCLUDE : set_ext.mk
96 .INCLUDE : target.mk
97 .INCLUDE : tg_ext.mk