2007-10-05 05:54:27 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-22 08:42:58 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
2010-02-12 08:01:35 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
2007-10-05 05:54:27 -05:00
|
|
|
#
|
2008-04-22 08:42:58 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2007-10-05 05:54:27 -05:00
|
|
|
#
|
2008-04-22 08:42:58 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2007-10-05 05:54:27 -05:00
|
|
|
#
|
2008-04-22 08:42:58 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2007-10-05 05:54:27 -05:00
|
|
|
#
|
2008-04-22 08:42:58 -05:00
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2007-10-05 05:54:27 -05:00
|
|
|
#
|
2008-04-22 08:42:58 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2007-10-05 05:54:27 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
PRJ=.
|
|
|
|
|
|
|
|
PRJNAME=hunspell
|
|
|
|
TARGET=hunspell
|
|
|
|
|
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
|
|
|
|
# --- Files --------------------------------------------------------
|
|
|
|
|
2011-02-08 08:50:08 -06:00
|
|
|
TARFILE_NAME=hunspell-1.3.1
|
|
|
|
TARFILE_MD5=9ed97fce60a9a65852402248a6659492
|
2010-02-25 08:46:03 -06:00
|
|
|
ADDITIONAL_FILES+=config.h
|
2008-04-11 03:17:35 -05:00
|
|
|
|
2009-06-04 10:47:31 -05:00
|
|
|
PATCH_FILES=\
|
2011-02-10 13:50:26 -06:00
|
|
|
hunspell-static.patch \
|
2010-02-27 17:44:26 -06:00
|
|
|
hunspell-wntconfig.patch \
|
2011-02-08 08:50:08 -06:00
|
|
|
hunspell-solaris.patch
|
2007-10-05 05:54:27 -05:00
|
|
|
|
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
|
|
|
|
#relative to CONFIGURE_DIR
|
2009-03-09 06:28:09 -05:00
|
|
|
CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
|
2011-02-05 10:23:21 -06:00
|
|
|
CONFIGURE_FLAGS= --disable-shared --disable-nls --with-pic
|
2008-06-17 08:53:14 -05:00
|
|
|
.IF "$(COMNAME)"=="sunpro5"
|
|
|
|
CONFIGURE_FLAGS+= CFLAGS=-xc99=none
|
|
|
|
.ENDIF # "$(COMNAME)"=="sunpro5"
|
2007-10-05 05:54:27 -05:00
|
|
|
|
2010-10-13 07:21:57 -05:00
|
|
|
.IF "$(OS)"=="AIX"
|
|
|
|
CONFIGURE_FLAGS+= CFLAGS=-D_LINUX_SOURCE_COMPAT
|
|
|
|
.ENDIF
|
|
|
|
|
2008-06-19 09:36:15 -05:00
|
|
|
.IF "$(SYSBASE)"!=""
|
|
|
|
.IF "$(EXTRA_CFLAGS)"!=""
|
2009-03-04 03:51:42 -06:00
|
|
|
CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
|
|
|
|
.ENDIF # "$(EXTRA_CFLAGS)"!=""
|
2009-09-16 09:49:32 -05:00
|
|
|
.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
|
|
|
|
CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
|
|
|
|
.ENDIF
|
2008-06-19 09:36:15 -05:00
|
|
|
|
2010-07-20 05:46:55 -05:00
|
|
|
BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
|
2007-10-05 05:54:27 -05:00
|
|
|
|
2009-03-04 03:51:42 -06:00
|
|
|
OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
|
2007-10-05 05:54:27 -05:00
|
|
|
|
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
|
|
|
|
|
|
|
|
|
|
.IF "$(GUI)"=="WNT"
|
2009-04-10 04:52:21 -05:00
|
|
|
.IF "$(COM)"=="GCC"
|
2010-05-31 07:28:11 -05:00
|
|
|
PATCH_FILES=\
|
|
|
|
hunspell-mingw.patch
|
|
|
|
|
2009-04-10 04:52:21 -05:00
|
|
|
CONFIGURE_ACTION=configure
|
2011-02-05 10:23:21 -06:00
|
|
|
CONFIGURE_FLAGS= --disable-shared --disable-nls --with-pic LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
|
2009-04-10 04:52:21 -05:00
|
|
|
BUILD_ACTION=make
|
|
|
|
OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a
|
|
|
|
.ELSE
|
2007-10-05 05:54:27 -05:00
|
|
|
BUILD_ACTION=cd src/hunspell && dmake
|
2009-04-10 04:52:21 -05:00
|
|
|
.ENDIF
|
2007-10-05 05:54:27 -05:00
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
|
|
|
|
OUT2INC= \
|
2011-02-08 14:33:07 -06:00
|
|
|
$(BUILD_DIR)$/src$/hunspell$/*.hxx \
|
|
|
|
$(BUILD_DIR)$/src$/hunspell$/*.h
|
2007-10-05 05:54:27 -05:00
|
|
|
|
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : set_ext.mk
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
.INCLUDE : tg_ext.mk
|
|
|
|
|