diff --git a/graphics/s10sh/Makefile b/graphics/s10sh/Makefile index 334f30fdd19e..eb27e7525428 100644 --- a/graphics/s10sh/Makefile +++ b/graphics/s10sh/Makefile @@ -1,39 +1,34 @@ PORTNAME= s10sh PORTVERSION= 0.2.2 PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= http://www.reynoldsnet.org/s10sh/ \ http://www.edwinh.org/s10sh/ MAINTAINER= ports@FreeBSD.org COMMENT= USB/serial userspace driver for the Canon PowerShot digital cameras WWW= http://www.reynoldsnet.org/s10sh/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_aarch64= Fails to build: error: cannot find the byte order for this architecture, fix bytesex.h -BROKEN_armv6= Fails to build: error: cannot find the byte order for this architecture, fix bytesex.h -BROKEN_armv7= Fails to build: error: cannot find the byte order for this architecture, fix bytesex.h -BROKEN_riscv64= Fails to build: error: cannot find the byte order for this architecture, fix bytesex.h - USES= ncurses readline # Don't extract the libusb bundled with s10sh: EXTRACT_AFTER_ARGS= --exclude '*/libusb*' MAKEFILE= ${FILESDIR}/Makefile.bsd PORTDOCS= README PLIST_FILES= bin/${PORTNAME} OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/graphics/s10sh/files/patch-bytesex.h b/graphics/s10sh/files/patch-bytesex.h index 2c1472da9dc3..35256e46013c 100644 --- a/graphics/s10sh/files/patch-bytesex.h +++ b/graphics/s10sh/files/patch-bytesex.h @@ -1,12 +1,22 @@ ---- bytesex.h.orig Sat Mar 17 22:27:18 2007 -+++ bytesex.h Sat Mar 17 22:30:35 2007 -@@ -5,7 +5,8 @@ +--- bytesex.h.orig 2003-08-09 16:42:24 UTC ++++ bytesex.h +@@ -3,15 +3,11 @@ + #ifndef S10SH_BYTESEX_H + #define S10SH_BYTESEX_H - #if defined(__i386__) \ - || defined(__alpha__) \ +-#if defined(__i386__) \ +- || defined(__alpha__) \ - || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__))) -+ || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__))) \ -+ || defined(__amd64__) || defined(__ia64__) ++#include ++ ++#if BYTE_ORDER == LITTLE_ENDIAN #define BYTE_ORDER_LITTLE_ENDIAN - #elif defined(__mc68000__) \ - || defined (__sparc__) \ +-#elif defined(__mc68000__) \ +- || defined (__sparc__) \ +- || defined (__sparc) \ +- || defined (__PPC__) \ +- || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__))) ++#elif BYTE_ORDER == BIG_ENDIAN + #define BYTE_ORDER_BIG_ENDIAN + #else + # error can not find the byte order for this architecture, fix bytesex.h