17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=. 25cdf0e10cSrcweir 26cdf0e10cSrcweirPRJNAME=hunspell 27cdf0e10cSrcweirTARGET=hunspell 28cdf0e10cSrcweir 29cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 30cdf0e10cSrcweir 31cdf0e10cSrcweir.INCLUDE : settings.mk 32cdf0e10cSrcweir 33cdf0e10cSrcweir# --- Files -------------------------------------------------------- 34cdf0e10cSrcweir 359ef65f0eSAndre Fischer.IF "$(ENABLE_HUNSPELL)" != "YES" 369ef65f0eSAndre Fischer 379ef65f0eSAndre Fischerall: 389ef65f0eSAndre Fischer @echo "hunspell is disabled" 399ef65f0eSAndre Fischer 409ef65f0eSAndre Fischer.ELSE 410ea1a209SEike Rathke 420aabba3aSAndre FischerTARFILE_NAME=hunspell-1.3.2 430aabba3aSAndre FischerTARFILE_MD5=3121aaf3e13e5d88dfff13fb4a5f1ab8 44cdf0e10cSrcweir 455f295263SArmin Le GrandPATCH_FILES= \ 46871bf55bSHerbert Dürr hunspell-cxx11-literal.patch \ 475f295263SArmin Le Grand hunspell-solaris.patch \ 485f295263SArmin Le Grand hunspell-bash.patch \ 495f295263SArmin Le Grand hunspell-1.3.2-overflow.patch 509ef65f0eSAndre Fischer 51cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 52cdf0e10cSrcweir 53cdf0e10cSrcweir#relative to CONFIGURE_DIR 54cdf0e10cSrcweirCONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure 55cdf0e10cSrcweirCONFIGURE_FLAGS= --disable-shared --with-pic 56cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5" 5759e0bdb0SPedro GiffuniCONFIGURE_FLAGS+= CFLAGS="-xc99=none" CXXFLAGS="-I$(SOLARVER)/$(INPATH)/inc/stl -library=no%Cstd" LDFLAGS="-L$(SOLARVER)/$(INPATH)/lib -lstlport_sunpro" 58cdf0e10cSrcweir.ENDIF # "$(COMNAME)"=="sunpro5" 59cdf0e10cSrcweir 60cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 61cdf0e10cSrcweir.IF "$(EXTRA_CFLAGS)"!="" 62cdf0e10cSrcweirCONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)" 63cdf0e10cSrcweir.ENDIF # "$(EXTRA_CFLAGS)"!="" 64cdf0e10cSrcweir.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!="" 65cdf0e10cSrcweirCONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" 668794372bSPedro Giffuni.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!="" 678794372bSPedro GiffuniCONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)" 68cdf0e10cSrcweir.ENDIF 69cdf0e10cSrcweir 70cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 71cdf0e10cSrcweir 720aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a 73cdf0e10cSrcweir 74cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX" 75cdf0e10cSrcweir 76cdf0e10cSrcweir 77cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 78cdf0e10cSrcweir.IF "$(COM)"=="GCC" 79cdf0e10cSrcweirPATCH_FILES=\ 80cdf0e10cSrcweir hunspell-mingw.patch 81cdf0e10cSrcweir 82cdf0e10cSrcweirCONFIGURE_ACTION=configure 830aabba3aSAndre FischerCONFIGURE_FLAGS= --disable-shared --with-pic 840aabba3aSAndre Fischer# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2 850aabba3aSAndre FischerBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 860aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a 870aabba3aSAndre Fischer.ELSE # GCC 880aabba3aSAndre FischerBUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake 890aabba3aSAndre Fischer.ENDIF # GCC 90cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT" 91cdf0e10cSrcweir 92cdf0e10cSrcweir.IF "$(GUI)"=="OS2" 93*1b8c19f4SYuri DarioBUILD_ACTION=cd src/hunspell && touch config.h && dmake 94cdf0e10cSrcweir.ENDIF # "$(GUI)"=="OS2" 95cdf0e10cSrcweir 960aabba3aSAndre FischerOUT2INC= \ 970aabba3aSAndre Fischer $(BUILD_DIR)$/src$/hunspell$/*.hxx \ 980aabba3aSAndre Fischer $(BUILD_DIR)$/src$/hunspell$/hunvisapi.h 99cdf0e10cSrcweir 100cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 101cdf0e10cSrcweir 102cdf0e10cSrcweir.INCLUDE : set_ext.mk 103cdf0e10cSrcweir.INCLUDE : target.mk 104cdf0e10cSrcweir.INCLUDE : tg_ext.mk 1050ea1a209SEike Rathke.ENDIF 106