Hi.
Можно попробовать описать опции сборки в /etc/make.conf создав отдельную секцию
для конкретного пакета:
.if ${.CURDIR} == ${PORTSDIR}/portsforsome/portname
WITH_YOUR_OPTIONS=<something>
.endif
Как живой пример:
.if ${.CURDIR} == ${PORTSDIR}/databases/mysql55-client
WITH_CHARSET=cp1251
WITH_COLLATION=cp1251_bin
BUILD_OPTIMIZED=yes
.endif
__
With best regards,
Andrey Marshalenko.
System & Network Administrator
AM1000-UANIC
mailto: [email protected]
tel (mob) +380676574197
Skype: marshalenko
JabberID: [email protected]
> 5 авг. 2017 г., в 21:50, Valentin Nechayev <[email protected]> написал(а):
>
> Sun, Aug 06, 2017 at 00:30:14, eugen wrote about "Re: [freebsd] need py3
> packages...":
>
>> $ fgrep -A 6 user: /usr/ports/Mk/Uses/python.mk
>> # Variables, which can be set by a user:
>> #
>> # PYTHON_VERSION - The chosen Python interpreter including the
>> version,
>> # e.g. python2.7, python3.3, etc. This allows the
>> user
>> # to override the currently chosen default version
>> and
>> # to install the port for a specific Python version.
>> # It must not be set by a port.
>>
>> То есть, пишешь.if ${.CURDIR} == ${PORTSDIR}/databases/mysql55-client
>> .endif в /etc/make.conf и получаешь py35-scipy-0.19.0_2
>
> Ага, похоже, работает.
>
> Писать в make.conf это не совсем уместно (например, если мне нужны
> впараллель py27-scipy и py35-scipy?), тут придётся дорабатывать как-то
> ещё.
> Но на вычитанное глазами проставление вручную работает, спасибо.
>
> Грепать по user как-то не было привычки - тоже надо записать в методы
> поиска...
>
>
> -netch-
> _______________________________________________
> freebsd mailing list
> [email protected]
> http://mailman.uafug.org.ua/mailman/listinfo/freebsd
_______________________________________________
freebsd mailing list
[email protected]
http://mailman.uafug.org.ua/mailman/listinfo/freebsd