svn commit: r563891 - head/graphics/libgphoto2

Piotr Kubaj pkubaj at FreeBSD.org
Wed Feb 3 14:50:01 UTC 2021


Author: pkubaj
Date: Wed Feb  3 14:50:00 2021
New Revision: 563891
URL: https://svnweb.freebsd.org/changeset/ports/563891

Log:
  graphics/libgphoto2: fix build on GCC architectures
  
  Use C11 compiler:
  checking for libltdl flags... set explicitly: -I/usr/local/include -L/usr/local/lib -lltdl
  
  Switch to C99:
  docupen/calibration.c:31:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     31 |  for (unsigned int i = 0; i < sizeof(struct lut); i++) {
        |  ^~~

Modified:
  head/graphics/libgphoto2/Makefile

Modified: head/graphics/libgphoto2/Makefile
==============================================================================
--- head/graphics/libgphoto2/Makefile	Wed Feb  3 14:34:50 2021	(r563890)
+++ head/graphics/libgphoto2/Makefile	Wed Feb  3 14:50:00 2021	(r563891)
@@ -15,8 +15,9 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libltdl.so:devel/libltdl \
 		libcurl.so:ftp/curl
 
-USES=		gmake gnome iconv libtool localbase pathfix pkgconfig tar:bzip2
-USE_CSTD=	gnu89
+USES=		compiler:c11 gmake gnome iconv libtool localbase pathfix \
+		pkgconfig tar:bzip2
+USE_CSTD=	gnu99
 USE_GNOME=	libxml2
 
 GNU_CONFIGURE=	yes


More information about the svn-ports-all mailing list