8866cc102d
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)
57 lines
1.3 KiB
Text
57 lines
1.3 KiB
Text
# This file lists the options to not bloat Makefile
|
|
# $FreeBSD$
|
|
|
|
OPTIONS_MULTI= DICT
|
|
OPTIONS_MULTI_DICT= AF_ZA BG CA HR CS DA NL EN_AU EN_CA \
|
|
EN_NZ EN_GB FR_FR FO GL DE_AT DE_DE DE_CH \
|
|
EL HE_IL HU IA GA IT LA LV_LV LT MS MI NB \
|
|
NN PL PT PT_BR RO RU ES_MX ES_ES SK SL SV UK \
|
|
CY_GB ZU_ZA
|
|
|
|
ALL_DESC= all dictionaries
|
|
AF_ZA_DESC= Afrikaans
|
|
BG_DESC= Bulgarian
|
|
CA_DESC= Catalan
|
|
HR_DESC= Croatian
|
|
CS_DESC= Czech
|
|
DA_DESC= Danish
|
|
NL_DESC= Dutch
|
|
EN_AU_DESC= English (Australia)
|
|
EN_CA_DESC= English (Canada)
|
|
EN_NZ_DESC= English (New Zealand)
|
|
EN_GB_DESC= English (United Kingdom)
|
|
FR_FR_DESC= French (France)
|
|
FO_DESC= Faroese
|
|
GL_DESC= Galician (Spain)
|
|
DE_AT_DESC= German (Austria)
|
|
DE_DE_DESC= German (Germany)
|
|
DE_CH_DESC= German (Switzerland)
|
|
EL_DESC= Greek
|
|
HE_IL_DESC= Hebrew
|
|
HU_DESC= Hungarian
|
|
IA_DESC= Interlingua
|
|
GA_DESC= Irish
|
|
IT_DESC= Italian
|
|
LA_DESC= Latin
|
|
LV_LV_DESC= Latvian
|
|
LT_DESC= Lithuanian
|
|
MS_DESC= Malay
|
|
MI_DESC= Maori
|
|
NB_DESC= Norwegian (Bokmal)
|
|
NN_DESC= Norwegian (Nynorsk)
|
|
PL_DESC= Polish
|
|
PT_DESC= Portuguese (Portugal)
|
|
PT_BR_DESC= Portuguese (Brasil)
|
|
RO_DESC= Romanian
|
|
RU_DESC= Russian
|
|
ES_MX_DESC= Spanish (Mexico)
|
|
ES_ES_DESC= Spanish (Spain)
|
|
SK_DESC= Slovak
|
|
SL_DESC= Slovenian
|
|
SV_DESC= Swedish
|
|
UK_DESC= Ukrainian
|
|
CY_GB_DESC= Welsh
|
|
ZU_ZA_DESC= Zulu (South Africa)
|
|
|
|
OPTIONS_DEFAULT= ${OPTIONS_MULTI_DICT}
|
|
OPTIONS_SUB= yes
|