xref: /aoo42x/ext_libraries/hunspell/makefile.mk (revision 59e0bdb0)
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=					    \
465f295263SArmin Le Grand    hunspell-solaris.patch		    \
475f295263SArmin Le Grand    hunspell-bash.patch             \
485f295263SArmin Le Grand    hunspell-1.3.2-overflow.patch
499ef65f0eSAndre Fischer
50cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
51cdf0e10cSrcweir
52cdf0e10cSrcweir#relative to CONFIGURE_DIR
53cdf0e10cSrcweirCONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) configure
54cdf0e10cSrcweirCONFIGURE_FLAGS= --disable-shared --with-pic
55cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5"
56*59e0bdb0SPedro GiffuniCONFIGURE_FLAGS+= CFLAGS="-xc99=none" CXXFLAGS="-I$(SOLARVER)/$(INPATH)/inc/stl -library=no%Cstd" LDFLAGS="-L$(SOLARVER)/$(INPATH)/lib -lstlport_sunpro"
57cdf0e10cSrcweir.ENDIF                  # "$(COMNAME)"=="sunpro5"
58cdf0e10cSrcweir
59cdf0e10cSrcweir.IF "$(SYSBASE)"!=""
60cdf0e10cSrcweir.IF "$(EXTRA_CFLAGS)"!=""
61cdf0e10cSrcweirCONFIGURE_FLAGS+= CFLAGS="$(EXTRA_CFLAGS)" CXXFLAGS="$(EXTRA_CFLAGS)"
62cdf0e10cSrcweir.ENDIF # "$(EXTRA_CFLAGS)"!=""
63cdf0e10cSrcweir.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
64cdf0e10cSrcweirCONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
658794372bSPedro Giffuni.ELIF "$(OS)"=="FREEBSD" # "$(SYSBASE)"!=""
668794372bSPedro GiffuniCONFIGURE_FLAGS+=CPPFLAGS="-I$(LIBINTL_PREFIX)/include" --with-libintl-prefix="$(LIBINTL_PREFIX)"
67cdf0e10cSrcweir.ENDIF
68cdf0e10cSrcweir
69cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
70cdf0e10cSrcweir
710aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
72cdf0e10cSrcweir
73cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX"
74cdf0e10cSrcweir
75cdf0e10cSrcweir
76cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
77cdf0e10cSrcweir.IF "$(COM)"=="GCC"
78cdf0e10cSrcweirPATCH_FILES=\
79cdf0e10cSrcweir    hunspell-mingw.patch
80cdf0e10cSrcweir
81cdf0e10cSrcweirCONFIGURE_ACTION=configure
820aabba3aSAndre FischerCONFIGURE_FLAGS= --disable-shared --with-pic
830aabba3aSAndre Fischer# LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2
840aabba3aSAndre FischerBUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
850aabba3aSAndre FischerOUT2LIB=$(BUILD_DIR)$/src$/hunspell$/.libs$/libhunspell-1.3.a
860aabba3aSAndre Fischer.ELSE # GCC
870aabba3aSAndre FischerBUILD_ACTION= cd src/hunspell && cp ../win_api/config.h . && CDEFS_PRESET=-DBUILDING_LIBHUNSPELL dmake
880aabba3aSAndre Fischer.ENDIF # GCC
89cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT"
90cdf0e10cSrcweir
91cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
92cdf0e10cSrcweirBUILD_ACTION=cd src/hunspell && dmake
93cdf0e10cSrcweir.ENDIF # "$(GUI)"=="OS2"
94cdf0e10cSrcweir
950aabba3aSAndre FischerOUT2INC=									\
960aabba3aSAndre Fischer	$(BUILD_DIR)$/src$/hunspell$/*.hxx		\
970aabba3aSAndre Fischer	$(BUILD_DIR)$/src$/hunspell$/hunvisapi.h
98cdf0e10cSrcweir
99cdf0e10cSrcweir# --- Targets ------------------------------------------------------
100cdf0e10cSrcweir
101cdf0e10cSrcweir.INCLUDE : set_ext.mk
102cdf0e10cSrcweir.INCLUDE : target.mk
103cdf0e10cSrcweir.INCLUDE : tg_ext.mk
1040ea1a209SEike Rathke.ENDIF
105