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 42*0aabba3aSAndre FischerTARFILE_NAME=hunspell-1.3.2 43*0aabba3aSAndre FischerTARFILE_MD5=3121aaf3e13e5d88dfff13fb4a5f1ab8 44cdf0e10cSrcweir 45*0aabba3aSAndre FischerPATCH_FILES= \ 46*0aabba3aSAndre Fischer hunspell-solaris.patch \ 47*0aabba3aSAndre Fischer hunspell-bash.patch 489ef65f0eSAndre Fischer 49cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 50cdf0e10cSrcweir 51cdf0e10cSrcweir#relative to CONFIGURE_DIR 52cdf0e10cSrcweirCONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure 53cdf0e10cSrcweirCONFIGURE_FLAGS= --disable-shared --with-pic 54cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5" 55cdf0e10cSrcweirCONFIGURE_FLAGS+= CFLAGS=-xc99=none 56cdf0e10cSrcweir.ENDIF # "$(COMNAME)"=="sunpro5" 57cdf0e10cSrcweir 58cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 59cdf0e10cSrcweir.IF "$(EXTRA_CFLAGS)"!="" 60cdf0e10cSrcweirCONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)" 61cdf0e10cSrcweir.ENDIF # "$(EXTRA_CFLAGS)"!="" 62cdf0e10cSrcweir.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!="" 63cdf0e10cSrcweirCONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" 648794372bSPedro Giffuni.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!="" 658794372bSPedro GiffuniCONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)" 66cdf0e10cSrcweir.ENDIF 67cdf0e10cSrcweir 68cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 69cdf0e10cSrcweir 70*0aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a 71cdf0e10cSrcweir 72cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX" 73cdf0e10cSrcweir 74cdf0e10cSrcweir 75cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 76cdf0e10cSrcweir.IF "$(COM)"=="GCC" 77cdf0e10cSrcweirPATCH_FILES=\ 78cdf0e10cSrcweir hunspell-mingw.patch 79cdf0e10cSrcweir 80cdf0e10cSrcweirCONFIGURE_ACTION=configure 81*0aabba3aSAndre FischerCONFIGURE_FLAGS= --disable-shared --with-pic 82*0aabba3aSAndre Fischer# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2 83*0aabba3aSAndre FischerBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 84*0aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a 85*0aabba3aSAndre Fischer.ELSE # GCC 86*0aabba3aSAndre FischerBUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake 87*0aabba3aSAndre Fischer.ENDIF # GCC 88cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT" 89cdf0e10cSrcweir 90cdf0e10cSrcweir.IF "$(GUI)"=="OS2" 91cdf0e10cSrcweirBUILD_ACTION=cd src/hunspell && dmake 92cdf0e10cSrcweir.ENDIF # "$(GUI)"=="OS2" 93cdf0e10cSrcweir 94*0aabba3aSAndre FischerOUT2INC= \ 95*0aabba3aSAndre Fischer $(BUILD_DIR)$/src$/hunspell$/*.hxx \ 96*0aabba3aSAndre Fischer $(BUILD_DIR)$/src$/hunspell$/hunvisapi.h 97cdf0e10cSrcweir 98cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 99cdf0e10cSrcweir 100cdf0e10cSrcweir.INCLUDE : set_ext.mk 101cdf0e10cSrcweir.INCLUDE : target.mk 102cdf0e10cSrcweir.INCLUDE : tg_ext.mk 1030ea1a209SEike Rathke.ENDIF 104