thunderbird: update to 128.3.0
[oi-userland.git] / components / text / hunspell-de / Makefile
blobd7b9fd98376bb2103e47e8b15d10c00955d844c7
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2016 Alexander Pyhalov
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= hunspell-de
18 COMPONENT_VERSION= 2016.12.7
19 HUMAN_VERSION= 20161207
20 COMPONENT_REVISION= 1
21 COMPONENT_PROJECT_URL= https://www.j3e.de/ispell/igerman98/index_en.html
22 COMPONENT_SUMMARY= Myspell and Hunspell spell dictionary files for German
23 COMPONENT_LICENSE= GPLv2
24 COMPONENT_LICENSE_FILE= hunspell/COPYING_GPLv2
25 COMPONENT_SRC= igerman98-$(HUMAN_VERSION)
26 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
27 COMPONENT_ARCHIVE_HASH= sha256:17296f03c5fea62d76ecc530ebe80f6adc430278f58d472dc1842d71612960a8
28 COMPONENT_ARCHIVE_URL= https://www.j3e.de/ispell/igerman98/dict/$(COMPONENT_ARCHIVE)
29 COMPONENT_FMRI= library/myspell/dictionary/de
30 COMPONENT_CLASSIFICATION= System/Localizations
32 include $(WS_MAKE_RULES)/prep.mk
33 include $(WS_MAKE_RULES)/justmake.mk
34 include $(WS_MAKE_RULES)/ips.mk
36 COMPONENT_BUILD_TARGETS = hunspell-all
38 DESTDIR=/usr/share/spell/hunspell
39 LINKDIR=/usr/share/spell/myspell
40 FFDIR=/usr/lib/firefox/dictionaries
41 TBDIR=/usr/lib/thunderbird/dictionaries
43 CHALIASES= de_LI
44 DEALIASES= de_BE de_LU
46 $(SOURCE_DIR)/.installed: $(BUILD_32)
47 [ -d $(PROTO_DIR)$(DESTDIR) ] || mkdir -p $(PROTO_DIR)$(DESTDIR)
48 [ -d $(PROTO_DIR)$(LINKDIR) ] || mkdir -p $(PROTO_DIR)$(LINKDIR)
49 [ -d $(PROTO_DIR)$(FFDIR) ] || mkdir -p $(PROTO_DIR)$(FFDIR)
50 [ -d $(PROTO_DIR)$(TBDIR) ] || mkdir -p $(PROTO_DIR)$(TBDIR)
51 for file in $(BUILD_DIR_32)/hunspell/de_{AT,CH,DE}.{aff,dic}; do \
52 cp $$file $(PROTO_DIR)$(DESTDIR)/; \
53 done
54 for alias in $(CHALIASES); do\
55 ln -fs de_CH.aff $(PROTO_DIR)$(DESTDIR)/$$alias.aff; \
56 ln -fs de_CH.dic $(PROTO_DIR)$(DESTDIR)/$$alias.dic; \
57 done
58 for alias in $(DEALIASES); do\
59 ln -fs de_DE.aff $(PROTO_DIR)$(DESTDIR)/$$alias.aff; \
60 ln -fs de_DE.dic $(PROTO_DIR)$(DESTDIR)/$$alias.dic;\
61 done
62 for file in `cd $(PROTO_DIR)/$(DESTDIR)/; ls`; do\
63 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(LINKDIR)/$$file; \
64 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(FFDIR)/$$file; \
65 ln -fs ../../../..$(DESTDIR)/$$file $(PROTO_DIR)$(TBDIR)/$$file; \
66 done
67 $(TOUCH) $@
69 build: $(BUILD_32)
71 install: $(SOURCE_DIR)/.installed
73 # Build dependencies
74 REQUIRED_PACKAGES+= text/aspell