diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2006-01-17 13:13:02 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2006-01-17 13:13:02 +0000 |
commit | add06212a161bcc9af8b2cb75d05197a9ded6c0a (patch) | |
tree | 31f3778cec2262b5575f4575f75d3834b6faa65f /audio | |
parent | 3ac655113fa55be2a1f67f1961fdc454432a7559 (diff) |
Unbreak on sparc64 (and other big endian archs)
Notes
Notes:
svn path=/head/; revision=153728
Diffstat (limited to 'audio')
-rw-r--r-- | audio/rio500/Makefile | 9 | ||||
-rw-r--r-- | audio/rio500/files/patch-include-libfon.h | 12 |
2 files changed, 18 insertions, 3 deletions
diff --git a/audio/rio500/Makefile b/audio/rio500/Makefile index 55d077de6d7f..bbe15ce5a997 100644 --- a/audio/rio500/Makefile +++ b/audio/rio500/Makefile @@ -20,10 +20,13 @@ CONFIGURE_ARGS= --with-devicepath='/dev' \ --with-deviceentry='urio0' \ --with-id3support +USE_REINPLACE= yes + .include <bsd.port.pre.mk> -.if ${ARCH} == "sparc64" -BROKEN= "Does not compile on sparc64" -.endif +post-patch: + ${REINPLACE_CMD} -e "s,byteswap.h,sys/endian.h," \ + ${WRKSRC}/lib/libfon.c \ + ${WRKSRC}/lib/librio500.c .include <bsd.port.post.mk> diff --git a/audio/rio500/files/patch-include-libfon.h b/audio/rio500/files/patch-include-libfon.h new file mode 100644 index 000000000000..174de6261ce3 --- /dev/null +++ b/audio/rio500/files/patch-include-libfon.h @@ -0,0 +1,12 @@ +--- include/libfon.h.orig Tue Jan 17 14:07:33 2006 ++++ include/libfon.h Tue Jan 17 14:08:42 2006 +@@ -34,6 +34,9 @@ + #define MZ_HEADER_MAGIC 0x5a4d + #define NE_HEADER_MAGIC 0x454e + ++#define bswap_16(x) (be16toh(x)) ++#define bswap_32(x) (be32toh(x)) ++ + typedef struct { + uint16_t magic; + uint16_t dummy[29]; /* MZ Header data that we want to skip */ |