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 "$(DISABLE_HYPHEN)" == "" 40 41TARFILE_NAME=hyphen-2.7.1 42TARFILE_MD5=48a9f787f43a09c0a9b7b00cd1fddbbf 43 44ADDITIONAL_FILES += makefile.mk 45 46PATCH_FILES= \ 47 hyphen-2.7.1.patch \ 48 hyphen-2.7.1-read-charset.patch 49 50.IF "$(GUI)"=="UNX" 51CONFIGURE_DIR=$(BUILD_DIR) 52 53#relative to CONFIGURE_DIR 54# still needed also in system-hyphen case as it creates the makefile 55CONFIGURE_ACTION=configure 56CONFIGURE_FLAGS= --disable-shared --with-pic 57 58.IF "$(COM)"=="C52" && "$(CPU)"=="U" 59LCL_CONFIGURE_CFLAGS+=-m64 60.ENDIF 61 62.IF "$(SYSBASE)"!="" 63.IF "$(EXTRA_CFLAGS)"!="" 64LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS) 65CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)" 66.ENDIF # "$(EXTRA_CFLAGS)"!="" 67.ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!="" 68CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" 69.ENDIF 70 71.IF "$(LCL_CONFIGURE_CFLAGS)"!="" 72CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)' 73.ENDIF 74 75.IF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" == "YES" 76BUILD_ACTION=make hyph_en_US.dic 77.ELIF "$(SYSTEM_HYPH)" == "YES" && "$(WITH_MYSPELL_DICTS)" != "YES" 78@all: 79 echo "Nothing to do here." 80.ELSE 81BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) 82OUT2INC += hyphen.h 83.ENDIF 84 85.ENDIF # "$(GUI)"=="UNX" 86 87 88.IF "$(GUI)"=="WNT" 89.IF "$(COM)"=="GCC" 90CONFIGURE_ACTION=configure 91CONFIGURE_FLAGS= --disable-shared --with-pic 92 93BUILD_ACTION=make 94 95.ELSE 96BUILD_ACTION=dmake 97.ENDIF # "$(COM)"=="GCC" 98OUT2INC += hyphen.h 99.ENDIF # "$(GUI)"=="WNT" 100 101.IF "$(GUI)"=="OS2" 102BUILD_ACTION=dmake 103OUT2INC += hyphen.h 104.ENDIF # "$(GUI)"=="OS2" 105 106# --- Targets ------------------------------------------------------ 107 108.INCLUDE : set_ext.mk 109.INCLUDE : target.mk 110.INCLUDE : tg_ext.mk 111 112.ELSE 113all: 114 @echo "hyphen disabled" 115 116.ENDIF 117