Opened 19 years ago

Closed 18 years ago

Last modified 9 years ago

#8215 closed defect (fixed)

libdvdread needs byte swapping routines defined — at Version 3

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 Carsten 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)

Change History (4)

comment:1 Changed 18 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   \
        http://www.dtek.chalmers.se/groups/dvd/dist/
 checksums      md5 06353d7b14541ff8b431e69ad404db84
+patchfiles patch-bswap.h
 configure.env \
        LDFLAGS="-L${prefix}/lib" \
        CPPFLAGS="-I${prefix}/include -no-cpp-precomp"
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 18 years ago by springer.jonathan@…

Attachment: patch-bswap.h added

files/patch-bswap.h

comment:2 Changed 18 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 9 years ago by ryandesign (Ryan Carsten Schmidt)

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