git: 5772ad1157dd - main - graphics/libgphoto2: Fix curl detection

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 21 Nov 2024 13:49:08 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5772ad1157dd288e3eb151d44bdd4d80381c3fae

commit 5772ad1157dd288e3eb151d44bdd4d80381c3fae
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-11-21 13:34:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-11-21 13:39:54 +0000

    graphics/libgphoto2: Fix curl detection
    
    Before:
    checking for libcurl to use... autodetect
    checking for LIBCURL... no
    checking libcurl config program... none
    ...
    ===> Parsing plist
    ===> Checking for items in STAGEDIR missing from pkg-plist
    ===> Checking for items in pkg-plist which are not in STAGEDIR
    Error: Missing: lib/libgphoto2/%%VERSION%%/lumix.so
    ===> Error: Plist issues found.
    *** Error code 1
    
    After:
    checking for curl/curl.h... yes
    checking for function curl_easy_init in libcurl... yes
    checking libcurl library flags... "-L/usr/local/lib -lcurl"
    checking libcurl cpp flags... "-I/usr/local/include"
    
    Approved by:    portmgr (blanket)
---
 graphics/libgphoto2/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile
index 529ea779fd27..cf721209f02a 100644
--- a/graphics/libgphoto2/Makefile
+++ b/graphics/libgphoto2/Makefile
@@ -30,7 +30,7 @@ OPTIONS_SUB=	yes
 
 CURL_DESC=	Lumix WiFi support via cURL
 CURL_LIB_DEPENDS=	libcurl.so:ftp/curl
-CURL_CONFIGURE_OFF=	--with-libcurl=no
+CURL_CONFIGURE_WITH=	libcurl=${LOCALBASE}
 
 GD_DESC=	libGD conversion support
 GD_LIB_DEPENDS=		libgd.so:graphics/gd