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 --------------------------------------------------------
|
|
|
|
|
2010-02-25 05:55:29 -06:00
|
|
|
TARFILE_NAME=hunspell-1.2.9
|
2010-04-13 06:04:34 -05:00
|
|
|
TARFILE_MD5=68dd2e8253d9a7930e9fd50e2d7220d0
|
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=\
|
2010-02-27 17:44:26 -06:00
|
|
|
hunspell-wntconfig.patch \
|
2010-03-04 04:44:57 -06:00
|
|
|
hunspell-solaris.patch \
|
|
|
|
hunspell-stacksmash.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
|
2008-06-01 14:43:55 -05:00
|
|
|
CONFIGURE_FLAGS= --disable-shared --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
|
|
|
|
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
|
2010-05-31 07:53:32 -05:00
|
|
|
CONFIGURE_FLAGS= --disable-shared --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"
|
|
|
|
|
2008-12-09 02:43:20 -06:00
|
|
|
.IF "$(GUI)"=="OS2"
|
|
|
|
BUILD_ACTION=cd src/hunspell && dmake
|
|
|
|
.ENDIF # "$(GUI)"=="OS2"
|
2007-10-05 05:54:27 -05:00
|
|
|
|
|
|
|
OUT2INC= \
|
|
|
|
$(BUILD_DIR)$/src$/hunspell$/*.hxx
|
|
|
|
|
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : set_ext.mk
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
.INCLUDE : tg_ext.mk
|
|
|
|
|