Opened 15 years ago

Closed 15 years ago

Last modified 6 years ago

#8215 closed defect (fixed)

libdvdread needs byte swapping routines defined

Reported by: m-darwinports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: springer.jonathan@…, markd@…
Port: libdvdread

Description (last modified by ryandesign (Ryan Schmidt))

Add this to the big #if/elif/else statement in bswap.h to properly compile:

#elif defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define B2N_16(x) x = OSSwapBigToHostConstInt16(x) 
#define B2N_32(x) x = OSSwapBigToHostConstInt32(x)
#define B2N_64(x) x = OSSwapBigToHostConstInt64(x)

Attachments (1)

patch-bswap.h (502 bytes) - added by springer.jonathan@… 15 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 15 years ago by springer.jonathan@…

Cc: springer.jonathan@… added

Portfile diff. See also files/patch-bswap.h attachment to bug.

--- /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/libdvdread/Portfile      2004-01-21 15:26:20.000000000 -0500
+++ ./Portfile  2006-08-23 21:43:50.000000000 -0400
@@ -22,6 +22,7 @@
 master_sites   \
 checksums      md5 06353d7b14541ff8b431e69ad404db84
+patchfiles patch-bswap.h
 configure.env \
        LDFLAGS="-L${prefix}/lib" \
        CPPFLAGS="-I${prefix}/include -no-cpp-precomp"
Last edited 6 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

Changed 15 years ago by springer.jonathan@…

Attachment: patch-bswap.h added


comment:2 Changed 15 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: newclosed

Committed update to 0.9.7. Patch is no longer necessary.

comment:3 Changed 6 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Port: libdvdread added
Note: See TracTickets for help on using tickets.