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
=hyphen-2.8
.3
40 TARFILE_MD5
=86261f06c097d3e425a2f6d0b0635380
42 ADDITIONAL_FILES
+= makefile.mk
46 hyphen-android.patch \
50 CONFIGURE_DIR
=$(BUILD_DIR
)
52 #relative to CONFIGURE_DIR
53 # still needed also in system-hyphen case as it creates the makefile
54 CONFIGURE_ACTION
=configure
55 CONFIGURE_FLAGS
=--disable-shared
58 CONFIGURE_FLAGS
+= --with-pic
61 .IF
"$(COM)"=="C52" && "$(CPU)"=="U"
62 LCL_CONFIGURE_CFLAGS
+=-m64
66 .IF
"$(EXTRA_CFLAGS)"!=""
67 LCL_CONFIGURE_CFLAGS
+=$(EXTRA_CFLAGS
)
68 CONFIGURE_FLAGS
+=CXXFLAGS
="$(EXTRA_CFLAGS)"
69 .ENDIF
# "$(EXTRA_CFLAGS)"!=""
70 .ELIF
"$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
71 CONFIGURE_FLAGS
+=CPPFLAGS
="$(EXTRA_CDEFS)"
74 .IF
"$(LCL_CONFIGURE_CFLAGS)"!=""
75 CONFIGURE_FLAGS
+=CFLAGS
='$(LCL_CONFIGURE_CFLAGS)'
78 .IF
"$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES"
79 BUILD_ACTION
=make hyph_en_US.dic
80 .ELIF
"$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES"
82 echo
"Nothing to do here."
84 BUILD_ACTION
=$(GNUMAKE
) -j
$(EXTMAXPROCESS
)
88 .ENDIF
# "$(GUI)"=="UNX"
92 CONFIGURE_ACTION
=configure
93 CONFIGURE_FLAGS
= --disable-shared
--with-pic
99 .ENDIF
# "$(COM)"=="GCC"
101 .ENDIF
# "$(GUI)"=="WNT"
103 .IF
"$(CROSS_COMPILING)"=="YES"
104 CONFIGURE_FLAGS
+= --build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)
107 # --- Targets ------------------------------------------------------
109 .INCLUDE
: set_ext.mk