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.3 43TARFILE_MD5=4967da60b23413604c9e563beacc63b4 44 45PATCH_FILES= \ 46 hunspell-cxx11-literal.patch \ 47 hunspell-solaris.patch \ 48 hunspell-bash.patch \ 49 hunspell-1.3.3-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" 79 80CONFIGURE_ACTION=configure 81CONFIGURE_FLAGS= --disable-shared --with-pic 82# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2 83BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 84OUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a 85.ELSE # GCC 86BUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake 87.ENDIF # GCC 88.ENDIF # "$(GUI)"=="WNT" 89 90.IF "$(GUI)"=="OS2" 91BUILD_ACTION=cd src/hunspell && touch config.h && dmake 92.ENDIF # "$(GUI)"=="OS2" 93 94OUT2INC= \ 95 $(BUILD_DIR)$/src$/hunspell$/*.hxx \ 96 $(BUILD_DIR)$/src$/hunspell$/hunvisapi.h 97 98# --- Targets ------------------------------------------------------ 99 100.INCLUDE : set_ext.mk 101.INCLUDE : target.mk 102.INCLUDE : tg_ext.mk 103.ENDIF 104