From owner-freebsd-ports@freebsd.org Wed Apr 1 04:43:02 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7185627A371 for ; Wed, 1 Apr 2020 04:43:02 +0000 (UTC) (envelope-from meta@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48sYTw4y23z4FpH; Wed, 1 Apr 2020 04:43:00 +0000 (UTC) (envelope-from meta@FreeBSD.org) Received: from icepick.vmeta.jp (unknown [IPv6:2405:6586:2280:1200:d9:748:8889:4a4d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: meta/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 246701A52A; Wed, 1 Apr 2020 04:24:50 +0000 (UTC) (envelope-from meta@FreeBSD.org) Date: Wed, 1 Apr 2020 13:24:46 +0900 From: Koichiro Iwao To: Gleb Popov Cc: FreeBSD ports list Subject: Re: How to use base OpenSSL with meson-based ports? Message-ID: <20200401042446.jscya2g4ykkbqfoe@icepick.vmeta.jp> X-Operating-System: FreeBSD 12.1-STABLE amd64 References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2020 04:43:02 -0000 In my ports, I patch configure.ac to find OpenSSL not relying on pkg-config. https://svnweb.freebsd.org/ports/head/net/xrdp/files/patch-configure.ac?revision=469777&view=markup#l8 See also this. http://empt1e.blogspot.com/2011/05/dealing-with-pkg-config-detection-of.html https://github.com/neutrinolabs/xrdp/pull/514 On Tue, Mar 31, 2020 at 11:24:58AM +0400, Gleb Popov wrote: > Hello. > > Meson build system uses pkg-config to locate dependencies. However, OpenSSL > in base does not provide a .pc file (unlike, say, zlib - see > /usr/libdata/pkgconfig/). I haven't found a way in meson to manually set up > a dependency in this case. > > I got a suggestion to write my own .pc file and hook it into the build of > my port, but this looks somewhat hackish for me. Why can't we provide a > proper .pc file in the base system? > > Thanks in advance. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" -- meta