From owner-freebsd-ports@freebsd.org Fri Jul 1 21:41:42 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B939B8FABE for ; Fri, 1 Jul 2016 21:41:42 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (unknown [IPv6:2602:304:b010:ef20::f2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gw.catspoiler.org", Issuer "gw.catspoiler.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E1B162089 for ; Fri, 1 Jul 2016 21:41:41 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.15.2/8.15.2) with ESMTP id u61LfYBN093987; Fri, 1 Jul 2016 14:41:38 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201607012141.u61LfYBN093987@gw.catspoiler.org> Date: Fri, 1 Jul 2016 14:41:34 -0700 (PDT) From: Don Lewis Subject: Re: what to do when base openssl isn't suitable To: 000.fbsd@quip.cz cc: freebsd-ports@FreeBSD.org In-Reply-To: <5776CB28.2000709@quip.cz> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 21:41:42 -0000 On 1 Jul, Miroslav Lachman wrote: > Don Lewis wrote on 07/01/2016 20:59: >> I've got a port that does not work with base openssl because it looks >> for libssl.pc. Other than that, I don't think it is picky about what >> flavor of ports ssl is installed. Because the default version of ssl >> still defaults to base, I don't see a way to get this port to build on >> the cluster, so there is no way to provide binary packages. That's a >> problem for end users because this port has bunch of huge build >> dependencies. Thoughts? > > There are already packages depending on ports OpenSSL because they need > /usr/local/libdata/pkgconfig/libssl.pc (installed by openssl-1.0.2_14) > so I think you can make port depending on ports openssl. > See nginx for example. > > .if defined(NGINX_OPENSSL) > USE_OPENSSL= yes USE_OPENSSL is now deprecated and has been replaced by USES=ssl > .if ${OSVERSION} < 1100000 > WITH_OPENSSL_PORT=yes WITH_OPENSSL_PORT is now deprecated. Even before that I don't think it was intended to be used in the port Makefile, only in /etc/make.conf. The suggested replacement is to put DEFAULT_VERSIONS+=ssl=openssl in /etc/make.conf. > .endif > .endif