xref: /AOO41X/ext_libraries/hunspell/makefile.mk (revision b12b9c61febff7edab6263bde2bdcfbe6e0f8f41)
10aabba3aSAndre Fischer#**************************************************************
20aabba3aSAndre Fischer#
30aabba3aSAndre Fischer#  Licensed to the Apache Software Foundation (ASF) under one
40aabba3aSAndre Fischer#  or more contributor license agreements.  See the NOTICE file
50aabba3aSAndre Fischer#  distributed with this work for additional information
60aabba3aSAndre Fischer#  regarding copyright ownership.  The ASF licenses this file
70aabba3aSAndre Fischer#  to you under the Apache License, Version 2.0 (the
80aabba3aSAndre Fischer#  "License"); you may not use this file except in compliance
90aabba3aSAndre Fischer#  with the License.  You may obtain a copy of the License at
100aabba3aSAndre Fischer#
110aabba3aSAndre Fischer#    http://www.apache.org/licenses/LICENSE-2.0
120aabba3aSAndre Fischer#
130aabba3aSAndre Fischer#  Unless required by applicable law or agreed to in writing,
140aabba3aSAndre Fischer#  software distributed under the License is distributed on an
150aabba3aSAndre Fischer#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
160aabba3aSAndre Fischer#  KIND, either express or implied.  See the License for the
170aabba3aSAndre Fischer#  specific language governing permissions and limitations
180aabba3aSAndre Fischer#  under the License.
190aabba3aSAndre Fischer#
200aabba3aSAndre Fischer#**************************************************************
210aabba3aSAndre Fischer
220aabba3aSAndre Fischer
230aabba3aSAndre Fischer
240aabba3aSAndre FischerPRJ=.
250aabba3aSAndre Fischer
260aabba3aSAndre FischerPRJNAME=hunspell
270aabba3aSAndre FischerTARGET=hunspell
280aabba3aSAndre Fischer
290aabba3aSAndre Fischer# --- Settings -----------------------------------------------------
300aabba3aSAndre Fischer
310aabba3aSAndre Fischer.INCLUDE :	settings.mk
320aabba3aSAndre Fischer
330aabba3aSAndre Fischer# --- Files --------------------------------------------------------
340aabba3aSAndre Fischer
350aabba3aSAndre Fischer.IF "$(ENABLE_HUNSPELL)" != "YES"
360aabba3aSAndre Fischer
370aabba3aSAndre Fischerall:
380aabba3aSAndre Fischer	@echo "hunspell is disabled"
390aabba3aSAndre Fischer
400aabba3aSAndre Fischer.ELSE
410aabba3aSAndre Fischer
42*a5af9bdaSPedro GiffuniTARFILE_NAME=hunspell-1.3.3
43*a5af9bdaSPedro GiffuniTARFILE_MD5=4967da60b23413604c9e563beacc63b4
440aabba3aSAndre Fischer
450aabba3aSAndre FischerPATCH_FILES=					    \
46871bf55bSHerbert Dürr    hunspell-cxx11-literal.patch    \
470aabba3aSAndre Fischer    hunspell-solaris.patch		    \
485f295263SArmin Le Grand    hunspell-bash.patch             \
49*a5af9bdaSPedro Giffuni    hunspell-1.3.3-overflow.patch
500aabba3aSAndre Fischer
510aabba3aSAndre Fischer.IF "$(GUI)"=="UNX"
520aabba3aSAndre Fischer
530aabba3aSAndre Fischer#relative to CONFIGURE_DIR
540aabba3aSAndre FischerCONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
550aabba3aSAndre FischerCONFIGURE_FLAGS= --disable-shared --with-pic
560aabba3aSAndre Fischer.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"
580aabba3aSAndre Fischer.ENDIF                  # "$(COMNAME)"=="sunpro5"
590aabba3aSAndre Fischer
600aabba3aSAndre Fischer.IF "$(SYSBASE)"!=""
610aabba3aSAndre Fischer.IF "$(EXTRA_CFLAGS)"!=""
620aabba3aSAndre FischerCONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
630aabba3aSAndre Fischer.ENDIF # "$(EXTRA_CFLAGS)"!=""
640aabba3aSAndre Fischer.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
650aabba3aSAndre FischerCONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
660aabba3aSAndre Fischer.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!=""
670aabba3aSAndre FischerCONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)"
680aabba3aSAndre Fischer.ENDIF
690aabba3aSAndre Fischer
700aabba3aSAndre FischerBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
710aabba3aSAndre Fischer
720aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
730aabba3aSAndre Fischer
740aabba3aSAndre Fischer.ENDIF # "$(GUI)"=="UNX"
750aabba3aSAndre Fischer
760aabba3aSAndre Fischer
770aabba3aSAndre Fischer.IF "$(GUI)"=="WNT"
780aabba3aSAndre Fischer.IF "$(COM)"=="GCC"
790aabba3aSAndre Fischer
800aabba3aSAndre FischerCONFIGURE_ACTION=configure
810aabba3aSAndre FischerCONFIGURE_FLAGS= --disable-shared --with-pic
820aabba3aSAndre Fischer# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
830aabba3aSAndre FischerBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
840aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
850aabba3aSAndre Fischer.ELSE # GCC
860aabba3aSAndre FischerBUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake
870aabba3aSAndre Fischer.ENDIF # GCC
880aabba3aSAndre Fischer.ENDIF # "$(GUI)"=="WNT"
890aabba3aSAndre Fischer
900aabba3aSAndre Fischer.IF "$(GUI)"=="OS2"
915b11f0d3SYuri DarioBUILD_ACTION=cd src/hunspell && touch config.h && dmake
920aabba3aSAndre Fischer.ENDIF # "$(GUI)"=="OS2"
930aabba3aSAndre Fischer
940aabba3aSAndre FischerOUT2INC=									\
950aabba3aSAndre Fischer	$(BUILD_DIR)$/src$/hunspell$/*.hxx		\
960aabba3aSAndre Fischer	$(BUILD_DIR)$/src$/hunspell$/hunvisapi.h
970aabba3aSAndre Fischer
980aabba3aSAndre Fischer# --- Targets ------------------------------------------------------
990aabba3aSAndre Fischer
1000aabba3aSAndre Fischer.INCLUDE : set_ext.mk
1010aabba3aSAndre Fischer.INCLUDE : target.mk
1020aabba3aSAndre Fischer.INCLUDE : tg_ext.mk
1030aabba3aSAndre Fischer.ENDIF
104