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=hyphen 27TARGET=hyphen 28 29# --- Settings ----------------------------------------------------- 30 31.INCLUDE : settings.mk 32 33# --- Files -------------------------------------------------------- 34 35.IF "$(ENABLE_HYPHEN)" != "YES" 36 37all: 38 @echo "hyphen is disabled" 39 40.ELSE 41 42TARFILE_NAME=hyphen-2.8.8 43TARFILE_MD5=5ade6ae2a99bc1e9e57031ca88d36dad 44 45ADDITIONAL_FILES += makefile.mk 46 47PATCH_FILES= \ 48 hyphen-2.8.8-makefile-mk.patch 49 50# hyphen 2.8.8 builds cleanly from the upstream tarball; no in-tree patches 51# are needed (the old 2.7.1 patches that rewired the dictionary build and 52# tweaked the charset read are obsolete for this version). 53 54.IF "$(GUI)"=="UNX" 55CONFIGURE_DIR=$(BUILD_DIR) 56 57#relative to CONFIGURE_DIR 58# still needed also in system-hyphen case as it creates the makefile 59CONFIGURE_ACTION=configure 60CONFIGURE_FLAGS= --disable-shared --with-pic 61 62.IF "$(COM)"=="C52" && "$(CPU)"=="U" 63LCL_CONFIGURE_CFLAGS+=-m64 64.ENDIF 65 66.IF "$(SYSBASE)"!="" 67.IF "$(EXTRA_CFLAGS)"!="" 68LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS) 69CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)" 70.ENDIF # "$(EXTRA_CFLAGS)"!="" 71.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!="" 72CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" 73.ENDIF 74 75.IF "$(LCL_CONFIGURE_CFLAGS)"!="" 76CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)' 77.ENDIF 78 79.IF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES" 80BUILD_ACTION=make hyph_en_US.dic 81.ELIF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES" 82@all: 83 echo "Nothing to do here." 84.ELSE 85BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 86OUT2INC += hyphen.h 87.ENDIF 88 89.ENDIF # "$(GUI)"=="UNX" 90 91 92.IF "$(GUI)"=="WNT" 93.IF "$(COM)"=="GCC" 94CONFIGURE_ACTION=configure 95CONFIGURE_FLAGS= --disable-shared --with-pic 96 97BUILD_ACTION=make 98 99.ELSE 100BUILD_ACTION=dmake 101.ENDIF # "$(COM)"=="GCC" 102OUT2INC += hyphen.h 103.ENDIF # "$(GUI)"=="WNT" 104 105.IF "$(GUI)"=="OS2" 106BUILD_ACTION=dmake 107OUT2INC += hyphen.h 108.ENDIF # "$(GUI)"=="OS2" 109 110# --- Targets ------------------------------------------------------ 111 112.INCLUDE : set_ext.mk 113.INCLUDE : target.mk 114.INCLUDE : tg_ext.mk 115 116.ENDIF # "$(ENABLE_HYPHEN)" 117