1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/mail/thunderbird-dictionaries/Makefile.dict
John Marino 8866cc102d mail/thunderbird-dictionaries: Rework (options invalid)
It is not valid to define PORT_OPTIONS variable directly (this is done
through OPTIONS_DEFINE and related variables) and definitely they can't
be modified after inclusions of bsd.port.pre.mk or bsd.port.options.mk
fragments.

Since the port needed to be reworked anyway, I simplified it a lot.  I
removed a shell command (with 3 pipes!) completely.  I saw several ways
to create ${ALLDICTS} with basic makefile techniques, but in the end
it wasn't even necessary.

I eliminated the "ALL" option.  It didn't make sense.  If "ALL" was set,
it would override the individual language options (leading to possible
confusion) and the "ALL" option was set by default, and then it even
checked PACKAGE_BUILDING to override the value to ALL again.  I have to
assume that it wasn't originally set up that way but changed over time.
Now only the language options are there and they are all "ON" by default.
It's simpler to disable languages than before (no need to deselect "ALL"
option first).

The <pre> and <post> inclusions were removed, they aren't necessary.
The PLIST substitutions are made with standard OPTIONS_SUB technique.

The work is verified by checking SELECTED_OPTIONS and DESELECTED_OPTIONS
which now show the correct values and the dependencies registered to the
built package now match the port.

Approved by:	infrastructure blanket (fix options)
2016-08-05 00:28:22 +00:00

51 lines
1.2 KiB
Makefile

# This file lists the Dictionary files to not bloat Makefile
# $FreeBSD$
.include "${.CURDIR}/Makefile.options"
AF_ZA_FILE= spell-af-ZA.xpi
BG_FILE= spell-bg.xpi
CA_FILE= spell-ca.xpi
CS_FILE= spell-cs.xpi
CY_GB_FILE= spell-cy-GB.xpi
DA_FILE= spell-da.xpi
DE_AT_FILE= spell-de-AT.xpi
DE_CH_FILE= spell-de-CH.xpi
DE_DE_FILE= spell-de-DE.xpi
EL_FILE= spell-el.xpi
EN_AU_FILE= spell-en-AU.xpi
EN_CA_FILE= spell-en-CA.xpi
EN_GB_FILE= spell-en-GB.xpi
EN_NZ_FILE= spell-en-NZ.xpi
ES_ES_FILE= spell-es-ES.xpi
ES_MX_FILE= spell-es-MX.xpi
FO_FILE= spell-fo.xpi
FR_FR_FILE= spell-fr-FR.xpi
GA_FILE= spell-ga.xpi
GL_FILE= spell-gl.xpi
HE_IL_FILE= spell-he-IL.xpi
HR_FILE= spell-hr.xpi
HU_FILE= spell-hu.xpi
IA_FILE= spell-ia.xpi
IT_FILE= spell-it.xpi
LA_FILE= spell-la.xpi
LT_FILE= spell-lt.xpi
LV_LV_FILE= spell-lv-LV.xpi
MI_FILE= spell-mi.xpi
MS_FILE= spell-ms.xpi
NB_FILE= spell-nb.xpi
NL_FILE= spell-nl.xpi
NN_FILE= spell-nn.xpi
PL_FILE= spell-pl.xpi
PT_FILE= spell-pt.xpi
PT_BR_FILE= spell-pt-BR.xpi
RO_FILE= spell-ro.xpi
RU_FILE= spell-ru.xpi
SK_FILE= spell-sk.xpi
SL_FILE= spell-sl.xpi
SV_FILE= spell-sv.xpi
UK_FILE= spell-uk.xpi
ZU_ZA_FILE= spell-zu-ZA.xpi
ALLDICTS= ${OPTIONS_MULTI_DICT}