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
13 # Copyright (c) 2023 Niklas Poslovski
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= hunspell-pt_br
19 COMPONENT_VERSION
= 3.2.15
20 COMPONENT_PROJECT_URL
= https
://pt-br.libreoffice.org
/projetos
/vero
21 COMPONENT_SUMMARY
= Myspell and Hunspell spell dictionary files for Portugese Brazilian
22 COMPONENT_LICENSE
= MPL1.1
23 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
24 COMPONENT_FMRI
= library
/myspell
/dictionary
/pt-br
25 COMPONENT_CLASSIFICATION
= System
/Localizations
27 COMPONENT_SRC
= VeroptBR3215AOC
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).oxt
29 COMPONENT_ARCHIVE_HASH
= \
30 sha256
:7571a3d8aaa0d5699f8b572d2fc613189876fa4fa87dcbda9a99bd63500210ee
31 COMPONENT_ARCHIVE_URL
= https
://pt-br.libreoffice.org
/assets
/Uploads
/PT-BR-Documents
/VERO
/$(COMPONENT_ARCHIVE
)
32 UNPACK_ARGS
+=-r
$(COMPONENT_SRC
)
34 include $(WS_TOP
)/make-rules
/prep.mk
35 include $(WS_TOP
)/make-rules
/ips.mk
37 DESTDIR
=/usr
/share
/spell
/hunspell
38 LINKDIR
=/usr
/share
/spell
/myspell
39 FFDIR
=/usr
/lib
/firefox
/dictionaries
40 TBDIR
=/usr
/lib
/thunderbird
/dictionaries
42 $(SOURCE_DIR
)/.installed
: $(SOURCE_DIR
)/.prep
43 [ -d
$(PROTO_DIR
)$(DESTDIR
) ] || mkdir
-p
$(PROTO_DIR
)$(DESTDIR
)
44 [ -d
$(PROTO_DIR
)$(LINKDIR
) ] || mkdir
-p
$(PROTO_DIR
)$(LINKDIR
)
45 [ -d
$(PROTO_DIR
)$(FFDIR
) ] || mkdir
-p
$(PROTO_DIR
)$(FFDIR
)
46 [ -d
$(PROTO_DIR
)$(TBDIR
) ] || mkdir
-p
$(PROTO_DIR
)$(TBDIR
)
47 cp
$(COMPONENT_SRC
)/pt_BR.dic
$(PROTO_DIR
)$(DESTDIR
)
48 cp
$(COMPONENT_SRC
)/pt_BR.aff
$(PROTO_DIR
)$(DESTDIR
)
49 for file in
`cd $(PROTO_DIR)/$(DESTDIR)/; ls`; do\
50 ln
-fs ..
/..
/..
/..
$(DESTDIR
)/$$file $(PROTO_DIR
)$(LINKDIR
)/$$file; \
51 ln
-fs ..
/..
/..
/..
$(DESTDIR
)/$$file $(PROTO_DIR
)$(FFDIR
)/$$file; \
52 ln
-fs ..
/..
/..
/..
$(DESTDIR
)/$$file $(PROTO_DIR
)$(TBDIR
)/$$file; \
56 build
: $(SOURCE_DIR
)/.prep
58 install: $(SOURCE_DIR
)/.installed
61 $(RM
) -r
$(BUILD_DIR
) $(PROTO_DIR
)
63 # Auto-generated dependencies