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