summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorEike Rathke <erack@apache.org>2011-08-28 14:46:31 +0000
committerEike Rathke <erack@apache.org>2011-08-28 14:46:31 +0000
commitcc756d24d3f34c4ac402ee88ed3e25e3934ec8bc (patch)
treeb5ca7212727b21e999c0a54352b69487da3d2702 /lingucomponent
parent1a5baf5ce78676385d35209eb311ed2a35cdf063 (diff)
make copylefts an option
Based on original work by Mathias Bauer <mbauer@apache.org>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/altlinuxhyph/hyphen/makefile.mk8
-rw-r--r--lingucomponent/source/lingutil/makefile.mk6
-rw-r--r--lingucomponent/source/spellcheck/spell/makefile.mk7
-rw-r--r--lingucomponent/source/thesaurus/libnth/makefile.mk7
4 files changed, 28 insertions, 0 deletions
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/makefile.mk b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/makefile.mk
index 6f767d8bfa9e..354999fe6639 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/makefile.mk
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/makefile.mk
@@ -46,6 +46,8 @@ HNJLIB=hyphen.lib
# --- Files --------------------------------------------------------
+.IF "$(DISABLE_HYPHEN)" == ""
+
.IF "$(SYSTEM_HUNSPELL)" != "YES"
HUNSPELL_CFLAGS += -I$(SOLARINCDIR)$/hunspell
.ENDIF
@@ -99,3 +101,9 @@ $(MISC)/hyphen.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt hyphen.component
+
+.ELSE
+all:
+ @echo "hyphen disabled"
+
+.ENDIF
diff --git a/lingucomponent/source/lingutil/makefile.mk b/lingucomponent/source/lingutil/makefile.mk
index 7d19eac9ef22..813b073d4505 100644
--- a/lingucomponent/source/lingutil/makefile.mk
+++ b/lingucomponent/source/lingutil/makefile.mk
@@ -37,6 +37,8 @@ ENABLE_EXCEPTIONS=TRUE
.INCLUDE : settings.mk
+.IF "$(DISABLE_HUNSPELL)" == ""
+
.IF "$(SYSTEM_HUNSPELL)" != "YES"
HUNSPELL_CFLAGS += -I$(SOLARINCDIR)$/hunspell
.ENDIF
@@ -61,3 +63,7 @@ LIB1OBJFILES= $(SLOFILES)
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
+.ELSE
+all:
+ @echo "hunspell disabled"
+.ENDIF
diff --git a/lingucomponent/source/spellcheck/spell/makefile.mk b/lingucomponent/source/spellcheck/spell/makefile.mk
index 56dd79939b40..06f8927389f1 100644
--- a/lingucomponent/source/spellcheck/spell/makefile.mk
+++ b/lingucomponent/source/spellcheck/spell/makefile.mk
@@ -42,6 +42,8 @@ HUNSPELL_CFLAGS += -I$(SOLARINCDIR)$/hunspell
# --- Files --------------------------------------------------------
+.IF "$(DISABLE_HUNSPELL)" == ""
+
CXXFLAGS += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS)
CFLAGSCXX += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS)
CFLAGSCC += -I$(PRJ)$/source$/lingutil $(HUNSPELL_CFLAGS)
@@ -93,3 +95,8 @@ $(MISC)/spell.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt spell.component
+
+.ELSE
+all:
+ @echo "hunspell disabled"
+.ENDIF
diff --git a/lingucomponent/source/thesaurus/libnth/makefile.mk b/lingucomponent/source/thesaurus/libnth/makefile.mk
index 91d39d2d3eeb..7ba17a1f9ef4 100644
--- a/lingucomponent/source/thesaurus/libnth/makefile.mk
+++ b/lingucomponent/source/thesaurus/libnth/makefile.mk
@@ -51,6 +51,8 @@ MYTHESLIB=libmythes.lib
# --- Files --------------------------------------------------------
+.IF "$(DISABLE_HUNSPELL)" == ""
+
.IF "$(SYSTEM_HUNSPELL)" != "YES"
HUNSPELL_CFLAGS += -I$(SOLARINCDIR)$/hunspell
.ENDIF
@@ -113,3 +115,8 @@ $(MISC)/lnth.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt lnth.component
+
+.ELSE
+all:
+ @echo "hunspell disabled"
+.ENDIF