1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ=. 25 26PRJNAME=hunspell 27TARGET=hunspell 28 29# --- Settings ----------------------------------------------------- 30 31.INCLUDE : settings.mk 32 33# --- Files -------------------------------------------------------- 34 35.IF "$(ENABLE_HUNSPELL)" != "YES" 36 37all: 38 @echo "hunspell is disabled" 39 40.ELSE 41 42TARFILE_NAME=hunspell-1.2.9 43TARFILE_MD5=68dd2e8253d9a7930e9fd50e2d7220d0 44ADDITIONAL_FILES+=config.h 45 46PATCH_FILES=\ 47 hunspell-wntconfig.patch \ 48 hunspell-solaris.patch \ 49 hunspell-stacksmash.patch \ 50 hunspell.patch 51 52.IF "$(GUI)"=="UNX" 53 54#relative to CONFIGURE_DIR 55CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure 56CONFIGURE_FLAGS= --disable-shared --with-pic 57.IF "$(COMNAME)"=="sunpro5" 58CONFIGURE_FLAGS+= CFLAGS=-xc99=none 59.ENDIF # "$(COMNAME)"=="sunpro5" 60 61.IF "$(SYSBASE)"!="" 62.IF "$(EXTRA_CFLAGS)"!="" 63CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)" 64.ENDIF # "$(EXTRA_CFLAGS)"!="" 65.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!="" 66CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" 67.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!="" 68CONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)" 69.ENDIF 70 71BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 72 73OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a 74 75.ENDIF # "$(GUI)"=="UNX" 76 77 78.IF "$(GUI)"=="WNT" 79.IF "$(COM)"=="GCC" 80PATCH_FILES=\ 81 hunspell-mingw.patch 82 83CONFIGURE_ACTION=configure 84CONFIGURE_FLAGS= --disable-shared --with-pic LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2 85BUILD_ACTION=make 86OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.2.a 87.ELSE 88BUILD_ACTION=cd src/hunspell && dmake 89.ENDIF 90.ENDIF # "$(GUI)"=="WNT" 91 92.IF "$(GUI)"=="OS2" 93BUILD_ACTION=cd src/hunspell && dmake 94.ENDIF # "$(GUI)"=="OS2" 95 96OUT2INC= \ 97 $(BUILD_DIR)$/src$/hunspell$/*.hxx 98 99# --- Targets ------------------------------------------------------ 100 101.INCLUDE : set_ext.mk 102.INCLUDE : target.mk 103.INCLUDE : tg_ext.mk 104.ENDIF 105