ports/180825: libgphoto2 fix for FreeBSD-CURRENT
Rui Paulo
rpaulo at FreeBSD.org
Thu Jul 25 04:10:01 UTC 2013
>Number: 180825
>Category: ports
>Synopsis: libgphoto2 fix for FreeBSD-CURRENT
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 25 04:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Rui Paulo
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
After r253637, libgphoto2 no longer builds in FreeBSD-CURRENT. The following
patch fixes it.
>How-To-Repeat:
>Fix:
--- Makefile.orig 2013-07-24 20:56:52.069356322 -0700
+++ Makefile 2013-07-24 21:03:53.904218430 -0700
@@ -22,9 +22,7 @@
LIBTOOLFILES= configure libgphoto2_port/configure
USE_LDCONFIG= yes
CONFIGURE_ENV= LTDLINCL="-I${LOCALBASE}/include" \
- LIBLTDL="-L${LOCALBASE}/lib -lltdl" \
- LIBUSB_CFLAGS="-I/usr/include" \
- LIBUSB_LIBS="-lusb"
+ LIBLTDL="-L${LOCALBASE}/lib -lltdl"
PLIST_SUB= VERSION="${PORTVERSION}" VERSION_PORT=0.8.0
@@ -32,6 +30,14 @@
.include <bsd.port.options.mk>
+.if ${OSVERSION} < 1000040
+CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include" \
+ LIBUSB_LIBS="-lusb"
+.else
+# Safe because it's never used
+CFLAGS+= -DENODATA=0
+.endif
+
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list