1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28PRJ=. 29 30PRJNAME=hyphen 31TARGET=hyphen 32 33# --- Settings ----------------------------------------------------- 34 35.INCLUDE : settings.mk 36 37# --- Files -------------------------------------------------------- 38 39.IF "$(ENABLE_HYPHEN)" != "YES" 40 41all: 42 @echo "hyphen is disabled" 43 44.ELSE 45 46TARFILE_NAME=hyphen-2.7.1 47TARFILE_MD5=48a9f787f43a09c0a9b7b00cd1fddbbf 48 49ADDITIONAL_FILES += makefile.mk 50 51PATCH_FILES= \ 52 hyphen-2.7.1.patch \ 53 hyphen-2.7.1-read-charset.patch 54 55.IF "$(GUI)"=="UNX" 56CONFIGURE_DIR=$(BUILD_DIR) 57 58#relative to CONFIGURE_DIR 59# still needed also in system-hyphen case as it creates the makefile 60CONFIGURE_ACTION=configure 61CONFIGURE_FLAGS= --disable-shared --with-pic 62 63.IF "$(COM)"=="C52" && "$(CPU)"=="U" 64LCL_CONFIGURE_CFLAGS+=-m64 65.ENDIF 66 67.IF "$(SYSBASE)"!="" 68.IF "$(EXTRA_CFLAGS)"!="" 69LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS) 70CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)" 71.ENDIF # "$(EXTRA_CFLAGS)"!="" 72.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!="" 73CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" 74.ENDIF 75 76.IF "$(LCL_CONFIGURE_CFLAGS)"!="" 77CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)' 78.ENDIF 79 80.IF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES" 81BUILD_ACTION=make hyph_en_US.dic 82.ELIF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES" 83@all: 84 echo "Nothing to do here." 85.ELSE 86BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 87OUT2INC += hyphen.h 88.ENDIF 89 90.ENDIF # "$(GUI)"=="UNX" 91 92 93.IF "$(GUI)"=="WNT" 94.IF "$(COM)"=="GCC" 95CONFIGURE_ACTION=configure 96CONFIGURE_FLAGS= --disable-shared --with-pic 97 98BUILD_ACTION=make 99 100.ELSE 101BUILD_ACTION=dmake 102.ENDIF # "$(COM)"=="GCC" 103OUT2INC += hyphen.h 104.ENDIF # "$(GUI)"=="WNT" 105 106.IF "$(GUI)"=="OS2" 107BUILD_ACTION=dmake 108OUT2INC += hyphen.h 109.ENDIF # "$(GUI)"=="OS2" 110 111# --- Targets ------------------------------------------------------ 112 113.INCLUDE : set_ext.mk 114.INCLUDE : target.mk 115.INCLUDE : tg_ext.mk 116 117.ENDIF # "$(ENABLE_HYPHEN)" 118