From owner-freebsd-ports@freebsd.org Sun Apr 24 10:05:12 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 A7A1EB194C9 for ; Sun, 24 Apr 2016 10:05:12 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from mail.abinet.ru (mail.abinet.ru [136.243.72.227]) by mx1.freebsd.org (Postfix) with ESMTP id 6EC4617D0 for ; Sun, 24 Apr 2016 10:05:12 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from [10.0.0.1] (unknown [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.abinet.ru (Postfix) with ESMTPSA id F1F791920B for ; Sun, 24 Apr 2016 10:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=abinet.ru; s=dkim; t=1461492311; bh=L/s8Fsf2M1FhRm3QvFcSInEdwbjUcX8zKAN0n4QxvgA=; h=Date:From:To:Subject:References:In-Reply-To; b=cJyz1bB03PGVpWN+0QQJ03fCfHKXkLoMFMh8Z+S9ZXvUr97ukC6DECMTi7V8ata50 VJgo2lyzAJvP4vO3Uyg5OwwpXBqBk04HukLOrKU408DzSlGRyK4adO4CVKPChe7vu+ VpuIK5j2e2333BuGmGa2jRGkLKOLMEFG59JNEzy4= Message-ID: <571C9A56.4060505@abinet.ru> Date: Sun, 24 Apr 2016 13:05:10 +0300 From: abi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:) Gecko/20160112 FossaMail/25.2.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Making a port - debugging cmake check_include_file References: <571BE034.9070200@abinet.ru> <20160423215530.GP83618@over-yonder.net> <571BF713.4040607@abinet.ru> <20160424071351.GQ83618@over-yonder.net> <571C876F.3040000@abinet.ru> <20160424090004.GT83618@over-yonder.net> <571C8D61.6010200@abinet.ru> <20160424094344.GV83618@over-yonder.net> <571C968A.9060505@abinet.ru> <20160424095902.GW83618@over-yonder.net> In-Reply-To: <20160424095902.GW83618@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2016 10:05:12 -0000 You mean that the checks are passed, but actual support of V4L - is not? V4L is the optional feature, so lack of it is not a critical error. From what I see in cmake files is that header files are detected and several knobs are set. Should I check that these headers somehow used ? I don't have local or analog video cameras :( Or, assuming that if header files are detected and included, failure to include them in compilation phase will lead to fatal error, I shouldn't bother? On 24.04.2016 12:59, Matthew D. Fuller wrote: > On Sun, Apr 24, 2016 at 12:48:58PM +0300 I heard the voice of > abi, and lo! it spake thus: >> I passed -DCMAKE_REQUIRED_INCLUDES:STRING="${LOCALBASE}/include" from >> port Makefile. >> Looks like the best solution - no need to poke upstream or make patch. > Interesting. It's not clear from the docs that > CMAKE_REQUIRED_INCLUDES affects the actual build of the program (or > anything except the check_include_file() from a look around, > actually). Well, if it works... > >