Index: head/devel/firmware-utils/Makefile =================================================================== --- head/devel/firmware-utils/Makefile (revision 394847) +++ head/devel/firmware-utils/Makefile (revision 394848) @@ -1,17 +1,19 @@ # Created by: Stefan Bethke # $FreeBSD$ PORTNAME= firmware-utils PORTVERSION= 20111222 CATEGORIES= devel MASTER_SITES= http://www.transit.hanse.de/mirror/svn.openwrt.org/firmware-utils/ MAINTAINER= stb@lassitu.de COMMENT= Create device firmware images -USES= tar:bzip2 +LICENSE= GPLv2 + +USES= tar:bzip2 MAKEFILE= ${FILESDIR}/Makefile MAKE_ARGS+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" PREFIX=${PREFIX} .include Index: head/devel/firmware-utils/files/patch-freebsd.h =================================================================== --- head/devel/firmware-utils/files/patch-freebsd.h (revision 394847) +++ head/devel/firmware-utils/files/patch-freebsd.h (revision 394848) @@ -1,12 +1,12 @@ ---- /dev/null 2011-12-22 15:12:10.000000000 +0100 -+++ freebsd.h 2011-12-22 15:09:36.970404879 +0100 +--- freebsd.h.orig 2015-08-19 13:19:00 UTC ++++ freebsd.h @@ -0,0 +1,9 @@ +/* + * + */ + +#define bswap_8(x) ((x) & 0xff) +#define bswap_16(x) ((bswap_8(x) << 8) | bswap_8((x) >> 8)) +#define bswap_32(x) ((bswap_16(x) << 16) | bswap_16((x) >> 16)) +#define bswap_64(x) ((bswap_32(x) << 32) | bswap_32((x) >> 32)) + Index: head/devel/firmware-utils/files/patch-mkcasfw.c =================================================================== --- head/devel/firmware-utils/files/patch-mkcasfw.c (revision 394847) +++ head/devel/firmware-utils/files/patch-mkcasfw.c (revision 394848) @@ -1,19 +1,17 @@ -diff --git a/mkcasfw.c b/mkcasfw.c -index 626e77d..fe9f122 100644 ---- mkcasfw.c +--- mkcasfw.c.orig 2011-12-22 14:21:03 UTC +++ mkcasfw.c @@ -19,11 +19,13 @@ #include #include #include -#include /* for __BYTE_ORDER */ +#include /* for __BYTE_ORDER */ #if defined(__CYGWIN__) # include #endif +#include "freebsd.h" + #if (__BYTE_ORDER == __LITTLE_ENDIAN) # define HOST_TO_LE16(x) (x) # define HOST_TO_LE32(x) (x) Index: head/devel/firmware-utils/files/patch-mkcsysimg.c =================================================================== --- head/devel/firmware-utils/files/patch-mkcsysimg.c (revision 394847) +++ head/devel/firmware-utils/files/patch-mkcsysimg.c (revision 394848) @@ -1,19 +1,17 @@ -diff --git a/mkcsysimg.c b/mkcsysimg.c -index 4f2352a..b0c16c6 100644 ---- mkcsysimg.c +--- mkcsysimg.c.orig 2011-12-22 14:21:03 UTC +++ mkcsysimg.c @@ -32,11 +32,13 @@ #include #include #include -#include /* for __BYTE_ORDER */ +#include /* for __BYTE_ORDER */ #if defined(__CYGWIN__) # include #endif +#include "freebsd.h" + #include "csysimg.h" #if (__BYTE_ORDER == __LITTLE_ENDIAN) Index: head/devel/firmware-utils/files/patch-mkedimaximg.c =================================================================== --- head/devel/firmware-utils/files/patch-mkedimaximg.c (revision 394847) +++ head/devel/firmware-utils/files/patch-mkedimaximg.c (revision 394848) @@ -1,15 +1,13 @@ -diff --git a/mkedimaximg.c b/mkedimaximg.c -index d8a017e..6d504e5 100644 ---- mkedimaximg.c +--- mkedimaximg.c.orig 2011-12-22 14:21:03 UTC +++ mkedimaximg.c @@ -15,7 +15,9 @@ #include #include #include -#include /* for __BYTE_ORDER */ +#include /* for __BYTE_ORDER */ + +#include "freebsd.h" #if (__BYTE_ORDER == __LITTLE_ENDIAN) # define HOST_TO_LE16(x) (x) Index: head/devel/firmware-utils/files/patch-mkmylofw.c =================================================================== --- head/devel/firmware-utils/files/patch-mkmylofw.c (revision 394847) +++ head/devel/firmware-utils/files/patch-mkmylofw.c (revision 394848) @@ -1,15 +1,13 @@ -diff --git a/mkmylofw.c b/mkmylofw.c -index 585a9f9..927a0f7 100644 ---- mkmylofw.c +--- mkmylofw.c.orig 2011-12-22 14:21:03 UTC +++ mkmylofw.c @@ -28,7 +28,9 @@ #include #include #include -#include /* for __BYTE_ORDER */ +#include /* for __BYTE_ORDER */ + +#include "freebsd.h" #if defined(__CYGWIN__) # include Index: head/devel/firmware-utils/files/patch-mkzcfw.c =================================================================== --- head/devel/firmware-utils/files/patch-mkzcfw.c (revision 394847) +++ head/devel/firmware-utils/files/patch-mkzcfw.c (revision 394848) @@ -1,12 +1,10 @@ -diff --git a/mkzcfw.c b/mkzcfw.c -index 7674e70..c60fc6f 100644 ---- mkzcfw.c +--- mkzcfw.c.orig 2011-12-22 14:21:03 UTC +++ mkzcfw.c @@ -18,6 +18,7 @@ #include #include +#include "freebsd.h" #include "cyg_crc.h" #if (__BYTE_ORDER == __BIG_ENDIAN) Index: head/devel/firmware-utils/files/patch-mkzynfw.c =================================================================== --- head/devel/firmware-utils/files/patch-mkzynfw.c (revision 394847) +++ head/devel/firmware-utils/files/patch-mkzynfw.c (revision 394848) @@ -1,18 +1,16 @@ -diff --git a/mkzynfw.c b/mkzynfw.c -index 36c176f..22d8bd3 100644 ---- mkzynfw.c +--- mkzynfw.c.orig 2011-12-22 14:21:03 UTC +++ mkzynfw.c @@ -23,11 +23,12 @@ #include #include #include -#include /* for __BYTE_ORDER */ +#include /* for __BYTE_ORDER */ #if defined(__CYGWIN__) # include #endif +#include "freebsd.h" #include "zynos.h" #if (__BYTE_ORDER == __LITTLE_ENDIAN) Index: head/devel/firmware-utils/files/patch-ptgen.c =================================================================== --- head/devel/firmware-utils/files/patch-ptgen.c (revision 394847) +++ head/devel/firmware-utils/files/patch-ptgen.c (revision 394848) @@ -1,13 +1,11 @@ -diff --git a/ptgen.c b/ptgen.c -index d94aabb..4733311 100644 ---- ptgen.c +--- ptgen.c.orig 2011-12-22 14:21:03 UTC +++ ptgen.c @@ -29,6 +29,8 @@ #include #include +#include "freebsd.h" + #if __BYTE_ORDER == __BIG_ENDIAN #define cpu_to_le16(x) bswap_16(x) #elif __BYTE_ORDER == __LITTLE_ENDIAN Index: head/devel/firmware-utils/files/patch-trx.c =================================================================== --- head/devel/firmware-utils/files/patch-trx.c (revision 394847) +++ head/devel/firmware-utils/files/patch-trx.c (revision 394848) @@ -1,13 +1,11 @@ -diff --git a/trx.c b/trx.c -index 8e95d98..765f83c 100644 ---- trx.c +--- trx.c.orig 2011-12-22 14:21:03 UTC +++ trx.c @@ -51,6 +51,8 @@ #include #include +#include "freebsd.h" + #if __BYTE_ORDER == __BIG_ENDIAN #define STORE32_LE(X) bswap_32(X) #define LOAD32_LE(X) bswap_32(X) Index: head/devel/firmware-utils/files/patch-trx2edips.c =================================================================== --- head/devel/firmware-utils/files/patch-trx2edips.c (revision 394847) +++ head/devel/firmware-utils/files/patch-trx2edips.c (revision 394848) @@ -1,13 +1,11 @@ -diff --git a/trx2edips.c b/trx2edips.c -index f8d068d..224bc12 100644 ---- trx2edips.c +--- trx2edips.c.orig 2011-12-22 14:21:03 UTC +++ trx2edips.c @@ -6,6 +6,8 @@ #include #include +#include "freebsd.h" + #if __BYTE_ORDER == __BIG_ENDIAN #define STORE32_LE(X) bswap_32(X) #define LOAD32_LE(X) bswap_32(X) Index: head/devel/firmware-utils/files/patch-wrt400n.c =================================================================== --- head/devel/firmware-utils/files/patch-wrt400n.c (revision 394847) +++ head/devel/firmware-utils/files/patch-wrt400n.c (revision 394848) @@ -1,11 +1,10 @@ -diff --git a/wrt400n.c b/wrt400n.c -index a9a4908..f3c53db 100644 ---- wrt400n.c +--- wrt400n.c.orig 2011-12-22 14:21:03 UTC +++ wrt400n.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include +