1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
33 # --- Settings -----------------------------------------------------
35 .INCLUDE
: settings.mk
37 # --- Files --------------------------------------------------------
39 TARFILE_NAME
=hunspell-1.3
.2
40 TARFILE_MD5
=3121aaf3e13e5d88dfff13fb4a5f1ab8
41 ADDITIONAL_FILES
+=config.h
44 hunspell-twoaffixcompound.patch \
45 hunspell-static.patch \
46 hunspell-wntconfig.patch \
47 hunspell-solaris.patch \
48 hunspell-android.patch
52 #relative to CONFIGURE_DIR
53 CONFIGURE_ACTION
=$(AUGMENT_LIBRARY_PATH
) configure
54 CONFIGURE_FLAGS
= --disable-shared
--disable-nls
--with-pic
55 .IF
"$(COMNAME)"=="sunpro5"
56 CONFIGURE_FLAGS
+= CFLAGS
=-xc99
=none
57 .ENDIF
# "$(COMNAME)"=="sunpro5"
60 CONFIGURE_FLAGS
+= CFLAGS
=-D_LINUX_SOURCE_COMPAT
61 .ELIF
"$(OS)" == "MACOSX"
63 --prefix=/@.__________________________________________________
$(EXTRPATH
)
67 .IF
"$(EXTRA_CFLAGS)"!=""
68 CONFIGURE_FLAGS
+= CFLAGS
="$(EXTRA_CFLAGS)" CXXFLAGS
="$(EXTRA_CFLAGS)"
69 .ENDIF
# "$(EXTRA_CFLAGS)"!=""
70 .ELIF
"$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
71 CONFIGURE_FLAGS
+=CPPFLAGS
="$(EXTRA_CDEFS)"
74 .IF
"$(CROSS_COMPILING)"=="YES"
75 CONFIGURE_FLAGS
+=--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) LIBS
="$(STDLIBCUIMT)"
78 BUILD_ACTION
=$(GNUMAKE
) -j
$(EXTMAXPROCESS
)
80 OUT2LIB
=$(BUILD_DIR
)$/src
$/hunspell
$/.libs
$/libhunspell-1.3.a
82 .ENDIF
# "$(GUI)"=="UNX"
87 CONFIGURE_ACTION
=configure
89 CONFIGURE_FLAGS
= --disable-shared
--disable-nls
--with-pic LDFLAGS
=-Wl
,--enable-runtime-pseudo-reloc-v2
91 .IF
"$(CROSS_COMPILING)"=="YES"
92 CONFIGURE_FLAGS
+=--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)
96 OUT2LIB
=$(BUILD_DIR
)$/src
$/hunspell
$/.libs
$/libhunspell-1.3.a
98 BUILD_ACTION
=cd src
/hunspell
&& dmake
100 .ENDIF
# "$(GUI)"=="WNT"
103 $(BUILD_DIR
)$/src
$/hunspell
$/*.hxx \
104 $(BUILD_DIR
)$/src
$/hunspell
$/*.h
106 # --- Targets ------------------------------------------------------
108 .INCLUDE
: set_ext.mk