Index: head/graphics/multican/Makefile =================================================================== --- head/graphics/multican/Makefile (revision 550865) +++ head/graphics/multican/Makefile (revision 550866) @@ -1,42 +1,42 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= multican DISTVERSION= 0.0.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Remote control utility for Canon DSLR cameras LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING CFLAGS+= -fPIC # required at least on amd64 USE_LDCONFIG= yes PLIST_FILES= bin/multican lib/libmultican.so.0 lib/libmultican.so \ include/canonio.h include/usbio.h PORTDOCS= ChangeLog README OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/canonio.c \ ${WRKSRC}/usbio.c ${WRKSRC}/multican.c @${REINPLACE_CMD} -e 's|`getconf LFS_CFLAGS`|-w|' \ ${WRKSRC}/Makefile post-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_LIB} ${WRKSRC}/libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/ ${LN} -sf libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/libmultican.so ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/ post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Index: head/graphics/multican/files/patch-usbio.c =================================================================== --- head/graphics/multican/files/patch-usbio.c (nonexistent) +++ head/graphics/multican/files/patch-usbio.c (revision 550866) @@ -0,0 +1,10 @@ +--- usbio.c.orig 2020-10-01 18:59:21 UTC ++++ usbio.c +@@ -29,6 +29,7 @@ + + unsigned usb_sequence = 0; + int tolerate_error = 0, retries = 5000; ++unsigned char usb_packet[0x1400]; + + void usb_hexdump( char *bytes, int size ) { + int n, i; Property changes on: head/graphics/multican/files/patch-usbio.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/multican/files/patch-usbio.h =================================================================== --- head/graphics/multican/files/patch-usbio.h (revision 550865) +++ head/graphics/multican/files/patch-usbio.h (revision 550866) @@ -1,11 +1,20 @@ --- usbio.h.orig 2007-02-20 14:01:15 UTC +++ usbio.h @@ -182,6 +182,8 @@ static struct { {0x04a9, 0x3113, 6, "EOS 30D"}, {0x04a9, 0x3114, 6, "EOS 30D (ptp)"}, {0x04a9, 0x311a, 4, "PowerShot S3 IS"}, + {0x04a9, 0x3145, 6, "EOS 450D"}, + {0x04a9, 0x3199, 6, "EOS 5D Mark II"}, {0, 0, 0, NULL} }; +@@ -203,7 +205,7 @@ static struct { + {0x00000000, NULL} + }; + +-unsigned char usb_packet[0x1400]; ++extern unsigned char usb_packet[0x1400]; + extern unsigned usb_sequence; + extern int tolerate_error, retries; +