Option in port depending on another port, how to handle ?

Anonymous swell.k at gmail.com
Sun Sep 12 13:48:27 UTC 2010


Eric Masson <emss at free.fr> writes:

> Anonymous <swell.k at gmail.com> writes:
>
> Hello again,
>
>> NGINX_UWSGI_MODULE_VERSION!=     ${MAKE} -V PORTVERSION -C ${PORTSDIR}/www/uwsgi
>
> Subsidiary question, as uwsgi nginx module needs uwsgi tarball, nginx
> distinfo must contain related checksums & size.
>
> Is there any way to avoid duplicating distinfo entries in both ports ?

Why not extract it as a dependency then?

  .if defined(WITH_HTTP_UWSGI_MODULE)
  CONFIGURE_ARGS+= --add-module=${UWSGI_WRKSRC}/nginx
  BUILD_DEPENDS+=  ${NONEXISTENT}:${PORTSDIR}/www/uwsgi:patch
  UWSGI_WRKSRC!=   ${MAKE} -V WRKSRC -C ${PORTSDIR}/www/uwsgi
  .endif


More information about the freebsd-ports mailing list