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.3.2 43TARFILE_MD5=3121aaf3e13e5d88dfff13fb4a5f1ab8 44 45PATCH_FILES= \ 46 hunspell-cxx11-literal.patch \ 47 hunspell-solaris.patch \ 48 hunspell-bash.patch \ 49 hunspell-1.3.2-overflow.patch 50 51.IF "$(GUI)"=="UNX" 52 53#relative to CONFIGURE_DIR 54CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure 55CONFIGURE_FLAGS= --disable-shared --with-pic 56.IF "$(COMNAME)"=="sunpro5" 57CONFIGURE_FLAGS+= CFLAGS="-xc99=none" CXXFLAGS="-I$(SOLARVER)/$(INPATH)/inc/stl -library=no%Cstd" LDFLAGS="-L$(SOLARVER)/$(INPATH)/lib -lstlport_sunpro" 58.ENDIF # "$(COMNAME)"=="sunpro5" 59 60.IF "$(SYSBASE)"!="" 61.IF "$(EXTRA_CFLAGS)"!="" 62CONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)" 63.ENDIF # "$(EXTRA_CFLAGS)"!="" 64.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!="" 65CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" 66.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!="" 67CONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)" 68.ENDIF 69 70BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 71 72OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a 73 74.ENDIF # "$(GUI)"=="UNX" 75 76 77.IF "$(GUI)"=="WNT" 78.IF "$(COM)"=="GCC" 79PATCH_FILES=\ 80 hunspell-mingw.patch 81 82CONFIGURE_ACTION=configure 83CONFIGURE_FLAGS= --disable-shared --with-pic 84# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2 85BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 86OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a 87.ELSE # GCC 88BUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake 89.ENDIF # GCC 90.ENDIF # "$(GUI)"=="WNT" 91 92.IF "$(GUI)"=="OS2" 93BUILD_ACTION=cd src/hunspell && touch config.h && dmake 94.ENDIF # "$(GUI)"=="OS2" 95 96OUT2INC= \ 97 $(BUILD_DIR)$/src$/hunspell$/*.hxx \ 98 $(BUILD_DIR)$/src$/hunspell$/hunvisapi.h 99 100# --- Targets ------------------------------------------------------ 101 102.INCLUDE : set_ext.mk 103.INCLUDE : target.mk 104.INCLUDE : tg_ext.mk 105.ENDIF 106